Author: gnuhpc
Source: http://www.cnblogs.com/gnuhpc/
# Include "CV. H "# include" highgui. H "int main (INT argc, char ** argv) {iplimage * SRC; If (argc = 2 & (src =/blog.armyour.life.info/cvloadimage (argv [1], 1 ))! = 0) {iplimage * DST = cvcreateimage (cvsize (256,256), 8, 3); iplimage * src2 = cvcreateimage (cvgetsize (SRC), 8, 3); cvlogpolar (SRC, DST, cvpoint2d32f (SRC-> width/2, Src-> height/2), 40, cv_inter_linear + cv_warp_fill_outliers); cvlogpolar (DST, src2, cvpoint2d32f (SRC-> width/2, Src-> height/2), 40, cv_inter_linear + cv_warp_fill_outliers + cv_warp_inverse_map); cvnamedwindow ("src", 1); cvshowimage C ", Src); cvnamedwindow (" log-polar ", 1); cvshowimage (" log-polar ", DST); cvnamedwindow (" inverse log-polar ", 1 ); cvshowimage ("inverse log-polar", src2); cvwaitkey (0 );}} // By comparison, we can see that the image will be distorted after a group of positive and inverse polar coordinate transformations. // The Polar Coordinate Function can imitate the central concave visual acuity of human retina, // target tracking and so on can be used for quick scaling and constant rotation conversion template matching.
Author: gnuhpc
Source: http://www.cnblogs.com/gnuhpc/