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 (parser.has("help"))
{
help();
return 0;
}
std::string arg = parser.get<std::string>("@input");
if( arg.size() == 1 && isdigit(arg[0]) )
else
if( !capture )
{
const char* name = argv[0];
fprintf(stderr,
"Could not initialize capturing...\n");
fprintf(stderr,
"Usage: %s <CAMERA_NUMBER> , or \n %s <VIDEO_FILE>\n", name, name);
help();
return -1;
}
for(;;)
{
if( !frame )
break;
if( !log_polar_img )
{
}
#if 0
#else
#endif
break;
}
return 0;
}
#ifdef _EiC
main(1,"laplace.c");
#endif