oop set scale/offset
This commit is contained in:
parent
7c43e3d332
commit
2360d4a6e9
@ -65,7 +65,8 @@ im_mask2vips( DOUBLEMASK *in, IMAGE *out )
|
|||||||
|
|
||||||
/* Check the mask.
|
/* Check the mask.
|
||||||
*/
|
*/
|
||||||
if( !in || !in->coeff ) {
|
if( !in ||
|
||||||
|
!in->coeff ) {
|
||||||
im_error( "im_mask2vips", "%s", _( "bad input mask" ) );
|
im_error( "im_mask2vips", "%s", _( "bad input mask" ) );
|
||||||
return( -1 );
|
return( -1 );
|
||||||
}
|
}
|
||||||
@ -98,6 +99,9 @@ im_mask2vips( DOUBLEMASK *in, IMAGE *out )
|
|||||||
return( -1 );
|
return( -1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vips_image_set_double( out, "scale", in->scale );
|
||||||
|
vips_image_set_double( out, "offset", in->offset );
|
||||||
|
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user