// Test default setting
double x, y;
image.chromaBluePrimary( &x, &y );
- if ( x != 0.1500 || y != 0.0600 )
+ if ( x != 0.1500f || y != 0.0600f )
{
++failures;
cout << "Line: " << __LINE__
// Test default setting
double x, y;
image.chromaGreenPrimary( &x, &y );
- if ( x != 0.3000 || y != 0.6000 )
+ if ( x != 0.3000f || y != 0.6000f )
{
++failures;
cout << "Line: " << __LINE__
// Test default setting
double x, y;
image.chromaRedPrimary( &x, &y );
- if ( x != 0.6400 || y != 0.3300 )
+ if ( x != 0.6400f || y != 0.3300f )
{
++failures;
cout << "Line: " << __LINE__
// Test default setting
double x, y;
image.chromaWhitePoint( &x, &y );
- if ( x != 0.3127 || y != 0.3290 )
+ if ( x != 0.3127f || y != 0.3290f )
{
++failures;
cout << "Line: " << __LINE__
//
// gamma
//
- if ( image.gamma() != 0.45455 )
+ if ( image.gamma() != 1.0000f/2.2000f )
{
++failures;
cout << "Line: " << __LINE__