An example using pyrDown and pyrUp functions
#include "iostream"
const char* window_name = "Pyramids Demo";
int main( int argc, char** argv )
{
cout << "\n Zoom In-Out demo \n "
"------------------ \n"
" * [i] -> Zoom in \n"
" * [o] -> Zoom out \n"
" * [ESC] -> Close program \n" << endl;
const char* filename = argc >=2 ? argv[1] : "../data/chicky_512.png";
printf(" Error opening image\n");
printf(" Program Arguments: [image_name -- default ../data/chicky_512.png] \n");
return -1;
}
for(;;)
{
if( c == 27 )
{ break; }
else if( c == 'i' )
printf( "** Zoom In: Image x 2 \n" );
}
else if( c == 'o' )
printf( "** Zoom Out: Image / 2 \n" );
}
}
return 0;
}