assertEquals( "NIKON D200", p.getCamera() );
assertEquals( 8.0, p.getFStop() );
assertEquals( "Digital", p.getFilm() );
assertEquals( 100, p.getFilmSpeed() );
assertEquals( 0, p.getQuality() );
ChannelMapOperation cm = p.getColorChannelMapping();
ColorCurve c = cm.getChannelCurve( "value" );
assertEquals( 0.4, c.getY( 1 ) );
assertEquals( 0.5, c.getX( 1 ) );
boolean foundOrig = false;
for ( int n = 0; n < p.getNumInstances(); n++ ) {
ImageInstance i = p.getInstance( n );
if ( i.getInstanceType() == ImageInstance.INSTANCE_TYPE_ORIGINAL ) {
cm = i.getColorChannelMapping();
c = cm.getChannelCurve( "value" );
assertEquals( 0.2, c.getY( 1 ) );
assertEquals( 0.6, c.getX( 1 ) );
foundOrig = true;
}
}