Public Types |
typedef T * | iterator |
| Iterator type for CImg<T>.
|
typedef const T * | const_iterator |
| Const iterator type for CImg<T>.
|
typedef T | value_type |
| Value type.
|
Constructors / Destructor / Instance Management |
|
| ~CImg () |
| Destructor.
|
| CImg () |
| Default constructor.
|
| CImg (const unsigned int dx, const unsigned int dy=1, const unsigned int dz=1, const unsigned int dc=1) |
| Constructs a new image with given size (dx ,dy ,dz ,dc ).
|
| CImg (const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dc, const T val) |
| Construct an image with given size (dx ,dy ,dz ,dc ) and with pixel having a default value val .
|
| CImg (const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dc, const int val0, const int val1,...) |
| Construct an image with given size (dx ,dy ,dz ,dc ) and with specified pixel values (int version).
|
| CImg (const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dc, const double val0, const double val1,...) |
| Construct an image with given size (dx ,dy ,dz ,dc ) and with specified pixel values (double version).
|
| CImg (const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dc, const char *const values, const bool repeat_values) |
| Construct an image with given size and with specified values given in a string.
|
template<typename t > |
| CImg (const t *const data_buffer, const unsigned int dx, const unsigned int dy=1, const unsigned int dz=1, const unsigned int dc=1, const bool shared=false) |
| Construct an image from a raw memory buffer.
|
| CImg (const T *const data_buffer, const unsigned int dx, const unsigned int dy=1, const unsigned int dz=1, const unsigned int dc=1, const bool shared=false) |
| CImg (const char *const filename) |
| Construct an image from an image file.
|
template<typename t > |
| CImg (const CImg< t > &img) |
| Default copy constructor.
|
| CImg (const CImg< T > &img) |
template<typename t > |
| CImg (const CImg< t > &img, const bool shared) |
| Advanced copy constructor.
|
| CImg (const CImg< T > &img, const bool shared) |
template<typename t > |
| CImg (const CImg< t > &img, const char *const dimensions) |
| Construct an image using dimensions of another image.
|
template<typename t > |
| CImg (const CImg< t > &img, const char *const dimensions, const T val) |
| Construct an image using dimensions of another image, and fill it with given values.
|
template<typename t > |
| CImg (const CImg< t > &img, const char *const dimensions, const char *const values, const bool repeat_values) |
| Construct an image using dimensions of another image, and fill it with given values.
|
| CImg (const CImgDisplay &disp) |
| Construct an image from the content of a CImgDisplay instance.
|
CImg< T > | get_shared () |
| Return a shared version of the instance image.
|
const CImg< T > | get_shared () const |
CImg< T > & | clear () |
| In-place version of the default constructor (STL-compliant name).
|
CImg< T > & | assign () |
| In-place version of the default constructor/destructor.
|
CImg< T > & | assign (const unsigned int dx, const unsigned int dy=1, const unsigned int dz=1, const unsigned int dc=1) |
| In-place version of the previous constructor.
|
CImg< T > & | assign (const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dc, const T val) |
| In-place version of the previous constructor.
|
CImg< T > & | assign (const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dc, const int val0, const int val1,...) |
| In-place version of the previous constructor.
|
CImg< T > & | assign (const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dc, const double val0, const double val1,...) |
| In-place version of the previous constructor.
|
CImg< T > & | assign (const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dc, const char *const values, const bool repeat_values) |
| In-place version of the corresponding constructor.
|
template<typename t > |
CImg< T > & | assign (const t *const data_buffer, const unsigned int dx, const unsigned int dy=1, const unsigned int dz=1, const unsigned int dc=1) |
| In-place version of the previous constructor.
|
CImg< T > & | assign (const T *const data_buffer, const unsigned int dx, const unsigned int dy=1, const unsigned int dz=1, const unsigned int dc=1) |
template<typename t > |
CImg< T > & | assign (const t *const data_buffer, const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dc, const bool shared) |
| In-place version of the previous constructor, allowing to force the shared state of the instance image.
|
CImg< T > & | assign (const T *const data_buffer, const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dc, const bool shared) |
CImg< T > & | assign (const char *const filename) |
| In-place version of the previous constructor.
|
template<typename t > |
CImg< T > & | assign (const CImg< t > &img) |
| In-place version of the default copy constructor.
|
template<typename t > |
CImg< T > & | assign (const CImg< t > &img, const bool shared) |
| In-place version of the advanced constructor.
|
template<typename t > |
CImg< T > & | assign (const CImg< t > &img, const char *const dimensions) |
| In-place version of the previous constructor.
|
template<typename t > |
CImg< T > & | assign (const CImg< t > &img, const char *const dimensions, const T val) |
| In-place version of the previous constructor.
|
template<typename t > |
CImg< T > & | assign (const CImg< t > &img, const char *const dimensions, const char *const values, const bool repeat_values) |
| In-place version of the previous constructor.
|
CImg< T > & | assign (const CImgDisplay &disp) |
| In-place version of the previous constructor.
|
template<typename t > |
CImg< t > & | move_to (CImg< t > &img) |
| Move the content of the instance image into another one in a way that memory copies are avoided if possible.
|
CImg< T > & | move_to (CImg< T > &img) |
template<typename t > |
CImgList< t > & | move_to (CImgList< t > &list, const unsigned int pos=~0U) |
CImg< T > & | swap (CImg< T > &img) |
| Swap all fields of two images. Use with care !
|
static CImg< T > & | empty () |
| Return a reference to an empty image.
|
Overloaded Operators |
|
T & | operator() (const unsigned int x, const unsigned int y=0, const unsigned int z=0, const unsigned int c=0) |
| Fast access to pixel value for reading or writing.
|
const T & | operator() (const unsigned int x, const unsigned int y=0, const unsigned int z=0, const unsigned int c=0) const |
| operator const T * () const |
| Return address of the pixel buffer.
|
| operator T * () |
CImg< T > & | operator= (const T val) |
| Operator=().
|
CImg< T > & | operator= (const char *const expression) |
| Operator=().
|
template<typename t > |
CImg< T > & | operator= (const CImg< t > &img) |
| Operator=().
|
CImg< T > & | operator= (const CImg< T > &img) |
CImg< T > & | operator= (const CImgDisplay &disp) |
| Operator=().
|
template<typename t > |
CImg< T > & | operator+= (const t val) |
| Operator+=().
|
CImg< T > & | operator+= (const char *const expression) |
| Operator+=().
|
template<typename t > |
CImg< T > & | operator+= (const CImg< t > &img) |
| Operator+=().
|
CImg< T > & | operator++ () |
| Operator++() (prefix).
|
CImg< T > | operator++ (int) |
| Operator++() (postfix).
|
CImg< T > | operator+ () const |
| Operator+() (unary).
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | operator+ (const t val) const |
| Operator+().
|
CImg< Tfloat > | operator+ (const char *const expression) const |
| Operator+().
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | operator+ (const CImg< t > &img) const |
| Operator+().
|
template<typename t > |
CImg< T > & | operator-= (const t val) |
| Operator-=().
|
CImg< T > & | operator-= (const char *const expression) |
| Operator-=().
|
template<typename t > |
CImg< T > & | operator-= (const CImg< t > &img) |
| Operator-=().
|
CImg< T > & | operator-- () |
| Operator--() (prefix).
|
CImg< T > | operator-- (int) |
| Operator--() (postfix).
|
CImg< T > | operator- () const |
| Operator-() (unary).
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | operator- (const t val) const |
| Operator-().
|
CImg< Tfloat > | operator- (const char *const expression) const |
| Operator-().
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | operator- (const CImg< t > &img) const |
| Operator-().
|
template<typename t > |
CImg< T > & | operator*= (const t val) |
| Operator*=().
|
CImg< T > & | operator*= (const char *const expression) |
| Operator*=().
|
template<typename t > |
CImg< T > & | operator*= (const CImg< t > &img) |
| Operator*=().
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | operator* (const t val) const |
| Operator*().
|
CImg< Tfloat > | operator* (const char *const expression) const |
| Operator*().
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | operator* (const CImg< t > &img) const |
| Operator*().
|
template<typename t > |
CImg< T > & | operator/= (const t val) |
| Operator/=().
|
CImg< T > & | operator/= (const char *const expression) |
| Operator/=().
|
template<typename t > |
CImg< T > & | operator/= (const CImg< t > &img) |
| Operator/=().
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | operator/ (const t val) const |
| Operator/().
|
CImg< Tfloat > | operator/ (const char *const expression) const |
| Operator/().
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | operator/ (const CImg< t > &img) const |
| Operator/().
|
template<typename t > |
CImg< T > & | operator%= (const t val) |
| Operator=().
|
CImg< T > & | operator%= (const char *const expression) |
| Operator=().
|
template<typename t > |
CImg< T > & | operator%= (const CImg< t > &img) |
| Operator=().
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | operator% (const t val) const |
| Operator%().
|
CImg< Tfloat > | operator% (const char *const expression) const |
| Operator%().
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | operator% (const CImg< t > &img) const |
| Operator%().
|
template<typename t > |
CImg< T > & | operator&= (const t val) |
| Operator&=().
|
CImg< T > & | operator&= (const char *const expression) |
| Operator&=().
|
template<typename t > |
CImg< T > & | operator&= (const CImg< t > &img) |
| Operator&=().
|
template<typename t > |
CImg< T > | operator& (const t val) const |
| Operator&().
|
template<typename t > |
CImg< T > & | operator|= (const t val) |
| Operator|=().
|
CImg< T > & | operator|= (const char *const expression) |
| Operator|=().
|
template<typename t > |
CImg< T > & | operator|= (const CImg< t > &img) |
| Operator|=().
|
template<typename t > |
CImg< T > | operator| (const t val) const |
| Operator|().
|
template<typename t > |
CImg< T > & | operator^= (const t val) |
| Operator^=().
|
CImg< T > & | operator^= (const char *const expression) |
| Operator^=().
|
template<typename t > |
CImg< T > & | operator^= (const CImg< t > &img) |
| Operator^=().
|
template<typename t > |
CImg< T > | operator^ (const t val) const |
| Operator^().
|
template<typename t > |
CImg< T > & | operator<<= (const t val) |
| Operator<<=().
|
CImg< T > & | operator<<= (const char *const expression) |
| Operator<<=().
|
template<typename t > |
CImg< T > & | operator<<= (const CImg< t > &img) |
| Operator<<=().
|
template<typename t > |
CImg< T > | operator<< (const t val) const |
| Operator<<().
|
template<typename t > |
CImg< T > & | operator>>= (const t val) |
| Operator>>=().
|
CImg< T > & | operator>>= (const char *const expression) |
| Operator>>=().
|
template<typename t > |
CImg< T > & | operator>>= (const CImg< t > &img) |
| Operator>>=().
|
template<typename t > |
CImg< T > | operator>> (const t val) const |
| Operator>>().
|
template<typename t > |
bool | operator== (const CImg< t > &img) const |
| Operator==().
|
template<typename t > |
bool | operator!= (const CImg< t > &img) const |
| Operator!=().
|
template<typename t > |
CImgList< typename
cimg::superset< T, t >::type > | operator, (const CImg< t > &img) const |
| Operator,().
|
template<typename t > |
CImgList< typename
cimg::superset< T, t >::type > | operator, (CImgList< t > &list) const |
| Operator,().
|
CImgList< T > | operator< (const char axis) const |
| Operator<().
|
CImg< T > | operator~ () const |
| Operator~().
|
Instance Characteristics |
|
int | width () const |
| Return the number of columns of the instance image (size along the X-axis, i.e image width).
|
int | height () const |
| Return the number of rows of the instance image (size along the Y-axis, i.e image height).
|
int | depth () const |
| Return the number of slices of the instance image (size along the Z-axis).
|
int | spectrum () const |
| Return the number of vector channels of the instance image (size along the C-axis).
|
unsigned int | size () const |
| Return the number of image buffer elements.
|
T * | data () |
| Return a pointer to the pixel buffer.
|
const T * | data () const |
T * | data (const unsigned int x, const unsigned int y=0, const unsigned int z=0, const unsigned int c=0) |
| Return a pointer to the pixel value located at (x ,y ,z ,v ).
|
const T * | data (const unsigned int x, const unsigned int y=0, const unsigned int z=0, const unsigned int c=0) const |
int | offset (const int x, const int y=0, const int z=0, const int c=0) const |
| Return the offset of the pixel coordinates (x ,y ,z ,v ) with respect to the data pointer data .
|
iterator | begin () |
| Return an iterator to the first image pixel.
|
const_iterator | begin () const |
iterator | end () |
| Return an iterator pointing after the last image pixel (STL-compliant name).
|
const_iterator | end () const |
const T & | front () const |
| Return reference to the first image pixel (STL-compliant name).
|
T & | front () |
const T & | back () const |
| Return a reference to the last image pixel (STL-compliant name).
|
T & | back () |
T & | at (const int off, const T out_val) |
| Read a pixel value with Dirichlet boundary conditions.
|
T | at (const int off, const T out_val) const |
T & | at (const int off) |
| Read a pixel value with Neumann boundary conditions.
|
T | at (const int off) const |
T & | atX (const int x, const int y, const int z, const int c, const T out_val) |
| Read a pixel value with Dirichlet boundary conditions for the first coordinates (x ).
|
T | atX (const int x, const int y, const int z, const int c, const T out_val) const |
T & | atX (const int x, const int y=0, const int z=0, const int c=0) |
| Read a pixel value with Neumann boundary conditions for the first coordinates (x ).
|
T | atX (const int x, const int y=0, const int z=0, const int c=0) const |
T & | atXY (const int x, const int y, const int z, const int c, const T out_val) |
| Read a pixel value with Dirichlet boundary conditions for the two first coordinates (x ,y ).
|
T | atXY (const int x, const int y, const int z, const int c, const T out_val) const |
T & | atXY (const int x, const int y, const int z=0, const int c=0) |
| Read a pixel value with Neumann boundary conditions for the two first coordinates (x ,y ).
|
T | atXY (const int x, const int y, const int z=0, const int c=0) const |
T & | atXYZ (const int x, const int y, const int z, const int c, const T out_val) |
| Read a pixel value with Dirichlet boundary conditions for the three first coordinates (x ,y ,z ).
|
T | atXYZ (const int x, const int y, const int z, const int c, const T out_val) const |
T & | atXYZ (const int x, const int y, const int z, const int c=0) |
| Read a pixel value with Neumann boundary conditions for the three first coordinates (x ,y ,z ).
|
T | atXYZ (const int x, const int y, const int z, const int c=0) const |
T & | atXYZC (const int x, const int y, const int z, const int c, const T out_val) |
| Read a pixel value with Dirichlet boundary conditions.
|
T | atXYZC (const int x, const int y, const int z, const int c, const T out_val) const |
T & | atXYZC (const int x, const int y, const int z, const int c) |
| Read a pixel value with Neumann boundary conditions.
|
T | atXYZC (const int x, const int y, const int z, const int c) const |
Tfloat | linear_atX (const float fx, const int y, const int z, const int c, const T out_val) const |
| Read a pixel value using linear interpolation and Dirichlet boundary conditions (first coordinate).
|
Tfloat | linear_atX (const float fx, const int y=0, const int z=0, const int c=0) const |
| Read a pixel value using linear interpolation and Neumann boundary conditions (first coordinate).
|
Tfloat | linear_atXY (const float fx, const float fy, const int z, const int c, const T out_val) const |
| Read a pixel value using linear interpolation and Dirichlet boundary conditions (first two coordinates).
|
Tfloat | linear_atXY (const float fx, const float fy, const int z=0, const int c=0) const |
| Read a pixel value using linear interpolation and Neumann boundary conditions (first two coordinates).
|
Tfloat | linear_atXYZ (const float fx, const float fy, const float fz, const int c, const T out_val) const |
| Read a pixel value using linear interpolation and Dirichlet boundary conditions (first three coordinates).
|
Tfloat | linear_atXYZ (const float fx, const float fy=0, const float fz=0, const int c=0) const |
| Read a pixel value using linear interpolation and Neumann boundary conditions (first three coordinates).
|
Tfloat | linear_atXYZC (const float fx, const float fy, const float fz, const float fc, const T out_val) const |
| Read a pixel value using linear interpolation and Dirichlet boundary conditions.
|
Tfloat | linear_atXYZC (const float fx, const float fy=0, const float fz=0, const float fc=0) const |
| Read a pixel value using linear interpolation and Neumann boundary conditions.
|
Tfloat | cubic_atX (const float fx, const int y, const int z, const int c, const T out_val) const |
| Read a pixel value using cubic interpolation and Dirichlet boundary conditions (first coordinates).
|
Tfloat | cubic_atX (const float fx, const int y=0, const int z=0, const int c=0) const |
| Read a pixel value using cubic interpolation and Neumann boundary conditions (first coordinates).
|
Tfloat | cubic_atXY (const float fx, const float fy, const int z, const int c, const T out_val) const |
| Read a pixel value using cubic interpolation and Dirichlet boundary conditions.
|
Tfloat | cubic_atXY (const float fx, const float fy, const int z=0, const int c=0) const |
| Read a pixel value using cubic interpolation and Neumann boundary conditions.
|
Tfloat | cubic_atXYZ (const float fx, const float fy, const float fz, const int c, const T out_val) const |
| Read a pixel value using cubic interpolation and Dirichlet boundary conditions.
|
Tfloat | cubic_atXYZ (const float fx, const float fy, const float fz, const int c=0) const |
| Read a pixel value using cubic interpolation and Neumann boundary conditions.
|
CImg< T > & | set_linear_atXYZ (const T &val, const float fx, const float fy=0, const float fz=0, const int c=0, const bool add=false) |
| Set a pixel value, with 3D float coordinates, using linear interpolation.
|
CImg< T > & | set_linear_atXY (const T &val, const float fx, const float fy=0, const int z=0, const int c=0, const bool add=false) |
| Set a pixel value, with 2D float coordinates, using linear interpolation.
|
CImg< charT > | value_string (const char separator=',', const unsigned int max_size=0) const |
| Return a C-string containing the values of the instance image.
|
static const char * | pixel_type () |
| Return the type of the pixel values.
|
Instance Checking |
|
bool | is_empty () const |
| Return true if current image is empty.
|
bool | is_sameX (const unsigned int dx) const |
| Return true if image (*this) has the specified width.
|
template<typename t > |
bool | is_sameX (const CImg< t > &img) const |
| Return true if images (*this) and img have same width.
|
bool | is_sameX (const CImgDisplay &disp) const |
| Return true if images (*this) and the display disp have same width.
|
bool | is_sameY (const unsigned int dy) const |
| Return true if image (*this) has the specified height.
|
template<typename t > |
bool | is_sameY (const CImg< t > &img) const |
| Return true if images (*this) and img have same height.
|
bool | is_sameY (const CImgDisplay &disp) const |
| Return true if images (*this) and the display disp have same height.
|
bool | is_sameZ (const unsigned int dz) const |
| Return true if image (*this) has the specified depth.
|
template<typename t > |
bool | is_sameZ (const CImg< t > &img) const |
| Return true if images (*this) and img have same depth.
|
bool | is_sameC (const unsigned int dc) const |
| Return true if image (*this) has the specified number of channels.
|
template<typename t > |
bool | is_sameC (const CImg< t > &img) const |
| Return true if images (*this) and img have same _spectrum.
|
bool | is_sameXY (const unsigned int dx, const unsigned int dy) const |
| Return true if image (*this) has the specified width and height.
|
template<typename t > |
bool | is_sameXY (const CImg< t > &img) const |
| Return true if images have same width and same height.
|
bool | is_sameXY (const CImgDisplay &disp) const |
| Return true if image (*this) and the display disp have same width and same height.
|
bool | is_sameXZ (const unsigned int dx, const unsigned int dz) const |
| Return true if image (*this) has the specified width and depth.
|
template<typename t > |
bool | is_sameXZ (const CImg< t > &img) const |
| Return true if images have same width and same depth.
|
bool | is_sameXC (const unsigned int dx, const unsigned int dc) const |
| Return true if image (*this) has the specified width and number of channels.
|
template<typename t > |
bool | is_sameXC (const CImg< t > &img) const |
| Return true if images have same width and same number of channels.
|
bool | is_sameYZ (const unsigned int dy, const unsigned int dz) const |
| Return true if image (*this) has the specified height and depth.
|
template<typename t > |
bool | is_sameYZ (const CImg< t > &img) const |
| Return true if images have same height and same depth.
|
bool | is_sameYC (const unsigned int dy, const unsigned int dc) const |
| Return true if image (*this) has the specified height and number of channels.
|
template<typename t > |
bool | is_sameYC (const CImg< t > &img) const |
| Return true if images have same height and same number of channels.
|
bool | is_sameZC (const unsigned int dz, const unsigned int dc) const |
| Return true if image (*this) has the specified depth and number of channels.
|
template<typename t > |
bool | is_sameZC (const CImg< t > &img) const |
| Return true if images have same depth and same number of channels.
|
bool | is_sameXYZ (const unsigned int dx, const unsigned int dy, const unsigned int dz) const |
| Return true if image (*this) has the specified width, height and depth.
|
template<typename t > |
bool | is_sameXYZ (const CImg< t > &img) const |
| Return true if images have same width, same height and same depth.
|
bool | is_sameXYC (const unsigned int dx, const unsigned int dy, const unsigned int dc) const |
| Return true if image (*this) has the specified width, height and depth.
|
template<typename t > |
bool | is_sameXYC (const CImg< t > &img) const |
| Return true if images have same width, same height and same number of channels.
|
bool | is_sameXZC (const unsigned int dx, const unsigned int dz, const unsigned int dc) const |
| Return true if image (*this) has the specified width, height and number of channels.
|
template<typename t > |
bool | is_sameXZC (const CImg< t > &img) const |
| Return true if images have same width, same depth and same number of channels.
|
bool | is_sameYZC (const unsigned int dy, const unsigned int dz, const unsigned int dc) const |
| Return true if image (*this) has the specified height, depth and number of channels.
|
template<typename t > |
bool | is_sameYZC (const CImg< t > &img) const |
| Return true if images have same heigth, same depth and same number of channels.
|
bool | is_sameXYZC (const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dc) const |
| Return true if image (*this) has the specified width, height, depth and number of channels.
|
template<typename t > |
bool | is_sameXYZC (const CImg< t > &img) const |
| Return true if images (*this) and img have same width, same height, same depth and same number of channels.
|
bool | containsXYZC (const int x, const int y=0, const int z=0, const int c=0) const |
| Return true if pixel (x,y,z,c) is inside image boundaries.
|
template<typename t > |
bool | contains (const T &pixel, t &x, t &y, t &z, t &c) const |
| Return true if specified referenced value is inside image boundaries. If true, returns pixel coordinates in (x,y,z,c).
|
template<typename t > |
bool | contains (const T &pixel, t &x, t &y, t &z) const |
| Return true if specified referenced value is inside image boundaries. If true, returns pixel coordinates in (x,y,z).
|
template<typename t > |
bool | contains (const T &pixel, t &x, t &y) const |
| Return true if specified referenced value is inside image boundaries. If true, returns pixel coordinates in (x,y).
|
template<typename t > |
bool | contains (const T &pixel, t &x) const |
| Return true if specified referenced value is inside image boundaries. If true, returns pixel coordinates in (x).
|
bool | contains (const T &pixel) const |
| Return true if specified referenced value is inside the image boundaries.
|
template<typename t > |
bool | is_overlapped (const CImg< t > &img) const |
| Return true if the memory buffers of the two images overlaps.
|
template<typename tf > |
bool | is_object3d (const CImgList< tf > &primitives, const bool check_primitives=true, const bool throw_exception=false, const char *const calling_function=0) const |
| Return true if the couple (instance,primitives) stands for a valid 3D object.
|
Mathematical Functions |
|
CImg< T > & | sqr () |
| Compute the square value of each pixel.
|
CImg< Tfloat > | get_sqr () const |
CImg< T > & | sqrt () |
| Compute the square root of each pixel value.
|
CImg< Tfloat > | get_sqrt () const |
CImg< T > & | exp () |
| Compute the exponential of each pixel value.
|
CImg< Tfloat > | get_exp () const |
CImg< T > & | log () |
| Compute the log of each each pixel value.
|
CImg< Tfloat > | get_log () const |
CImg< T > & | log10 () |
| Compute the log10 of each each pixel value.
|
CImg< Tfloat > | get_log10 () const |
CImg< T > & | abs () |
| Compute the absolute value of each pixel value.
|
CImg< Tfloat > | get_abs () const |
CImg< T > & | sign () |
| Compute the sign of each pixel value.
|
CImg< Tfloat > | get_sign () const |
CImg< T > & | cos () |
| Compute the cosinus of each pixel value.
|
CImg< Tfloat > | get_cos () const |
CImg< T > & | sin () |
| Compute the sinus of each pixel value.
|
CImg< Tfloat > | get_sin () const |
CImg< T > & | sinc () |
| Compute the sinus cardinal of each pixel value.
|
CImg< Tfloat > | get_sinc () const |
CImg< T > & | tan () |
| Compute the tangent of each pixel.
|
CImg< Tfloat > | get_tan () const |
CImg< T > & | cosh () |
| Compute the hyperbolic cosine of each pixel value.
|
CImg< Tfloat > | get_cosh () const |
CImg< T > & | sinh () |
| Compute the hyperbolic sine of each pixel value.
|
CImg< Tfloat > | get_sinh () const |
CImg< T > & | tanh () |
| Compute the hyperbolic tangent of each pixel value.
|
CImg< Tfloat > | get_tanh () const |
CImg< T > & | acos () |
| Compute the arc-cosine of each pixel value.
|
CImg< Tfloat > | get_acos () const |
CImg< T > & | asin () |
| Compute the arc-sinus of each pixel value.
|
CImg< Tfloat > | get_asin () const |
CImg< T > & | atan () |
| Compute the arc-tangent of each pixel.
|
CImg< Tfloat > | get_atan () const |
template<typename t > |
CImg< T > & | atan2 (const CImg< t > &img) |
| Compute the arc-tangent of each pixel.
|
template<typename t > |
CImg< Tfloat > | get_atan2 (const CImg< t > &img) const |
CImg< T > & | mul (const char *const expression) |
| Pointwise multiplication between an image and an expression.
|
template<typename t > |
CImg< T > & | mul (const CImg< t > &img) |
| Pointwise multiplication between two images.
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | get_mul (const CImg< t > &img) const |
CImg< T > & | div (const char *const expression) |
| Pointwise division between an image and an expression.
|
template<typename t > |
CImg< T > & | div (const CImg< t > &img) |
| Pointwise division between two images.
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | get_div (const CImg< t > &img) const |
CImg< T > & | pow (const double p) |
| Compute the power by p of each pixel value.
|
CImg< Tfloat > | get_pow (const double p) const |
template<typename t > |
CImg< T > & | pow (const CImg< t > &img) |
| Compute the power of each pixel value.
|
template<typename t > |
CImg< Tfloat > | get_pow (const CImg< t > &img) const |
CImg< T > & | pow (const char *const expression) |
| Compute the power of each pixel value.
|
CImg< Tfloat > | get_pow (const char *const expression) const |
CImg< T > & | rol (const unsigned int n=1) |
| Compute the bitwise left rotation of each pixel value.
|
CImg< T > | get_rol (const unsigned int n=1) const |
template<typename t > |
CImg< T > & | rol (const CImg< t > &img) |
template<typename t > |
CImg< T > | get_rol (const CImg< t > &img) const |
CImg< T > & | rol (const char *const expression) |
CImg< T > | get_rol (const char *const expression) const |
CImg< T > & | ror (const unsigned int n=1) |
| Compute the bitwise right rotation of each pixel value.
|
CImg< T > | get_ror (const unsigned int n=1) const |
template<typename t > |
CImg< T > & | ror (const CImg< t > &img) |
template<typename t > |
CImg< T > | get_ror (const CImg< t > &img) const |
CImg< T > & | ror (const char *const expression) |
CImg< T > | get_ror (const char *const expression) const |
CImg< T > & | min (const T val) |
| Pointwise min operator between an image and a value.
|
CImg< T > | get_min (const T val) const |
template<typename t > |
CImg< T > & | min (const CImg< t > &img) |
| Pointwise min operator between two images.
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | get_min (const CImg< t > &img) const |
CImg< T > & | min (const char *const expression) |
| Pointwise min operator between an image and a string.
|
CImg< Tfloat > | get_min (const char *const expression) const |
CImg< T > & | max (const T val) |
| Pointwise max operator between an image and a value.
|
CImg< T > | get_max (const T val) const |
template<typename t > |
CImg< T > & | max (const CImg< t > &img) |
| Pointwise max operator between two images.
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | get_max (const CImg< t > &img) const |
CImg< T > & | max (const char *const expression) |
| Pointwise max operator between an image and a string.
|
CImg< Tfloat > | get_max (const char *const expression) const |
T & | min () |
| Return a reference to the minimum pixel value of the instance image.
|
const T & | min () const |
T & | max () |
| Return a reference to the maximum pixel value of the instance image.
|
const T & | max () const |
template<typename t > |
T & | min_max (t &max_val) |
| Return a reference to the minimum pixel value and return also the maximum pixel value.
|
template<typename t > |
const T & | min_max (t &max_val) const |
template<typename t > |
T & | max_min (t &min_val) |
| Return a reference to the maximum pixel value and return also the minimum pixel value.
|
template<typename t > |
const T & | max_min (t &min_val) const |
T | kth_smallest (const unsigned int k) const |
| Return the kth smallest element of the image.
|
T | median () const |
| Return the median value of the image.
|
Tdouble | sum () const |
| Return the sum of all the pixel values in an image.
|
Tdouble | mean () const |
| Return the mean pixel value of the instance image.
|
Tdouble | variance (const unsigned int variance_method=1) const |
| Return the variance of the image.
|
template<typename t > |
Tdouble | variance_mean (const unsigned int variance_method, t &mean) const |
| Return the variance and the mean of the image.
|
Tdouble | variance_noise (const unsigned int variance_method=1) const |
| Estimate noise variance of the instance image.
|
template<typename t > |
Tdouble | MSE (const CImg< t > &img) const |
| Compute the MSE (Mean-Squared Error) between two images.
|
template<typename t > |
Tdouble | PSNR (const CImg< t > &img, const Tdouble valmax=255) const |
| Compute the PSNR between two images.
|
double | eval (const char *const expression, const double x=0, const double y=0, const double z=0, const double c=0) const |
| Evaluate math expression.
|
CImg< T > & | stats (const unsigned int variance_method=1) |
| Compute a statistics vector (min,max,mean,variance,xmin,ymin,zmin,cmin,xmax,ymax,zmax,cmax).
|
CImg< Tdouble > | get_stats (const unsigned int variance_method=1) const |
Vector / Matrix Operations |
|
Tdouble | magnitude (const int magnitude_type=2) const |
| Return the norm of the current vector/matrix. ntype = norm type (0=L2, 1=L1, -1=Linf).
|
Tdouble | trace () const |
| Return the trace of the image, viewed as a matrix.
|
Tdouble | det () const |
| Return the determinant of the image, viewed as a matrix.
|
template<typename t > |
Tdouble | dot (const CImg< t > &img) const |
| Return the dot product of the current vector/matrix with the vector/matrix img .
|
CImg< T > | get_vector_at (const unsigned int x, const unsigned int y=0, const unsigned int z=0) const |
| Return a new image corresponding to the vector located at (x ,y ,z ) of the current vector-valued image.
|
CImg< T > | get_matrix_at (const unsigned int x=0, const unsigned int y=0, const unsigned int z=0) const |
| Return a new image corresponding to the square matrix located at (x ,y ,z ) of the current vector-valued image.
|
CImg< T > | get_tensor_at (const unsigned int x, const unsigned int y=0, const unsigned int z=0) const |
| Return a new image corresponding to the diffusion tensor located at (x ,y ,z ) of the current vector-valued image.
|
template<typename t > |
CImg< T > & | set_vector_at (const CImg< t > &vec, const unsigned int x, const unsigned int y=0, const unsigned int z=0) |
| Set the image vec as the vector valued pixel located at (x ,y ,z ) of the current vector-valued image.
|
template<typename t > |
CImg< T > & | set_matrix_at (const CImg< t > &mat, const unsigned int x=0, const unsigned int y=0, const unsigned int z=0) |
| Set the image vec as the square matrix-valued pixel located at (x ,y ,z ) of the current vector-valued image.
|
template<typename t > |
CImg< T > & | set_tensor_at (const CImg< t > &ten, const unsigned int x=0, const unsigned int y=0, const unsigned int z=0) |
| Set the image vec as the tensor valued pixel located at (x ,y ,z ) of the current vector-valued image.
|
CImg< T > & | vector () |
| Unroll all images values into a one-column vector.
|
CImg< T > | get_vector () const |
CImg< T > & | matrix () |
| Realign pixel values of the instance image as a square matrix.
|
CImg< T > | get_matrix () const |
CImg< T > & | tensor () |
| Realign pixel values of the instance image as a symmetric tensor.
|
CImg< T > | get_tensor () const |
CImg< T > & | diagonal () |
| Get a diagonal matrix, whose diagonal coefficients are the coefficients of the input image.
|
CImg< T > | get_diagonal () const |
CImg< T > & | identity_matrix () |
| Get an identity matrix having same dimension than instance image.
|
CImg< T > | get_identity_matrix () const |
CImg< T > & | sequence (const T a0, const T a1) |
| Return a N-numbered sequence vector from a0 to a1 .
|
CImg< T > | get_sequence (const T a0, const T a1) const |
CImg< T > & | transpose () |
| Transpose the current matrix.
|
CImg< T > | get_transpose () const |
template<typename t > |
CImg< T > & | cross (const CImg< t > &img) |
| Compute the cross product between two 3d vectors.
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | get_cross (const CImg< t > &img) const |
CImg< T > & | invert (const bool use_LU=true) |
| Invert the current matrix.
|
CImg< Tfloat > | get_invert (const bool use_LU=true) const |
CImg< T > & | pseudoinvert () |
| Compute the pseudo-inverse (Moore-Penrose) of the matrix.
|
CImg< Tfloat > | get_pseudoinvert () const |
template<typename t > |
CImg< T > & | solve (const CImg< t > &A) |
| Solve a linear system AX=B where B=*this.
|
template<typename t > |
CImg< typename cimg::superset2
< T, t, float >::type > | get_solve (const CImg< t > &A) const |
template<typename t > |
CImg< T > & | solve_tridiagonal (const CImg< t > &a, const CImg< t > &b, const CImg< t > &c) |
| Solve a linear system AX=B where B=*this and A is a tridiagonal matrix A = [ b0,c0,0,...; a1,b1,c1,0,... ; ... ; ...,0,aN,bN ].
|
template<typename t > |
CImg< typename cimg::superset2
< T, t, float >::type > | get_solve_tridiagonal (const CImg< t > &a, const CImg< t > &b, const CImg< t > &c) const |
template<typename t > |
const CImg< T > & | eigen (CImg< t > &val, CImg< t > &vec) const |
| Compute the eigenvalues and eigenvectors of a matrix.
|
CImgList< Tfloat > | get_eigen () const |
template<typename t > |
const CImg< T > & | symmetric_eigen (CImg< t > &val, CImg< t > &vec) const |
| Compute the eigenvalues and eigenvectors of a symmetric matrix.
|
CImgList< Tfloat > | get_symmetric_eigen () const |
template<typename t > |
CImg< T > & | sort (CImg< t > &permutations, const bool increasing=true) |
| Sort values of a vector and get permutations.
|
template<typename t > |
CImg< T > | get_sort (CImg< t > &permutations, const bool increasing=true) const |
CImg< T > & | sort (const bool increasing=true) |
| Sort image values.
|
CImg< T > | get_sort (const bool increasing=true) const |
template<typename t > |
const CImg< T > & | SVD (CImg< t > &U, CImg< t > &S, CImg< t > &V, const bool sorting=true, const unsigned int max_iteration=40, const float lambda=0) const |
| Compute the SVD of a general matrix.
|
CImgList< Tfloat > | get_SVD (const bool sorting=true, const unsigned int max_iteration=40, const float lambda=0) const |
template<typename t > |
CImg< T > & | dijkstra (const unsigned int starting_node, const unsigned int ending_node, CImg< t > &previous) |
| Return minimal path in a graph, using the Dijkstra algorithm.
|
template<typename t > |
CImg< T > | get_dijkstra (const unsigned int starting_node, const unsigned int ending_node, CImg< t > &previous) const |
CImg< T > & | dijkstra (const unsigned int starting_node, const unsigned int ending_node=~0U) |
| Return minimal path in a graph, using the Dijkstra algorithm.
|
CImg< Tfloat > | get_dijkstra (const unsigned int starting_node, const unsigned int ending_node=~0U) const |
CImg< floatT > | get_streamline (const float x, const float y, const float z, const float L=256, const float dl=0.1f, const unsigned int interpolation_type=2, const bool is_backward=false, const bool is_oriented=false) const |
| Return stream line of a 2D or 3D vector field.
|
template<typename tf , typename t > |
static CImg< T > | dijkstra (const tf &distance, const unsigned int nb_nodes, const unsigned int starting_node, const unsigned int ending_node, CImg< t > &previous) |
| Compute minimal path in a graph, using the Dijkstra algorithm.
|
template<typename tf , typename t > |
static CImg< T > | dijkstra (const tf &distance, const unsigned int nb_nodes, const unsigned int starting_node, const unsigned int ending_node=~0U) |
| Return minimal path in a graph, using the Dijkstra algorithm.
|
template<typename tfunc > |
static CImg< floatT > | streamline (const tfunc &func, const float x, const float y, const float z, const float L=256, const float dl=0.1f, const unsigned int interpolation_type=2, const bool forward_tracking=true, const bool is_oriented=false, const float x0=0, const float y0=0, const float z0=0, const float x1=0, const float y1=0, const float z1=0) |
| Return stream line of a 3D vector field.
|
static CImg< floatT > | streamline (const char *const expression, const float x, const float y, const float z, const float L=256, const float dl=0.1f, const unsigned int interpolation_type=2, const bool is_backward=false, const bool is_oriented=false, const float x0=0, const float y0=0, const float z0=0, const float x1=0, const float y1=0, const float z1=0) |
| Return stream line of a vector field.
|
static CImg< T > | vector (const T &a0) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1, const T &a2) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1, const T &a2, const T &a3) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4, const T &a5) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4, const T &a5, const T &a6) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4, const T &a5, const T &a6, const T &a7) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4, const T &a5, const T &a6, const T &a7, const T &a8) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4, const T &a5, const T &a6, const T &a7, const T &a8, const T &a9) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4, const T &a5, const T &a6, const T &a7, const T &a8, const T &a9, const T &a10) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4, const T &a5, const T &a6, const T &a7, const T &a8, const T &a9, const T &a10, const T &a11) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4, const T &a5, const T &a6, const T &a7, const T &a8, const T &a9, const T &a10, const T &a11, const T &a12) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4, const T &a5, const T &a6, const T &a7, const T &a8, const T &a9, const T &a10, const T &a11, const T &a12, const T &a13) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4, const T &a5, const T &a6, const T &a7, const T &a8, const T &a9, const T &a10, const T &a11, const T &a12, const T &a13, const T &a14) |
| Return a vector with specified coefficients.
|
static CImg< T > | vector (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4, const T &a5, const T &a6, const T &a7, const T &a8, const T &a9, const T &a10, const T &a11, const T &a12, const T &a13, const T &a14, const T &a15) |
| Return a vector with specified coefficients.
|
static CImg< T > | matrix (const T &a0) |
| Return a 1x1 square matrix with specified coefficients.
|
static CImg< T > | matrix (const T &a0, const T &a1, const T &a2, const T &a3) |
| Return a 2x2 square matrix with specified coefficients.
|
static CImg< T > | matrix (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4, const T &a5, const T &a6, const T &a7, const T &a8) |
| Return a 3x3 square matrix with specified coefficients.
|
static CImg< T > | matrix (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4, const T &a5, const T &a6, const T &a7, const T &a8, const T &a9, const T &a10, const T &a11, const T &a12, const T &a13, const T &a14, const T &a15) |
| Return a 4x4 square matrix with specified coefficients.
|
static CImg< T > | matrix (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4, const T &a5, const T &a6, const T &a7, const T &a8, const T &a9, const T &a10, const T &a11, const T &a12, const T &a13, const T &a14, const T &a15, const T &a16, const T &a17, const T &a18, const T &a19, const T &a20, const T &a21, const T &a22, const T &a23, const T &a24) |
| Return a 5x5 square matrix with specified coefficients.
|
static CImg< T > | tensor (const T &a1) |
| Return a 1x1 symmetric matrix with specified coefficients.
|
static CImg< T > | tensor (const T &a1, const T &a2, const T &a3) |
| Return a 2x2 symmetric matrix tensor with specified coefficients.
|
static CImg< T > | tensor (const T &a1, const T &a2, const T &a3, const T &a4, const T &a5, const T &a6) |
| Return a 3x3 symmetric matrix with specified coefficients.
|
static CImg< T > | diagonal (const T &a0) |
| Return a 1x1 diagonal matrix with specified coefficients.
|
static CImg< T > | diagonal (const T &a0, const T &a1) |
| Return a 2x2 diagonal matrix with specified coefficients.
|
static CImg< T > | diagonal (const T &a0, const T &a1, const T &a2) |
| Return a 3x3 diagonal matrix with specified coefficients.
|
static CImg< T > | diagonal (const T &a0, const T &a1, const T &a2, const T &a3) |
| Return a 4x4 diagonal matrix with specified coefficients.
|
static CImg< T > | diagonal (const T &a0, const T &a1, const T &a2, const T &a3, const T &a4) |
| Return a 5x5 diagonal matrix with specified coefficients.
|
static CImg< T > | identity_matrix (const unsigned int N) |
| Return a NxN identity matrix.
|
static CImg< T > | sequence (const unsigned int N, const T a0, const T a1) |
| Return a N-numbered sequence vector from a0 to a1 .
|
static CImg< T > | rotation_matrix (const float x, const float y, const float z, const float w, const bool quaternion_data=false) |
| Return a 3x3 rotation matrix along the (x,y,z)-axis with an angle w.
|
Value Manipulation |
|
CImg< T > & | fill (const T val) |
| Fill an image by a value val .
|
CImg< T > | get_fill (const T val) const |
CImg< T > & | fill (const T val0, const T val1) |
| Fill sequentially all pixel values with values val0 and val1 respectively.
|
CImg< T > | get_fill (const T val0, const T val1) const |
CImg< T > & | fill (const T val0, const T val1, const T val2) |
| Fill sequentially all pixel values with values val0 and val1 and val2.
|
CImg< T > | get_fill (const T val0, const T val1, const T val2) const |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3) |
| Fill sequentially all pixel values with values val0 and val1 and val2 and val3.
|
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3) const |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4) |
| Fill sequentially all pixel values with values val0 and val1 and val2 and val3 and val4.
|
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4) const |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5) |
| Fill sequentially all pixel values with values val0 and val1 and val2 and val3 and val4 and val5.
|
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5) const |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6) |
| Fill sequentially pixel values.
|
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6) const |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7) |
| Fill sequentially pixel values.
|
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7) const |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8) |
| Fill sequentially pixel values.
|
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8) const |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9) |
| Fill sequentially pixel values.
|
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9) const |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10) |
| Fill sequentially pixel values.
|
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10) const |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11) |
| Fill sequentially pixel values.
|
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11) const |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12) |
| Fill sequentially pixel values.
|
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12) const |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12, const T val13) |
| Fill sequentially pixel values.
|
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12, const T val13) const |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12, const T val13, const T val14) |
| Fill sequentially pixel values.
|
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12, const T val13, const T val14) const |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12, const T val13, const T val14, const T val15) |
| Fill sequentially pixel values.
|
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12, const T val13, const T val14, const T val15) const |
CImg< T > & | fill (const char *const expression, const bool repeat_flag) |
| Fill image values according to the given expression, which can be a formula or a list of values.
|
CImg< T > | get_fill (const char *const values, const bool repeat_values) const |
template<typename t > |
CImg< T > & | fill (const CImg< t > &values, const bool repeat_values=true) |
| Fill image values according to the values found in the specified image.
|
template<typename t > |
CImg< T > | get_fill (const CImg< t > &values, const bool repeat_values=true) const |
CImg< T > & | fillX (const unsigned int y, const unsigned int z, const unsigned int c, const int a0,...) |
| Fill image values along the X-axis at the specified pixel position (y,z,c).
|
CImg< T > & | fillX (const unsigned int y, const unsigned int z, const unsigned int c, const double a0,...) |
CImg< T > & | fillY (const unsigned int x, const unsigned int z, const unsigned int c, const int a0,...) |
| Fill image values along the Y-axis at the specified pixel position (x,z,c).
|
CImg< T > & | fillY (const unsigned int x, const unsigned int z, const unsigned int c, const double a0,...) |
CImg< T > & | fillZ (const unsigned int x, const unsigned int y, const unsigned int c, const int a0,...) |
| Fill image values along the Z-axis at the specified pixel position (x,y,c).
|
CImg< T > & | fillZ (const unsigned int x, const unsigned int y, const unsigned int c, const double a0,...) |
CImg< T > & | fillC (const unsigned int x, const unsigned int y, const unsigned int z, const int a0,...) |
| Fill image values along the C-axis at the specified pixel position (x,y,z).
|
CImg< T > & | fillC (const unsigned int x, const unsigned int y, const unsigned int z, const double a0,...) |
CImg< T > & | invert_endianness () |
| Invert endianness of the image buffer.
|
CImg< T > | get_invert_endianness () const |
CImg< T > & | rand (const T val_min, const T val_max) |
| Fill the instance image with random values between specified range.
|
CImg< T > | get_rand (const T val_min, const T val_max) const |
CImg< T > & | round (const float x, const int rounding_type=0) |
| Compute image with rounded pixel values.
|
CImg< T > | get_round (const float x, const unsigned int rounding_type=0) const |
CImg< T > & | noise (const double sigma, const unsigned int noise_type=0) |
| Add random noise to the values of the instance image.
|
CImg< T > | get_noise (const double sigma, const unsigned int noise_type=0) const |
CImg< T > & | normalize (const T value_min, const T value_max) |
| Linearly normalize values of the instance image between value_min and value_max .
|
CImg< Tfloat > | get_normalize (const T value_min, const T value_max) const |
CImg< T > & | normalize () |
| Normalize multi-valued pixels of the instance image, with respect to their L2-norm.
|
CImg< Tfloat > | get_normalize () const |
CImg< T > & | norm (const int norm_type=2) |
| Compute L2-norm of each multi-valued pixel of the instance image.
|
CImg< Tfloat > | get_norm (const int norm_type=2) const |
CImg< T > & | cut (const T value_min, const T value_max) |
| Cut values of the instance image between value_min and value_max .
|
CImg< T > | get_cut (const T value_min, const T value_max) const |
CImg< T > & | quantize (const unsigned int nb_levels, const bool keep_range=true) |
| Uniformly quantize values of the instance image into nb_levels levels.
|
CImg< T > | get_quantize (const unsigned int n, const bool keep_range=true) const |
CImg< T > & | threshold (const T value, const bool soft_threshold=false, const bool strict_threshold=false) |
| Threshold values of the instance image.
|
CImg< T > | get_threshold (const T value, const bool soft_threshold=false, const bool strict_threshold=false) const |
CImg< T > & | histogram (const unsigned int nb_levels, const T value_min=(T) 0, const T value_max=(T) 0) |
| Compute the histogram of the instance image.
|
CImg< floatT > | get_histogram (const unsigned int nb_levels, const T value_min=(T) 0, const T value_max=(T) 0) const |
CImg< T > & | equalize (const unsigned int nb_levels, const T value_min=(T) 0, const T value_max=(T) 0) |
| Compute the histogram-equalized version of the instance image.
|
CImg< T > | get_equalize (const unsigned int nblevels, const T val_min=(T) 0, const T val_max=(T) 0) const |
template<typename t > |
CImg< T > & | index (const CImg< t > &palette, const bool dithering=false, const bool map_indexes=false) |
| Index multi-valued pixels of the instance image, regarding to a predefined palette.
|
template<typename t > |
CImg< typename CImg< t >::Tuint > | get_index (const CImg< t > &palette, const bool dithering=false, const bool map_indexes=true) const |
template<typename t > |
CImg< T > & | map (const CImg< t > &palette) |
| Map predefined palette on the scalar (indexed) instance image.
|
template<typename t > |
CImg< t > | get_map (const CImg< t > &palette) const |
CImg< T > & | label_regions () |
| Create a map of indexed labels counting disconnected regions with same intensities.
|
CImg< uintT > | get_label_regions () const |
Color Base Management |
|
CImg< T > & | RGBtoHSV () |
| Convert color pixels from (R,G,B) to (H,S,V).
|
CImg< Tfloat > | get_RGBtoHSV () const |
CImg< T > & | HSVtoRGB () |
| Convert color pixels from (H,S,V) to (R,G,B).
|
CImg< Tuchar > | get_HSVtoRGB () const |
CImg< T > & | RGBtoHSL () |
| Convert color pixels from (R,G,B) to (H,S,L).
|
CImg< Tfloat > | get_RGBtoHSL () const |
CImg< T > & | HSLtoRGB () |
| Convert color pixels from (H,S,L) to (R,G,B).
|
CImg< Tuchar > | get_HSLtoRGB () const |
CImg< T > & | RGBtoHSI () |
CImg< Tfloat > | get_RGBtoHSI () const |
CImg< T > & | HSItoRGB () |
| Convert color pixels from (H,S,I) to (R,G,B).
|
CImg< Tfloat > | get_HSItoRGB () const |
CImg< T > & | RGBtoYCbCr () |
| Convert color pixels from (R,G,B) to (Y,Cb,Cr).
|
CImg< Tuchar > | get_RGBtoYCbCr () const |
CImg< T > & | YCbCrtoRGB () |
| Convert color pixels from (R,G,B) to (Y,Cb,Cr).
|
CImg< Tuchar > | get_YCbCrtoRGB () const |
CImg< T > & | RGBtoYUV () |
| Convert color pixels from (R,G,B) to (Y,U,V).
|
CImg< Tfloat > | get_RGBtoYUV () const |
CImg< T > & | YUVtoRGB () |
| Convert color pixels from (Y,U,V) to (R,G,B).
|
CImg< Tuchar > | get_YUVtoRGB () const |
CImg< T > & | RGBtoCMY () |
| Convert color pixels from (R,G,B) to (C,M,Y).
|
CImg< Tuchar > | get_RGBtoCMY () const |
CImg< T > & | CMYtoRGB () |
| Convert (C,M,Y) pixels of a color image into the (R,G,B) color space.
|
CImg< Tuchar > | get_CMYtoRGB () const |
CImg< T > & | CMYtoCMYK () |
| Convert color pixels from (C,M,Y) to (C,M,Y,K).
|
CImg< Tuchar > | get_CMYtoCMYK () const |
CImg< T > & | CMYKtoCMY () |
| Convert (C,M,Y,K) pixels of a color image into the (C,M,Y) color space.
|
CImg< Tfloat > | get_CMYKtoCMY () const |
CImg< T > & | RGBtoXYZ () |
| Convert color pixels from (R,G,B) to (X,Y,Z)_709.
|
CImg< Tfloat > | get_RGBtoXYZ () const |
CImg< T > & | XYZtoRGB () |
| Convert (X,Y,Z)_709 pixels of a color image into the (R,G,B) color space.
|
CImg< Tuchar > | get_XYZtoRGB () const |
CImg< T > & | XYZtoLab () |
| Convert (X,Y,Z)_709 pixels of a color image into the (L*,a*,b*) color space.
|
CImg< Tfloat > | get_XYZtoLab () const |
CImg< T > & | LabtoXYZ () |
| Convert (L,a,b) pixels of a color image into the (X,Y,Z) color space.
|
CImg< Tfloat > | get_LabtoXYZ () const |
CImg< T > & | XYZtoxyY () |
| Convert (X,Y,Z)_709 pixels of a color image into the (x,y,Y) color space.
|
CImg< Tfloat > | get_XYZtoxyY () const |
CImg< T > & | xyYtoXYZ () |
| Convert (x,y,Y) pixels of a color image into the (X,Y,Z)_709 color space.
|
CImg< Tfloat > | get_xyYtoXYZ () const |
CImg< T > & | RGBtoLab () |
| Convert a (R,G,B) image to a (L,a,b) one.
|
CImg< Tfloat > | get_RGBtoLab () const |
CImg< T > & | LabtoRGB () |
| Convert a (L,a,b) image to a (R,G,B) one.
|
CImg< Tuchar > | get_LabtoRGB () const |
CImg< T > & | RGBtoxyY () |
| Convert a (R,G,B) image to a (x,y,Y) one.
|
CImg< Tfloat > | get_RGBtoxyY () const |
CImg< T > & | xyYtoRGB () |
| Convert a (x,y,Y) image to a (R,G,B) one.
|
CImg< Tuchar > | get_xyYtoRGB () const |
CImg< T > & | RGBtoCMYK () |
| Convert a (R,G,B) image to a (C,M,Y,K) one.
|
CImg< Tfloat > | get_RGBtoCMYK () const |
CImg< T > & | CMYKtoRGB () |
| Convert a (C,M,Y,K) image to a (R,G,B) one.
|
CImg< Tuchar > | get_CMYKtoRGB () const |
CImg< T > & | RGBtoBayer () |
| Convert a (R,G,B) image to a Bayer-coded representation.
|
CImg< T > | get_RGBtoBayer () const |
CImg< T > & | BayertoRGB (const unsigned int interpolation_type=3) |
| Convert a Bayer-coded image to a (R,G,B) color image.
|
CImg< Tuchar > | get_BayertoRGB (const unsigned int interpolation_type=3) const |
static CImg< Tuchar > | default_LUT256 () |
| Return a default indexed color palette with 256 (R,G,B) entries.
|
static CImg< Tuchar > | rainbow_LUT256 () |
| Return a rainbow indexed color palette with 256 (R,G,B) entries.
|
static CImg< Tuchar > | contrast_LUT256 () |
| Return a contrasted indexed color palette with 256 (R,G,B) entries.
|
Geometric / Spatial Manipulation |
|
CImg< T > & | resize (const int size_x, const int size_y=-100, const int size_z=-100, const int size_c=-100, const int interpolation_type=1, const unsigned int border_conditions=0, const float centering_x=0, const float centering_y=0, const float centering_z=0, const float centering_c=0) |
| Resize an image.
|
CImg< T > | get_resize (const int size_x, const int size_y=-100, const int size_z=-100, const int size_c=-100, const int interpolation_type=1, const unsigned int border_conditions=0, const float centering_x=0, const float centering_y=0, const float centering_z=0, const float centering_c=0) const |
template<typename t > |
CImg< T > & | resize (const CImg< t > &src, const int interpolation_type=1, const unsigned int border_conditions=0, const float centering_x=0, const float centering_y=0, const float centering_z=0, const float centering_c=0) |
| Resize an image.
|
template<typename t > |
CImg< T > | get_resize (const CImg< t > &src, const int interpolation_type=1, const unsigned int border_conditions=0, const float centering_x=0, const float centering_y=0, const float centering_z=0, const float centering_c=0) const |
CImg< T > & | resize (const CImgDisplay &disp, const int interpolation_type=1, const unsigned int border_conditions=0, const float centering_x=0, const float centering_y=0, const float centering_z=0, const float centering_c=0) |
| Resize an image.
|
CImg< T > | get_resize (const CImgDisplay &disp, const int interpolation_type=1, const unsigned int border_conditions=0, const float centering_x=0, const float centering_y=0, const float centering_z=0, const float centering_c=0) const |
CImg< T > & | resize_halfXY () |
| Half-resize an image, using a special optimized filter.
|
CImg< T > | get_resize_halfXY () const |
CImg< T > & | resize_doubleXY () |
| Upscale an image by a factor 2x.
|
CImg< T > | get_resize_doubleXY () const |
CImg< T > & | resize_tripleXY () |
| Upscale an image by a factor 3x.
|
CImg< T > | get_resize_tripleXY () const |
CImg< T > & | mirror (const char axis) |
| Mirror an image along the specified axis.
|
CImg< T > | get_mirror (const char axis) const |
CImg< T > & | shift (const int deltax, const int deltay=0, const int deltaz=0, const int deltac=0, const int border_condition=0) |
| Shift the image.
|
CImg< T > | get_shift (const int deltax, const int deltay=0, const int deltaz=0, const int deltac=0, const int border_condition=0) const |
CImg< T > & | permute_axes (const char *order) |
| Permute axes order.
|
CImg< T > | get_permute_axes (const char *order) const |
CImg< T > & | unroll (const char axis) |
| Unroll all images values into specified axis.
|
CImg< T > | get_unroll (const char axis) const |
CImg< T > & | rotate (const float angle, const unsigned int border_conditions=0, const unsigned int interpolation=1) |
| Rotate an image.
|
CImg< T > | get_rotate (const float angle, const unsigned int border_conditions=0, const unsigned int interpolation=1) const |
CImg< T > & | rotate (const float angle, const float cx, const float cy, const float zoom, const unsigned int border_conditions=3, const unsigned int interpolation=1) |
| Rotate an image around a center point (cx ,cy ).
|
CImg< T > | get_rotate (const float angle, const float cx, const float cy, const float zoom, const unsigned int border_conditions=3, const unsigned int interpolation=1) const |
template<typename t > |
CImg< T > & | warp (const CImg< t > &warp, const bool relative=false, const bool interpolation=true, const unsigned int border_conditions=0) |
| Warp an image.
|
template<typename t > |
CImg< T > | get_warp (const CImg< t > &warp, const bool relative=false, const bool interpolation=true, const unsigned int border_conditions=0) const |
CImg< T > & | projections2d (const unsigned int x0, const unsigned int y0, const unsigned int z0, const int dx=-100, const int dy=-100, const int dz=-100) |
| Return a 2D representation of a 3D image, with three slices.
|
CImg< T > | get_projections2d (const unsigned int x0, const unsigned int y0, const unsigned int z0, const int dx=-100, const int dy=-100, const int dz=-100) const |
CImg< T > & | crop (const int x0, const int y0, const int z0, const int c0, const int x1, const int y1, const int z1, const int c1, const bool border_condition=false) |
| Get a square region of the image.
|
CImg< T > | get_crop (const int x0, const int y0, const int z0, const int c0, const int x1, const int y1, const int z1, const int c1, const bool border_condition=false) const |
CImg< T > & | crop (const int x0, const int y0, const int z0, const int x1, const int y1, const int z1, const bool border_condition=false) |
| Get a rectangular part of the instance image.
|
CImg< T > | get_crop (const int x0, const int y0, const int z0, const int x1, const int y1, const int z1, const bool border_condition=false) const |
CImg< T > & | crop (const int x0, const int y0, const int x1, const int y1, const bool border_condition=false) |
| Get a rectangular part of the instance image.
|
CImg< T > | get_crop (const int x0, const int y0, const int x1, const int y1, const bool border_condition=false) const |
CImg< T > & | crop (const int x0, const int x1, const bool border_condition=false) |
| Get a rectangular part of the instance image.
|
CImg< T > | get_crop (const int x0, const int x1, const bool border_condition=false) const |
CImg< T > & | autocrop (const T value, const char *const axes="czyx") |
| Autocrop an image, regarding of the specified backround value.
|
CImg< T > | get_autocrop (const T value, const char *const axes="czyx") const |
CImg< T > & | autocrop (const T *const color, const char *const axes="zyx") |
| Autocrop an image, regarding of the specified backround color.
|
CImg< T > | get_autocrop (const T *const color, const char *const axes="zyx") const |
template<typename t > |
CImg< T > & | autocrop (const CImg< t > &color, const char *const axes="zyx") |
| Autocrop an image, regarding of the specified backround color.
|
template<typename t > |
CImg< T > | get_autocrop (const CImg< t > &color, const char *const axes="zyx") const |
CImg< T > & | column (const unsigned int x0) |
| Get one column.
|
CImg< T > | get_column (const unsigned int x0) const |
CImg< T > & | columns (const unsigned int x0, const unsigned int x1) |
| Get a set of columns.
|
CImg< T > | get_columns (const unsigned int x0, const unsigned int x1) const |
CImg< T > & | line (const unsigned int y0) |
| Get a line.
|
CImg< T > | get_line (const unsigned int y0) const |
CImg< T > & | lines (const unsigned int y0, const unsigned int y1) |
| Get a set of lines.
|
CImg< T > | get_lines (const unsigned int y0, const unsigned int y1) const |
CImg< T > & | slice (const unsigned int z0) |
| Get a slice.
|
CImg< T > | get_slice (const unsigned int z0) const |
CImg< T > & | slices (const unsigned int z0, const unsigned int z1) |
| Get a set of slices.
|
CImg< T > | get_slices (const unsigned int z0, const unsigned int z1) const |
CImg< T > & | channel (const unsigned int c0) |
| Get a channel.
|
CImg< T > | get_channel (const unsigned int c0) const |
CImg< T > & | channels (const unsigned int c0, const unsigned int c1) |
| Get a set of channels.
|
CImg< T > | get_channels (const unsigned int c0, const unsigned int c1) const |
CImg< T > | get_shared_points (const unsigned int x0, const unsigned int x1, const unsigned int y0=0, const unsigned int z0=0, const unsigned int c0=0) |
| Get a shared-memory image referencing a set of points of the instance image.
|
const CImg< T > | get_shared_points (const unsigned int x0, const unsigned int x1, const unsigned int y0=0, const unsigned int z0=0, const unsigned int c0=0) const |
CImg< T > | get_shared_lines (const unsigned int y0, const unsigned int y1, const unsigned int z0=0, const unsigned int c0=0) |
| Return a shared-memory image referencing a set of lines of the instance image.
|
const CImg< T > | get_shared_lines (const unsigned int y0, const unsigned int y1, const unsigned int z0=0, const unsigned int c0=0) const |
CImg< T > | get_shared_line (const unsigned int y0, const unsigned int z0=0, const unsigned int c0=0) |
| Return a shared-memory image referencing one particular line (y0,z0,c0) of the instance image.
|
const CImg< T > | get_shared_line (const unsigned int y0, const unsigned int z0=0, const unsigned int c0=0) const |
CImg< T > | get_shared_planes (const unsigned int z0, const unsigned int z1, const unsigned int c0=0) |
| Return a shared memory image referencing a set of planes (z0->z1,c0) of the instance image.
|
const CImg< T > | get_shared_planes (const unsigned int z0, const unsigned int z1, const unsigned int c0=0) const |
CImg< T > | get_shared_plane (const unsigned int z0, const unsigned int c0=0) |
| Return a shared-memory image referencing one plane (z0,c0) of the instance image.
|
const CImg< T > | get_shared_plane (const unsigned int z0, const unsigned int c0=0) const |
CImg< T > | get_shared_channels (const unsigned int c0, const unsigned int c1) |
| Return a shared-memory image referencing a set of channels (c0->c1) of the instance image.
|
const CImg< T > | get_shared_channels (const unsigned int c0, const unsigned int c1) const |
CImg< T > | get_shared_channel (const unsigned int c0) |
| Return a shared-memory image referencing one channel c0 of the instance image.
|
const CImg< T > | get_shared_channel (const unsigned int c0) const |
CImgList< T > | get_split (const char axis, const int nb=0) const |
| Split image into a list.
|
CImgList< T > | get_split (const T value, const bool keep_values, const bool shared, const char axis='y') const |
template<typename t > |
CImg< T > & | append (const CImg< t > &img, const char axis='x', const char align='p') |
| Append an image.
|
CImg< T > & | append (const CImg< T > &img, const char axis='x', const char align='p') |
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | get_append (const CImg< T > &img, const char axis='x', const char align='p') const |
CImg< T > | get_append (const CImg< T > &img, const char axis='x', const char align='p') const |
Filtering / Transforms |
|
template<typename t > |
CImg< T > & | correlate (const CImg< t > &mask, const unsigned int cond=1, const bool weighted_correl=false) |
| Compute the correlation of the instance image by a mask.
|
template<typename t > |
CImg< typename cimg::superset2
< T, t, float >::type > | get_correlate (const CImg< t > &mask, const unsigned int cond=1, const bool weighted_correl=false) const |
template<typename t > |
CImg< T > & | convolve (const CImg< t > &mask, const unsigned int cond=1, const bool weighted_convol=false) |
| Compute the convolution of the image by a mask.
|
template<typename t > |
CImg< typename cimg::superset2
< T, t, float >::type > | get_convolve (const CImg< t > &mask, const unsigned int cond=1, const bool weighted_convol=false) const |
template<typename t > |
CImg< T > & | erode (const CImg< t > &mask, const unsigned int cond=1, const bool weighted_erosion=false) |
| Return the erosion of the image by a structuring element.
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | get_erode (const CImg< t > &mask, const unsigned int cond=1, const bool weighted_erosion=false) const |
CImg< T > & | erode (const unsigned int sx, const unsigned int sy, const unsigned int sz=1) |
| Erode the image by a rectangular structuring element of size sx,sy,sz.
|
CImg< T > | get_erode (const unsigned int sx, const unsigned int sy, const unsigned int sz=1) const |
CImg< T > & | erode (const unsigned int s) |
| Erode the image by a square structuring element of size sx.
|
CImg< T > | get_erode (const unsigned int s) const |
template<typename t > |
CImg< T > & | dilate (const CImg< t > &mask, const unsigned int cond=1, const bool weighted_dilatation=false) |
| Dilate the image by a structuring element.
|
template<typename t > |
CImg< typename cimg::superset
< T, t >::type > | get_dilate (const CImg< t > &mask, const unsigned int cond=1, const bool weighted_dilatation=false) const |
CImg< T > & | dilate (const unsigned int sx, const unsigned int sy, const unsigned int sz=1) |
| Dilate the image by a rectangular structuring element of size sx,sy,sz.
|
CImg< T > | get_dilate (const unsigned int sx, const unsigned int sy, const unsigned int sz=1) const |
CImg< T > & | dilate (const unsigned int s) |
| Erode the image by a square structuring element of size sx.
|
CImg< T > | get_dilate (const unsigned int s) const |
CImg< T > & | deriche (const float sigma, const int order=0, const char axis='x', const bool cond=true) |
| Compute the result of the Deriche filter.
|
CImg< Tfloat > | get_deriche (const float sigma, const int order=0, const char axis='x', const bool cond=true) const |
CImg< T > & | blur (const float sigmax, const float sigmay, const float sigmaz, const bool cond=true) |
| Return a blurred version of the image, using a Canny-Deriche filter.
|
CImg< Tfloat > | get_blur (const float sigmax, const float sigmay, const float sigmaz, const bool cond=true) const |
CImg< T > & | blur (const float sigma, const bool cond=true) |
| Return a blurred version of the image, using a Canny-Deriche filter.
|
CImg< Tfloat > | get_blur (const float sigma, const bool cond=true) const |
template<typename t > |
CImg< T > & | blur_anisotropic (const CImg< t > &G, const float amplitude=60, const float dl=0.8f, const float da=30, const float gauss_prec=2, const unsigned int interpolation_type=0, const bool fast_approx=1) |
| Blur the image anisotropically following a field of diffusion tensors.
|
template<typename t > |
CImg< T > | get_blur_anisotropic (const CImg< t > &G, const float amplitude=60, const float dl=0.8f, const float da=30, const float gauss_prec=2, const unsigned int interpolation_type=0, const bool fast_approx=true) const |
CImg< T > & | blur_anisotropic (const float amplitude, const float sharpness=0.7f, const float anisotropy=0.6f, const float alpha=0.6f, const float sigma=1.1f, const float dl=0.8f, const float da=30, const float gauss_prec=2, const unsigned int interpolation_type=0, const bool fast_approx=true) |
| Blur an image following in an anisotropic way.
|
CImg< T > | get_blur_anisotropic (const float amplitude, const float sharpness=0.7f, const float anisotropy=0.6f, const float alpha=0.6f, const float sigma=1.1f, const float dl=0.8f, const float da=30, const float gauss_prec=2, const unsigned int interpolation_type=0, const bool fast_approx=true) const |
CImg< T > & | blur_bilateral (const float sigma_x, const float sigma_y, const float sigma_z, const float sigma_r, const int bgrid_x, const int bgrid_y, const int bgrid_z, const int bgrid_r, const bool interpolation_type=true) |
| Blur an image using the bilateral filter.
|
CImg< T > | get_blur_bilateral (const float sigma_x, const float sigma_y, const float sigma_z, const float sigma_r, const int bgrid_x, const int bgrid_y, const int bgrid_z, const int bgrid_r, const bool interpolation_type=true) const |
CImg< T > & | blur_bilateral (const float sigma_s, const float sigma_r, const int bgrid_s=-33, const int bgrid_r=32, const bool interpolation_type=true) |
| Blur an image using the bilateral filter.
|
CImg< T > | get_blur_bilateral (const float sigma_s, const float sigma_r, const int bgrid_s=-33, const int bgrid_r=32, const bool interpolation_type=true) const |
CImg< T > & | blur_patch (const float sigma_s, const float sigma_p, const unsigned int patch_size=3, const unsigned int lookup_size=4, const float smoothness=0, const bool fast_approx=true) |
| Blur an image in its patch-based space.
|
CImg< T > | get_blur_patch (const float sigma_s, const float sigma_p, const unsigned int patch_size=3, const unsigned int lookup_size=4, const float smoothness=0, const bool fast_approx=true) const |
CImg< T > & | blur_median (const unsigned int n) |
| Apply a median filter.
|
CImg< T > | get_blur_median (const unsigned int n) const |
CImg< T > & | sharpen (const float amplitude, const bool sharpen_type=false, const float edge=1, const float alpha=0, const float sigma=0) |
| Sharpen image using anisotropic shock filters or inverse diffusion.
|
CImg< T > | get_sharpen (const float amplitude, const bool sharpen_type=false, const float edge=1, const float alpha=0, const float sigma=0) const |
CImgList< Tfloat > | get_gradient (const char *const axes=0, const int scheme=3) const |
| Compute the list of images, corresponding to the XY-gradients of an image.
|
CImgList< Tfloat > | get_hessian (const char *const axes=0) const |
| Get components of the Hessian matrix of an image.
|
CImg< T > & | laplacian () |
| Compute the laplacian of the instance image.
|
CImg< Tfloat > | get_laplacian () const |
CImg< T > & | structure_tensors (const unsigned int scheme=1) |
| Compute the structure tensor field of an image.
|
CImg< Tfloat > | get_structure_tensors (const unsigned int scheme=1) const |
CImg< T > & | edge_tensors (const float sharpness=0.7f, const float anisotropy=0.6f, const float alpha=0.6f, const float sigma=1.1f, const bool is_sqrt=false) |
| Get a diffusion tensor for edge-preserving anisotropic smoothing of an image.
|
CImg< Tfloat > | get_edge_tensors (const float sharpness=0.7f, const float anisotropy=0.6f, const float alpha=0.6f, const float sigma=1.1f, const bool is_sqrt=false) const |
CImg< T > & | displacement (const CImg< T > &target, const float smooth=0.1f, const float precision=0.1f, const unsigned int nb_scales=0, const unsigned int iteration_max=1000, const bool backward=true) |
| Estimate a displacement field between instance image and given target image.
|
CImg< Tfloat > | get_displacement (const CImg< T > &target, const float smoothness=0.1f, const float precision=0.1f, const unsigned int nb_scales=0, const unsigned int iteration_max=1000, const bool backward=true) const |
CImg< T > & | distance (const T isovalue, const float sizex=1, const float sizey=1, const float sizez=1, const bool compute_sqrt=true) |
| Compute the Euclidean distance map to a shape of specified isovalue.
|
CImg< floatT > | get_distance (const T isovalue, const float sizex=1, const float sizey=1, const float sizez=1, const bool compute_sqrt=true) const |
CImg< T > & | distance_eikonal (const unsigned int nb_iterations, const float band_size=0, const float time_step=0.5f) |
| Compute distance function from 0-valued isophotes by the application of an Eikonal PDE.
|
CImg< Tfloat > | get_distance_eikonal (const unsigned int nb_iterations, const float band_size=0, const float time_step=0.5f) const |
CImg< T > & | haar (const char axis, const bool invert=false, const unsigned int nb_scales=1) |
| Compute the Haar multiscale wavelet transform (monodimensional version).
|
CImg< Tfloat > | get_haar (const char axis, const bool invert=false, const unsigned int nb_scales=1) const |
CImg< T > & | haar (const bool invert=false, const unsigned int nb_scales=1) |
| Compute the Haar multiscale wavelet transform.
|
CImg< Tfloat > | get_haar (const bool invert=false, const unsigned int nb_scales=1) const |
CImgList< Tfloat > | get_FFT (const char axis, const bool invert=false) const |
| Compute a 1D Fast Fourier Transform, along a specified axis.
|
CImgList< Tfloat > | get_FFT (const bool invert=false) const |
| Compute a N-D Fast-Fourier Transform.
|
static void | FFT (CImg< T > &real, CImg< T > &imag, const char axis, const bool invert=false) |
| Compute a 1D Fast Fourier Transform, along a specified axis.
|
static void | FFT (CImg< T > &real, CImg< T > &imag, const bool invert=false) |
| Compute a N-D Fast Fourier Transform.
|
3D Objects Management |
|
CImg< T > & | shift_object3d (const float tx, const float ty=0, const float tz=0) |
| Shift a 3D object.
|
CImg< Tfloat > | get_shift_object3d (const float tx, const float ty=0, const float tz=0) const |
CImg< T > & | shift_object3d () |
| Shift a 3D object so that it becomes centered.
|
CImg< Tfloat > | get_shift_object3d () const |
CImg< T > & | resize_object3d (const float sx, const float sy=-100, const float sz=-100) |
| Resize a 3D object.
|
CImg< Tfloat > | get_resize_object3d (const float sx, const float sy=-100, const float sz=-100) const |
CImg< T > | resize_object3d () const |
| Resize a 3D object so that its max dimension if one.
|
CImg< Tfloat > | get_resize_object3d () const |
template<typename tf , typename tp , typename tff > |
CImg< T > & | append_object3d (CImgList< tf > &primitives, const CImg< tp > &obj_vertices, const CImgList< tff > &obj_primitives) |
| Append a 3D object to another one.
|
template<typename tf , typename tc , typename te > |
CImg< floatT > | get_elevation3d (CImgList< tf > &primitives, CImgList< tc > &colors, const CImg< te > &elevation) const |
| Create and return a 3D elevation of the instance image.
|
template<typename tf > |
CImg< floatT > | get_isoline3d (CImgList< tf > &primitives, const float isovalue, const int size_x=-100, const int size_y=-100) const |
| Create and return a isoline of the instance image as a 3D object.
|
template<typename tf > |
CImg< floatT > | get_isosurface3d (CImgList< tf > &primitives, const float isovalue, const int size_x=-100, const int size_y=-100, const int size_z=-100) const |
| Create and return a isosurface of the instance image as a 3D object.
|
template<typename tf , typename tfunc > |
static CImg< floatT > | elevation3d (CImgList< tf > &primitives, const tfunc &func, const float x0, const float y0, const float x1, const float y1, const int size_x=256, const int size_y=256) |
| Get elevation3d of a function.
|
template<typename tf > |
static CImg< floatT > | elevation3d (CImgList< tf > &primitives, const char *const expression, const float x0, const float y0, const float x1, const float y1, const int sizex=256, const int sizey=256) |
template<typename tf , typename tfunc > |
static CImg< floatT > | isoline3d (CImgList< tf > &primitives, const tfunc &func, const float isovalue, const float x0, const float y0, const float x1, const float y1, const int sizex=256, const int sizey=256) |
| Get isoline as a 3D object.
|
template<typename tf > |
static CImg< floatT > | isoline3d (CImgList< tf > &primitives, const char *const expression, const float isovalue, const float x0, const float y0, const float x1, const float y1, const int sizex=256, const int sizey=256) |
template<typename tf , typename tfunc > |
static CImg< floatT > | isosurface3d (CImgList< tf > &primitives, const tfunc &func, const float isovalue, const float x0, const float y0, const float z0, const float x1, const float y1, const float z1, const int size_x=32, const int size_y=32, const int size_z=32) |
| Get isosurface as a 3D object.
|
template<typename tf > |
static CImg< floatT > | isosurface3d (CImgList< tf > &primitives, const char *const expression, const float isovalue, const float x0, const float y0, const float z0, const float x1, const float y1, const float z1, const int dx=32, const int dy=32, const int dz=32) |
template<typename tf > |
static CImg< floatT > | box3d (CImgList< tf > &primitives, const float size_x=200, const float size_y=100, const float size_z=100) |
| Create and return a 3D box object.
|
template<typename tf > |
static CImg< floatT > | cone3d (CImgList< tf > &primitives, const float radius=50, const float size_z=100, const unsigned int subdivisions=24) |
| Create and return a 3D cone.
|
template<typename tf > |
static CImg< floatT > | cylinder3d (CImgList< tf > &primitives, const float radius=50, const float size_z=100, const unsigned int subdivisions=24) |
| Create and return a 3D cylinder.
|
template<typename tf > |
static CImg< floatT > | torus3d (CImgList< tf > &primitives, const float radius1=100, const float radius2=30, const unsigned int subdivisions1=24, const unsigned int subdivisions2=12) |
| Create and return a 3D torus.
|
template<typename tf > |
static CImg< floatT > | plane3d (CImgList< tf > &primitives, const float size_x=100, const float size_y=100, const unsigned int subdivisions_x=10, const unsigned int subdivisions_y=10) |
| Create and return a 3D XY-plane.
|
template<typename tf > |
static CImg< floatT > | sphere3d (CImgList< tf > &primitives, const float radius=50, const unsigned int subdivisions=3) |
| Create and return a 3D sphere.
|
template<typename tf , typename t > |
static CImg< floatT > | ellipsoid3d (CImgList< tf > &primitives, const CImg< t > &tensor, const unsigned int subdivisions=3) |
| Create and return a 3D ellipsoid.
|
Drawing Functions |
|
template<typename tc > |
CImg< T > & | draw_point (const int x0, const int y0, const tc *const color, const float opacity=1) |
| Draw a 2D colored point (pixel).
|
template<typename tc > |
CImg< T > & | draw_point (const int x0, const int y0, const int z0, const tc *const color, const float opacity=1) |
| Draw a 3D colored point (voxel).
|
template<typename t , typename tc > |
CImg< T > & | draw_point (const CImg< t > &points, const tc *const color, const float opacity=1) |
template<typename tc > |
CImg< T > & | draw_line (const int x0, const int y0, const int x1, const int y1, const tc *const color, const float opacity=1, const unsigned int pattern=~0U, const bool init_hatch=true) |
| Draw a 2D colored line.
|
template<typename tc > |
CImg< T > & | draw_line (CImg< floatT > &zbuffer, const int x0, const int y0, const float z0, const int x1, const int y1, const float z1, const tc *const color, const float opacity=1, const unsigned int pattern=~0U, const bool init_hatch=true) |
| Draw a 2D colored line, with z-buffering.
|
template<typename tc > |
CImg< T > & | draw_line (const int x0, const int y0, const int z0, const int x1, const int y1, const int z1, const tc *const color, const float opacity=1, const unsigned int pattern=~0U, const bool init_hatch=true) |
| Draw a 3D colored line.
|
template<typename tc > |
CImg< T > & | draw_line (const int x0, const int y0, const int x1, const int y1, const CImg< tc > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const float opacity=1, const unsigned int pattern=~0U, const bool init_hatch=true) |
| Draw a 2D textured line.
|
template<typename tc > |
CImg< T > & | draw_line (const int x0, const int y0, const float z0, const int x1, const int y1, const float z1, const CImg< tc > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const float opacity=1, const unsigned int pattern=~0U, const bool init_hatch=true) |
| Draw a 2D textured line, with perspective correction.
|
template<typename tc > |
CImg< T > & | draw_line (CImg< floatT > &zbuffer, const int x0, const int y0, const float z0, const int x1, const int y1, const float z1, const CImg< tc > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const float opacity=1, const unsigned int pattern=~0U, const bool init_hatch=true) |
| Draw a 2D textured line, with z-buffering and perspective correction.
|
template<typename t , typename tc > |
CImg< T > & | draw_line (const CImg< t > &points, const tc *const color, const float opacity=1, const unsigned int pattern=~0U, const bool init_hatch=true) |
| Draw a set of consecutive colored lines in the instance image.
|
template<typename tc > |
CImg< T > & | draw_arrow (const int x0, const int y0, const int x1, const int y1, const tc *const color, const float opacity=1, const float angle=30, const float length=-10, const unsigned int pattern=~0U) |
| Draw a colored arrow in the instance image.
|
template<typename tc > |
CImg< T > & | draw_spline (const int x0, const int y0, const float u0, const float v0, const int x1, const int y1, const float u1, const float v1, const tc *const color, const float opacity=1, const float precision=4, const unsigned int pattern=~0U, const bool init_hatch=true) |
| Draw a cubic spline curve in the instance image.
|
template<typename tc > |
CImg< T > & | draw_spline (const int x0, const int y0, const int z0, const float u0, const float v0, const float w0, const int x1, const int y1, const int z1, const float u1, const float v1, const float w1, const tc *const color, const float opacity=1, const float precision=4, const unsigned int pattern=~0U, const bool init_hatch=true) |
| Draw a cubic spline curve in the instance image (for volumetric images).
|
template<typename t > |
CImg< T > & | draw_spline (const int x0, const int y0, const float u0, const float v0, const int x1, const int y1, const float u1, const float v1, const CImg< t > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const float opacity=1, const float precision=4, const unsigned int pattern=~0U, const bool init_hatch=true) |
| Draw a cubic spline curve in the instance image.
|
template<typename tp , typename tt , typename tc > |
CImg< T > & | draw_spline (const CImg< tp > &points, const CImg< tt > &tangents, const tc *const color, const float opacity=1, const bool close_set=false, const float precision=4, const unsigned int pattern=~0U, const bool init_hatch=true) |
template<typename tp , typename tc > |
CImg< T > & | draw_spline (const CImg< tp > &points, const tc *const color, const float opacity=1, const bool close_set=false, const float precision=4, const unsigned int pattern=~0U, const bool init_hatch=true) |
| Draw a set of consecutive colored splines in the instance image.
|
template<typename tc > |
CImg< T > & | draw_triangle (const int x0, const int y0, const int x1, const int y1, const int x2, const int y2, const tc *const color, const float opacity=1) |
| Draw a 2D filled colored triangle.
|
template<typename tc > |
CImg< T > & | draw_triangle (const int x0, const int y0, const int x1, const int y1, const int x2, const int y2, const tc *const color, const float opacity, const unsigned int pattern) |
| Draw a 2D outlined colored triangle.
|
template<typename tc > |
CImg< T > & | draw_triangle (CImg< floatT > &zbuffer, const int x0, const int y0, const float z0, const int x1, const int y1, const float z1, const int x2, const int y2, const float z2, const tc *const color, const float opacity=1, const float brightness=1) |
| Draw a 2D filled colored triangle, with z-buffering.
|
template<typename tc > |
CImg< T > & | draw_triangle (const int x0, const int y0, const int x1, const int y1, const int x2, const int y2, const tc *const color, const float brightness0, const float brightness1, const float brightness2, const float opacity=1) |
| Draw a 2D Gouraud-shaded colored triangle.
|
template<typename tc > |
CImg< T > & | draw_triangle (CImg< floatT > &zbuffer, const int x0, const int y0, const float z0, const int x1, const int y1, const float z1, const int x2, const int y2, const float z2, const tc *const color, const float brightness0, const float brightness1, const float brightness2, const float opacity=1) |
| Draw a 2D Gouraud-shaded colored triangle, with z-buffering.
|
template<typename tc1 , typename tc2 , typename tc3 > |
CImg< T > & | draw_triangle (const int x0, const int y0, const int x1, const int y1, const int x2, const int y2, const tc1 *const color1, const tc2 *const color2, const tc3 *const color3, const float opacity=1) |
| Draw a colored triangle with interpolated colors.
|
template<typename tc > |
CImg< T > & | draw_triangle (const int x0, const int y0, const int x1, const int y1, const int x2, const int y2, const CImg< tc > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const int tx2, const int ty2, const float opacity=1, const float brightness=1) |
| Draw a 2D textured triangle.
|
template<typename tc > |
CImg< T > & | draw_triangle (const int x0, const int y0, const float z0, const int x1, const int y1, const float z1, const int x2, const int y2, const float z2, const CImg< tc > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const int tx2, const int ty2, const float opacity=1, const float brightness=1) |
| Draw a 2D textured triangle, with perspective correction.
|
template<typename tc > |
CImg< T > & | draw_triangle (CImg< floatT > &zbuffer, const int x0, const int y0, const float z0, const int x1, const int y1, const float z1, const int x2, const int y2, const float z2, const CImg< tc > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const int tx2, const int ty2, const float opacity=1, const float brightness=1) |
| Draw a 2D textured triangle, with z-buffering and perspective correction.
|
template<typename tc , typename tl > |
CImg< T > & | draw_triangle (const int x0, const int y0, const int x1, const int y1, const int x2, const int y2, const tc *const color, const CImg< tl > &light, const int lx0, const int ly0, const int lx1, const int ly1, const int lx2, const int ly2, const float opacity=1) |
| Draw a 2D Pseudo-Phong-shaded triangle.
|
template<typename tc , typename tl > |
CImg< T > & | draw_triangle (CImg< floatT > &zbuffer, const int x0, const int y0, const float z0, const int x1, const int y1, const float z1, const int x2, const int y2, const float z2, const tc *const color, const CImg< tl > &light, const int lx0, const int ly0, const int lx1, const int ly1, const int lx2, const int ly2, const float opacity=1) |
| Draw a 2D Pseudo-Phong-shaded triangle, with z-buffering.
|
template<typename tc > |
CImg< T > & | draw_triangle (const int x0, const int y0, const int x1, const int y1, const int x2, const int y2, const CImg< tc > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const int tx2, const int ty2, const float brightness0, const float brightness1, const float brightness2, const float opacity=1) |
| Draw a 2D Gouraud-shaded textured triangle.
|
template<typename tc > |
CImg< T > & | draw_triangle (const int x0, const int y0, const float z0, const int x1, const int y1, const float z1, const int x2, const int y2, const float z2, const CImg< tc > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const int tx2, const int ty2, const float brightness0, const float brightness1, const float brightness2, const float opacity=1) |
| Draw a 2D Gouraud-shaded textured triangle, with perspective correction.
|
template<typename tc > |
CImg< T > & | draw_triangle (CImg< floatT > &zbuffer, const int x0, const int y0, const float z0, const int x1, const int y1, const float z1, const int x2, const int y2, const float z2, const CImg< tc > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const int tx2, const int ty2, const float brightness0, const float brightness1, const float brightness2, const float opacity=1) |
| Draw a 2D Gouraud-shaded textured triangle, with z-buffering and perspective correction.
|
template<typename tc , typename tl > |
CImg< T > & | draw_triangle (const int x0, const int y0, const int x1, const int y1, const int x2, const int y2, const CImg< tc > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const int tx2, const int ty2, const CImg< tl > &light, const int lx0, const int ly0, const int lx1, const int ly1, const int lx2, const int ly2, const float opacity=1) |
| Draw a 2D Pseudo-Phong-shaded textured triangle.
|
template<typename tc , typename tl > |
CImg< T > & | draw_triangle (const int x0, const int y0, const float z0, const int x1, const int y1, const float z1, const int x2, const int y2, const float z2, const CImg< tc > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const int tx2, const int ty2, const CImg< tl > &light, const int lx0, const int ly0, const int lx1, const int ly1, const int lx2, const int ly2, const float opacity=1) |
| Draw a 2D Pseudo-Phong-shaded textured triangle, with perspective correction.
|
template<typename tc , typename tl > |
CImg< T > & | draw_triangle (CImg< floatT > &zbuffer, const int x0, const int y0, const float z0, const int x1, const int y1, const float z1, const int x2, const int y2, const float z2, const CImg< tc > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const int tx2, const int ty2, const CImg< tl > &light, const int lx0, const int ly0, const int lx1, const int ly1, const int lx2, const int ly2, const float opacity=1) |
| Draw a 2D Pseudo-Phong-shaded textured triangle, with z-buffering and perspective correction.
|
CImg< T > & | draw_rectangle (const int x0, const int y0, const int z0, const int c0, const int x1, const int y1, const int z1, const int c1, const T val, const float opacity=1) |
| Draw a 4D filled rectangle in the instance image, at coordinates (x0 ,y0 ,z0 ,c0 )-(x1 ,y1 ,z1 ,c1 ).
|
template<typename tc > |
CImg< T > & | draw_rectangle (const int x0, const int y0, const int z0, const int x1, const int y1, const int z1, const tc *const color, const float opacity=1) |
| Draw a 3D filled colored rectangle in the instance image, at coordinates (x0 ,y0 ,z0 )-(x1 ,y1 ,z1 ).
|
template<typename tc > |
CImg< T > & | draw_rectangle (const int x0, const int y0, const int z0, const int x1, const int y1, const int z1, const tc *const color, const float opacity, const unsigned int pattern) |
| Draw a 3D outlined colored rectangle in the instance image.
|
template<typename tc > |
CImg< T > & | draw_rectangle (const int x0, const int y0, const int x1, const int y1, const tc *const color, const float opacity=1) |
| Draw a 2D filled colored rectangle in the instance image, at coordinates (x0 ,y0 )-(x1 ,y1 ).
|
template<typename tc > |
CImg< T > & | draw_rectangle (const int x0, const int y0, const int x1, const int y1, const tc *const color, const float opacity, const unsigned int pattern) |
| Draw a 2D outlined colored rectangle.
|
template<typename t , typename tc > |
CImg< T > & | draw_polygon (const CImg< t > &points, const tc *const color, const float opacity=1) |
| Draw a filled polygon in the instance image.
|
template<typename t , typename tc > |
CImg< T > & | draw_polygon (const CImg< t > &points, const tc *const color, const float opacity, const unsigned int pattern) |
| Draw a outlined polygon in the instance image.
|
template<typename tc > |
CImg< T > & | draw_circle (const int x0, const int y0, int radius, const tc *const color, const float opacity=1) |
| Draw a filled circle.
|
template<typename tc > |
CImg< T > & | draw_circle (const int x0, const int y0, int radius, const tc *const color, const float opacity, const unsigned int) |
| Draw an outlined circle.
|
template<typename tc > |
CImg< T > & | draw_ellipse (const int x0, const int y0, const float r1, const float r2, const float angle, const tc *const color, const float opacity=1) |
| Draw a filled ellipse.
|
template<typename t , typename tc > |
CImg< T > & | draw_ellipse (const int x0, const int y0, const CImg< t > &tensor, const tc *const color, const float opacity=1) |
| Draw a filled ellipse.
|
template<typename tc > |
CImg< T > & | draw_ellipse (const int x0, const int y0, const float r1, const float r2, const float angle, const tc *const color, const float opacity, const unsigned int pattern) |
| Draw an outlined ellipse.
|
template<typename t , typename tc > |
CImg< T > & | draw_ellipse (const int x0, const int y0, const CImg< t > &tensor, const tc *const color, const float opacity, const unsigned int pattern) |
| Draw an outlined ellipse.
|
template<typename t > |
CImg< T > & | draw_image (const int x0, const int y0, const int z0, const int c0, const CImg< t > &sprite, const float opacity=1) |
| Draw an image.
|
CImg< T > & | draw_image (const int x0, const int y0, const int z0, const int c0, const CImg< T > &sprite, const float opacity=1) |
template<typename t > |
CImg< T > & | draw_image (const int x0, const int y0, const int z0, const CImg< t > &sprite, const float opacity=1) |
| Draw an image.
|
template<typename t > |
CImg< T > & | draw_image (const int x0, const int y0, const CImg< t > &sprite, const float opacity=1) |
| Draw an image.
|
template<typename t > |
CImg< T > & | draw_image (const int x0, const CImg< t > &sprite, const float opacity=1) |
| Draw an image.
|
template<typename t > |
CImg< T > & | draw_image (const CImg< t > &sprite, const float opacity=1) |
| Draw an image.
|
template<typename ti , typename tm > |
CImg< T > & | draw_image (const int x0, const int y0, const int z0, const int c0, const CImg< ti > &sprite, const CImg< tm > &mask, const float opacity=1, const float mask_valmax=1) |
| Draw a sprite image in the instance image (masked version).
|
template<typename ti , typename tm > |
CImg< T > & | draw_image (const int x0, const int y0, const int z0, const CImg< ti > &sprite, const CImg< tm > &mask, const float opacity=1, const float mask_valmax=1) |
| Draw an image.
|
template<typename ti , typename tm > |
CImg< T > & | draw_image (const int x0, const int y0, const CImg< ti > &sprite, const CImg< tm > &mask, const float opacity=1, const float mask_valmax=1) |
| Draw an image.
|
template<typename ti , typename tm > |
CImg< T > & | draw_image (const int x0, const CImg< ti > &sprite, const CImg< tm > &mask, const float opacity=1, const float mask_valmax=1) |
| Draw an image.
|
template<typename ti , typename tm > |
CImg< T > & | draw_image (const CImg< ti > &sprite, const CImg< tm > &mask, const float opacity=1, const float mask_valmax=1) |
| Draw an image.
|
template<typename tc1 , typename tc2 , typename t > |
CImg< T > & | draw_text (const int x0, const int y0, const char *const text, const tc1 *const foreground_color, const tc2 *const background_color, const float opacity, const CImgList< t > &font,...) |
| Draw a text.
|
template<typename tc , typename t > |
CImg< T > & | draw_text (const int x0, const int y0, const char *const text, const tc *const foreground_color, const int, const float opacity, const CImgList< t > &font,...) |
template<typename tc , typename t > |
CImg< T > & | draw_text (const int x0, const int y0, const char *const text, const int, const tc *const background_color, const float opacity, const CImgList< t > &font,...) |
template<typename tc1 , typename tc2 > |
CImg< T > & | draw_text (const int x0, const int y0, const char *const text, const tc1 *const foreground_color, const tc2 *const background_color, const float opacity=1, const unsigned int font_height=13,...) |
| Draw a text.
|
template<typename tc > |
CImg< T > & | draw_text (const int x0, const int y0, const char *const text, const tc *const foreground_color, const int background_color=0, const float opacity=1, const unsigned int font_height=13,...) |
template<typename tc > |
CImg< T > & | draw_text (const int x0, const int y0, const char *const text, const int, const tc *const background_color, const float opacity=1, const unsigned int font_height=13,...) |
template<typename t1 , typename t2 > |
CImg< T > & | draw_quiver (const CImg< t1 > &flow, const t2 *const color, const float opacity=1, const unsigned int sampling=25, const float factor=-20, const bool arrows=true, const unsigned int pattern=~0U) |
| Draw a vector field in the instance image, using a colormap.
|
template<typename t1 , typename t2 > |
CImg< T > & | draw_quiver (const CImg< t1 > &flow, const CImg< t2 > &color, const float opacity=1, const unsigned int sampling=25, const float factor=-20, const bool arrows=true, const unsigned int pattern=~0U) |
| Draw a vector field in the instance image, using a colormap.
|
template<typename t , typename tc > |
CImg< T > & | draw_axis (const CImg< t > &xvalues, const int y, const tc *const color, const float opacity=1, const unsigned int pattern=~0U) |
| Draw a labeled horizontal axis on the instance image.
|
template<typename t , typename tc > |
CImg< T > & | draw_axis (const int x, const CImg< t > &yvalues, const tc *const color, const float opacity=1, const unsigned int pattern=~0U) |
| Draw a labeled vertical axis on the instance image.
|
template<typename tx , typename ty , typename tc > |
CImg< T > & | draw_axes (const CImg< tx > &xvalues, const CImg< ty > &yvalues, const tc *const color, const float opacity=1, const unsigned int patternx=~0U, const unsigned int patterny=~0U) |
| Draw a labeled horizontal+vertical axis on the instance image.
|
template<typename tc > |
CImg< T > & | draw_axes (const float x0, const float x1, const float y0, const float y1, const tc *const color, const float opacity=1, const int subdivisionx=-60, const int subdivisiony=-60, const float precisionx=0, const float precisiony=0, const unsigned int patternx=~0U, const unsigned int patterny=~0U) |
| Draw a labeled horizontal+vertical axis on the instance image.
|
template<typename tx , typename ty , typename tc > |
CImg< T > & | draw_grid (const CImg< tx > &xvalues, const CImg< ty > &yvalues, const tc *const color, const float opacity=1, const unsigned int patternx=~0U, const unsigned int patterny=~0U) |
| Draw grid.
|
template<typename tc > |
CImg< T > & | draw_grid (const float deltax, const float deltay, const float offsetx, const float offsety, const bool invertx, const bool inverty, const tc *const color, const float opacity=1, const unsigned int patternx=~0U, const unsigned int patterny=~0U) |
| Draw grid.
|
template<typename t , typename tc > |
CImg< T > & | draw_graph (const CImg< t > &data, const tc *const color, const float opacity=1, const unsigned int plot_type=1, const int vertex_type=1, const double ymin=0, const double ymax=0, const bool expand=false, const unsigned int pattern=~0U) |
| Draw a 1D graph on the instance image.
|
template<typename tc , typename t > |
CImg< T > & | draw_fill (const int x, const int y, const int z, const tc *const color, const float opacity, CImg< t > ®ion, const float sigma=0, const bool high_connexity=false) |
| Draw a 3D filled region starting from a point (x ,y ,\ z) in the instance image.
|
template<typename tc > |
CImg< T > & | draw_fill (const int x, const int y, const int z, const tc *const color, const float opacity=1, const float sigma=0, const bool high_connexity=false) |
| Draw a 3D filled region starting from a point (x ,y ,\ z) in the instance image.
|
template<typename tc > |
CImg< T > & | draw_fill (const int x, const int y, const tc *const color, const float opacity=1, const float sigma=0, const bool high_connexity=false) |
| Draw a 2D filled region starting from a point (x ,y ) in the instance image.
|
CImg< T > & | draw_plasma (const int x0, const int y0, const int x1, const int y1, const float alpha=1, const float beta=1, const float opacity=1) |
| Draw a plasma random texture.
|
CImg< T > & | draw_plasma (const float alpha=1, const float beta=1, const float opacity=1) |
| Draw a plasma random texture.
|
template<typename tc > |
CImg< T > & | draw_mandelbrot (const int x0, const int y0, const int x1, const int y1, const CImg< tc > &color_palette, const float opacity=1, const double z0r=-2, const double z0i=-2, const double z1r=2, const double z1i=2, const unsigned int iteration_max=255, const bool normalized_iteration=false, const bool julia_set=false, const double paramr=0, const double parami=0) |
| Draw a quadratic Mandelbrot or Julia fractal set, computed using the Escape Time Algorithm.
|
template<typename tc > |
CImg< T > & | draw_mandelbrot (const CImg< tc > &color_palette, const float opacity=1, const double z0r=-2, const double z0i=-2, const double z1r=2, const double z1i=2, const unsigned int iteration_max=255, const bool normalized_iteration=false, const bool julia_set=false, const double paramr=0, const double parami=0) |
| Draw a quadratic Mandelbrot or Julia fractal set, computed using the Escape Time Algorithm.
|
template<typename tc > |
CImg< T > & | draw_gaussian (const float xc, const float sigma, const tc *const color, const float opacity=1) |
| Draw a 1D gaussian function in the instance image.
|
template<typename t , typename tc > |
CImg< T > & | draw_gaussian (const float xc, const float yc, const CImg< t > &tensor, const tc *const color, const float opacity=1) |
| Draw an anisotropic 2D gaussian function.
|
template<typename tc > |
CImg< T > & | draw_gaussian (const int xc, const int yc, const float r1, const float r2, const float ru, const float rv, const tc *const color, const float opacity=1) |
| Draw an anisotropic 2D gaussian function.
|
template<typename tc > |
CImg< T > & | draw_gaussian (const float xc, const float yc, const float sigma, const tc *const color, const float opacity=1) |
| Draw an isotropic 2D gaussian function.
|
template<typename t , typename tc > |
CImg< T > & | draw_gaussian (const float xc, const float yc, const float zc, const CImg< t > &tensor, const tc *const color, const float opacity=1) |
| Draw an anisotropic 3D gaussian function.
|
template<typename tc > |
CImg< T > & | draw_gaussian (const float xc, const float yc, const float zc, const float sigma, const tc *const color, const float opacity=1) |
| Draw an isotropic 3D gaussian function.
|
template<typename tp , typename tf , typename tc , typename to > |
CImg< T > & | draw_object3d (const float x0, const float y0, const float z0, const CImg< tp > &vertices, const CImgList< tf > &primitives, const CImgList< tc > &colors, const CImg< to > &opacities, const unsigned int render_type=4, const bool double_sided=false, const float focale=500, const float lightx=0, const float lighty=0, const float lightz=-5000, const float specular_light=0.2f, const float specular_shine=0.1f, CImg< floatT > &zbuffer=cimg_library::CImg< floatT >::empty()) |
| Draw a 3D object.
|
template<typename tp , typename tf , typename tc , typename to > |
CImg< T > & | draw_object3d (const float x0, const float y0, const float z0, const CImg< tp > &vertices, const CImgList< tf > &primitives, const CImgList< tc > &colors, const CImgList< to > &opacities, const unsigned int render_type=4, const bool double_sided=false, const float focale=500, const float lightx=0, const float lighty=0, const float lightz=-5000, const float specular_light=0.2f, const float specular_shine=0.1f, CImg< floatT > &zbuffer=cimg_library::CImg< floatT >::empty()) |
template<typename tp , typename tf , typename tc > |
CImg< T > & | draw_object3d (const float x0, const float y0, const float z0, const CImg< tp > &vertices, const CImgList< tf > &primitives, const CImgList< tc > &colors, const unsigned int render_type=4, const bool double_sided=false, const float focale=500, const float lightx=0, const float lighty=0, const float lightz=-5000, const float specular_light=0.2f, const float specular_shine=0.1f, CImg< floatT > &zbuffer=cimg_library::CImg< floatT >::empty()) |
| Draw a 3D object.
|
Data Input |
|
CImg< T > & | select (CImgDisplay &disp, const int select_type=2, unsigned int *const XYZ=0, const unsigned char *const color=0) |
| Simple interface to select a shape from an image.
|
CImg< T > & | select (const char *const title, const int select_type=2, unsigned int *const XYZ=0, const unsigned char *const color=0) |
| Simple interface to select a shape from an image.
|
CImg< intT > | get_select (CImgDisplay &disp, const int select_type=2, unsigned int *const XYZ=0, const unsigned char *const color=0) const |
| Simple interface to select a shape from an image.
|
CImg< intT > | get_select (const char *const title, const int select_type=2, unsigned int *const XYZ=0, const unsigned char *const color=0) const |
| Simple interface to select a shape from an image.
|
CImg< intT > | get_select_graph (CImgDisplay &disp, const unsigned int plot_type=1, const unsigned int vertex_type=1, const char *const labelx=0, const double xmin=0, const double xmax=0, const char *const labely=0, const double ymin=0, const double ymax=0) const |
| Select sub-graph in a graph.
|
CImg< T > & | load (const char *const filename) |
| Load an image from a file.
|
CImg< T > & | load_ascii (const char *const filename) |
| Load an image from an ASCII file.
|
CImg< T > & | load_ascii (std::FILE *const file) |
| Load an image from an ASCII file.
|
CImg< T > & | load_dlm (const char *const filename) |
| Load an image from a DLM file.
|
CImg< T > & | load_dlm (std::FILE *const file) |
| Load an image from a DLM file.
|
CImg< T > & | load_bmp (const char *const filename) |
| Load an image from a BMP file.
|
CImg< T > & | load_bmp (std::FILE *const file) |
| Load an image from a BMP file.
|
CImg< T > & | load_jpeg (const char *const filename) |
| Load an image from a JPEG file.
|
CImg< T > & | load_jpeg (std::FILE *const file) |
| Load an image from a JPEG file.
|
CImg< T > & | load_magick (const char *const filename) |
| Load an image from a file, using Magick++ library.
|
CImg< T > & | load_png (const char *const filename) |
| Load an image from a PNG file.
|
CImg< T > & | load_png (std::FILE *const file) |
| Load an image from a PNG file.
|
CImg< T > & | load_pnm (const char *const filename) |
| Load an image from a PNM file.
|
CImg< T > & | load_pnm (std::FILE *const file) |
| Load an image from a PNM file.
|
CImg< T > & | load_pfm (const char *const filename) |
| Load an image from a PFM file.
|
CImg< T > & | load_pfm (std::FILE *const file) |
| Load an image from a PFM file.
|
CImg< T > & | load_rgb (const char *const filename, const unsigned int dimw, const unsigned int dimh=1) |
| Load an image from a RGB file.
|
CImg< T > & | load_rgb (std::FILE *const file, const unsigned int dimw, const unsigned int dimh=1) |
| Load an image from a RGB file.
|
CImg< T > & | load_rgba (const char *const filename, const unsigned int dimw, const unsigned int dimh=1) |
| Load an image from a RGBA file.
|
CImg< T > & | load_rgba (std::FILE *const file, const unsigned int dimw, const unsigned int dimh=1) |
| Load an image from a RGBA file.
|
CImg< T > & | load_tiff (const char *const filename, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1) |
| Load an image from a TIFF file.
|
CImg< T > & | load_analyze (const char *const filename, float *const voxsize=0) |
| Load an image from an ANALYZE7.5/NIFTI file.
|
CImg< T > & | load_analyze (std::FILE *const file, float *const voxsize=0) |
| Load an image from an ANALYZE7.5/NIFTI file.
|
CImg< T > & | load_cimg (const char *const filename, const char axis='z', const char align='p') |
| Load an image (list) from a .cimg file.
|
CImg< T > & | load_cimg (std::FILE *const file, const char axis='z', const char align='p') |
| Load an image (list) from a .cimg file.
|
CImg< T > & | load_cimg (const char *const filename, const unsigned int n0, const unsigned int n1, const unsigned int x0, const unsigned int y0, const unsigned int z0, const unsigned int c0, const unsigned int x1, const unsigned int y1, const unsigned int z1, const unsigned int c1, const char axis='z', const char align='p') |
| Load a sub-image (list) from a .cimg file.
|
CImg< T > & | load_cimg (std::FILE *const file, const unsigned int n0, const unsigned int n1, const unsigned int x0, const unsigned int y0, const unsigned int z0, const unsigned int c0, const unsigned int x1, const unsigned int y1, const unsigned int z1, const unsigned int c1, const char axis='z', const char align='p') |
| Load a sub-image (list) from a non-compressed .cimg file.
|
CImg< T > & | load_inr (const char *const filename, float *const voxsize=0) |
| Load an image from an INRIMAGE-4 file.
|
CImg< T > & | load_inr (std::FILE *const file, float *const voxsize=0) |
| Load an image from an INRIMAGE-4 file.
|
CImg< T > & | load_exr (const char *const filename) |
| Load an image from a EXR file.
|
CImg< T > & | load_pandore (const char *const filename) |
| Load an image from a PANDORE file.
|
CImg< T > & | load_pandore (std::FILE *const file) |
| Load an image from a PANDORE file.
|
CImg< T > & | load_parrec (const char *const filename, const char axis='c', const char align='p') |
| Load an image from a PAR-REC (Philips) file.
|
CImg< T > & | load_raw (const char *const filename, const unsigned int sizex, const unsigned int sizey=1, const unsigned int sizez=1, const unsigned int sizev=1, const bool multiplexed=false, const bool invert_endianness=false) |
| Load an image from a .RAW file.
|
CImg< T > & | load_raw (std::FILE *const file, const unsigned int sizex, const unsigned int sizey=1, const unsigned int sizez=1, const unsigned int sizev=1, const bool multiplexed=false, const bool invert_endianness=false) |
| Load an image from a .RAW file.
|
CImg< T > & | load_ffmpeg (const char *const filename, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool pixel_format=true, const bool resume=false, const char axis='z', const char align='p') |
| Load a video sequence using FFMPEG av's libraries.
|
CImg< T > & | load_yuv (const char *const filename, const unsigned int sizex, const unsigned int sizey=1, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool yuv2rgb=true, const char axis='z', const char align='p') |
| Load an image sequence from a YUV file.
|
CImg< T > & | load_yuv (std::FILE *const file, const unsigned int sizex, const unsigned int sizey=1, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool yuv2rgb=true, const char axis='z', const char align='p') |
| Load an image sequence from a YUV file.
|
template<typename tf , typename tc > |
CImg< T > & | load_off (const char *const filename, CImgList< tf > &primitives, CImgList< tc > &colors) |
| Load a 3D object from a .OFF file.
|
template<typename tf , typename tc > |
CImg< T > & | load_off (std::FILE *const file, CImgList< tf > &primitives, CImgList< tc > &colors) |
| Load a 3D object from a .OFF file.
|
CImg< T > & | load_ffmpeg_external (const char *const filename, const char axis='z', const char align='p') |
| Load a video sequence using FFMPEG's external tool 'ffmpeg'.
|
CImg< T > & | load_graphicsmagick_external (const char *const filename) |
| Load an image using GraphicsMagick's external tool 'gm'.
|
CImg< T > & | load_gzip_external (const char *const filename) |
| Load a gzipped image file, using external tool 'gunzip'.
|
CImg< T > & | load_imagemagick_external (const char *const filename) |
| Load an image using ImageMagick's external tool 'convert'.
|
CImg< T > & | load_medcon_external (const char *const filename) |
| Load a DICOM image file, using XMedcon's external tool 'medcon'.
|
CImg< T > & | load_dcraw_external (const char *const filename) |
| Load a RAW Color Camera image file, using external tool 'dcraw'.
|
CImg< T > & | load_other (const char *const filename) |
| Load an image using ImageMagick's or GraphicsMagick's executables.
|
static CImg< T > | get_load (const char *const filename) |
static CImg< T > | get_load_ascii (const char *const filename) |
static CImg< T > | get_load_ascii (std::FILE *const file) |
static CImg< T > | get_load_dlm (const char *const filename) |
static CImg< T > | get_load_dlm (std::FILE *const file) |
static CImg< T > | get_load_bmp (const char *const filename) |
static CImg< T > | get_load_bmp (std::FILE *const file) |
static CImg< T > | get_load_jpeg (const char *const filename) |
static CImg< T > | get_load_jpeg (std::FILE *const file) |
static CImg< T > | get_load_magick (const char *const filename) |
static CImg< T > | get_load_png (const char *const filename) |
static CImg< T > | get_load_png (std::FILE *const file) |
static CImg< T > | get_load_pnm (const char *const filename) |
static CImg< T > | get_load_pnm (std::FILE *const file) |
static CImg< T > | get_load_pfm (const char *const filename) |
static CImg< T > | get_load_pfm (std::FILE *const file) |
static CImg< T > | get_load_rgb (const char *const filename, const unsigned int dimw, const unsigned int dimh=1) |
static CImg< T > | get_load_rgb (std::FILE *const file, const unsigned int dimw, const unsigned int dimh=1) |
static CImg< T > | get_load_rgba (const char *const filename, const unsigned int dimw, const unsigned int dimh=1) |
static CImg< T > | get_load_rgba (std::FILE *const file, const unsigned int dimw, const unsigned int dimh=1) |
static CImg< T > | get_load_tiff (const char *const filename, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1) |
static CImg< T > | get_load_analyze (const char *const filename, float *const voxsize=0) |
static CImg< T > | get_load_analyze (std::FILE *const file, float *const voxsize=0) |
static CImg< T > | get_load_cimg (const char *const filename, const char axis='z', const char align='p') |
static CImg< T > | get_load_cimg (std::FILE *const file, const char axis='z', const char align='p') |
static CImg< T > | get_load_cimg (const char *const filename, const unsigned int n0, const unsigned int n1, const unsigned int x0, const unsigned int y0, const unsigned int z0, const unsigned int c0, const unsigned int x1, const unsigned int y1, const unsigned int z1, const unsigned int c1, const char axis='z', const char align='p') |
static CImg< T > | get_load_cimg (std::FILE *const file, const unsigned int n0, const unsigned int n1, const unsigned int x0, const unsigned int y0, const unsigned int z0, const unsigned int c0, const unsigned int x1, const unsigned int y1, const unsigned int z1, const unsigned int c1, const char axis='z', const char align='p') |
static CImg< T > | get_load_inr (const char *const filename, float *const voxsize=0) |
static CImg< T > | get_load_inr (std::FILE *const file, float *voxsize=0) |
static CImg< T > | get_load_exr (const char *const filename) |
static CImg< T > | get_load_pandore (const char *const filename) |
static CImg< T > | get_load_pandore (std::FILE *const file) |
static CImg< T > | get_load_parrec (const char *const filename, const char axis='c', const char align='p') |
static CImg< T > | get_load_raw (const char *const filename, const unsigned int sizex, const unsigned int sizey=1, const unsigned int sizez=1, const unsigned int sizev=1, const bool multiplexed=false, const bool invert_endianness=false) |
static CImg< T > | get_load_raw (std::FILE *const file, const unsigned int sizex, const unsigned int sizey=1, const unsigned int sizez=1, const unsigned int sizev=1, const bool multiplexed=false, const bool invert_endianness=false) |
static CImg< T > | get_load_ffmpeg (const char *const filename, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool pixel_format=true, const bool resume=false, const char axis='z', const char align='p') |
static CImg< T > | get_load_yuv (const char *const filename, const unsigned int sizex, const unsigned int sizey=1, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool yuv2rgb=true, const char axis='z', const char align='p') |
static CImg< T > | get_load_yuv (std::FILE *const file, const unsigned int sizex, const unsigned int sizey=1, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool yuv2rgb=true, const char axis='z', const char align='p') |
template<typename tf , typename tc > |
static CImg< T > | get_load_off (const char *const filename, CImgList< tf > &primitives, CImgList< tc > &colors) |
template<typename tf , typename tc > |
static CImg< T > | get_load_off (std::FILE *const file, CImgList< tf > &primitives, CImgList< tc > &colors) |
static CImg< T > | get_load_ffmpeg_external (const char *const filename, const char axis='z', const char align='p') |
static CImg< T > | get_load_graphicsmagick_external (const char *const filename) |
static CImg< T > | get_load_gzip_external (const char *const filename) |
static CImg< T > | get_load_imagemagick_external (const char *const filename) |
static CImg< T > | get_load_medcon_external (const char *const filename) |
static CImg< T > | get_load_dcraw_external (const char *const filename) |
static CImg< T > | get_load_other (const char *const filename) |
Data Output |
|
const CImg< T > & | print (const char *title=0, const bool display_stats=true) const |
| Display informations about the image on the standard error output.
|
const CImg< T > & | display (CImgDisplay &disp) const |
| Display an image into a CImgDisplay window.
|
const CImg< T > & | display (CImgDisplay &disp, const bool display_info) const |
| Display an image in a window with a title title , and wait a '_is_closed' or 'keyboard' event.
.
|
const CImg< T > & | display (const char *const title=0, const bool display_info=true) const |
| Display an image in a window with a title title , and wait a '_is_closed' or 'keyboard' event.
.
|
template<typename tp , typename tf , typename tc , typename to > |
const CImg< T > & | display_object3d (CImgDisplay &disp, const CImg< tp > &vertices, const CImgList< tf > &primitives, const CImgList< tc > &colors, const to &opacities, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=true, const float focale=500, const float light_x=0, const float light_y=0, const float light_z=-5000, const float specular_light=0.2f, const float specular_shine=0.1f, const bool display_axes=true, float *const pose_matrix=0) const |
| High-level interface for displaying a 3d object.
|
template<typename tp , typename tf , typename tc , typename to > |
const CImg< T > & | display_object3d (const char *const title, const CImg< tp > &vertices, const CImgList< tf > &primitives, const CImgList< tc > &colors, const to &opacities, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=true, const float focale=500, const float light_x=0, const float light_y=0, const float light_z=-5000, const float specular_light=0.2f, const float specular_shine=0.1f, const bool display_axes=true, float *const pose_matrix=0) const |
| High-level interface for displaying a 3d object.
|
template<typename tp , typename tf , typename tc > |
const CImg< T > & | display_object3d (CImgDisplay &disp, const CImg< tp > &vertices, const CImgList< tf > &primitives, const CImgList< tc > &colors, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=true, const float focale=500, const float light_x=0, const float light_y=0, const float light_z=-5000, const float specular_light=0.2f, const float specular_shine=0.1f, const bool display_axes=true, float *const pose_matrix=0) const |
| High-level interface for displaying a 3d object.
|
template<typename tp , typename tf , typename tc > |
const CImg< T > & | display_object3d (const char *const title, const CImg< tp > &vertices, const CImgList< tf > &primitives, const CImgList< tc > &colors, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=true, const float focale=500, const float light_x=0, const float light_y=0, const float light_z=-5000, const float specular_light=0.2f, const float specular_shine=0.1f, const bool display_axes=true, float *const pose_matrix=0) const |
| High-level interface for displaying a 3d object.
|
template<typename tp , typename tf > |
const CImg< T > & | display_object3d (CImgDisplay &disp, const CImg< tp > &vertices, const CImgList< tf > &primitives, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=true, const float focale=500, const float light_x=0, const float light_y=0, const float light_z=-5000, const float specular_light=0.2f, const float specular_shine=0.1f, const bool display_axes=true, float *const pose_matrix=0) const |
| High-level interface for displaying a 3d object.
|
template<typename tp , typename tf > |
const CImg< T > & | display_object3d (const char *const title, const CImg< tp > &vertices, const CImgList< tf > &primitives, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=true, const float focale=500, const float light_x=0, const float light_y=0, const float light_z=-5000, const float specular_light=0.2f, const float specular_shine=0.1f, const bool display_axes=true, float *const pose_matrix=0) const |
| High-level interface for displaying a 3d object.
|
template<typename tp > |
const CImg< T > & | display_object3d (CImgDisplay &disp, const CImg< tp > &vertices, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=true, const float focale=500, const float light_x=0, const float light_y=0, const float light_z=-5000, const float specular_light=0.2f, const float specular_shine=0.1f, const bool display_axes=true, float *const pose_matrix=0) const |
| High-level interface for displaying a 3d object.
|
template<typename tp > |
const CImg< T > & | display_object3d (const char *const title, const CImg< tp > &vertices, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=true, const float focale=500, const float light_x=0, const float light_y=0, const float light_z=-5000, const float specular_light=0.2f, const float specular_shine=0.1f, const bool display_axes=true, float *const pose_matrix=0) const |
| High-level interface for displaying a 3d object.
|
const CImg< T > & | display_graph (CImgDisplay &disp, const unsigned int plot_type=1, const unsigned int vertex_type=1, const char *const labelx=0, const double xmin=0, const double xmax=0, const char *const labely=0, const double ymin=0, const double ymax=0) const |
| High-level interface for displaying a graph.
|
const CImg< T > & | display_graph (const char *const title=0, const unsigned int plot_type=1, const unsigned int vertex_type=1, const char *const labelx=0, const double xmin=0, const double xmax=0, const char *const labely=0, const double ymin=0, const double ymax=0) const |
| High-level interface for displaying a graph.
|
const CImg< T > & | save (const char *const filename, const int number=-1) const |
| Save the image as a file.
|
const CImg< T > & | save_ascii (const char *const filename) const |
| Save the image as an ASCII file (ASCII Raw + simple header).
|
const CImg< T > & | save_ascii (std::FILE *const file) const |
| Save the image as an ASCII file (ASCII Raw + simple header).
|
const CImg< T > & | save_cpp (const char *const filename) const |
| Save the image as a CPP source file.
|
const CImg< T > & | save_cpp (std::FILE *const file) const |
| Save the image as a CPP source file.
|
const CImg< T > & | save_dlm (const char *const filename) const |
| Save the image as a DLM file.
|
const CImg< T > & | save_dlm (std::FILE *const file) const |
| Save the image as a DLM file.
|
const CImg< T > & | save_bmp (const char *const filename) const |
| Save the image as a BMP file.
|
const CImg< T > & | save_bmp (std::FILE *const file) const |
| Save the image as a BMP file.
|
const CImg< T > & | save_jpeg (const char *const filename, const unsigned int quality=100) const |
| Save a file in JPEG format.
|
const CImg< T > & | save_jpeg (std::FILE *const file, const unsigned int quality=100) const |
| Save a file in JPEG format.
|
const CImg< T > & | save_magick (const char *const filename, const unsigned int bytes_per_pixel=0) const |
| Save the image using built-in ImageMagick++ library.
|
const CImg< T > & | save_png (const char *const filename, const unsigned int bytes_per_pixel=0) const |
| Save a file in PNG format.
|
const CImg< T > & | save_png (std::FILE *const file, const unsigned int bytes_per_pixel=0) const |
| Save a file in PNG format.
|
const CImg< T > & | save_pnm (const char *const filename, const unsigned int bytes_per_pixel=0) const |
| Save the image as a PNM file.
|
const CImg< T > & | save_pnm (std::FILE *const file, const unsigned int bytes_per_pixel=0) const |
| Save the image as a PNM file.
|
const CImg< T > & | save_pfm (const char *const filename) const |
| Save the image as a PFM file.
|
const CImg< T > & | save_pfm (std::FILE *const file) const |
| Save the image as a PFM file.
|
const CImg< T > & | save_rgb (const char *const filename) const |
| Save the image as a RGB file.
|
const CImg< T > & | save_rgb (std::FILE *const file) const |
| Save the image as a RGB file.
|
const CImg< T > & | save_rgba (const char *const filename) const |
| Save the image as a RGBA file.
|
const CImg< T > & | save_rgba (std::FILE *const file) const |
| Save the image as a RGBA file.
|
const CImg< T > & | save_tiff (const char *const filename) const |
| Save a file in TIFF format.
|
const CImg< T > & | save_analyze (const char *const filename, const float *const voxsize=0) const |
| Save the image as an ANALYZE7.5 or NIFTI file.
|
const CImg< T > & | save_cimg (const char *const filename, const bool compress=false) const |
| Save the image as a .cimg file.
|
const CImg< T > & | save_cimg (std::FILE *const file, const bool compress=false) const |
const CImg< T > & | save_cimg (const char *const filename, const unsigned int n0, const unsigned int x0, const unsigned int y0, const unsigned int z0, const unsigned int c0) const |
| Insert the image into an existing .cimg file, at specified coordinates.
|
const CImg< T > & | save_cimg (std::FILE *const file, const unsigned int n0, const unsigned int x0, const unsigned int y0, const unsigned int z0, const unsigned int c0) const |
| Insert the image into an existing .cimg file, at specified coordinates.
|
const CImg< T > & | save_inr (const char *const filename, const float *const voxsize=0) const |
| Save the image as an INRIMAGE-4 file.
|
const CImg< T > & | save_inr (std::FILE *const file, const float *const voxsize=0) const |
| Save the image as an INRIMAGE-4 file.
|
const CImg< T > & | save_exr (const char *filename) const |
| Save the image as a EXR file.
|
const CImg< T > & | save_pandore (const char *const filename, const unsigned int colorspace=0) const |
| Save the image as a PANDORE-5 file.
|
const CImg< T > & | save_pandore (std::FILE *const file, const unsigned int colorspace=0) const |
| Save the image as a PANDORE-5 file.
|
const CImg< T > & | save_raw (const char *const filename, const bool multiplexed=false) const |
| Save the image as a RAW file.
|
const CImg< T > & | save_raw (std::FILE *const file, const bool multiplexed=false) const |
| Save the image as a RAW file.
|
const CImg< T > & | save_ffmpeg (const char *const filename, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int fps=25) const |
| Save the image as a video sequence file, using FFMPEG library.
|
const CImg< T > & | save_yuv (const char *const filename, const bool rgb2yuv=true) const |
| Save the image as a YUV video sequence file.
|
const CImg< T > & | save_yuv (std::FILE *const file, const bool rgb2yuv=true) const |
| Save the image as a YUV video sequence file.
|
template<typename tf , typename tc > |
const CImg< T > & | save_off (const char *const filename, const CImgList< tf > &primitives, const CImgList< tc > &colors) const |
| Save OFF files.
|
template<typename tf , typename tc > |
const CImg< T > & | save_off (std::FILE *const file, const CImgList< tf > &primitives, const CImgList< tc > &colors) const |
| Save OFF files.
|
const CImg< T > & | save_ffmpeg_external (const char *const filename, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const char *const codec="mpeg2video") const |
| Save the image as a video sequence file, using the external tool 'ffmpeg'.
|
const CImg< T > & | save_graphicsmagick_external (const char *const filename, const unsigned int quality=100) const |
| Save the image using GraphicsMagick's gm.
|
const CImg< T > & | save_gzip_external (const char *const filename) const |
| Save an image as a gzipped file, using external tool 'gzip'.
|
const CImg< T > & | save_imagemagick_external (const char *const filename, const unsigned int quality=100) const |
| Save the image using ImageMagick's convert.
|
const CImg< T > & | save_medcon_external (const char *const filename) const |
| Save an image as a Dicom file (need '(X)Medcon' : http://xmedcon.sourceforge.net ).
|
const CImg< T > & | save_other (const char *const filename, const unsigned int quality=100) const |
static void | save_empty_cimg (const char *const filename, const unsigned int dx, const unsigned int dy=1, const unsigned int dz=1, const unsigned int dc=1) |
| Save an empty .cimg file with specified dimensions.
|
static void | save_empty_cimg (std::FILE *const file, const unsigned int dx, const unsigned int dy=1, const unsigned int dz=1, const unsigned int dc=1) |
| Save an empty .cimg file with specified dimensions.
|
static CImg< T > | logo40x38 () |
This is the main class of the CImg Library. It declares and constructs an image, allows access to its pixel values, and is able to perform various image operations.
You can access these fields publicly although it is recommended to use the dedicated functions width(), height(), depth(), spectrum() and ptr() to do so. Image dimensions are not limited to a specific range (as long as you got enough available memory). A value of 1 usually means that the corresponding dimension is flat. If one of the dimensions is 0, or if the data pointer is null, the image is considered as empty. Empty images should not contain any pixel data and thus, will not be processed by CImg member functions (a CImgInstanceException will be thrown instead). Pixel data are stored in memory, in a non interlaced mode (See How pixel data are stored with CImg.).
Declaring an image can be done by using one of the several available constructors. Here is a list of the most used :