Computes edge and corner phase congruency in an image, using Peter Kovesi's algorithm and based on his Matlab code.
To learn about how phase congruency works please see Peter's publications:
Peter Kovesi, "Image Features From Phase Congruency". Videre: A Journal of Computer Vision Research. MIT Press. Volume 1, Number 3, Summer 1999. www.cs.rochester.edu/u/brown/Videre
Peter Kovesi, "Edges Are Not Just Steps". Proceedings of ACCV2002 The Fifth Asian Conference on Computer Vision, Melbourne Jan 22-25, 2002. pp 822-827. (preprint)
Peter Kovesi, "Phase Congruency Detects Corners and Edges". The Australian Pattern Recognition Society Conference: Digital Image Computing: Techniques and Applications DICTA 2003. December 2003. Sydney. pp 309-318. (preprint)
Peter Kovesi, "Invariant Measures of Image Features From Phase Information". PhD Thesis, The University of Western Australia. 1996.
I have used Peter's phase congruency in my own research on human visual perception (psychophysics & EEG):
Gaspar, C. M., & Rousselet, G. A. (2009). How do amplitude spectra influence rapid animal detection?. Vision research, 49(24), 3001-3012.
Rousselet, G. A., Husk, J. S., Pernet, C. R., Gaspar, C. M., Bennett, P. J., & Sekuler, A. B. (2009). Age-related delay in information accrual for faces: evidence from a parametric, single-trial EEG approach. Bmc Neuroscience, 10(1), 114.
Rousselet, G. A., Gaspar, C. M., Pernet, C. R., Husk, J. S., Bennett, P. J., & Sekuler, A. B. (2010). Healthy aging delays scalp EEG sensitivity to noise in a face discrimination task. Frontiers in Psychology, 1, 19.
Rousselet, G. A., Gaspar, C. M., Wieczorek, K. P., & Pernet, C. R. (2011). Modelling single-trial ERP reveals modulation of bottom-up face visual processing by top-down task constraints (in some subjects). Frontiers in psychology, 2, 137.
Others in my field of research have also used Peter's phase congruency. Here is one example:
Crouzet, S. M., & Thorpe, S. J. (2011). Low-level cues and ultra-fast face detection. Frontiers in psychology, 2, 342.
Check out Peter Kovesi's website his original code and a host of other very nice Matlab and Octave functions: http://www.peterkovesi.com/matlabfns/