cout << " ordered dither red 4x4..." << endl;
example = model;
example.label( "Ordered Dither\n(Red 4x4)" );
- example.randomThresholdChannel( Geometry(4,4), RedChannel);
+ example.randomThresholdChannel( RedChannel, Geometry(4,4));
images.push_back( example );
cout << " plasma ..." << endl;
cout << " threshold random ..." << endl;
example = model;
example.label( "Random\nThreshold" );
- example.randomThreshold( Geometry((unsigned int) (0.3*QuantumRange),
- (unsigned int) (0.85*QuantumRange)) );
+ example.randomThreshold( Geometry((size_t) (0.3*QuantumRange),
+ (size_t) (0.85*QuantumRange)) );
images.push_back( example );
cout << " unsharp mask ..." << endl;
cout << " wave ..." << endl;
example = model;
example.label( "Wave" );
- example.matte( true );
+ example.alpha( true );
example.backgroundColor( "#000000FF" );
example.wave( 25, 150 );
images.push_back( example );
}
for_each( montage.begin(), montage.end(), depthImage(8) );
- for_each( montage.begin(), montage.end(), matteImage( false ) );
+ for_each( montage.begin(), montage.end(), alphaImage( false ) );
for_each( montage.begin(), montage.end(), compressTypeImage( RLECompression) );
cout << "Writing image \"demo_out.miff\" ..." << endl;
- writeImages(montage.begin(),montage.end(),"demo_out.miff");
+ writeImages(montage.begin(),montage.end(),"demo_out_%d.miff");
// Uncomment following lines to display image to screen
// cout << "Display image..." << endl;