23 gp0.
window(
"Image", 10, 10, 2 * C + 80, 2 * R + 50 );
24 gp1.
window(
"FFT Blue channel", 640, 10, 2 * C + 80 + 50, 2 * R + 50 );
27 cube x3( R, C, 3, fill::randu );
29 x3.slice( 0 ).submat( span( 20, 51 ), span( 20, 51 ) ) = 250 * ones( 32, 32 );
30 x3.slice( 1 ).submat( span( 80, 111 ), span( 70, 101 ) ) = 250 * ones( 32, 32 );
31 x3.slice( 2 ).submat( span( 20, 51 ), span( 110, 141 ) ) = 250 * ones( 32, 32 );
34 ppm.
write(
"test.ppm", ppm.
PPM_B, x3,
"Test picture" );
45 gp1.
send2gp(
"set palette grey" );
void window(const int fig, const char *name, const int x, const int y, const int width, const int height)
Configure the figure used Windows environment.