An example using the cv::linearPolar and cv::logPolar operations
#include <ctype.h>
#include <stdio.h>
static void help( void )
{
printf("\nThis program illustrates Linear-Polar and Log-Polar image transforms\n"
"Usage :\n"
"./polar_transforms [[camera number -- Default 0],[AVI path_filename]]\n\n"
);
}
int main(
int argc,
char** argv )
{
help();
if( argc == 1 || (argc == 2 && strlen(argv[1]) == 1 && isdigit(argv[1][0])))
else if( argc == 2 )
if( !capture )
{
fprintf(stderr,
"Could not initialize capturing...\n");
fprintf(stderr,
"Usage: %s <CAMERA_NUMBER> , or \n %s <VIDEO_FILE>\n",argv[0],argv[0]);
help();
return -1;
}
for(;;)
{
if( !frame )
break;
if( !log_polar_img )
{
}
#if 0
#else
#endif
break;
}
return 0;
}
#ifdef _EiC
#endif