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] : "chicky_512.png";
printf(" Error opening image\n");
printf(" Program Arguments: [image_name -- default chicky_512.png] \n");
return EXIT_FAILURE;
}
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 EXIT_SUCCESS;
}