finish C++ doc comments
This commit is contained in:
parent
a08eb1cc64
commit
875c0fdf3c
@ -34,30 +34,59 @@
|
|||||||
|
|
||||||
VIPS_NAMESPACE_START
|
VIPS_NAMESPACE_START
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A generic source object. These supply a stream of bytes that loaders can
|
||||||
|
* use to fetch image files, see VImage::new_from_source().
|
||||||
|
*
|
||||||
|
* Methods let you can connect a source up to memory, a file or
|
||||||
|
* a file descriptor. Use vips::VSourceCustom to implement custom sources
|
||||||
|
* using GObject signals.
|
||||||
|
*/
|
||||||
class VSource : public VObject
|
class VSource : public VObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* Wrap a VSource around an underlying VipsSource object.
|
||||||
|
*/
|
||||||
VSource( VipsSource *input, VSteal steal = STEAL ) :
|
VSource( VipsSource *input, VSteal steal = STEAL ) :
|
||||||
VObject( (VipsObject *) input, steal )
|
VObject( (VipsObject *) input, steal )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
/**
|
||||||
VSource new_from_descriptor( int descriptor );
|
* Make a new VSource from a file descriptor.
|
||||||
|
*/
|
||||||
|
static VSource
|
||||||
|
new_from_descriptor( int descriptor );
|
||||||
|
|
||||||
static
|
/**
|
||||||
VSource new_from_file( const char *filename );
|
* Make a new VSource from a file on disc.
|
||||||
|
*/
|
||||||
|
static VSource
|
||||||
|
new_from_file( const char *filename );
|
||||||
|
|
||||||
static
|
/**
|
||||||
VSource new_from_blob( VipsBlob *blob );
|
* Make a new VSource from a binary object.
|
||||||
|
*/
|
||||||
|
static VSource
|
||||||
|
new_from_blob( VipsBlob *blob );
|
||||||
|
|
||||||
static
|
/**
|
||||||
VSource new_from_memory( const void *data,
|
* Make a new VSource from an area of memory.
|
||||||
size_t size );
|
*/
|
||||||
|
static VSource
|
||||||
|
new_from_memory( const void *data, size_t size );
|
||||||
|
|
||||||
static
|
/**
|
||||||
VSource new_from_options( const char *options );
|
* Make a new VSource from a set of options encoded as a string. See
|
||||||
|
* vips_source_new().
|
||||||
|
*/
|
||||||
|
static VSource
|
||||||
|
new_from_options( const char *options );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a pointer to the underlying VipsSoure object.
|
||||||
|
*/
|
||||||
VipsSource *
|
VipsSource *
|
||||||
get_source() const
|
get_source() const
|
||||||
{
|
{
|
||||||
@ -66,23 +95,48 @@ public:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A generic target object. Savers can use these to write a stream of bytes
|
||||||
|
* somewhere, see VImage::write_to_target().
|
||||||
|
*
|
||||||
|
* Methods let you can connect a target up to memory, a file or
|
||||||
|
* a file descriptor. Use vips::VTargetCustom to implement custom targets
|
||||||
|
* using GObject signals.
|
||||||
|
*/
|
||||||
class VTarget : public VObject
|
class VTarget : public VObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* Wrap a VTarget around an underlying VipsTarget object.
|
||||||
|
*/
|
||||||
VTarget( VipsTarget *output, VSteal steal = STEAL ) :
|
VTarget( VipsTarget *output, VSteal steal = STEAL ) :
|
||||||
VObject( (VipsObject *) output, steal )
|
VObject( (VipsObject *) output, steal )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
/**
|
||||||
VTarget new_to_descriptor( int descriptor );
|
* Make a new VTarget which, when written to, will write to a file
|
||||||
|
* descriptor.
|
||||||
|
*/
|
||||||
|
static VTarget
|
||||||
|
new_to_descriptor( int descriptor );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Make a new VTarget which, when written to, will write to a file.
|
||||||
|
*/
|
||||||
static
|
static
|
||||||
VTarget new_to_file( const char *filename );
|
VTarget new_to_file( const char *filename );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Make a new VTarget which, when written to, will write to a file
|
||||||
|
* descriptor.
|
||||||
|
*/
|
||||||
static
|
static
|
||||||
VTarget new_to_memory();
|
VTarget new_to_memory();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a pointer to the underlying VipsTarget object.
|
||||||
|
*/
|
||||||
VipsTarget *
|
VipsTarget *
|
||||||
get_target() const
|
get_target() const
|
||||||
{
|
{
|
||||||
|
@ -670,7 +670,8 @@ public:
|
|||||||
void
|
void
|
||||||
get_array_int( const char *field, int **out, int *n ) const
|
get_array_int( const char *field, int **out, int *n ) const
|
||||||
{
|
{
|
||||||
if( vips_image_get_array_int( this->get_image(), field, out, n ) )
|
if( vips_image_get_array_int( this->get_image(),
|
||||||
|
field, out, n ) )
|
||||||
throw( VError() );
|
throw( VError() );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -685,7 +686,8 @@ public:
|
|||||||
int length;
|
int length;
|
||||||
int *array;
|
int *array;
|
||||||
|
|
||||||
if( vips_image_get_array_int( this->get_image(), field, &array, &length ) )
|
if( vips_image_get_array_int( this->get_image(),
|
||||||
|
field, &array, &length ) )
|
||||||
throw( VError() );
|
throw( VError() );
|
||||||
|
|
||||||
std::vector<int> vector( array, array + length );
|
std::vector<int> vector( array, array + length );
|
||||||
@ -804,10 +806,45 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new VImage object from a file on disc.
|
* Create a new VImage object from a file on disc.
|
||||||
|
*
|
||||||
|
* The available options depends on the image format. See for example
|
||||||
|
* VImage::jpegload().
|
||||||
*/
|
*/
|
||||||
static VImage
|
static VImage
|
||||||
new_from_file( const char *name, VOption *options = 0 );
|
new_from_file( const char *name, VOption *options = 0 );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new VImage object from an area of memory containing an
|
||||||
|
* image encoded in some format such as JPEG.
|
||||||
|
*
|
||||||
|
* The available options depends on the image format. See for example
|
||||||
|
* VImage::jpegload().
|
||||||
|
*/
|
||||||
|
static VImage
|
||||||
|
new_from_buffer( const void *buf, size_t len,
|
||||||
|
const char *option_string, VOption *options = 0 );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new VImage object from an area of memory containing an
|
||||||
|
* image encoded in some format such as JPEG.
|
||||||
|
*
|
||||||
|
* The available options depends on the image format. See for example
|
||||||
|
* VImage::jpegload().
|
||||||
|
*/
|
||||||
|
static VImage
|
||||||
|
new_from_buffer( const std::string &buf,
|
||||||
|
const char *option_string, VOption *options = 0 );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new VImage object from a generic source object.
|
||||||
|
*
|
||||||
|
* The available options depends on the image format. See for example
|
||||||
|
* VImage::jpegload().
|
||||||
|
*/
|
||||||
|
static VImage
|
||||||
|
new_from_source( VSource source,
|
||||||
|
const char *option_string, VOption *options = 0 );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new VImage object from an area of memory containing a
|
* Create a new VImage object from an area of memory containing a
|
||||||
* C-style array.
|
* C-style array.
|
||||||
@ -825,29 +862,6 @@ public:
|
|||||||
return( VImage( image ) );
|
return( VImage( image ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a new VImage object from an area of memory containing an
|
|
||||||
* image encoded in some format such as JPEG.
|
|
||||||
*/
|
|
||||||
static VImage
|
|
||||||
new_from_buffer( const void *buf, size_t len,
|
|
||||||
const char *option_string, VOption *options = 0 );
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a new VImage object from an area of memory containing an
|
|
||||||
* image encoded in some format such as JPEG.
|
|
||||||
*/
|
|
||||||
static VImage
|
|
||||||
new_from_buffer( const std::string &buf,
|
|
||||||
const char *option_string, VOption *options = 0 );
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a new VImage object from a generic source object.
|
|
||||||
*/
|
|
||||||
static VImage
|
|
||||||
new_from_source( VSource source,
|
|
||||||
const char *option_string, VOption *options = 0 );
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a matrix image of a specified size. All elements will be
|
* Create a matrix image of a specified size. All elements will be
|
||||||
* zero.
|
* zero.
|
||||||
@ -905,7 +919,8 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Make a new image by rendering self to a large memory area,
|
* Make a new image by rendering self to a large memory area,
|
||||||
* wrapping a VImage around it, and setting all metadata from self.
|
* wrapping a VImage around it, and copying all metadata over from
|
||||||
|
* self.
|
||||||
*/
|
*/
|
||||||
VImage
|
VImage
|
||||||
copy_memory() const
|
copy_memory() const
|
||||||
@ -925,6 +940,9 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Write an image to a file.
|
* Write an image to a file.
|
||||||
|
*
|
||||||
|
* The available options depends on the file format. See
|
||||||
|
* VImage::jpegsave(), for example.
|
||||||
*/
|
*/
|
||||||
void write_to_file( const char *name, VOption *options = 0 ) const;
|
void write_to_file( const char *name, VOption *options = 0 ) const;
|
||||||
|
|
||||||
@ -938,12 +956,17 @@ public:
|
|||||||
* size_t size;
|
* size_t size;
|
||||||
* image.write_to_buffer( ".jpg", &buf, &size );
|
* image.write_to_buffer( ".jpg", &buf, &size );
|
||||||
*
|
*
|
||||||
|
* The available options depends on the file format. See
|
||||||
|
* VImage::jpegsave(), for example.
|
||||||
*/
|
*/
|
||||||
void write_to_buffer( const char *suffix, void **buf, size_t *size,
|
void write_to_buffer( const char *suffix, void **buf, size_t *size,
|
||||||
VOption *options = 0 ) const;
|
VOption *options = 0 ) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write an image to a generic target object in the specified format.
|
* Write an image to a generic target object in the specified format.
|
||||||
|
*
|
||||||
|
* The available options depends on the file format. See
|
||||||
|
* VImage::jpegsave(), for example.
|
||||||
*/
|
*/
|
||||||
void write_to_target( const char *suffix, VTarget target,
|
void write_to_target( const char *suffix, VTarget target,
|
||||||
VOption *options = 0 ) const;
|
VOption *options = 0 ) const;
|
||||||
@ -1121,138 +1144,216 @@ public:
|
|||||||
return( rank( size, size, (size * size) / 2, options ) );
|
return( rank( size, size, (size * size) / 2, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert to integer, rounding down.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
floor( VOption *options = 0 ) const
|
floor( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( round( VIPS_OPERATION_ROUND_FLOOR, options ) );
|
return( round( VIPS_OPERATION_ROUND_FLOOR, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert to integer, rounding up.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
ceil( VOption *options = 0 ) const
|
ceil( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( round( VIPS_OPERATION_ROUND_CEIL, options ) );
|
return( round( VIPS_OPERATION_ROUND_CEIL, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert to integer, rounding to nearest.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
rint( VOption *options = 0 ) const
|
rint( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( round( VIPS_OPERATION_ROUND_RINT, options ) );
|
return( round( VIPS_OPERATION_ROUND_RINT, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AND all bands of an image together to make a one-band image. Useful
|
||||||
|
* with the relational operators, for example:
|
||||||
|
*
|
||||||
|
* VImage mask = (in > 128).bandand()
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
bandand( VOption *options = 0 ) const
|
bandand( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( bandbool( VIPS_OPERATION_BOOLEAN_AND, options ) );
|
return( bandbool( VIPS_OPERATION_BOOLEAN_AND, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OR all bands of an image together to make a one-band image. Useful
|
||||||
|
* with the relational operators, for example:
|
||||||
|
*
|
||||||
|
* VImage mask = (in > 128).bandand()
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
bandor( VOption *options = 0 ) const
|
bandor( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( bandbool( VIPS_OPERATION_BOOLEAN_OR, options ) );
|
return( bandbool( VIPS_OPERATION_BOOLEAN_OR, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* EOR all bands of an image together to make a one-band image. Useful
|
||||||
|
* with the relational operators, for example:
|
||||||
|
*
|
||||||
|
* VImage mask = (in > 128).bandand()
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
bandeor( VOption *options = 0 ) const
|
bandeor( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( bandbool( VIPS_OPERATION_BOOLEAN_EOR, options ) );
|
return( bandbool( VIPS_OPERATION_BOOLEAN_EOR, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the real part of a complex image.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
real( VOption *options = 0 ) const
|
real( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( complexget( VIPS_OPERATION_COMPLEXGET_REAL, options ) );
|
return( complexget( VIPS_OPERATION_COMPLEXGET_REAL, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the imaginary part of a complex image.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
imag( VOption *options = 0 ) const
|
imag( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( complexget( VIPS_OPERATION_COMPLEXGET_IMAG, options ) );
|
return( complexget( VIPS_OPERATION_COMPLEXGET_IMAG, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert a complex image to polar coordinates.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
polar( VOption *options = 0 ) const
|
polar( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( complex( VIPS_OPERATION_COMPLEX_POLAR, options ) );
|
return( complex( VIPS_OPERATION_COMPLEX_POLAR, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert a complex image to rectangular coordinates.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
rect( VOption *options = 0 ) const
|
rect( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( complex( VIPS_OPERATION_COMPLEX_RECT, options ) );
|
return( complex( VIPS_OPERATION_COMPLEX_RECT, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the complex conjugate.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
conj( VOption *options = 0 ) const
|
conj( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( complex( VIPS_OPERATION_COMPLEX_CONJ, options ) );
|
return( complex( VIPS_OPERATION_COMPLEX_CONJ, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the sine of each pixel. Angles are in degrees.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
sin( VOption *options = 0 ) const
|
sin( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( math( VIPS_OPERATION_MATH_SIN, options ) );
|
return( math( VIPS_OPERATION_MATH_SIN, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the cosine of each pixel. Angles are in degrees.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
cos( VOption *options = 0 ) const
|
cos( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( math( VIPS_OPERATION_MATH_COS, options ) );
|
return( math( VIPS_OPERATION_MATH_COS, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the tangent of each pixel. Angles are in degrees.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
tan( VOption *options = 0 ) const
|
tan( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( math( VIPS_OPERATION_MATH_TAN, options ) );
|
return( math( VIPS_OPERATION_MATH_TAN, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the arc sine of each pixel. Angles are in degrees.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
asin( VOption *options = 0 ) const
|
asin( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( math( VIPS_OPERATION_MATH_ASIN, options ) );
|
return( math( VIPS_OPERATION_MATH_ASIN, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the arc cosine of each pixel. Angles are in degrees.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
acos( VOption *options = 0 ) const
|
acos( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( math( VIPS_OPERATION_MATH_ACOS, options ) );
|
return( math( VIPS_OPERATION_MATH_ACOS, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the arc tangent of each pixel. Angles are in degrees.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
atan( VOption *options = 0 ) const
|
atan( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( math( VIPS_OPERATION_MATH_ATAN, options ) );
|
return( math( VIPS_OPERATION_MATH_ATAN, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the natural log of each pixel.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
log( VOption *options = 0 ) const
|
log( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( math( VIPS_OPERATION_MATH_LOG, options ) );
|
return( math( VIPS_OPERATION_MATH_LOG, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the base 10 log of each pixel.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
log10( VOption *options = 0 ) const
|
log10( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( math( VIPS_OPERATION_MATH_LOG10, options ) );
|
return( math( VIPS_OPERATION_MATH_LOG10, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find e to the power of each pixel.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
exp( VOption *options = 0 ) const
|
exp( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( math( VIPS_OPERATION_MATH_EXP, options ) );
|
return( math( VIPS_OPERATION_MATH_EXP, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find 10 to the power of each pixel.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
exp10( VOption *options = 0 ) const
|
exp10( VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( math( VIPS_OPERATION_MATH_EXP10, options ) );
|
return( math( VIPS_OPERATION_MATH_EXP10, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raise each pixel to the specified power.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
pow( VImage other, VOption *options = 0 ) const
|
pow( VImage other, VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( math2( other, VIPS_OPERATION_MATH2_POW, options ) );
|
return( math2( other, VIPS_OPERATION_MATH2_POW, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raise each pixel to the specified power.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
pow( double other, VOption *options = 0 ) const
|
pow( double other, VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
@ -1260,6 +1361,9 @@ public:
|
|||||||
to_vector( other ), options ) );
|
to_vector( other ), options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raise each pixel to the specified power.
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
pow( std::vector<double> other, VOption *options = 0 ) const
|
pow( std::vector<double> other, VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
@ -1267,12 +1371,18 @@ public:
|
|||||||
other, options ) );
|
other, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raise other to the power of each pixel (the opposite of pow).
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
wop( VImage other, VOption *options = 0 ) const
|
wop( VImage other, VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( math2( other, VIPS_OPERATION_MATH2_WOP, options ) );
|
return( math2( other, VIPS_OPERATION_MATH2_WOP, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raise the constant to the power of each pixel (the opposite of pow).
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
wop( double other, VOption *options = 0 ) const
|
wop( double other, VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
@ -1280,6 +1390,9 @@ public:
|
|||||||
to_vector( other ), options ) );
|
to_vector( other ), options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Raise the constant to the power of each pixel (the opposite of pow).
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
wop( std::vector<double> other, VOption *options = 0 ) const
|
wop( std::vector<double> other, VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
@ -1287,6 +1400,10 @@ public:
|
|||||||
other, options ) );
|
other, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use self as a conditional image (not zero meaning TRUE) to pick
|
||||||
|
* pixels from th (then) or el (else).
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
ifthenelse( std::vector<double> th, VImage el,
|
ifthenelse( std::vector<double> th, VImage el,
|
||||||
VOption *options = 0 ) const
|
VOption *options = 0 ) const
|
||||||
@ -1294,6 +1411,10 @@ public:
|
|||||||
return( ifthenelse( el.new_from_image( th ), el, options ) );
|
return( ifthenelse( el.new_from_image( th ), el, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use self as a conditional image (not zero meaning TRUE) to pick
|
||||||
|
* pixels from th (then) or el (else).
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
ifthenelse( VImage th, std::vector<double> el,
|
ifthenelse( VImage th, std::vector<double> el,
|
||||||
VOption *options = 0 ) const
|
VOption *options = 0 ) const
|
||||||
@ -1301,6 +1422,10 @@ public:
|
|||||||
return( ifthenelse( th, th.new_from_image( el ), options ) );
|
return( ifthenelse( th, th.new_from_image( el ), options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use self as a conditional image (not zero meaning TRUE) to pick
|
||||||
|
* pixels from th (then) or el (else).
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
ifthenelse( std::vector<double> th, std::vector<double> el,
|
ifthenelse( std::vector<double> th, std::vector<double> el,
|
||||||
VOption *options = 0 ) const
|
VOption *options = 0 ) const
|
||||||
@ -1309,18 +1434,30 @@ public:
|
|||||||
options ) );
|
options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use self as a conditional image (not zero meaning TRUE) to pick
|
||||||
|
* pixels from th (then) or el (else).
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
ifthenelse( double th, VImage el, VOption *options = 0 ) const
|
ifthenelse( double th, VImage el, VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( ifthenelse( to_vector( th ), el, options ) );
|
return( ifthenelse( to_vector( th ), el, options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use self as a conditional image (not zero meaning TRUE) to pick
|
||||||
|
* pixels from th (then) or el (else).
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
ifthenelse( VImage th, double el, VOption *options = 0 ) const
|
ifthenelse( VImage th, double el, VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
return( ifthenelse( th, to_vector( el ), options ) );
|
return( ifthenelse( th, to_vector( el ), options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use self as a conditional image (not zero meaning TRUE) to pick
|
||||||
|
* pixels from th (then) or el (else).
|
||||||
|
*/
|
||||||
VImage
|
VImage
|
||||||
ifthenelse( double th, double el, VOption *options = 0 ) const
|
ifthenelse( double th, double el, VOption *options = 0 ) const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user