Local Phase Coherence Measurement for Image Analysis and Processing