#ifdef _CH_
#pragma package<opencv>
#endif
#ifndef _CV_
#include <cv.h>
#include <cvcam.h>
#include <cxcore.h>
#include <highgui.h>
#endif
#pragma comment(lib,"cv.lib")
#pragma comment(lib,"cvcam.lib")
#pragma comment(lib,"cxcore.lib")
#pragma comment(lib,"highgui.lib")
void main()
{
IplImage *src_image = cvLoadImage("1.jpg");
assert(src_image!=NULL);
IplImage *dst_image = cvCreateImage(cvGetSize(src_image),src_image->depth,src_image->nChannels);
assert(dst_image!=NULL);
IplImage *dst_second_image = cvCreateImage(cvGetSize(src_image),src_image->depth,src_image->nChannels);
assert(dst_second_image!=NULL);
//执行对数极坐标转换
cvLogPolar(src_image,dst_image,cvPoint2D32f(src_image->width/4,src_image->height/2),78.0);
//再次执行对数极左边转换