Class representing an image (up to 4 dimensions wide), each pixel being of type T
.
More...
#include <cimg.h>
Classes | |
struct | _marching_cubes_func |
struct | _marching_cubes_func_float |
struct | _marching_squares_func |
struct | _marching_squares_func_float |
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 |
Get value type. | |
Public Member Functions | |
Constructors-Destructor-Copy | |
~CImg () | |
Destructor. | |
CImg () | |
Default constructor. | |
CImg (const unsigned int dx, const unsigned int dy=1, const unsigned int dz=1, const unsigned int dv=1) | |
Constructs a new image with given size (dx ,dy ,dz ,dv ). | |
CImg (const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dv, const T val) | |
Construct an image with given size (dx ,dy ,dz ,dv ) and with pixel having a default value val . | |
CImg (const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dv, const int val0, const int val1,...) | |
Construct an image with given size (dx ,dy ,dz ,dv ) and with specified pixel values (int version). | |
CImg (const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dv, const double val0, const double val1,...) | |
Construct an image with given size (dx ,dy ,dz ,dv ) and with specified pixel values (double version). | |
CImg (const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dv, const char *const values, const bool repeat_pattern) | |
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 dv=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 dv=1, const bool shared=false) | |
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 a default value. | |
CImg (const char *const filename) | |
Construct an image from an image file. | |
CImg (const CImgDisplay &disp) | |
Construct an image from the content of a CImgDisplay instance. | |
CImg< T > & | assign () |
In-place version of the default constructor/destructor. | |
CImg< T > & | clear () |
In-place version of the default constructor. | |
CImg< T > & | assign (const unsigned int dx, const unsigned int dy=1, const unsigned int dz=1, const unsigned int dv=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 dv, 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 dv, 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 dv, const double val0, const double val1,...) |
In-place version of the previous 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 dv=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 dv=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 dv, 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 dv, const bool shared) |
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. | |
CImg< T > & | assign (const char *const filename) |
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 > & | transfer_to (CImg< t > &img) |
Transfer the content of the instance image into another one in a way that memory copies are avoided if possible. | |
CImg< T > & | transfer_to (CImg< T > &img) |
CImg< T > & | swap (CImg< T > &img) |
Swap all data fields of two images. Use with care ! | |
Arithmetic and Boolean Operators | |
template<typename t > | |
CImg< T > & | operator= (const CImg< t > &img) |
Assignment operator. | |
CImg< T > & | operator= (const CImg< T > &img) |
CImg< T > & | operator= (const T *buf) |
Assign values of a C-array to the instance image. | |
CImg< T > & | operator= (const T val) |
Assign a value to each image pixel of the instance image. | |
CImg< T > | operator+ () const |
Operator+. | |
template<typename t > | |
CImg< T > & | operator+= (const t val) |
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-. | |
template<typename t > | |
CImg< T > & | operator-= (const t val) |
Operator-=. | |
template<typename t > | |
CImg< T > & | operator-= (const CImg< t > &img) |
Operator-=. | |
CImg< T > & | operator-- () |
Operator-- (prefix). | |
CImg< T > | operator-- (int) |
Operator-- (postfix). | |
template<typename t > | |
CImg< T > & | operator*= (const t val) |
Operator*=. | |
template<typename t > | |
CImg< T > & | operator*= (const CImg< t > &img) |
Operator*=. | |
template<typename t > | |
CImg< T > & | operator/= (const t val) |
Operator/=. | |
template<typename t > | |
CImg< T > & | operator/= (const CImg< t > &img) |
Operator/=. | |
template<typename t > | |
CImg< typename cimg::superset < T, t >::type > | operator% (const CImg< t > &img) const |
Modulo. | |
CImg< T > | operator% (const T val) const |
Modulo. | |
CImg< T > & | operator%= (const T val) |
In-place modulo. | |
template<typename t > | |
CImg< T > & | operator%= (const CImg< t > &img) |
In-place modulo. | |
template<typename t > | |
CImg< typename cimg::superset < T, t >::type > | operator& (const CImg< t > &img) const |
Bitwise AND. | |
CImg< T > | operator& (const T val) const |
Bitwise AND. | |
template<typename t > | |
CImg< T > & | operator&= (const CImg< t > &img) |
In-place bitwise AND. | |
CImg< T > & | operator&= (const T val) |
In-place bitwise AND. | |
template<typename t > | |
CImg< typename cimg::superset < T, t >::type > | operator| (const CImg< t > &img) const |
Bitwise OR. | |
CImg< T > | operator| (const T val) const |
Bitwise OR. | |
template<typename t > | |
CImg< T > & | operator|= (const CImg< t > &img) |
In-place bitwise OR. | |
CImg< T > & | operator|= (const T val) |
In-place bitwise OR. | |
template<typename t > | |
CImg< typename cimg::superset < T, t >::type > | operator^ (const CImg< t > &img) const |
Bitwise XOR. | |
CImg< T > | operator^ (const T val) const |
Bitwise XOR. | |
template<typename t > | |
CImg< T > & | operator^= (const CImg< t > &img) |
In-place bitwise XOR. | |
CImg< T > & | operator^= (const T val) |
In-place bitwise XOR. | |
CImg< T > | operator~ () const |
Bitwise NOT. | |
CImg< T > & | operator<<= (const int n) |
Bitwise shift. | |
CImg< T > | operator<< (const int n) const |
Bitwise shift. | |
CImg< T > & | operator>>= (const int n) |
Bitwise shift. | |
CImg< T > | operator>> (const int n) const |
Bitwise shift. | |
template<typename t > | |
bool | operator== (const CImg< t > &img) const |
Boolean equality. | |
template<typename t > | |
bool | operator!= (const CImg< t > &img) const |
Boolean difference. | |
template<typename t > | |
CImgList< typename cimg::superset< T, t >::type > | operator<< (const CImg< t > &img) const |
Return a list of two images { *this, img }. | |
template<typename t > | |
CImgList< typename cimg::superset< T, t >::type > | operator<< (const CImgList< t > &list) const |
Return a copy of list , where image *this has been inserted at first position. | |
template<typename t > | |
CImgList< typename cimg::superset< T, t >::type > | operator>> (const CImg< t > &img) const |
Return a list of two images { *this, img }. | |
template<typename t > | |
CImgList< t > & | operator>> (const CImgList< t > &list) const |
Insert an image into the begining of an image list. | |
const CImg< T > & | operator>> (CImgDisplay &disp) const |
Display an image into a CImgDisplay. | |
Usual Mathematics Functions | |
template<typename t > | |
CImg< T > | get_apply (t &func) const |
Apply a R->R function on all pixel values. | |
template<typename t > | |
CImg< T > & | apply (t &func) |
In-place version of the previous function. | |
template<typename t > | |
CImg< typename cimg::superset < T, t >::type > | get_mul (const CImg< t > &img) const |
Pointwise multiplication between two images. | |
template<typename t > | |
CImg< T > & | mul (const CImg< t > &img) |
In-place version of the previous function. | |
template<typename t > | |
CImg< typename cimg::superset < T, t >::type > | get_div (const CImg< t > &img) const |
Pointwise division between two images. | |
template<typename t > | |
CImg< T > & | div (const CImg< t > &img) |
In-place version of the previous function. | |
template<typename t > | |
CImg< typename cimg::superset < T, t >::type > | get_max (const CImg< t > &img) const |
Pointwise max operator between two images. | |
template<typename t > | |
CImg< T > & | max (const CImg< t > &img) |
In-place version of the previous function. | |
CImg< T > | get_max (const T val) const |
Pointwise max operator between an image and a value. | |
CImg< T > & | max (const T val) |
In-place version of the previous function. | |
template<typename t > | |
CImg< typename cimg::superset < T, t >::type > | get_min (const CImg< t > &img) const |
Pointwise min operator between two images. | |
template<typename t > | |
CImg< T > & | min (const CImg< t > &img) |
In-place version of the previous function. | |
CImg< T > | get_min (const T val) const |
Pointwise min operator between an image and a value. | |
CImg< T > & | min (const T val) |
In-place version of the previous function. | |
CImg< typename cimg::last< T, double >::type > | get_stats () const |
Compute a statistics vector (min,max,mean,variance,offmin,offmax). | |
CImg< T > & | stats () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_sqr () const |
Compute the square of each pixel value. | |
CImg< T > & | sqr () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_sqrt () const |
Compute the square root of each pixel value. | |
CImg< T > & | sqrt () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_exp () const |
Compute the exponential of each pixel value. | |
CImg< T > & | exp () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_log () const |
Compute the log of each each pixel value. | |
CImg< T > & | log () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_log10 () const |
Compute the log10 of each each pixel value. | |
CImg< T > & | log10 () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_pow (const double p) const |
Compute the power by p of each pixel value. | |
CImg< T > & | pow (const double p) |
In-place version of the previous function. | |
template<typename t > | |
CImg< typename cimg::superset < T, float >::type > | get_pow (const CImg< t > &img) const |
Compute the power of each pixel value. | |
template<typename t > | |
CImg< T > & | pow (const CImg< t > &img) |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_abs () const |
Compute the absolute value of each pixel value. | |
CImg< T > & | abs () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_cos () const |
Compute the cosinus of each pixel value. | |
CImg< T > & | cos () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_sin () const |
Compute the sinus of each pixel value. | |
CImg< T > & | sin () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_tan () const |
Compute the tangent of each pixel. | |
CImg< T > & | tan () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_acos () const |
Compute the arc-cosine of each pixel value. | |
CImg< T > & | acos () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_asin () const |
Compute the arc-sinus of each pixel value. | |
CImg< T > & | asin () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_atan () const |
Compute the arc-tangent of each pixel. | |
CImg< T > & | atan () |
In-place version of the previous function. | |
CImg< T > | get_round (const float x, const unsigned int round_type=0) const |
Compute image with rounded pixel values. | |
CImg< T > & | round (const float x, const unsigned int round_type=0) |
In-place version of the previous function. | |
CImg< T > | get_rand (const T val_min, const T val_max) const |
Fill image with random values between specified range. | |
CImg< T > & | rand (const T val_min, const T val_max) |
In-place version of the previous function. | |
Meshes and Triangulations | |
template<typename tp , typename tf > | |
const CImg< T > & | marching_squares (const float isovalue, CImgList< tp > &points, CImgList< tf > &primitives) const |
Get a vectorization of an implicit function defined by the instance image. | |
template<typename tp , typename tf > | |
const CImg< T > & | marching_squares (const float isovalue, const float resx, const float resy, CImgList< tp > &points, CImgList< tf > &primitives) const |
Get a vectorization of an implicit function defined by the instance image. | |
template<typename tp , typename tf > | |
const CImg< T > & | marching_cubes (const float isovalue, CImgList< tp > &points, CImgList< tf > &primitives, const bool invert_faces=false) const |
Get a triangulation of an implicit function defined by the instance image. | |
template<typename tp , typename tf > | |
const CImg< T > & | marching_cubes (const float isovalue, const float resx, const float resy, const float resz, CImgList< tp > &points, CImgList< tf > &primitives, const bool invert_faces=false) const |
Get a triangulation of an implicit function defined by the instance image. | |
Drawing | |
template<typename tc > | |
CImg< T > & | _draw_scanline (const int x0, const int x1, const int y, const tc *const color, const float opacity=1.0f, const float brightness=1.0f, const bool init=false) |
template<typename tc > | |
CImg< T > & | _draw_scanline (const tc *const color, const float opacity=1.0f) |
template<typename tc > | |
CImg< T > & | draw_point (const int x0, const int y0, const tc *const color, const float opacity=1.0f) |
Draw a colored point (pixel) in the instance image. | |
template<typename tc > | |
CImg< T > & | draw_point (const int x0, const int y0, const CImg< tc > &color, const float opacity=1.0f) |
template<typename tc > | |
CImg< T > & | draw_point (const int x0, const int y0, const int z0, const tc *const color, const float opacity=1.0f) |
Draw a colored point (pixel) in the instance image (for volumetric images). | |
template<typename tc > | |
CImg< T > & | draw_point (const int x0, const int y0, const int z0, const CImg< tc > &color, const float opacity=1.0f) |
template<typename t , typename tc > | |
CImg< T > & | _draw_point (const t &points, const tc *const color, const float opacity, const unsigned int W, const unsigned int H) |
template<typename t , typename tc > | |
CImg< T > & | draw_point (const CImgList< t > &points, const tc *const color, const float opacity=1.0f) |
Draw a cloud of colored points in the instance image. | |
template<typename t , typename tc > | |
CImg< T > & | draw_point (const CImgList< t > &points, const CImg< tc > &color, const float opacity=1.0f) |
template<typename t , typename tc > | |
CImg< T > & | draw_point (const CImg< t > &points, const tc *const color, const float opacity=1.0f) |
Draw a cloud of points in the instance image. | |
template<typename t , typename tc > | |
CImg< T > & | draw_point (const CImg< t > &points, const CImg< tc > &color, const float opacity=1.0f) |
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.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
Draw a colored line in the instance image. | |
template<typename tc > | |
CImg< T > & | draw_line (const int x0, const int y0, const int x1, const int y1, const CImg< tc > &color, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
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.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
Draw a colored line in the instance image (for volumetric images). | |
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 CImg< tc > &color, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
template<typename t > | |
CImg< T > & | draw_line (const int x0, const int y0, const int x1, const int y1, const CImg< t > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
Draw a textured line in the instance image. | |
template<typename t > | |
CImg< T > & | draw_line (const int x0, const int y0, const float z0, const int x1, const int y1, const float z1, const CImg< t > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
Draw a textured line in the instance image, with perspective correction. | |
template<typename t , typename tc > | |
CImg< T > & | _draw_line (const t &points, const tc *const color, const float opacity, const unsigned int pattern, const bool init_hatch, const unsigned int W, const unsigned int H) |
template<typename t , typename tc > | |
CImg< T > & | draw_line (const CImgList< t > &points, const tc *const color, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
Draw a set of consecutive colored lines in the instance image. | |
template<typename t , typename tc > | |
CImg< T > & | draw_line (const CImgList< t > &points, const CImg< tc > &color, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
template<typename t , typename tc > | |
CImg< T > & | draw_line (const CImg< t > &points, const tc *const color, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
Draw a set of consecutive colored lines in the instance image. | |
template<typename t , typename tc > | |
CImg< T > & | draw_line (const CImg< t > &points, const CImg< tc > &color, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
template<typename t , typename tc > | |
CImg< T > & | _draw_polygon (const t &points, const tc *const color, const float opacity, const unsigned int N) |
template<typename t , typename tc > | |
CImg< T > & | draw_polygon (const CImgList< t > &points, const tc *const color, const float opacity=1.0f) |
Draw a filled polygon in the instance image. | |
template<typename t , typename tc > | |
CImg< T > & | draw_polygon (const CImgList< t > &points, const CImg< tc > &color, const float opacity=1.0f) |
template<typename t , typename tc > | |
CImg< T > & | draw_polygon (const CImg< t > &points, const tc *const color, const float opacity=1.0f) |
Draw a filled polygon in the instance image. | |
template<typename t , typename tc > | |
CImg< T > & | draw_polygon (const CImg< t > &points, const CImg< tc > &color, const float opacity=1.0f) |
template<typename t , typename tc > | |
CImg< T > & | _draw_polygon (const t &points, const tc *const color, const float opacity, const unsigned int pattern, const unsigned int W, const unsigned int H) |
template<typename t , typename tc > | |
CImg< T > & | draw_polygon (const CImgList< t > &points, const tc *const color, const float opacity, const unsigned int pattern) |
template<typename t , typename tc > | |
CImg< T > & | draw_polygon (const CImgList< t > &points, const CImg< tc > &color, const float opacity, const unsigned int pattern) |
template<typename t , typename tc > | |
CImg< T > & | draw_polygon (const CImg< t > &points, const tc *const color, const float opacity, const unsigned int pattern) |
template<typename t , typename tc > | |
CImg< T > & | draw_polygon (const CImg< t > &points, const CImg< tc > &color, const float opacity, const unsigned int pattern) |
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 precision=4.0f, const float opacity=1.0f, 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 float u0, const float v0, const int x1, const int y1, const float u1, const float v1, const CImg< tc > &color, const float precision=4.0f, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
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 precision=4.0f, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
Draw a cubic spline curve in the instance image (for volumetric images). | |
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 CImg< tc > &color, const float precision=4.0f, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
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 precision=4.0f, const float opacity=1.0f, 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 tp &points, const tt &tangents, const tc *const color, const bool close_set, const float precision, const float opacity, const unsigned int pattern, const bool init_hatch, const unsigned int W, const unsigned int H) |
template<typename tp , typename tc > | |
CImg< T > & | _draw_spline (const tp &points, const tc *const color, const bool close_set, const float precision, const float opacity, const unsigned int pattern, const bool init_hatch, const unsigned int W, const unsigned int H) |
template<typename tp , typename tt , typename tc > | |
CImg< T > & | draw_spline (const CImgList< tp > &points, const CImgList< tt > &tangents, const tc *const color, const bool close_set=false, const float precision=4.0f, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
Draw a set of consecutive colored splines in the instance image. | |
template<typename tp , typename tt , typename tc > | |
CImg< T > & | draw_spline (const CImgList< tp > &points, const CImgList< tt > &tangents, const CImg< tc > &color, const bool close_set=false, const float precision=4.0f, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
template<typename tp , typename tt , typename tc > | |
CImg< T > & | draw_spline (const CImg< tp > &points, const CImg< tt > &tangents, const tc *const color, const bool close_set=false, const float precision=4.0f, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
Draw a set of consecutive colored splines in the instance image. | |
template<typename tp , typename tt , typename tc > | |
CImg< T > & | draw_spline (const CImg< tp > &points, const CImg< tt > &tangents, const CImg< tc > &color, const bool close_set=false, const float precision=4.0f, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
template<typename t , typename tc > | |
CImg< T > & | draw_spline (const CImgList< t > &points, const tc *const color, const bool close_set=false, const float precision=4.0f, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
Draw a set of consecutive colored splines in the instance image. | |
template<typename t , typename tc > | |
CImg< T > & | draw_spline (const CImgList< t > &points, CImg< tc > &color, const bool close_set=false, const float precision=4.0f, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
template<typename t , typename tc > | |
CImg< T > & | draw_spline (const CImg< t > &points, const tc *const color, const bool close_set=false, const float precision=4.0f, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
Draw a set of consecutive colored lines in the instance image. | |
template<typename t , typename tc > | |
CImg< T > & | draw_spline (const CImg< t > &points, const CImg< tc > &color, const bool close_set=false, const float precision=4.0f, const float opacity=1.0f, const unsigned int pattern=~0U, const bool init_hatch=true) |
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 angle=30, const float length=-10, const float opacity=1.0f, const unsigned int pattern=~0U) |
Draw a colored arrow in the instance image. | |
template<typename tc > | |
CImg< T > & | draw_arrow (const int x0, const int y0, const int x1, const int y1, const CImg< tc > &color, const float angle=30, const float length=-10, const float opacity=1.0f, const unsigned int pattern=~0U) |
template<typename t > | |
CImg< T > & | draw_image (const CImg< t > &sprite, const int x0, const int y0=0, const int z0=0, const int v0=0, const float opacity=1.0f) |
Draw a sprite image in the instance image. | |
CImg< T > & | draw_image (const CImg< T > &sprite, const int x0, const int y0=0, const int z0=0, const int v0=0, const float opacity=1.0f) |
template<typename ti , typename tm > | |
CImg< T > & | draw_image (const CImg< ti > &sprite, const CImg< tm > &mask, const int x0, const int y0=0, const int z0=0, const int v0=0, const float mask_valmax=1.0f, const float opacity=1.0f) |
Draw a sprite image in the instance image (masked version). | |
CImg< T > & | draw_rectangle (const int x0, const int y0, const int z0, const int v0, const int x1, const int y1, const int z1, const int v1, const T val, const float opacity=1.0f) |
Draw a 4D filled rectangle in the instance image, at coordinates (x0 ,y0 ,z0 ,v0 )-(x1 ,y1 ,z1 ,v1 ). | |
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.0f) |
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 CImg< tc > &color, const float opacity=1.0f) |
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 z0, const int x1, const int y1, const int z1, const CImg< tc > &color, const float opacity, const unsigned int pattern) |
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.0f) |
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 CImg< tc > &color, const float opacity=1.0f) |
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 tc > | |
CImg< T > & | draw_rectangle (const int x0, const int y0, const int x1, const int y1, const CImg< tc > &color, const float opacity, const unsigned int pattern) |
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 float brightness) |
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.0f) |
Draw a 2D filled colored triangle 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 CImg< tc > &color, const float opacity=1.0f) |
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 (const int x0, const int y0, const int x1, const int y1, const int x2, const int y2, const CImg< tc > &color, const float opacity, const unsigned int pattern) |
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.0f) |
Draw a 2D Gouraud-filled triangle in the instance image, at coordinates (x0 ,y0 )-(x1 ,y1 )-(x2 ,y2 ). | |
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 > &color, const float brightness0, const float brightness1, const float brightness2, const float opacity=1.0f) |
template<typename t > | |
CImg< T > & | draw_triangle (const int x0, const int y0, const int x1, const int y1, const int x2, const int y2, const CImg< t > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const int tx2, const int ty2, const float opacity=1.0f, const float brightness=1.0f) |
Draw a 2D textured triangle in the instance image, at coordinates (x0 ,y0 )-(x1 ,y1 )-(x2 ,y2 ). | |
template<typename t > | |
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< t > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const int tx2, const int ty2, const float opacity=1.0f, const float brightness=1.0f) |
Draw a textured triangle with perspective correction. | |
template<typename tc , typename t > | |
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< t > &light, const int lx0, const int ly0, const int lx1, const int ly1, const int lx2, const int ly2, const float opacity=1.0f) |
Draw a 2D phong-shaded triangle in the instance image, at coordinates (x0 ,y0 )-(x1 ,y1 )-(x2 ,y2 ). | |
template<typename tc , typename t > | |
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 > &color, const CImg< t > &light, const int lx0, const int ly0, const int lx1, const int ly1, const int lx2, const int ly2, const float opacity=1.0f) |
template<typename t > | |
CImg< T > & | draw_triangle (const int x0, const int y0, const int x1, const int y1, const int x2, const int y2, const CImg< t > &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 textured triangle with Gouraud-Shading in the instance image, at coordinates (x0 ,y0 )-(x1 ,y1 )-(x2 ,y2 ). | |
template<typename t > | |
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< t > &texture, const int tx0, const int ty0, const int tx1, const int ty1, const int tx2, const int ty2, const float c0, const float c1, const float c2, const float opacity=1.0f) |
Draw a gouraud + textured triangle with perspective correction. | |
template<typename t , 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< t > &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.0f) |
Draw a phong-shaded 2D textured triangle in the instance image, at coordinates (x0 ,y0 )-(x1 ,y1 )-(x2 ,y2 ). | |
template<typename t , 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< t > &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.0f) |
Draw a phong + textured triangle with perspective correction. | |
template<typename tc > | |
CImg< T > & | _draw_ellipse (const int x0, const int y0, const float r1, const float r2, const float ru, const float rv, const tc *const color, const float opacity, const unsigned int pattern) |
template<typename tc > | |
CImg< T > & | draw_ellipse (const int x0, const int y0, const float r1, const float r2, const float ru, const float rv, const tc *const color, const float opacity, const unsigned int pattern) |
Draw an outlined ellipse. | |
template<typename tc > | |
CImg< T > & | draw_ellipse (const int x0, const int y0, const float r1, const float r2, const float ru, const float rv, const CImg< tc > &color, const float opacity, const unsigned int pattern) |
template<typename tc > | |
CImg< T > & | draw_ellipse (const int x0, const int y0, const float r1, const float r2, const float ru, const float rv, const tc *const color, const float opacity=1.0f) |
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 ru, const float rv, const CImg< tc > &color, const float opacity=1.0f) |
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.0f) |
Draw a filled ellipse on the instance image. | |
template<typename t , typename tc > | |
CImg< T > & | draw_ellipse (const int x0, const int y0, const CImg< t > &tensor, const CImg< tc > &color, const float opacity=1.0f) |
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 on the instance image. | |
template<typename t , typename tc > | |
CImg< T > & | draw_ellipse (const int x0, const int y0, const CImg< t > &tensor, const CImg< tc > &color, const float opacity, const unsigned int pattern) |
template<typename tc > | |
CImg< T > & | draw_circle (const int x0, const int y0, int radius, const tc *const color, const float opacity=1.0f) |
Draw a filled circle on the instance image. | |
template<typename tc > | |
CImg< T > & | draw_circle (const int x0, const int y0, int radius, const CImg< tc > &color, const float opacity=1.0f) |
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_circle (const int x0, const int y0, int radius, const CImg< tc > &color, const float opacity, const unsigned int foo) |
template<typename t > | |
CImg< T > & | draw_text (const char *const text, const int x0, const int y0, const T *const fgcolor, const T *const bgcolor, const CImgList< t > &font, const float opacity=1.0f) |
Draw a text into the instance image. | |
template<typename tc , typename t > | |
CImg< T > & | draw_text (const char *const text, const int x0, const int y0, const CImg< tc > &fgcolor, const CImg< tc > &bgcolor, const CImgList< t > &font, const float opacity=1.0f) |
CImg< T > & | draw_text (const char *const text, const int x0, const int y0, const T *const fgcolor, const T *const bgcolor=0, const unsigned int font_size=11, const float opacity=1.0f) |
Draw a text into the instance image. | |
template<typename tc > | |
CImg< T > & | draw_text (const char *const text, const int x0, const int y0, const CImg< tc > &fgcolor, const CImg< tc > &bgcolor, const unsigned int font_size=11, const float opacity=1.0f) |
CImg< T > & | draw_text (const int x0, const int y0, const T *const fgcolor, const T *const bgcolor, const unsigned int font_size, const float opacity, const char *format,...) |
Draw a text into the instance image. | |
template<typename tc > | |
CImg< T > & | draw_text (const int x0, const int y0, const CImg< tc > &fgcolor, const CImg< tc > &bgcolor, const unsigned int font_size, const float opacity, const char *format,...) |
template<typename t > | |
CImg< T > & | draw_text (const int x0, const int y0, const T *const fgcolor, const T *const bgcolor, const CImgList< t > &font, const float opacity, const char *format,...) |
Draw a text into the instance image. | |
template<typename tc , typename t > | |
CImg< T > & | draw_text (const int x0, const int y0, const CImg< tc > &fgcolor, const CImg< tc > &bgcolor, const CImgList< t > &font, const float opacity, const char *format,...) |
template<typename t1 , typename t2 > | |
CImg< T > & | draw_quiver (const CImg< t1 > &flow, const t2 *const color, const unsigned int sampling=25, const float factor=-20, const int quiver_type=0, const float opacity=1.0f, 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 unsigned int sampling=25, const float factor=-20, const int quiver_type=0, const float opacity=1.0f, const unsigned int pattern=~0U) |
Draw a vector field in the instance image, using a colormap. | |
template<typename t , typename tc > | |
CImg< T > & | draw_graph (const CImg< t > &data, const tc *const color, const unsigned int gtype=1, const double ymin=0, const double ymax=0, const float opacity=1.0f, const unsigned int pattern=~0U) |
Draw a 1D graph on the instance image. | |
template<typename t , typename tc > | |
CImg< T > & | draw_graph (const CImg< t > &data, const CImg< tc > &color, const unsigned int gtype=1, const double ymin=0, const double ymax=0, const float opacity=1.0f, const unsigned int pattern=~0U) |
template<typename t , typename tc > | |
CImg< T > & | draw_axis (const CImg< t > &xvalues, const int y, const tc *const color, const float opacity=1.0f, const unsigned int pattern=~0U) |
Draw a labeled horizontal axis on the instance image. | |
template<typename t , typename tc > | |
CImg< T > & | draw_axis (const CImg< t > &xvalues, const int y, const CImg< tc > &color, const float opacity=1.0f, const unsigned int pattern=~0U) |
template<typename t , typename tc > | |
CImg< T > & | draw_axis (const int x, const CImg< t > &yvalues, const tc *const color, const float opacity=1.0f, const unsigned int pattern=~0U) |
Draw a labeled vertical axis on the instance image. | |
template<typename t , typename tc > | |
CImg< T > & | draw_axis (const int x, const CImg< t > &yvalues, const CImg< tc > &color, const float opacity=1.0f, const unsigned int pattern=~0U) |
template<typename tx , typename ty , typename tc > | |
CImg< T > & | draw_axis (const CImg< tx > &xvalues, const CImg< ty > &yvalues, const tc *const color, const float opacity=1.0f, 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_axis (const CImg< tx > &xvalues, const CImg< ty > &yvalues, const CImg< tc > &color, const float opacity=1.0f, const unsigned int patternx=~0U, const unsigned int patterny=~0U) |
template<typename tc > | |
CImg< T > & | draw_axis (const float x0, const float x1, const float y0, const float y1, const tc *const color, const int subdivisionx=-60, const int subdivisiony=-60, const float precisionx=0, const float precisiony=0, const float opacity=1.0f, 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_axis (const float x0, const float x1, const float y0, const float y1, const CImg< tc > &color, const int subdivisionx=-60, const int subdivisiony=-60, const float precisionx=0, const float precisiony=0, const float opacity=1.0f, const unsigned int patternx=~0U, const unsigned int patterny=~0U) |
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.0f, const unsigned int patternx=~0U, const unsigned int patterny=~0U) |
Draw grid on the instance image. | |
template<typename tx , typename ty , typename tc > | |
CImg< T > & | draw_grid (const CImg< tx > &xvalues, const CImg< ty > &yvalues, const CImg< tc > &color, const float opacity=1.0f, const unsigned int patternx=~0U, const unsigned int patterny=~0U) |
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.0f, const unsigned int patternx=~0U, const unsigned int patterny=~0U) |
Draw grid on the instance image. | |
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 CImg< tc > &color, const float opacity=1.0f, const unsigned int patternx=~0U, const unsigned int patterny=~0U) |
template<typename tc , typename t > | |
CImg< T > & | draw_fill (const int x, const int y, const int z, const tc *const color, CImg< t > ®ion, const float sigma=0, const float opacity=1.0f, const bool high_connexity=false) |
Draw a 3D filled region starting from a point (x ,y ,\ z) in the instance image. | |
template<typename tc , typename t > | |
CImg< T > & | draw_fill (const int x, const int y, const int z, const CImg< tc > &color, CImg< t > ®ion, const float sigma=0, const float opacity=1.0f, const bool high_connexity=false) |
template<typename tc > | |
CImg< T > & | draw_fill (const int x, const int y, const int z, const tc *const color, const float sigma=0, const float opacity=1.0f, 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 CImg< tc > &color, const float sigma=0, const float opacity=1.0f, const bool high_connexity=false) |
template<typename tc > | |
CImg< T > & | draw_fill (const int x, const int y, const tc *const color, const float sigma=0, const float opacity=1.0f, const bool high_connexity=false) |
Draw a 2D filled region starting from a point (x ,y ) in the instance image. | |
template<typename tc > | |
CImg< T > & | draw_fill (const int x, const int y, const CImg< tc > &color, const float sigma=0, const float opacity=1.0f, const bool high_connexity=false) |
CImg< T > & | draw_plasma (const int x0, const int y0, const int x1, const int y1, const double alpha=1.0, const double beta=1.0, const float opacity=1.0f) |
Draw a plasma square in the instance image. | |
CImg< T > & | draw_plasma (const double alpha=1.0, const double beta=1.0, const float opacity=1.0f) |
Draw a plasma in the instance image. | |
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 double z0r=-2, const double z0i=-2, const double z1r=2, const double z1i=2, const unsigned int itermax=255, const bool normalized_iteration=false, const bool julia_set=false, const double paramr=0, const double parami=0, const float opacity=1.0f) |
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 double z0r=-2, const double z0i=-2, const double z1r=2, const double z1i=2, const unsigned int itermax=255, const bool normalized_iteration=false, const bool julia_set=false, const double paramr=0, const double parami=0, const float opacity=1.0f) |
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 double sigma, const tc *const color, const float opacity=1.0f) |
Draw a 1D gaussian function in the instance image. | |
template<typename tc > | |
CImg< T > & | draw_gaussian (const float xc, const double sigma, const CImg< tc > &color, const float opacity=1.0f) |
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.0f) |
Draw an anisotropic 2D 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 CImg< tc > &color, const float opacity=1.0f) |
template<typename tc > | |
CImg< T > & | draw_gaussian (const float xc, const float yc, const float sigma, const tc *const color, const float opacity=1.0f) |
Draw an isotropic 2D gaussian function in the instance image. | |
template<typename tc > | |
CImg< T > & | draw_gaussian (const float xc, const float yc, const float sigma, const CImg< tc > &color, const float opacity=1.0f) |
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.0f) |
Draw an anisotropic 3D gaussian function in the instance image. | |
template<typename t , typename tc > | |
CImg< T > & | draw_gaussian (const float xc, const float yc, const float zc, const CImg< t > &tensor, const CImg< tc > &color, const float opacity=1.0f) |
template<typename tc > | |
CImg< T > & | draw_gaussian (const float xc, const float yc, const float zc, const double sigma, const tc *const color, const float opacity=1.0f) |
Draw an isotropic 3D gaussian function in the instance image. | |
template<typename tc > | |
CImg< T > & | draw_gaussian (const float xc, const float yc, const float zc, const double sigma, const CImg< tc > &color, const float opacity=1.0f) |
template<typename tp , typename tf , typename tc , typename to > | |
CImg< T > & | draw_object3d (const float X, const float Y, const float Z, const CImg< tp > &points, 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) |
Draw a 3D object in the instance image. | |
template<typename tp , typename tf , typename tc , typename to > | |
CImg< T > & | draw_object3d (const float X, const float Y, const float Z, const CImgList< tp > &points, 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) |
Draw a 3D object in the instance image. | |
template<typename tp , typename tf , typename tc , typename to > | |
CImg< T > & | draw_object3d (const float X, const float Y, const float Z, const CImg< tp > &points, 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) |
Draw a 3D object in the instance image. | |
template<typename tp , typename tf , typename tc , typename to > | |
CImg< T > & | draw_object3d (const float X, const float Y, const float Z, const CImgList< tp > &points, 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) |
Draw a 3D object in the instance image. | |
template<typename tp , typename tf , typename tc > | |
CImg< T > & | draw_object3d (const float X, const float Y, const float Z, const tp &points, 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, const float opacity=1.0f) |
Draw a 3D object in the instance image. | |
Image Filtering | |
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 |
Compute the correlation of the instance image by a mask. | |
template<typename t > | |
CImg< T > & | correlate (const CImg< t > &mask, const unsigned int cond=1, const bool weighted_correl=false) |
In-place version of the previous function. | |
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 |
Return the convolution of the image by a mask. | |
template<typename t > | |
CImg< T > & | convolve (const CImg< t > &mask, const unsigned int cond=1, const bool weighted_convol=false) |
In-place version of the previous function. | |
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 |
Return the erosion of the image by a structuring element. | |
template<typename t > | |
CImg< T > & | erode (const CImg< t > &mask, const unsigned int cond=1, const bool weighted_erosion=false) |
In-place version of the previous function. | |
CImg< T > | get_erode (const unsigned int n, const unsigned int cond=1) const |
Erode the image by a square structuring element of size n. | |
CImg< T > & | erode (const unsigned int n, const unsigned int cond=1) |
In-place version of the previous function. | |
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 |
Return the dilatation of the image by a structuring element. | |
template<typename t > | |
CImg< T > & | dilate (const CImg< t > &mask, const unsigned int cond=1, const bool weighted_dilatation=false) |
CImg< T > | get_dilate (const unsigned int n, const unsigned int cond=1) const |
Dilate the image by a square structuring element of size n. | |
CImg< T > & | dilate (const unsigned int n, const unsigned int cond=1) |
In-place version of the previous function. | |
CImg< T > | get_noise (const double sigma=-20, const unsigned int ntype=0) const |
Add noise to the image. | |
CImg< T > & | noise (const double sigma=-20, const unsigned int ntype=0) |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_deriche (const float sigma, const int order=0, const char axe='x', const bool cond=true) const |
Return the result of the Deriche filter. | |
CImg< T > & | deriche (const float sigma, const int order=0, const char axe='x', const bool cond=true) |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_blur (const float sigmax, const float sigmay, const float sigmaz, const bool cond=true) const |
Return a blurred version of the image, using a Canny-Deriche filter. | |
CImg< T > & | blur (const float sigmax, const float sigmay, const float sigmaz, const bool cond=true) |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_blur (const float sigma, const bool cond=true) const |
Return a blurred version of the image, using a Canny-Deriche filter. | |
CImg< T > & | blur (const float sigma, const bool cond=true) |
In-place version of the previous function. | |
template<typename t > | |
CImg< T > | get_blur_anisotropic (const CImg< t > &G, const float amplitude=60.0f, const float dl=0.8f, const float da=30.0f, const float gauss_prec=2.0f, const unsigned int interpolation=0, const bool fast_approx=true) const |
Get a blurred version of an image following a field of diffusion tensors. | |
template<typename t > | |
CImg< T > & | blur_anisotropic (const CImg< t > &G, const float amplitude=60.0f, const float dl=0.8f, const float da=30.0f, const float gauss_prec=2.0f, const unsigned int interpolation=0, const bool fast_approx=true) |
In-place version of the previous function. | |
template<typename tm > | |
CImg< T > | get_blur_anisotropic (const CImg< tm > &mask, const float amplitude, const float sharpness=0.7f, const float anisotropy=0.3f, const float alpha=0.6f, const float sigma=1.1f, const float dl=0.8f, const float da=30.0f, const float gauss_prec=2.0f, const unsigned int interpolation=0, const bool fast_approx=true, const float geom_factor=1.0f) const |
Blur an image in an anisotropic way. | |
template<typename tm > | |
CImg< T > & | blur_anisotropic (const CImg< tm > &mask, const float amplitude, const float sharpness=0.7f, const float anisotropy=0.3f, const float alpha=0.6f, const float sigma=1.1f, const float dl=0.8f, const float da=30.0f, const float gauss_prec=2.0f, const unsigned int interpolation=0, const bool fast_approx=true, const float geom_factor=1.0f) |
In-place version of the previous function. | |
CImg< T > | get_blur_anisotropic (const float amplitude, const float sharpness=0.7f, const float anisotropy=0.3f, const float alpha=0.6f, const float sigma=1.1f, const float dl=0.8f, const float da=30.0f, const float gauss_prec=2.0f, const unsigned int interpolation=0, const bool fast_approx=true, const float geom_factor=1.0f) const |
Blur an image following in an anisotropic way. | |
CImg< T > & | blur_anisotropic (const float amplitude, const float sharpness=0.7f, const float anisotropy=0.3f, const float alpha=0.6f, const float sigma=1.1f, const float dl=0.8f, const float da=30.0f, const float gauss_prec=2.0f, const unsigned int interpolation=0, const bool fast_approx=true, const float geom_factor=1.0f) |
In-place version of the previous function. | |
CImg< T > | get_blur_bilateral (const float sigmax, const float sigmay, const float sigmaz, const float sigmar, const int bgridx, const int bgridy, const int bgridz, const int bgridr, const bool interpolation=true) const |
Blur an image using the bilateral filter. | |
CImg< T > & | blur_bilateral (const float sigmax, const float sigmay, const float sigmaz, const float sigmar, const int bgridx, const int bgridy, const int bgridz, const int bgridr, const bool interpolation=true) |
In-place version of the previous function. | |
CImg< T > | get_blur_bilateral (const float sigmas, const float sigmar, const int bgrids=-33, const int bgridr=32, const bool interpolation=true) const |
Blur an image using the bilateral filter. | |
CImg< T > & | blur_bilateral (const float sigmas, const float sigmar, const int bgrids=-33, const int bgridr=32, const bool interpolation=true) |
In-place version of the previous function. | |
CImg< T > | get_blur_patch (const unsigned int patch_size=3, const float sigma_p=10.0f, const float sigma_s=10.0f, const unsigned int lookup_size=4, const bool fast_approx=true) const |
Blur an image in its patch-based space. | |
CImg< T > & | blur_patch (const unsigned int patch_size=3, const float sigma_p=10.0f, const float sigma_s=10.0f, const unsigned int lookup_size=4, const bool fast_approx=true) |
Blur an image in its patch-based space. | |
CImgList< typename cimg::superset< T, float > ::type > | get_FFT (const char axe, const bool invert=false) const |
Return the Fast Fourier Transform of an image (along a specified axis). | |
CImgList< typename cimg::superset< T, float > ::type > | get_FFT (const bool invert=false) const |
Return the Fast Fourier Transform on an image. | |
CImg< T > | get_blur_median (const unsigned int n=3) |
Apply a median filter. | |
CImg< T > & | blur_median (const unsigned int n=3) |
In-place version of the previous function. | |
CImg< T > | get_sharpen (const float amplitude=50.0f, const float edge=1.0f, const float alpha=0.0f, const float sigma=0.0f) const |
Sharpen image using anisotropic shock filters. | |
CImg< T > & | sharpen (const float amplitude=50.0f, const float edge=1.0f, const float alpha=0.0f, const float sigma=0.0f) |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_haar (const char axis, const bool invert=false, const unsigned int nb_scales=1) const |
Compute the Haar multiscale wavelet transform (monodimensional version). | |
CImg< T > & | haar (const char axis, const bool invert=false, const unsigned int nb_scales=1) |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_haar (const bool invert=false, const unsigned int nb_scales=1) const |
Compute the Haar multiscale wavelet transform. | |
CImg< T > & | haar (const bool invert=false, const unsigned int nb_scales=1) |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_displacement_field (const CImg< T > &target, const float smoothness=0.1f, const float precision=0.1f, const unsigned int nb_scales=0, const unsigned int itermax=10000) const |
Estimate a displacement field between instance image and given target image. | |
CImg< T > & | displacement_field (const CImg< T > &target, const float smooth=0.1f, const float precision=0.1f, const unsigned int nb_scales=0, const unsigned int itermax=10000) |
In-place version of the previous function. | |
Display | |
const CImg< T > & | display (CImgDisplay &disp) const |
Display an image into a CImgDisplay window. | |
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.. | |
CImg< typename cimg::last< T, int >::type > | get_coordinates (const int coords_type, CImgDisplay &disp, unsigned int *const XYZ=0, const unsigned char *const color=0) const |
Simple interface to select shaped from an image. | |
CImg< typename cimg::last< T, int >::type > | get_coordinates (const int coords_type=0, unsigned int *const XYZ=0, const unsigned char *const color=0) const |
High-level interface to select features in images. | |
CImg< T > & | coordinates (const int coords_type=0, unsigned int *const XYZ=0, const unsigned char *const color=0) |
template<typename tp , typename tf , typename tc , typename to > | |
const CImg< T > & | display_object3d (const CImg< tp > &points, const CImgList< tf > &primitives, const CImgList< tc > &colors, const CImgList< to > &opacities, CImgDisplay &disp, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=false, const float focale=500.0f, 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 CImgList< tp > &points, const CImgList< tf > &primitives, const CImgList< tc > &colors, const CImgList< to > &opacities, CImgDisplay &disp, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=false, const float focale=500.0f, 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 CImg< tp > &points, const CImgList< tf > &primitives, const CImgList< tc > &colors, const CImg< to > &opacities, CImgDisplay &disp, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=false, const float focale=500.0f, 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 CImgList< tp > &points, const CImgList< tf > &primitives, const CImgList< tc > &colors, const CImg< to > &opacities, CImgDisplay &disp, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=false, const float focale=500.0f, 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 tp &points, 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=false, const float focale=500.0f, 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 tp &points, 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=false, const float focale=500.0f, const float specular_light=0.2f, const float specular_shine=0.1f, const bool display_axes=true, float *const pose_matrix=0, const float opacity=1.0f) const |
High-level interface for displaying a 3d object. | |
template<typename tp , typename tf , typename tc > | |
const CImg< T > & | display_object3d (const tp &points, const CImgList< tf > &primitives, const CImgList< tc > &colors, CImgDisplay &disp, const bool centering=true, const int render_static=4, const int render_motion=1, const bool double_sided=false, const float focale=500.0f, const float specular_light=0.2f, const float specular_shine=0.1f, const bool display_axes=true, float *const pose_matrix=0, const float opacity=1.0f) const |
High-level interface for displaying a 3d object. | |
Public Attributes | |
unsigned int | width |
Variable representing the width of the instance image (i.e. dimensions along the X-axis). | |
unsigned int | height |
Variable representing the height of the instance image (i.e. dimensions along the Y-axis). | |
unsigned int | depth |
Variable representing the depth of the instance image (i.e. dimensions along the Z-axis). | |
unsigned int | dim |
Variable representing the number of channels of the instance image (i.e. dimensions along the V-axis). | |
bool | is_shared |
Variable telling if pixel buffer of the instance image is shared with another one. | |
T * | data |
Pointer to the first pixel of the pixel buffer. | |
Image Informations | |
| |
unsigned long | size () const |
Return the total number of pixel values in an image. | |
int | dimx () const |
Return the number of columns of the instance image (size along the X-axis, i.e image width). | |
int | dimy () const |
Return the number of rows of the instance image (size along the Y-axis, i.e image height). | |
int | dimz () const |
Return the number of slices of the instance image (size along the Z-axis). | |
int | dimv () const |
Return the number of vector channels of the instance image (size along the V-axis). | |
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. | |
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. | |
template<typename t > | |
bool | is_sameZ (const CImg< t > &img) const |
Return true if images (*this) and img have same depth. | |
template<typename t > | |
bool | is_sameV (const CImg< t > &img) const |
Return true if images (*this) and img have same dim. | |
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. | |
template<typename t > | |
bool | is_sameXZ (const CImg< t > &img) const |
Return true if images have same width and same depth. | |
template<typename t > | |
bool | is_sameXV (const CImg< t > &img) const |
Return true if images have same width and same number of channels. | |
template<typename t > | |
bool | is_sameYZ (const CImg< t > &img) const |
Return true if images have same height and same depth. | |
template<typename t > | |
bool | is_sameYV (const CImg< t > &img) const |
Return true if images have same height and same number of channels. | |
template<typename t > | |
bool | is_sameZV (const CImg< t > &img) const |
Return true if images have same depth and same number of channels. | |
template<typename t > | |
bool | is_sameXYZ (const CImg< t > &img) const |
Return true if images have same width, same height and same depth. | |
template<typename t > | |
bool | is_sameXYV (const CImg< t > &img) const |
Return true if images have same width, same height and same number of channels. | |
template<typename t > | |
bool | is_sameXZV (const CImg< t > &img) const |
Return true if images have same width, same depth and same number of channels. | |
template<typename t > | |
bool | is_sameYZV (const CImg< t > &img) const |
Return true if images have same heigth, same depth and same number of channels. | |
template<typename t > | |
bool | is_sameXYZV (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 | containsXYZV (const int x, const int y=0, const int z=0, const int v=0) const |
Return true if pixel (x,y,z,v) is inside image boundaries. | |
template<typename t > | |
bool | contains (const T &pixel, t &x, t &y, t &z, t &v) const |
Return true if specified pixel is inside image boundaries. If true, returns pixel coordinates in (x,y,z,v). | |
template<typename t > | |
bool | contains (const T &pixel, t &x, t &y, t &z) const |
Return true if specified pixel 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 pixel 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 pixel is inside image boundaries. If true, returns pixel coordinates in (x). | |
bool | contains (const T &pixel) const |
Return true if pixel is inside the image boundaries. | |
template<typename t > | |
bool | is_overlapping (const CImg< t > &img) const |
Return true if the memory buffers of the two images overlaps. | |
bool | is_empty () const |
Return true if current image is empty. | |
operator bool () const | |
Image to boolean conversion. | |
long | offset (const int x, const int y, const int z, const int v) const |
Return the offset of the pixel coordinates (x ,y ,z ,v ) with respect to the data pointer data . | |
long | offset (const int x, const int y, const int z) const |
long | offset (const int x, const int y) const |
long | offset (const int x) const |
T * | ptr (const unsigned int x, const unsigned int y, const unsigned int z, const unsigned int v) |
Return a pointer to the pixel value located at (x ,y ,z ,v ). | |
const T * | ptr (const unsigned int x, const unsigned int y, const unsigned int z, const unsigned int v) const |
T * | ptr (const unsigned int x, const unsigned int y, const unsigned int z) |
const T * | ptr (const unsigned int x, const unsigned int y, const unsigned int z) const |
T * | ptr (const unsigned int x, const unsigned int y) |
const T * | ptr (const unsigned int x, const unsigned int y) const |
T * | ptr (const unsigned int x) |
const T * | ptr (const unsigned int x) const |
T * | ptr () |
const T * | ptr () const |
iterator | begin () |
Return an iterator to the first image pixel. | |
const_iterator | begin () const |
iterator | end () |
Return an iterator to the last image pixel. | |
const_iterator | end () const |
T & | operator() (const unsigned int x, const unsigned int y, const unsigned int z, const unsigned int v) |
Fast access to pixel value for reading or writing. | |
const T & | operator() (const unsigned int x, const unsigned int y, const unsigned int z, const unsigned int v) const |
T & | operator() (const unsigned int x, const unsigned int y, const unsigned int z) |
const T & | operator() (const unsigned int x, const unsigned int y, const unsigned int z) const |
T & | operator() (const unsigned int x, const unsigned int y) |
const T & | operator() (const unsigned int x, const unsigned int y) const |
T & | operator() (const unsigned int x) |
const T & | operator() (const unsigned int x) const |
T & | at (const unsigned int x, const unsigned int y=0, const unsigned int z=0, const unsigned int v=0) |
Return pixel value at a given position. Equivalent to operator(). | |
const T & | at (const unsigned int x, const unsigned int y=0, const unsigned int z=0, const unsigned int v=0) const |
T & | operator[] (const unsigned long off) |
Fast access to pixel value for reading or writing, using an offset to the image pixel. | |
const T & | operator[] (const unsigned long off) const |
T & | back () |
Return a reference to the last image value. | |
const T & | back () const |
T & | front () |
Return a reference to the first image value. | |
const T & | front () const |
T | pix1d (const int x, const int y, const int z, const int v, const T out_val) const |
Read a pixel value with Dirichlet or Neumann boundary conditions. | |
const T & | pix1d (const int x, const int y=0, const int z=0, const int v=0) const |
T | pix2d (const int x, const int y, const int z, const int v, const T out_val) const |
Read a pixel value with Dirichlet or Neumann boundary conditions for the two first coordinates (x ,y ). | |
const T & | pix2d (const int x, const int y, const int z=0, const int v=0) const |
T | pix3d (const int x, const int y, const int z, const int v, const T out_val) const |
Read a pixel value with Dirichlet or Neumann boundary conditions for the three first coordinates (x ,y ,z ). | |
const T & | pix3d (const int x, const int y, const int z, const int v=0) const |
T | pix4d (const int x, const int y, const int z, const int v, const T out_val) const |
Read a pixel value with Dirichlet or Neumann boundary conditions. | |
T | pix4d (const int x, const int y, const int z, const int v) const |
cimg::superset< T, float >::type | linear_pix1d (const float fx, const int y, const int z, const int v, const T out_val) const |
Read a pixel value using linear interpolation for the first coordinate cx . | |
cimg::superset< T, float >::type | linear_pix1d (const float fx, const int y=0, const int z=0, const int v=0) const |
cimg::superset< T, float >::type | linear_pix2d (const float fx, const float fy, const int z, const int v, const T out_val) const |
Read a pixel value using linear interpolation for the two first coordinates (cx ,cy ). | |
cimg::superset< T, float >::type | linear_pix2d (const float fx, const float fy, const int z=0, const int v=0) const |
cimg::superset< T, float >::type | linear_pix3d (const float fx, const float fy, const float fz, const int v, const T out_val) const |
Read a pixel value using linear interpolation for the three first coordinates (cx ,cy ,cz ). | |
cimg::superset< T, float >::type | linear_pix3d (const float fx, const float fy=0, const float fz=0, const int v=0) const |
cimg::superset< T, float >::type | linear_pix4d (const float fx, const float fy, const float fz, const float fv, const T out_val) const |
Read a pixel value using linear interpolation. | |
cimg::superset< T, float >::type | linear_pix4d (const float fx, const float fy=0, const float fz=0, const float fv=0) const |
cimg::superset< T, float >::type | cubic_pix1d (const float fx, const int y, const int z, const int v, const T out_val) const |
Read a pixel value using cubic interpolation for the first coordinate cx . | |
cimg::superset< T, float >::type | cubic_pix1d (const float fx, const int y=0, const int z=0, const int v=0) const |
cimg::superset< T, float >::type | cubic_pix2d (const float fx, const float fy, const int z, const int v, const T out_val) const |
Read a pixel value using bicubic interpolation. | |
cimg::superset< T, float >::type | cubic_pix2d (const float fx, const float fy, const int z=0, const int v=0) const |
const T & | max () const |
Return a reference to the maximum pixel value of the instance image. | |
T & | max () |
Return a reference to the maximum pixel value of the instance image. | |
const T & | min () const |
Return a reference to the minimum pixel value of the instance image. | |
T & | min () |
Return a reference to the minimum pixel value of the instance image. | |
template<typename t > | |
const T & | minmax (t &max_val) const |
Return a reference to the minimum pixel value and return also the maximum pixel value. | |
template<typename t > | |
T & | minmax (t &max_val) |
Return a reference to the minimum pixel value and return also the maximum pixel value. | |
template<typename t > | |
const T & | maxmin (t &min_val) const |
Return a reference to the maximum pixel value and return also the minimum pixel value. | |
template<typename t > | |
T & | maxmin (t &min_val) |
Return a reference to the maximum pixel value and return also the minimum pixel value. | |
double | mean () const |
Return the mean pixel value of the instance image. | |
template<typename t > | |
double | variancemean (const unsigned int variance_method, t &mean) const |
Return the variance and the mean of the image. | |
double | variance (const unsigned int variance_method=0) const |
Return the variance and the mean of the image. | |
template<typename t > | |
double | MSE (const CImg< t > &img) const |
Compute the MSE (Mean-Squared Error) between two images. | |
template<typename t > | |
double | PSNR (const CImg< t > &img, const double valmax=255.0) const |
Compute the PSNR between two images. | |
double | trace () const |
Return the trace of the current matrix. | |
T | median () const |
Return the median of the image. | |
template<typename t > | |
double | dot (const CImg< t > &img) const |
Return the dot product of the current vector/matrix with the vector/matrix img . | |
double | det () const |
Return the determinant of the current matrix. | |
double | norm (const int norm_type=2) const |
Return the norm of the current vector/matrix. ntype = norm type (0=L2, 1=L1, -1=Linf). | |
double | sum () const |
Return the sum of all the pixel values in an image. | |
const T | kth_smallest (const unsigned int k) const |
Return the kth smallest element of the image. | |
const CImg< T > & | print (const char *title=0, const bool display_stats=true) const |
Display informations about the image on the standard error output. | |
static const char * | pixel_type () |
Return the type of the pixel values. | |
Usual Image Transformations | |
| |
CImg< T > | get_fill (const T val) const |
Fill an image by a value val . | |
CImg< T > & | fill (const T val) |
In-place version of the previous function. | |
CImg< T > | get_fill (const T val0, const T val1) const |
Fill sequentially all pixel values with values val0 and val1 respectively. | |
CImg< T > & | fill (const T val0, const T val1) |
In-place version of the previous function. | |
CImg< T > | get_fill (const T val0, const T val1, const T val2) const |
Fill sequentially all pixel values with values val0 and val1 and val2. | |
CImg< T > & | fill (const T val0, const T val1, const T val2) |
In-place version of the previous function. | |
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3) const |
Fill sequentially all pixel values with values val0 and val1 and val2 and val3. | |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3) |
In-place version of the previous function. | |
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4) const |
Fill sequentially all pixel values with values val0 and val1 and val2 and val3 and val4. | |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4) |
In-place version of the previous function. | |
CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5) const |
Fill sequentially all pixel values with values val0 and val1 and val2 and val3 and val4 and val5. | |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5) |
In-place version of the previous function. | |
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 |
Fill sequentially pixel values. | |
CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6) |
In-place version of the previous function. | |
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 |
Fill sequentially pixel values. | |
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) |
In-place version of the previous function. | |
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 |
Fill sequentially pixel values. | |
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) |
In-place version of the previous function. | |
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 |
Fill sequentially pixel values. | |
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) |
In-place version of the previous function. | |
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 |
Fill sequentially pixel values. | |
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) |
In-place version of the previous function. | |
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 |
Fill sequentially pixel values. | |
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) |
In-place version of the previous function. | |
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 |
Fill sequentially pixel values. | |
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) |
In-place version of the previous function. | |
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 |
Fill sequentially pixel values. | |
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) |
In-place version of the previous function. | |
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 |
Fill sequentially pixel values. | |
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) |
In-place version of the previous function. | |
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 |
Fill sequentially pixel values. | |
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) |
In-place version of the previous function. | |
template<int N> | |
CImg< T > | get_fill (const int val0,...) const |
Fill sequentially pixel values. | |
template<int N> | |
CImg< T > & | fill (const int val0,...) |
In-place version of the previous function. | |
template<int N> | |
CImg< T > | get_fill (const double val0,...) const |
Fill sequentially pixel values. | |
template<int N> | |
CImg< T > & | fill (const double val0,...) |
In-place version of the previous function. | |
template<int N, typename t > | |
CImg< T > & | _fill (const t val0, va_list &ap) |
CImg< T > & | fill (const char *const values, const bool repeat_pattern) |
Fill image values according to the values found in the specified string. | |
CImg< T > & | fillV (const unsigned int x, const unsigned int y, const unsigned int z, const int a0,...) |
Fill image values along the V-axis at the specified pixel position (x,y,z) (int version). | |
CImg< T > & | fillV (const unsigned int x, const unsigned int y, const unsigned int z, const double a0,...) |
Fill image values along the V-axis at the specified pixel position (x,y,z) (double version). | |
CImg< T > & | fillZV (const unsigned int x, const unsigned int y, const int a0,...) |
Fill image values along the ZV-axes at the specified pixel position (x,y) (int version). | |
CImg< T > & | fillZV (const unsigned int x, const unsigned int y, const double a0,...) |
Fill image values along the ZV-axes at the specified pixel position (x,y) (double version). | |
CImg< T > & | fillYZV (const unsigned int x, const int a0,...) |
Fill image values along the YZV-axes at the specified pixel position x (int version). | |
CImg< T > & | fillYZV (const unsigned int x, const double a0,...) |
Fill image values along the YZV-axes at the specified pixel position x (double version). | |
CImg< T > | get_normalize (const T a, const T b) const |
Linear normalization of the pixel values between a and b. | |
CImg< T > & | normalize (const T a, const T b) |
In-place version of the previous function. | |
CImg< T > | get_cut (const T a, const T b) const |
Cut pixel values between a and b. | |
CImg< T > & | cut (const T a, const T b) |
In-place version of the previous function. | |
CImg< T > | get_quantize (const unsigned int n=256, const bool keep_range=true) const |
Quantize pixel values into levels. | |
CImg< T > & | quantize (const unsigned int n=256, const bool keep_range=true) |
In-place version of the previous function. | |
CImg< T > | get_threshold (const T thres) const |
Threshold the image. | |
CImg< T > & | threshold (const T thres) |
In-place version of the previous function. | |
CImg< T > | get_rotate (const float angle, const unsigned int cond=3) const |
Return a rotated image. | |
CImg< T > & | rotate (const float angle, const unsigned int cond=3) |
In-place version of the previous function. | |
CImg< T > | get_rotate (const float angle, const float cx, const float cy, const float zoom=1, const unsigned int cond=3) const |
Return a rotated image around the point (cx ,cy ). | |
CImg< T > & | rotate (const float angle, const float cx, const float cy, const float zoom=1, const unsigned int cond=3) |
In-place version of the previous function. | |
CImg< T > | get_resize (const int pdx=-100, const int pdy=-100, const int pdz=-100, const int pdv=-100, const int interp=1, const int border_condition=-1, const bool center=false) const |
Return a resized image. | |
CImg< T > & | resize (const int pdx=-100, const int pdy=-100, const int pdz=-100, const int pdv=-100, const int interp=1, const int border_condition=-1, const bool center=false) |
In-place version of the previous function. | |
template<typename t > | |
CImg< T > | get_resize (const CImg< t > &src, const int interp=1, const int border_condition=-1, const bool center=false) const |
Return a resized image. | |
template<typename t > | |
CImg< T > & | resize (const CImg< t > &src, const int interp=1, const int border_condition=-1, const bool center=false) |
In-place version of the previous function. | |
CImg< T > | get_resize (const CImgDisplay &disp, const int interp=1, const int border_condition=-1, const bool center=false) const |
Return a resized image. | |
CImg< T > & | resize (const CImgDisplay &disp, const int interp=1, const int border_condition=-1, const bool center=false) |
In-place version of the previous function. | |
CImg< T > | get_resize_halfXY () const |
Return an half-resized image, using a special filter. | |
CImg< T > & | resize_halfXY () |
In-place version of the previous function. | |
CImg< T > | get_resize_doubleXY () const |
Upscale an image by a factor 2x. | |
CImg< T > & | resize_doubleXY () |
In-place version of the previous function. | |
CImg< T > | get_resize_tripleXY () const |
Upscale an image by a factor 3x. | |
CImg< T > & | resize_tripleXY () |
In-place version of the previous function. | |
template<typename t > | |
CImg< t > | get_permute_axes (const char *permut, const t &) const |
Permute axes order. | |
CImg< T > | get_permute_axes (const char *permut="vxyz") const |
Permute axes order. | |
CImg< T > & | permute_axes (const char *order="vxyz") |
In-place version of the previous function. | |
CImg< T > | get_mirror (const char axe='x') const |
Mirror an image along the specified axis. | |
CImg< T > & | mirror (const char axe='x') |
In-place version of the previous function. | |
CImg< T > | get_translate (const int deltax, const int deltay=0, const int deltaz=0, const int deltav=0, const int border_condition=0) const |
Translate the image. | |
CImg< T > & | translate (const int deltax, const int deltay=0, const int deltaz=0, const int deltav=0, const int border_condition=0) |
In-place version of the previous function. | |
CImg< T > | get_crop (const int x0, const int y0, const int z0, const int v0, const int x1, const int y1, const int z1, const int v1, const bool border_condition=false) const |
Return a square region of the image, as a new image. | |
CImg< T > & | crop (const int x0, const int y0, const int z0, const int v0, const int x1, const int y1, const int z1, const int v1, const bool border_condition=false) |
In-place version of the previous function. | |
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 |
Return a square region of the image, as a new image. | |
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) |
In-place version of the previous function. | |
CImg< T > | get_crop (const int x0, const int y0, const int x1, const int y1, const bool border_condition=false) const |
Return a square region of the image, as a new image. | |
CImg< T > & | crop (const int x0, const int y0, const int x1, const int y1, const bool border_condition=false) |
In-place version of the previous function. | |
CImg< T > | get_crop (const int x0, const int x1, const bool border_condition=false) const |
Return a square region of the image, as a new image. | |
CImg< T > & | crop (const int x0, const int x1, const bool border_condition=false) |
In-place version of the previous function. | |
CImg< T > | get_columns (const unsigned int x0, const unsigned int x1) const |
Return a set of columns. | |
CImg< T > & | columns (const unsigned int x0, const unsigned int x1) |
In-place version of the previous function. | |
CImg< T > | get_column (const unsigned int x0) const |
Return one column. | |
CImg< T > & | column (const unsigned int x0) |
In-place version of the previous function. | |
CImg< T > | get_lines (const unsigned int y0, const unsigned int y1) const |
Get a copy of a set of lines of the instance image. | |
CImg< T > & | lines (const unsigned int y0, const unsigned int y1) |
In-place version of the previous function. | |
CImg< T > | get_line (const unsigned int y0) const |
Get a copy of a line of the instance image. | |
CImg< T > & | line (const unsigned int y0) |
In-place version of the previous function. | |
CImg< T > | get_slices (const unsigned int z0, const unsigned int z1) const |
Get a set of slices. | |
CImg< T > & | slices (const unsigned int z0, const unsigned int z1) |
In-place version of the previous function. | |
CImg< T > | get_slice (const unsigned int z0) const |
Get the z-slice z of *this, as a new image. | |
CImg< T > & | slice (const unsigned int z0) |
In-place version of the previous function. | |
CImg< T > | get_channels (const unsigned int v0, const unsigned int v1) const |
Return a copy of a set of channels of the instance image. | |
CImg< T > & | channels (const unsigned int v0, const unsigned int v1) |
In-place version of the previous function. | |
CImg< T > | get_channel (const unsigned int v0) const |
Return a copy of a channel of the instance image. | |
CImg< T > & | channel (const unsigned int v0) |
In-place version of the previous function. | |
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 v0=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 v0=0) const |
Get a shared-memory image referencing a set of points of the instance image (const version). | |
CImg< T > | get_shared_lines (const unsigned int y0, const unsigned int y1, const unsigned int z0=0, const unsigned int v0=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 v0=0) const |
Return a shared-memory image referencing a set of lines of the instance image (const version). | |
CImg< T > | get_shared_line (const unsigned int y0, const unsigned int z0=0, const unsigned int v0=0) |
Return a shared-memory image referencing one particular line (y0,z0,v0) of the instance image. | |
const CImg< T > | get_shared_line (const unsigned int y0, const unsigned int z0=0, const unsigned int v0=0) const |
Return a shared-memory image referencing one particular line (y0,z0,v0) of the instance image (const version). | |
CImg< T > | get_shared_planes (const unsigned int z0, const unsigned int z1, const unsigned int v0=0) |
Return a shared memory image referencing a set of planes (z0->z1,v0) of the instance image. | |
const CImg< T > | get_shared_planes (const unsigned int z0, const unsigned int z1, const unsigned int v0=0) const |
Return a shared-memory image referencing a set of planes (z0->z1,v0) of the instance image (const version). | |
CImg< T > | get_shared_plane (const unsigned int z0, const unsigned int v0=0) |
Return a shared-memory image referencing one plane (z0,v0) of the instance image. | |
const CImg< T > | get_shared_plane (const unsigned int z0, const unsigned int v0=0) const |
Return a shared-memory image referencing one plane (z0,v0) of the instance image (const version). | |
CImg< T > | get_shared_channels (const unsigned int v0, const unsigned int v1) |
Return a shared-memory image referencing a set of channels (v0->v1) of the instance image. | |
const CImg< T > | get_shared_channels (const unsigned int v0, const unsigned int v1) const |
Return a shared-memory image referencing a set of channels (v0->v1) of the instance image (const version). | |
CImg< T > | get_shared_channel (const unsigned int v0) |
Return a shared-memory image referencing one channel v0 of the instance image. | |
const CImg< T > | get_shared_channel (const unsigned int v0) const |
Return a shared-memory image referencing one channel v0 of the instance image (const version). | |
CImg< T > | get_shared () |
Return a shared version of the instance image. | |
const CImg< T > | get_shared () const |
Return a shared version of the instance image (const version). | |
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 |
Return a 2D representation of a 3D image, with three slices. | |
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) |
In-place version of the previous function. | |
CImg< typename cimg::last< T, float >::type > | get_histogram (const unsigned int nblevels=256, const T val_min=(T) 0, const T val_max=(T) 0) const |
Return the image histogram. | |
CImg< T > & | histogram (const unsigned int nblevels=256, const T val_min=(T) 0, const T val_max=(T) 0) |
In-place version of the previous function. | |
CImg< T > | get_equalize_histogram (const unsigned int nblevels=256, const T val_min=(T) 0, const T val_max=(T) 0) const |
Return the histogram-equalized version of the current image. | |
CImg< T > & | equalize_histogram (const unsigned int nblevels=256, const T val_min=(T) 0, const T val_max=(T) 0) |
In-place version of the previous function. | |
CImg< typename cimg::last< T, unsigned int >::type > | get_label_regions () const |
Get a label map of disconnected regions with same intensities. | |
CImg< T > & | label_regions () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_norm_pointwise (int norm_type=2) const |
Return the scalar image of vector norms. | |
CImg< T > & | norm_pointwise (int norm_type=2) |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_orientation_pointwise () const |
Return the image of normalized vectors. | |
CImg< T > & | orientation_pointwise () |
In-place version of the previous function. | |
CImgList< T > | get_split (const char axe='x', const unsigned int nb=0) const |
Split image into a list. | |
CImg< T > | get_append (const CImg< T > &img, const char axis='x', const char align='c') const |
Append an image to another one. | |
CImg< T > & | append (const CImg< T > &img, const char axis='x', const char align='c') |
In-place version of the previous function. | |
CImgList< typename cimg::superset< T, float > ::type > | get_gradientXY (const int scheme=0) const |
Return a list of images, corresponding to the XY-gradients of an image. | |
CImgList< typename cimg::superset< T, float > ::type > | get_gradientXYZ (const int scheme=0) const |
Return a list of images, corresponding to the XYZ-gradients of an image. | |
CImg< typename cimg::superset < T, float >::type > | get_structure_tensorXY (const int scheme=1) const |
Return the 2D structure tensor field of an image. | |
CImg< T > & | structure_tensorXY (const int scheme=1) |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_structure_tensorXYZ (const int scheme=1) const |
Return the 3D structure tensor field of an image. | |
CImg< T > & | structure_tensorXYZ (const int scheme=1) |
In-place version of the previous function. | |
CImgList< typename cimg::superset< T, float > ::type > | get_hessianXY () |
Get components of the 2D Hessian matrix of an image. | |
CImgList< typename cimg::superset< T, float > ::type > | get_hessianXYZ () |
Get components of the 3D Hessian matrix of an image. | |
CImg< typename cimg::superset < T, float >::type > | get_distance_function (const unsigned int nb_iter=100, const float band_size=0.0f, const float precision=0.5f) const |
Get distance function from 0-valued isophotes by the application of the eikonal equation. | |
CImg< T > & | distance_function (const unsigned int nb_iter=100, const float band_size=0.0f, const float precision=0.5f) |
In-place version of the previous function. | |
template<typename t > | |
CImg< T > | get_dijkstra (const unsigned int starting_node, const unsigned int ending_node, CImg< t > &previous) const |
Return minimal path in a graph, using the Dijkstra algorithm. | |
template<typename t > | |
CImg< T > & | dijkstra (const unsigned int starting_node, const unsigned int ending_node, CImg< t > &previous) |
CImg< typename cimg::superset < T, float >::type > | get_dijkstra (const unsigned int starting_node, const unsigned int ending_node=~0U) const |
Return minimal path in a graph, using the Dijkstra algorithm. | |
CImg< T > & | dijkstra (const unsigned int starting_node, const unsigned int ending_node=~0U) |
template<typename tf , typename t > | |
static CImg< T > | get_dijkstra (const tf &distance, const unsigned int nb_nodes, 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 tf , typename t > | |
static CImg< T > | get_dijkstra (const tf &distance, const unsigned int nb_nodes, const unsigned int starting_node, const unsigned int ending_node=~0U) |
Color conversions | |
| |
template<typename t > | |
CImg< t > | get_RGBtoLUT (const CImg< t > &palette, const bool dithering=true, const bool indexing=false) const |
Convert color pixels from (R,G,B) to match a specified palette. | |
CImg< T > & | RGBtoLUT (const CImg< T > &palette, const bool dithering=true, const bool indexing=false) |
In-place version of the previous function. | |
CImg< T > | get_RGBtoLUT (const bool dithering=true, const bool indexing=false) const |
Convert color pixels from (R,G,B) to match the default 256 colors palette. | |
CImg< T > & | RGBtoLUT (const bool dithering=true, const bool indexing=false) |
In-place version of the previous function. | |
template<typename t > | |
CImg< t > | get_LUTtoRGB (const CImg< t > &palette) const |
Convert an indexed image to a (R,G,B) image using the specified color palette. | |
CImg< T > & | LUTtoRGB (const CImg< T > &palette) |
In-place version of the previous function. | |
CImg< T > | get_LUTtoRGB () const |
Convert an indexed image (with the default palette) to a (R,G,B) image. | |
CImg< T > & | LUTtoRGB () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_RGBtoHSV () const |
Convert color pixels from (R,G,B) to (H,S,V). | |
CImg< T > & | RGBtoHSV () |
In-place version of the previous function. | |
CImg< T > | get_HSVtoRGB () const |
Convert color pixels from (H,S,V) to (R,G,B). | |
CImg< T > & | HSVtoRGB () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_RGBtoHSL () const |
Convert color pixels from (R,G,B) to (H,S,L). | |
CImg< T > & | RGBtoHSL () |
In-place version of the previous function. | |
CImg< T > | get_HSLtoRGB () const |
Convert color pixels from (H,S,L) to (R,G,B). | |
CImg< T > & | HSLtoRGB () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_RGBtoHSI () const |
CImg< T > & | RGBtoHSI () |
In-place version of the previous function. | |
CImg< T > | get_HSItoRGB () const |
CImg< T > & | HSItoRGB () |
In-place version of the previous function. | |
CImg< T > | get_RGBtoYCbCr () const |
Convert color pixels from (R,G,B) to (Y,Cb,Cr)_8 (Thanks to Chen Wang). | |
CImg< T > & | RGBtoYCbCr () |
In-place version of the previous function. | |
CImg< T > | get_YCbCrtoRGB () const |
Convert color pixels from (Y,Cb,Cr)_8 to (R,G,B). | |
CImg< T > & | YCbCrtoRGB () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_RGBtoYUV () const |
Convert color pixels from (R,G,B) to (Y,U,V). | |
CImg< T > & | RGBtoYUV () |
In-place version of the previous function. | |
CImg< T > | get_YUVtoRGB () const |
Convert color pixels from (Y,U,V) to (R,G,B). | |
CImg< T > & | YUVtoRGB () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_RGBtoXYZ () const |
Convert color pixels from (R,G,B) to (X,Y,Z)_709. | |
CImg< T > & | RGBtoXYZ () |
In-place version of the previous function. | |
CImg< T > | get_XYZtoRGB () const |
Convert (X,Y,Z)_709 pixels of a color image into the (R,G,B) color space. | |
CImg< T > & | XYZtoRGB () |
In-place version of the previous function. | |
CImg< T > | get_XYZtoLab () const |
Convert (X,Y,Z)_709 pixels of a color image into the (L*,a*,b*) color space. | |
CImg< T > & | XYZtoLab () |
In-place version of the previous function. | |
CImg< T > | get_LabtoXYZ () const |
Convert (L,a,b) pixels of a color image into the (X,Y,Z) color space. | |
CImg< T > & | LabtoXYZ () |
In-place version of the previous function. | |
CImg< T > | get_XYZtoxyY () const |
Convert (X,Y,Z)_709 pixels of a color image into the (x,y,Y) color space. | |
CImg< T > & | XYZtoxyY () |
In-place version of the previous function. | |
CImg< T > | get_xyYtoXYZ () const |
Convert (x,y,Y) pixels of a color image into the (X,Y,Z)_709 color space. | |
CImg< T > & | xyYtoXYZ () |
In-place version of the previous function. | |
CImg< T > | get_RGBtoLab () const |
Convert a (R,G,B) image to a (L,a,b) one. | |
CImg< T > & | RGBtoLab () |
In-place version of the previous function. | |
CImg< T > | get_LabtoRGB () const |
Convert a (L,a,b) image to a (R,G,B) one. | |
CImg< T > & | LabtoRGB () |
In-place version of the previous function. | |
CImg< T > | get_RGBtoxyY () const |
Convert a (R,G,B) image to a (x,y,Y) one. | |
CImg< T > & | RGBtoxyY () |
In-place version of the previous function. | |
CImg< T > | get_xyYtoRGB () const |
Convert a (x,y,Y) image to a (R,G,B) one. | |
CImg< T > & | xyYtoRGB () |
In-place version of the previous function. | |
CImg< T > | get_RGBtoBayer () const |
Convert a (R,G,B) image to a Bayer-coded representation. | |
CImg< T > & | RGBtoBayer () |
CImg< T > | get_BayertoRGB (const unsigned int interpolation_type=3) const |
Convert a Bayer-coded image to a (R,G,B) color image. | |
CImg< T > & | BayertoRGB (const unsigned int interpolation_type=3) |
static CImg< T > | get_default_LUT8 () |
Return the default 256 colors palette. | |
static CImg< T > | get_rainbow_LUT8 () |
Return a rainbow-palette. | |
static CImg< T > | get_cluster_LUT8 () |
Return contrasted palette optmized for cluster visualization. | |
Matrix and Vectors | |
| |
CImg< T > | get_vector_at (const unsigned int x=0, 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. | |
template<typename t > | |
CImg< T > & | set_vector_at (const CImg< t > &vec, const unsigned int x=0, 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. | |
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. | |
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. | |
CImg< T > | get_tensor_at (const unsigned int x=0, 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_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 > | get_vector () const |
Unroll all images values into a one-column vector. | |
CImg< T > & | vector () |
In-place version of the previous function. | |
CImg< T > | get_matrix () const |
Realign pixel values of the instance image as a square matrix. | |
CImg< T > & | matrix () |
In-place version of the previous function. | |
CImg< T > | get_tensor () const |
Realign pixel values of the instance image as a symmetric tensor. | |
CImg< T > & | tensor () |
In-place version of the previous function. | |
CImg< T > | get_unroll (const char axe='x') const |
Unroll all images values into specified axis. | |
CImg< T > & | unroll (const char axe='x') |
In-place version of the previous function. | |
CImg< T > | get_diagonal () const |
Get a diagonal matrix, whose diagonal coefficients are the coefficients of the input image. | |
CImg< T > & | diagonal () |
In-place version of the previous function. | |
CImg< T > | get_identity_matrix () const |
Get an identity matrix having same dimension than instance image. | |
CImg< T > & | identity_matrix () |
In-place version of the previous function. | |
CImg< T > | get_sequence (const T a0, const T a1) const |
Return a N-numbered sequence vector from a0 to a1 . | |
CImg< T > & | sequence (const T a0, const T a1) |
In-place version of the previous function. | |
CImg< T > | get_transpose () const |
Return the transpose version of the current matrix. | |
CImg< T > & | transpose () |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_invert (const bool use_LU=true) const |
Return the inverse of the current matrix. | |
CImg< T > & | invert (const bool use_LU=true) |
In-place version of the previous function. | |
CImg< typename cimg::superset < T, float >::type > | get_pseudoinvert () const |
Return the pseudo-inverse (Moore-Penrose) of the matrix. | |
CImg< T > & | pseudoinvert () |
In-place version of the previous function. | |
template<typename t > | |
CImg< typename cimg::superset < T, t >::type > | get_cross (const CImg< t > &img) const |
Compute the cross product between two 3d vectors. | |
template<typename t > | |
CImg< T > & | cross (const CImg< t > &img) |
In-place version of the previous function. | |
template<typename t > | |
CImg< typename cimg::superset2 < T, t, float >::type > | get_solve (const CImg< t > &A) const |
Solve a linear system AX=B where B=*this. | |
template<typename t > | |
CImg< T > & | solve (const CImg< t > &A) |
In-place version of the previous function. | |
template<typename t , typename ti > | |
CImg< T > & | _solve (const CImg< t > &A, const CImg< ti > &indx) |
template<typename t > | |
CImg< T > | get_sort (CImg< t > &permutations, const bool increasing=true) const |
Sort values of a vector and get permutations. | |
template<typename t > | |
CImg< T > & | sort (CImg< t > &permutations, const bool increasing=true) |
In-place version of the previous function. | |
CImg< T > | get_sort (const bool increasing=true) const |
CImg< T > & | sort (const bool increasing=true) |
In-place version of the previous function. | |
template<typename t > | |
CImg< T > & | _quicksort (const int min, const int max, CImg< t > &permutations, const bool increasing) |
template<typename t > | |
CImg< T > | get_permute (const CImg< t > &permutation) const |
Get a permutation of the pixels. | |
template<typename t > | |
CImg< T > & | permute (const CImg< t > &permutation) |
In-place version of the previous function. | |
template<typename t > | |
const CImg< T > & | SVD (CImg< t > &U, CImg< t > &S, CImg< t > &V, const bool sorting=true, const unsigned int max_iter=40, const float lambda=0) const |
Compute the SVD of a general matrix. | |
template<typename t > | |
const CImg< T > & | SVD (CImgList< t > &USV) const |
Compute the SVD of a general matrix. | |
CImgList< typename cimg::superset< T, float > ::type > | get_SVD (const bool sorting=true) const |
Compute the SVD of a general matrix. | |
template<typename t > | |
CImg< T > & | _LU (CImg< t > &indx, bool &d) |
CImgList< typename cimg::superset< T, float > ::type > | get_eigen () const |
Return the eigenvalues and eigenvectors of a matrix. | |
template<typename t > | |
const CImg< T > & | eigen (CImg< t > &val, CImg< t > &vec) const |
Compute the eigenvalues and eigenvectors of a matrix. | |
CImgList< typename cimg::superset< T, float > ::type > | get_symmetric_eigen () const |
Compute the eigenvalues and eigenvectors of a symmetric matrix. | |
template<typename t > | |
const CImg< T > & | symmetric_eigen (CImg< t > &val, CImg< t > &vec) const |
Compute the eigenvalues and eigenvectors of a symmetric matrix. | |
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. | |
template<int N> | |
static CImg< T > | vector (const int a0, const int a1,...) |
Return a vector with specified coefficients. | |
template<int N> | |
static CImg< T > | vector (const double a0, const double a1,...) |
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. | |
template<int M, int N> | |
static CImg< T > | matrix (const int a0, const int a1,...) |
Return a MxN square matrix with specified coefficients. | |
template<int M, int N> | |
static CImg< T > | matrix (const double a0, const double a1,...) |
Return a NxN 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. | |
template<int N> | |
static CImg< T > | diagonal (const int a0,...) |
Return a NxN diagonal matrix with specified coefficients. | |
template<int N> | |
static CImg< T > | diagonal (const double a0,...) |
Return a NxN 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. | |
Input-Output | |
| |
CImg< T > & | load (const char *const filename) |
CImg< T > & | load_ascii (std::FILE *const file, const char *const filename=0) |
CImg< T > & | load_ascii (const char *const filename) |
CImg< T > & | load_dlm (std::FILE *const file, const char *const filename=0) |
CImg< T > & | load_dlm (const char *const filename) |
CImg< T > & | load_pnm (std::FILE *const file, const char *const filename=0) |
CImg< T > & | load_pnm (const char *const filename) |
CImg< T > & | load_bmp (std::FILE *const file, const char *const filename=0) |
CImg< T > & | load_bmp (const char *const filename) |
CImg< T > & | load_png (std::FILE *const file, const char *const filename=0) |
CImg< T > & | load_png (const char *const filename) |
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) |
CImg< T > & | load_jpeg (std::FILE *const file, const char *const filename=0) |
CImg< T > & | load_jpeg (const char *const filename) |
CImg< T > & | load_magick (const char *const filename) |
CImg< T > & | load_raw (std::FILE *const file, 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 endian_swap=false) |
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 endian_swap=false) |
CImg< T > & | load_rgba (std::FILE *const file, const char *const filename, const unsigned int dimw, const unsigned int dimh) |
In-place version of the previous function. | |
CImg< T > & | load_rgba (const char *const filename, const unsigned int dimw, const unsigned int dimh) |
In-place version of the previous function. | |
CImg< T > & | load_rgb (std::FILE *const file, const char *const filename, const unsigned int dimw, const unsigned int dimh) |
In-place version of the previous function. | |
CImg< T > & | load_rgb (const char *const filename, const unsigned int dimw, const unsigned int dimh) |
CImg< T > & | load_inr (std::FILE *const file, const char *const filename=0, float *const voxsize=0) |
In-place version of the previous function. | |
CImg< T > & | load_inr (const char *const filename, float *const voxsize=0) |
CImg< T > & | load_pandore (std::FILE *const file, const char *const filename) |
In-place version of the previous function. | |
CImg< T > & | load_pandore (const char *const filename) |
CImg< T > & | load_analyze (const char *const filename, float *const voxsize=0) |
template<typename tf , typename tc > | |
CImg< T > & | load_off (const char *const filename, CImgList< tf > &primitives, CImgList< tc > &colors, const bool invert_faces=false) |
In-place version of the previous function. | |
CImg< T > & | load_parrec (const char *const filename, const char axis='v', const char align='p') |
In-place version of the previous function. | |
CImg< T > & | load_cimg (std::FILE *const file, const char axis='z', const char align='p') |
In-place version of the previous function. | |
CImg< T > & | load_cimg (const char *const filename, const char axis='z', const char align='p') |
In-place version of the previous function. | |
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 v0, const unsigned int x1, const unsigned int y1, const unsigned int z1, const unsigned int v1, const char axis='z', const char align='p') |
In-place version of the previous function. | |
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 v0, const unsigned int x1, const unsigned int y1, const unsigned int z1, const unsigned int v1, const char axis='z', const char align='p') |
In-place version of the previous function. | |
CImg< T > & | load_yuv (std::FILE *const file, 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') |
In-place version of the previous function. | |
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') |
In-place version of the previous function. | |
CImg< T > & | load_medcon_external (const char *const filename) |
In-place version of the previous function. | |
CImg< T > & | load_imagemagick_external (const char *const filename) |
In-place version of the previous function. | |
CImg< T > & | load_graphicsmagick_external (const char *const filename) |
In-place version of the previous function. | |
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') |
CImg< T > & | load_ffmpeg_external (const char *const filename, const char axis='z', const char align='p') |
In-place version of the previous function. | |
CImg< T > & | load_other (const char *const filename) |
In-place version of the previous function. | |
const CImg< T > & | save (const char *const filename, const int number=-1) const |
Save the image as a file. | |
const CImg< T > & | save_ascii (std::FILE *const file, const char *const filename=0) const |
Save the image as an ASCII file (ASCII Raw + simple header). | |
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_dlm (std::FILE *const file, const char *const filename=0) const |
Save the image as a DLM file. | |
const CImg< T > & | save_dlm (const char *const filename) const |
Save the image as a DLM file. | |
const CImg< T > & | save_cpp (std::FILE *const file, const char *const filename=0) const |
Save the image as a C or CPP source file. | |
const CImg< T > & | save_cpp (const char *const filename) const |
Save the image as a CPP source file. | |
const CImg< T > & | save_pnm (std::FILE *const file, const char *const filename=0) const |
Save the image as a PNM file. | |
const CImg< T > & | save_pnm (const char *const filename) const |
Save the image as a PNM file. | |
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_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 (std::FILE *const file, const char *const filename=0) const |
Save the image as a .cimg file. | |
const CImg< T > & | save_cimg (const char *const filename) const |
Save the image as a .cimg file. | |
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 v0) const |
Insert the image into an existing .cimg file, at specified coordinates. | |
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 v0) const |
Insert the image into an existing .cimg file, at specified coordinates. | |
const CImg< T > & | save_raw (std::FILE *const file, const char *const filename=0, const bool multiplexed=false) const |
Save the image as a RAW file. | |
const CImg< T > & | save_raw (const char *const filename=0, const bool multiplexed=false) const |
Save the image as a RAW file. | |
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_graphicsmagick_external (const char *const filename, const unsigned int quality=100) const |
Save the image using GraphicsMagick's gm. | |
const CImg< T > & | save_other (const char *const filename, const unsigned int quality=100) const |
const CImg< T > & | save_inr (std::FILE *const file, const char *const filename=0, const float *const voxsize=0) const |
Save the image as an INRIMAGE-4 file. | |
const CImg< T > & | save_inr (const char *const filename, const float *const voxsize=0) const |
Save the image as an INRIMAGE-4 file. | |
unsigned int | _save_pandore_header_length (unsigned int id, unsigned int *dims, const unsigned int colorspace=0) const |
const CImg< T > & | save_pandore (std::FILE *const file, const char *const filename=0, const unsigned int colorspace=0) const |
Save the image as a PANDORE-5 file. | |
const CImg< T > & | save_pandore (const char *const filename=0, const unsigned int colorspace=0) const |
Save the image as a PANDORE-5 file. | |
const CImg< T > & | save_yuv (std::FILE *const file, const char *const filename=0, const bool rgb2yuv=true) const |
Save the image as a YUV video sequence file. | |
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_ffmpeg_external (const char *const filename, const char *const codec="mpeg2video") const |
Save the image as a video sequence file, using the external tool 'ffmpeg'. | |
const CImg< T > & | save_bmp (std::FILE *const file, const char *const filename=0) const |
Save the image as a BMP file. | |
const CImg< T > & | save_bmp (const char *const filename) const |
Save the image as a BMP file. | |
const CImg< T > & | save_png (std::FILE *const file, const char *const filename=0) const |
Save an image to a PNG file. | |
const CImg< T > & | save_png (const char *const filename) const |
Save a file in PNG format. | |
const CImg< T > & | save_tiff (const char *const filename) const |
Save a file in TIFF format. | |
const CImg< T > & | save_jpeg (std::FILE *const file, const char *const filename=0, const unsigned int quality=100) const |
Save a file in JPEG format. | |
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_magick (const char *const filename) const |
Save the image using built-in ImageMagick++ library. | |
const CImg< T > & | save_rgba (std::FILE *const file, const char *const filename=0) const |
Save the image as a RGBA file. | |
const CImg< T > & | save_rgba (const char *const filename) const |
Save the image as a RGBA file. | |
const CImg< T > & | save_rgb (std::FILE *const file, const char *const filename=0) const |
Save the image as a RGB file. | |
const CImg< T > & | save_rgb (const char *const filename) const |
Save the image as a RGB file. | |
template<typename tf , typename tc > | |
const CImg< T > & | save_off (std::FILE *const file, const char *const filename, const CImgList< tf > &primitives, const CImgList< tc > &colors, const bool invert_faces=false) const |
Save OFF files (GeomView 3D object files). | |
template<typename tf , typename tc > | |
const CImg< T > & | save_off (const char *const filename, const CImgList< tf > &primitives, const CImgList< tc > &colors, const bool invert_faces=false) const |
Save OFF files (GeomView 3D object files). | |
static CImg< T > | get_load (const char *const filename) |
Load an image from a file. | |
static CImg< T > | get_load_ascii (std::FILE *const file, const char *const filename=0) |
Load an image from an ASCII file. | |
static CImg< T > | get_load_ascii (const char *const filename) |
Load an image from an ASCII file. | |
static CImg< T > | get_load_dlm (std::FILE *const file, const char *const filename=0) |
Load an image from a DLM file. | |
static CImg< T > | get_load_dlm (const char *const filename) |
Load an image from a DLM file. | |
static CImg< T > | get_load_pnm (std::FILE *const file, const char *const filename=0) |
Load an image from a PNM file. | |
static CImg< T > | get_load_pnm (const char *const filename) |
Load an image from a PNM file. | |
static CImg< T > | get_load_bmp (std::FILE *const file, const char *const filename=0) |
Load an image from a BMP file. | |
static CImg< T > | get_load_bmp (const char *const filename) |
Load an image from a BMP file. | |
static CImg< T > | get_load_png (std::FILE *const file, const char *const filename=0) |
Load an image from a PNG file. | |
static CImg< T > | get_load_png (const char *const filename) |
Load an image from a PNG file. | |
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) |
Load an image from a TIFF file. | |
static CImg< T > | get_load_jpeg (std::FILE *const file, const char *const filename=0) |
Load an image from a JPEG file. | |
static CImg< T > | get_load_jpeg (const char *const filename) |
Load an image from a JPEG file. | |
static CImg< T > | get_load_magick (const char *const filename) |
Load an image using builtin ImageMagick++ Library. | |
static CImg< T > | get_load_raw (std::FILE *const file, 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 endian_swap=false) |
Load an image from a .RAW file. | |
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 endian_swap=false) |
Load an image from a .RAW file. | |
static CImg< T > | get_load_rgba (std::FILE *const file, const char *const filename, const unsigned int dimw, const unsigned int dimh) |
Load an image from a RGBA file. | |
static CImg< T > | get_load_rgba (const char *const filename, const unsigned int dimw, const unsigned int dimh) |
Load an image from a RGBA file. | |
static CImg< T > | get_load_rgb (std::FILE *const file, const char *const filename, const unsigned int dimw, const unsigned int dimh) |
Load an image from a RGB file. | |
static CImg< T > | get_load_rgb (const char *const filename, const unsigned int dimw, const unsigned int dimh) |
Load an image from a RGB file. | |
static CImg< T > | get_load_inr (std::FILE *const file, const char *const filename=0, float *voxsize=0) |
Load an image from an INRIMAGE-4 file. | |
static void | _load_inr (std::FILE *file, int out[8], float *const voxsize=0) |
static CImg< T > | get_load_inr (const char *const filename, float *const voxsize=0) |
Load an image from an INRIMAGE-4 file. | |
static CImg< T > | get_load_pandore (std::FILE *const file, const char *const filename=0) |
Load an image from a PANDORE file. | |
static CImg< T > | get_load_pandore (const char *const filename) |
Load an image from a PANDORE file. | |
static CImg< T > | get_load_analyze (const char *const filename, float *const voxsize=0) |
Load an image from an ANALYZE7.5/NIFTI file. | |
template<typename tf , typename tc > | |
static CImg< T > | get_load_off (const char *const filename, CImgList< tf > &primitives, CImgList< tc > &colors, const bool invert_faces=false) |
Load a 3D object from a .OFF file (GeomView 3D object files). | |
static CImg< T > | get_load_parrec (const char *const filename, const char axis='v', const char align='p') |
Load an image from a PAR-REC (Philips) file. | |
static CImg< T > | get_load_cimg (std::FILE *const file, const char axis='z', const char align='p') |
Load an image (list) from a .cimg file. | |
static CImg< T > | get_load_cimg (const char *const filename, const char axis='z', const char align='p') |
Load an image (list) from a .cimg file. | |
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 v0, const unsigned int x1, const unsigned int y1, const unsigned int z1, const unsigned int v1, const char axis='z', const char align='p') |
Load a sub-image (list) from a .cimg file. | |
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 v0, const unsigned int x1, const unsigned int y1, const unsigned int z1, const unsigned int v1, const char axis='z', const char align='p') |
Load a sub-image (list) from a .cimg file. | |
static CImg< T > | get_load_yuv (std::FILE *const file, 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. | |
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') |
Load an image sequence from a YUV file. | |
static CImg< T > | get_load_medcon_external (const char *const filename) |
Load a DICOM image file, using XMedcon's external tool 'medcon'. | |
static CImg< T > | get_load_imagemagick_external (const char *const filename) |
Load an image using ImageMagick's external tool 'convert'. | |
static CImg< T > | get_load_graphicsmagick_external (const char *const filename) |
Load an image using GraphicsMagick's external tool 'gm'. | |
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') |
Load a video sequence using FFMPEG av's libraries. | |
static CImg< T > | get_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'. | |
static CImg< T > | get_load_other (const char *const filename) |
Load an image using ImageMagick's or GraphicsMagick's executables. | |
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 dv=1) |
Save an empty .cimg file with specified dimensions. | |
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 dv=1) |
Save an empty .cimg file with specified dimensions. | |
static CImg< T > | get_logo40x38 () |
Get a 40x38 color logo of a 'danger' item. |
Class representing an image (up to 4 dimensions wide), each pixel being of type T
.
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.
A CImg image is defined as an instance of the container CImg<T>
, which contains a regular grid of pixels, each pixel value being of type T
. The image grid can have up to 4 dimensions : width, height, depth and number of channels. Usually, the three first dimensions are used to describe spatial coordinates (x,y,z)
, while the number of channels is rather used as a vector-valued dimension (it may describe the R,G,B color channels for instance). If you need a fifth dimension, you can use image lists CImgList<T>
rather than simple images CImg<T>
.
Thus, the CImg<T>
class is able to represent volumetric images of vector-valued pixels, as well as images with less dimensions (1D scalar signal, 2D color images, ...). Most member functions of the class CImg<T>
are designed to handle this maximum case of (3+1) dimensions.
Concerning the pixel value type T
: fully supported template types are the basic C++ types : unsigned char, char, short, unsigned int, int, unsigned long, long, float, double, ...
. Typically, fast image display can be done using CImg<unsigned char>
images, while complex image processing algorithms may be rather coded using CImg<float>
or CImg<double>
images that have floating-point pixel values. The default value for the template T is float
. Using your own template types may be possible. However, you will certainly have to define the complete set of arithmetic and logical operators for your class.
The CImg<T>
structure contains five fields :
T
).You can access these fields publicly although it is recommended to use the dedicated functions dimx(), dimy(), dimz(), dimv() 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 cimg_storage).
Declaring an image can be done by using one of the several available constructors. Here is a list of the most used :
CImg<char> img;
declares an empty image.CImg<unsigned char> img(128,128);
declares a 128x128 greyscale image with unsigned
char
pixel values.CImg<double> img(3,3);
declares a 3x3 matrix with double
coefficients.CImg<unsigned char> img(256,256,1,3);
declares a 256x256x1x3 (color) image (colors are stored as an image with three channels).CImg<double> img(128,128,128);
declares a 128x128x128 volumetric and greyscale image (with double
pixel values).CImg<> img(128,128,128,3);
declares a 128x128x128 volumetric color image (with float
pixels, which is the default value of the template parameter T
).CImg<> img(128,128,128,3,0);
declares a 128x128x128 volumetric color image with all pixel values to 0.CImg<unsigned char> img("image.jpg");
reads a JPEG color image from the file "image.jpg".CImg<float> img("analyze.hdr");
reads a volumetric image (ANALYZE7.5 format) from the file "analyze.hdr".CImg<int> img(data_buffer,256,256);
constructs a 256x256 greyscale image from a int*
buffer data_buffer
(of size 256x256=65536).CImg<unsigned char> img(data_buffer,256,256,1,3,false);
constructs a 256x256 color image from a unsigned
char*
buffer data_buffer
(where R,G,B channels follow each others).CImg<unsigned char> img(data_buffer,256,256,1,3,true);
constructs a 256x256 color image from a unsigned
char*
buffer data_buffer
(where R,G,B channels are multiplexed).The complete list of constructors can be found here.
The CImg<T>
class contains a lot of functions that operates on images. Some of the most useful are :
Definition at line 10221 of file cimg.h.
typedef const T* cimg_library::CImg< T >::const_iterator |
typedef T* cimg_library::CImg< T >::iterator |
typedef T cimg_library::CImg< T >::value_type |
cimg_library::CImg< T >::~CImg | ( | ) | [inline] |
Destructor.
The destructor destroys the instance image.
Definition at line 10352 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::is_shared.
cimg_library::CImg< T >::CImg | ( | ) | [inline] |
Default constructor.
The default constructor creates an empty instance image.
Definition at line 10365 of file cimg.h.
Referenced by cimg_library::CImg< T >::CImg().
cimg_library::CImg< T >::CImg | ( | const unsigned int | dx, | |
const unsigned int | dy = 1 , |
|||
const unsigned int | dz = 1 , |
|||
const unsigned int | dv = 1 | |||
) | [inline, explicit] |
Constructs a new image with given size (dx
,dy
,dz
,dv
).
This constructors create an instance image of size (dx
,dy
,dz
,dv
) with pixels of type T
.
dx | Desired size along the X-axis, i.e. the width of the image. | |
dy | Desired size along the Y-axis, i.e. the height of the image. | |
dz | Desired size along the Z-axis, i.e. the depth of the image. | |
dv | Desired size along the V-axis, i.e. the number of image channels dim. |
dx
,dy
,dz
or dv
is set to 0, the created image is empty and all has its dimensions set to 0. No memory for pixel data is then allocated.Definition at line 10385 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
cimg_library::CImg< T >::CImg | ( | const unsigned int | dx, | |
const unsigned int | dy, | |||
const unsigned int | dz, | |||
const unsigned int | dv, | |||
const T | val | |||
) | [inline] |
Construct an image with given size (dx
,dy
,dz
,dv
) and with pixel having a default value val
.
This constructor creates an instance image of size (dx
,dy
,dz
,dv
) with pixels of type T
and sets all pixel values of the created instance image to val
.
dx | Desired size along the X-axis, i.e. the width of the image. | |
dy | Desired size along the Y-axis, i.e. the height of the image. | |
dz | Desired size along the Z-axis, i.e. the depth of the image. | |
dv | Desired size along the V-axis, i.e. the number of image channels dim . | |
val | Default value for image pixels. |
Definition at line 10405 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
cimg_library::CImg< T >::CImg | ( | const unsigned int | dx, | |
const unsigned int | dy, | |||
const unsigned int | dz, | |||
const unsigned int | dv, | |||
const int | val0, | |||
const int | val1, | |||
... | ||||
) | [inline] |
Construct an image with given size (dx
,dy
,dz
,dv
) and with specified pixel values (int version).
Definition at line 10413 of file cimg.h.
References _CImg_stdarg, and cimg_library::CImg< T >::assign().
cimg_library::CImg< T >::CImg | ( | const unsigned int | dx, | |
const unsigned int | dy, | |||
const unsigned int | dz, | |||
const unsigned int | dv, | |||
const double | val0, | |||
const double | val1, | |||
... | ||||
) | [inline] |
Construct an image with given size (dx
,dy
,dz
,dv
) and with specified pixel values (double version).
Definition at line 10420 of file cimg.h.
References _CImg_stdarg, and cimg_library::CImg< T >::assign().
cimg_library::CImg< T >::CImg | ( | const unsigned int | dx, | |
const unsigned int | dy, | |||
const unsigned int | dz, | |||
const unsigned int | dv, | |||
const char *const | values, | |||
const bool | repeat_pattern | |||
) | [inline] |
Construct an image with given size and with specified values given in a string.
Definition at line 10427 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
cimg_library::CImg< T >::CImg | ( | const t *const | data_buffer, | |
const unsigned int | dx, | |||
const unsigned int | dy = 1 , |
|||
const unsigned int | dz = 1 , |
|||
const unsigned int | dv = 1 , |
|||
const bool | shared = false | |||
) | [inline] |
Construct an image from a raw memory buffer.
This constructor creates an instance image of size (dx
,dy
,dz
,dv
) and fill its pixel buffer by copying data values from the input raw pixel buffer data_buffer
.
Definition at line 10439 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::pixel_type(), cimg_library::shared(), and cimg_library::CImg< T >::width.
cimg_library::CImg< T >::CImg | ( | const T *const | data_buffer, | |
const unsigned int | dx, | |||
const unsigned int | dy = 1 , |
|||
const unsigned int | dz = 1 , |
|||
const unsigned int | dv = 1 , |
|||
const bool | shared = false | |||
) | [inline] |
Definition at line 10451 of file cimg.h.
References cimg_library::CImg< T >::CImg(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_shared, memcpy(), cimg_library::shared(), and cimg_library::CImg< T >::width.
cimg_library::CImg< T >::CImg | ( | const CImg< t > & | img | ) | [inline] |
Default copy constructor.
The default copy constructor creates a new instance image having same dimensions (width, height, depth, dim) and same pixel values as the input image img
.
img | The input image to copy. |
img
is non-shared or have a different template type t
!= T
, the default copy constructor allocates a new pixel buffer and copy the pixel data of img
into it. In this case, the pointers data to the pixel buffers of the two images are different and the resulting instance image is non-shared.img
is shared and has the same template type t
== T
, the default copy constructor does not allocate a new pixel buffer and the resulting instance image shares its pixel buffer with the input image img
, which means that modifying pixels of img
also modifies the created instance image.t
!= T
performs a crude static cast conversion of each pixel value from type t
to type T
.t
== T
is significantly faster. Definition at line 10484 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::height, cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
cimg_library::CImg< T >::CImg | ( | const CImg< T > & | img | ) | [inline] |
Definition at line 10492 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_shared, memcpy(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
cimg_library::CImg< T >::CImg | ( | const CImg< t > & | img, | |
const bool | shared | |||
) | [inline] |
Advanced copy constructor.
The advanced copy constructor - as the default constructor CImg(const CImg< t >&) - creates a new instance image having same dimensions width, height, depth, dim and same pixel values as the input image img
. But it also decides if the created instance image shares its memory with the input image img
(if the input parameter shared
is set to true
) or not (if the input parameter shared
is set to false
).
img | The input image to copy. | |
shared | Boolean flag that decides if the copy is shared on non-shared. |
img
is empty or has a different pixel type t
!= T
.img
is created, a new memory buffer is allocated for pixel data.img
is created, no extra memory is allocated and the pixel buffer of the instance image is the same as the one used by the input image img
. Definition at line 10516 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::height, cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
cimg_library::CImg< T >::CImg | ( | const CImg< T > & | img, | |
const bool | shared | |||
) | [inline] |
Definition at line 10526 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_shared, memcpy(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
cimg_library::CImg< T >::CImg | ( | const CImg< t > & | img, | |
const char *const | dimensions | |||
) | [inline] |
Construct an image using dimensions of another image.
Definition at line 10536 of file cimg.h.
References cimg_library::CImg< T >::assign().
cimg_library::CImg< T >::CImg | ( | const CImg< t > & | img, | |
const char *const | dimensions, | |||
const T | val | |||
) | [inline] |
Construct an image using dimensions of another image, and fill it with a default value.
Definition at line 10541 of file cimg.h.
References cimg_library::CImg< T >::assign().
cimg_library::CImg< T >::CImg | ( | const char *const | filename | ) | [inline] |
Construct an image from an image file.
This constructor creates an instance image by reading it from a file.
filename | Filename of the image file. |
Definition at line 10558 of file cimg.h.
References cimg_library::CImg< T >::assign().
cimg_library::CImg< T >::CImg | ( | const CImgDisplay & | disp | ) | [inline] |
Construct an image from the content of a CImgDisplay instance.
Definition at line 10563 of file cimg.h.
References cimg_library::CImgDisplay::snapshot().
CImg<T>& cimg_library::CImg< T >::_draw_ellipse | ( | const int | x0, | |
const int | y0, | |||
const float | r1, | |||
const float | r2, | |||
const float | ru, | |||
const float | rv, | |||
const tc *const | color, | |||
const float | opacity, | |||
const unsigned int | pattern | |||
) | [inline] |
Definition at line 19341 of file cimg.h.
References cimg_library::CImg< T >::_draw_scanline(), cimg_library::CImg< T >::abs(), b, cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::norm(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::pow(), cimg_library::pow(), and cimg_library::sqrt().
Referenced by cimg_library::CImg< T >::draw_ellipse().
CImg<T>& cimg_library::CImg< T >::_draw_line | ( | const t & | points, | |
const tc *const | color, | |||
const float | opacity, | |||
const unsigned int | pattern, | |||
const bool | init_hatch, | |||
const unsigned int | W, | |||
const unsigned int | H | |||
) | [inline] |
Definition at line 17138 of file cimg.h.
References cimg_library::CImg< T >::draw_line().
Referenced by cimg_library::CImg< T >::draw_line().
CImg<T>& cimg_library::CImg< T >::_draw_point | ( | const t & | points, | |
const tc *const | color, | |||
const float | opacity, | |||
const unsigned int | W, | |||
const unsigned int | H | |||
) | [inline] |
Definition at line 16699 of file cimg.h.
References cimg_library::CImg< T >::draw_point().
Referenced by cimg_library::CImg< T >::draw_point().
CImg<T>& cimg_library::CImg< T >::_draw_polygon | ( | const t & | points, | |
const tc *const | color, | |||
const float | opacity, | |||
const unsigned int | pattern, | |||
const unsigned int | W, | |||
const unsigned int | H | |||
) | [inline] |
Definition at line 17301 of file cimg.h.
References cimg_library::CImg< T >::draw_line().
CImg<T>& cimg_library::CImg< T >::_draw_polygon | ( | const t & | points, | |
const tc *const | color, | |||
const float | opacity, | |||
const unsigned int | N | |||
) | [inline] |
Definition at line 17222 of file cimg.h.
References cimg_library::CImg< T >::_draw_scanline(), cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), p, cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::sort().
Referenced by cimg_library::CImg< T >::draw_polygon().
CImg<T>& cimg_library::CImg< T >::_draw_scanline | ( | const tc *const | color, | |
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 16640 of file cimg.h.
References cimg_library::CImg< T >::_draw_scanline().
CImg<T>& cimg_library::CImg< T >::_draw_scanline | ( | const int | x0, | |
const int | x1, | |||
const int | y, | |||
const tc *const | color, | |||
const float | opacity = 1.0f , |
|||
const float | brightness = 1.0f , |
|||
const bool | init = false | |||
) | [inline] |
Definition at line 16565 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_forV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::max(), cimg_library::cimg::min(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::_draw_ellipse(), cimg_library::CImg< T >::_draw_polygon(), cimg_library::CImg< T >::_draw_scanline(), cimg_library::CImg< T >::_draw_triangle(), and cimg_library::CImg< T >::draw_circle().
CImg<T>& cimg_library::CImg< T >::_draw_spline | ( | const tp & | points, | |
const tc *const | color, | |||
const bool | close_set, | |||
const float | precision, | |||
const float | opacity, | |||
const unsigned int | pattern, | |||
const bool | init_hatch, | |||
const unsigned int | W, | |||
const unsigned int | H | |||
) | [inline] |
Definition at line 17588 of file cimg.h.
References cimg_library::CImg< T >::_draw_spline(), cimg_library::CImg< T >::assign(), p, and cimg_library::sqrt().
CImg<T>& cimg_library::CImg< T >::_draw_spline | ( | const tp & | points, | |
const tt & | tangents, | |||
const tc *const | color, | |||
const bool | close_set, | |||
const float | precision, | |||
const float | opacity, | |||
const unsigned int | pattern, | |||
const bool | init_hatch, | |||
const unsigned int | W, | |||
const unsigned int | H | |||
) | [inline] |
Definition at line 17550 of file cimg.h.
References cimg_library::CImg< T >::draw_spline().
Referenced by cimg_library::CImg< T >::_draw_spline(), and cimg_library::CImg< T >::draw_spline().
CImg<T>& cimg_library::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 float | brightness | |||
) | [inline] |
Definition at line 18375 of file cimg.h.
References _cimg_for_triangle1, cimg_library::CImg< T >::_draw_scanline(), cimg_library::CImg< T >::dimy(), and cimg_library::CImg< T >::swap().
Referenced by cimg_library::CImg< T >::draw_object3d(), and cimg_library::CImg< T >::draw_triangle().
CImg<T>& cimg_library::CImg< T >::_fill | ( | const t | val0, | |
va_list & | ap | |||
) | [inline] |
Definition at line 13311 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::get_fill().
static void cimg_library::CImg< T >::_load_inr | ( | std::FILE * | file, | |
int | out[8], | |||
float *const | voxsize = 0 | |||
) | [inline, static] |
Definition at line 26457 of file cimg.h.
References cimg_library::CImg< T >::pixel_type(), cimg_library::cimg::strncasecmp(), and cimg_library::cimg::strncmp().
Referenced by cimg_library::CImg< T >::load_inr().
CImg<T>& cimg_library::CImg< T >::_LU | ( | CImg< t > & | indx, | |
bool & | d | |||
) | [inline] |
Definition at line 24155 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_library::CImg< T >::assign(), cimg_forX, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::sum(), and cimg_library::CImg< T >::swap().
Referenced by cimg_library::CImg< T >::det(), and cimg_library::CImg< T >::solve().
CImg<T>& cimg_library::CImg< T >::_quicksort | ( | const int | min, | |
const int | max, | |||
CImg< t > & | permutations, | |||
const bool | increasing | |||
) | [inline] |
Definition at line 23910 of file cimg.h.
References cimg_library::CImg< T >::swap().
Referenced by cimg_library::CImg< T >::sort().
unsigned int cimg_library::CImg< T >::_save_pandore_header_length | ( | unsigned int | id, | |
unsigned int * | dims, | |||
const unsigned int | colorspace = 0 | |||
) | const [inline] |
Definition at line 27840 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::_solve | ( | const CImg< t > & | A, | |
const CImg< ti > & | indx | |||
) | [inline] |
Definition at line 23861 of file cimg.h.
References cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::sum().
Referenced by cimg_library::CImg< T >::invert(), and cimg_library::CImg< T >::solve().
CImg<T>& cimg_library::CImg< T >::abs | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 12710 of file cimg.h.
References cimg_for, and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::_draw_ellipse(), cimg_library::CImg< T >::_draw_scanline(), cimg_library::CImg< T >::_LU(), cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::distance_function(), cimg_library::CImg< T >::draw_axis(), cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::draw_gaussian(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_mandelbrot(), cimg_library::CImg< T >::draw_plasma(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_quiver(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::get_abs(), cimg_library::CImg< T >::get_norm_pointwise(), cimg_library::CImg< T >::get_rotate(), cimg_library::CImg< T >::norm(), cimg_library::CImg< T >::sharpen(), cimg_library::CImg< T >::SVD(), cimg_library::CImg< T >::translate(), and cimg_library::CImg< T >::variancemean().
CImg<T>& cimg_library::CImg< T >::acos | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 12758 of file cimg.h.
References cimg_library::acos(), cimg_for, and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::get_acos(), and cimg_library::CImg< T >::RGBtoHSI().
CImg<T>& cimg_library::CImg< T >::append | ( | const CImg< T > & | img, | |
const char | axis = 'x' , |
|||
const char | align = 'c' | |||
) | [inline] |
In-place version of the previous function.
Definition at line 15234 of file cimg.h.
References cimg_library::CImg< T >::get_append(), and cimg_library::CImg< T >::is_empty().
CImg<T>& cimg_library::CImg< T >::apply | ( | t & | func | ) | [inline] |
In-place version of the previous function.
Definition at line 12497 of file cimg.h.
References cimg_for, and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::asin | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 12770 of file cimg.h.
References cimg_library::asin(), cimg_for, and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::get_asin().
CImg<T>& cimg_library::CImg< T >::assign | ( | const CImgDisplay & | disp | ) | [inline] |
In-place version of the previous constructor.
Definition at line 10813 of file cimg.h.
References cimg_library::CImgDisplay::snapshot().
CImg<T>& cimg_library::CImg< T >::assign | ( | const char *const | filename | ) | [inline] |
In-place version of the previous constructor.
This function replaces the instance image by the one that have been read from the given file.
filename | Filename of the image file.
|
Definition at line 10808 of file cimg.h.
References cimg_library::CImg< T >::load().
CImg<T>& cimg_library::CImg< T >::assign | ( | const CImg< t > & | img, | |
const char *const | dimensions, | |||
const T | val | |||
) | [inline] |
In-place version of the previous constructor.
Definition at line 10794 of file cimg.h.
References cimg_library::CImg< T >::assign().
CImg<T>& cimg_library::CImg< T >::assign | ( | const CImg< t > & | img, | |
const char *const | dimensions | |||
) | [inline] |
In-place version of the previous constructor.
Definition at line 10747 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::height, cimg_library::cimg::strlen(), cimg_library::cimg::strncasecmp(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::assign | ( | const CImg< t > & | img, | |
const bool | shared | |||
) | [inline] |
In-place version of the advanced constructor.
This function - as the simpler function assign(const CImg< t >&) - assigns a copy of the input image img
to the current instance image. But it also decides if the copy is shared (if the input parameter shared
is set to true
) or non-shared (if the input parameter shared
is set to false
).
img | The input image to copy. | |
shared | Boolean flag that decides if the copy is shared or non-shared. |
img
is empty or has a different pixel type t
!= T
.img
is assigned, a new memory buffer is allocated for pixel data.img
is assigned, no extra memory is allocated and the pixel buffer of the instance image is the same as the one used by the input image img
. Definition at line 10742 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::assign | ( | const CImg< t > & | img | ) | [inline] |
In-place version of the default copy constructor.
This function assigns a copy of the input image img
to the current instance image.
img | The input image to copy. |
img
is copied into a new buffer becoming the new pixel buffer of the instance image, while the old pixel buffer is freed if necessary.img
is copied into the current (shared) pixel buffer of the instance image, modifying then the image referenced by the shared instance image. The instance image still remains shared. Definition at line 10724 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::assign | ( | const T *const | data_buffer, | |
const unsigned int | dx, | |||
const unsigned int | dy, | |||
const unsigned int | dz, | |||
const unsigned int | dv, | |||
const bool | shared | |||
) | [inline] |
Definition at line 10697 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_shared, cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), cimg_library::cimg::warn(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::assign | ( | const t *const | data_buffer, | |
const unsigned int | dx, | |||
const unsigned int | dy, | |||
const unsigned int | dz, | |||
const unsigned int | dv, | |||
const bool | shared | |||
) | [inline] |
In-place version of the previous constructor, allowing to force the shared state of the instance image.
Definition at line 10690 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::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 | dv = 1 | |||
) | [inline] |
Definition at line 10667 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_shared, memcpy(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::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 | dv = 1 | |||
) | [inline] |
In-place version of the previous constructor.
Definition at line 10657 of file cimg.h.
References cimg_library::CImg< T >::assign(), and cimg_for.
CImg<T>& cimg_library::CImg< T >::assign | ( | const unsigned int | dx, | |
const unsigned int | dy, | |||
const unsigned int | dz, | |||
const unsigned int | dv, | |||
const double | val0, | |||
const double | val1, | |||
... | ||||
) | [inline] |
In-place version of the previous constructor.
Definition at line 10649 of file cimg.h.
References _CImg_stdarg, and cimg_library::CImg< T >::assign().
CImg<T>& cimg_library::CImg< T >::assign | ( | const unsigned int | dx, | |
const unsigned int | dy, | |||
const unsigned int | dz, | |||
const unsigned int | dv, | |||
const int | val0, | |||
const int | val1, | |||
... | ||||
) | [inline] |
In-place version of the previous constructor.
Definition at line 10641 of file cimg.h.
References _CImg_stdarg, and cimg_library::CImg< T >::assign().
CImg<T>& cimg_library::CImg< T >::assign | ( | const unsigned int | dx, | |
const unsigned int | dy, | |||
const unsigned int | dz, | |||
const unsigned int | dv, | |||
const T | val | |||
) | [inline] |
In-place version of the previous constructor.
This function replaces the instance image by a new image of size (dx
,dy
,dz
,dv
) with pixels of type T
and sets all pixel values of the instance image to val
.
dx | Desired size along the X-axis, i.e. the width of the image. | |
dy | Desired size along the Y-axis, i.e. the height of the image. | |
dz | Desired size along the Z-axis, i.e. the depth of the image. | |
dv | Desired size along the V-axis, i.e. the number of image channels dim . | |
val | Default value for image pixels. |
Definition at line 10636 of file cimg.h.
References cimg_library::CImg< T >::assign().
CImg<T>& cimg_library::CImg< T >::assign | ( | const unsigned int | dx, | |
const unsigned int | dy = 1 , |
|||
const unsigned int | dz = 1 , |
|||
const unsigned int | dv = 1 | |||
) | [inline] |
In-place version of the previous constructor.
This function replaces the instance image by a new image of size (dx
,dy
,dz
,dv
) with pixels of type T
.
dx | Desired size along the X-axis, i.e. the width of the image. | |
dy | Desired size along the Y-axis, i.e. the height of the image. | |
dz | Desired size along the Z-axis, i.e. the depth of the image. | |
dv | Desired size along the V-axis, i.e. the number of image channels dim .
|
Definition at line 10610 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_shared, cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::assign | ( | ) | [inline] |
In-place version of the default constructor/destructor.
This function replaces the instance image by an empty image.
Definition at line 10577 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_shared, and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::_draw_polygon(), cimg_library::CImg< T >::_draw_spline(), cimg_library::CImg< T >::_LU(), cimg_library::CImgList< T >::assign(), cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::CImg(), cimg_library::CImgList< T >::CImgList(), cimg_library::CImgList< T >::clear(), cimg_library::CImg< T >::clear(), cimg_library::CImg< T >::diagonal(), cimg_library::CImg< T >::display(), cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::draw_mandelbrot(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_text(), cimg_library::CImg< T >::eigen(), cimg_library::CImgList< T >::get_append(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_correlate(), cimg_library::CImg< T >::get_default_LUT8(), cimg_library::CImg< T >::get_dijkstra(), cimg_library::CImg< T >::get_dilate(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_erode(), cimg_library::CImg< T >::get_haar(), cimg_library::CImg< T >::get_permute_axes(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_rotate(), cimg_library::CImg< T >::get_tensor(), cimg_library::CImg< T >::get_vector_at(), cimg_library::CImgList< T >::load(), cimg_library::CImg< T >::load_analyze(), cimg_library::CImg< T >::load_ascii(), cimg_library::CImg< T >::load_bmp(), cimg_library::CImgList< T >::load_cimg(), cimg_library::CImg< T >::load_cimg(), cimg_library::CImg< T >::load_dlm(), cimg_library::CImgList< T >::load_ffmpeg(), cimg_library::CImgList< T >::load_ffmpeg_external(), cimg_library::CImg< T >::load_inr(), cimg_library::CImg< T >::load_jpeg(), cimg_library::CImg< T >::load_magick(), cimg_library::CImgList< T >::load_off(), cimg_library::CImg< T >::load_off(), cimg_library::CImg< T >::load_other(), cimg_library::CImg< T >::load_pandore(), cimg_library::CImg< T >::load_parrec(), cimg_library::CImg< T >::load_png(), cimg_library::CImg< T >::load_pnm(), cimg_library::CImg< T >::load_raw(), cimg_library::CImg< T >::load_rgb(), cimg_library::CImg< T >::load_rgba(), cimg_library::CImgList< T >::load_tiff(), cimg_library::CImg< T >::load_tiff(), cimg_library::CImg< T >::operator/=(), cimg_library::CImgList< T >::operator=(), cimg_library::CImg< T >::operator=(), cimg_library::CImgList< T >::remove(), cimg_library::CImg< T >::resize(), cimg_library::CImgDisplay::snapshot(), cimg_library::CImg< T >::solve(), cimg_library::CImg< T >::sort(), cimg_library::CImg< T >::stats(), cimg_library::CImg< T >::SVD(), cimg_library::CImg< T >::symmetric_eigen(), cimg_library::CImgList< T >::transfer_to(), and cimg_library::CImg< T >::transfer_to().
const T& cimg_library::CImg< T >::at | ( | const unsigned int | x, | |
const unsigned int | y = 0 , |
|||
const unsigned int | z = 0 , |
|||
const unsigned int | v = 0 | |||
) | const [inline] |
T& cimg_library::CImg< T >::at | ( | const unsigned int | x, | |
const unsigned int | y = 0 , |
|||
const unsigned int | z = 0 , |
|||
const unsigned int | v = 0 | |||
) | [inline] |
CImg<T>& cimg_library::CImg< T >::atan | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 12782 of file cimg.h.
References cimg_library::atan(), cimg_for, and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::get_atan().
const T& cimg_library::CImg< T >::back | ( | ) | const [inline] |
Definition at line 11316 of file cimg.h.
References cimg_library::CImg< T >::operator()(), and cimg_library::CImg< T >::size().
T& cimg_library::CImg< T >::back | ( | ) | [inline] |
Return a reference to the last image value.
Definition at line 11312 of file cimg.h.
References cimg_library::CImg< T >::operator()(), and cimg_library::CImg< T >::size().
CImg<T>& cimg_library::CImg< T >::BayertoRGB | ( | const unsigned int | interpolation_type = 3 |
) | [inline] |
Definition at line 16551 of file cimg.h.
References cimg_library::CImg< T >::get_BayertoRGB().
const_iterator cimg_library::CImg< T >::begin | ( | ) | const [inline] |
Definition at line 11175 of file cimg.h.
References cimg_library::CImg< T >::data.
iterator cimg_library::CImg< T >::begin | ( | ) | [inline] |
Return an iterator to the first image pixel.
Definition at line 11171 of file cimg.h.
References cimg_library::CImg< T >::data.
CImg<T>& cimg_library::CImg< T >::blur | ( | const float | sigma, | |
const bool | cond = true | |||
) | [inline] |
In-place version of the previous function.
Definition at line 21949 of file cimg.h.
References cimg_library::CImg< T >::blur().
CImg<T>& cimg_library::CImg< T >::blur | ( | const float | sigmax, | |
const float | sigmay, | |||
const float | sigmaz, | |||
const bool | cond = true | |||
) | [inline] |
In-place version of the previous function.
Definition at line 21933 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::deriche(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::blur(), cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::blur_bilateral(), cimg_library::CImg< T >::get_blur(), and cimg_library::CImg< T >::sharpen().
CImg<T>& cimg_library::CImg< T >::blur_anisotropic | ( | const float | amplitude, | |
const float | sharpness = 0.7f , |
|||
const float | anisotropy = 0.3f , |
|||
const float | alpha = 0.6f , |
|||
const float | sigma = 1.1f , |
|||
const float | dl = 0.8f , |
|||
const float | da = 30.0f , |
|||
const float | gauss_prec = 2.0f , |
|||
const unsigned int | interpolation = 0 , |
|||
const bool | fast_approx = true , |
|||
const float | geom_factor = 1.0f | |||
) | [inline] |
In-place version of the previous function.
Definition at line 22395 of file cimg.h.
References cimg_library::CImg< T >::blur_anisotropic().
CImg<T>& cimg_library::CImg< T >::blur_anisotropic | ( | const CImg< tm > & | mask, | |
const float | amplitude, | |||
const float | sharpness = 0.7f , |
|||
const float | anisotropy = 0.3f , |
|||
const float | alpha = 0.6f , |
|||
const float | sigma = 1.1f , |
|||
const float | dl = 0.8f , |
|||
const float | da = 30.0f , |
|||
const float | gauss_prec = 2.0f , |
|||
const unsigned int | interpolation = 0 , |
|||
const bool | fast_approx = true , |
|||
const float | geom_factor = 1.0f | |||
) | [inline] |
In-place version of the previous function.
Definition at line 22319 of file cimg.h.
References cimg_library::CImg< T >::blur(), cimg_library::CImg< T >::blur_anisotropic(), cimg_forXY, cimg_forXYZ, cimg_plugin_greycstoration_count, cimg_plugin_greycstoration_lock, cimg_plugin_greycstoration_unlock, cimg_library::CImg< T >::depth, G(), cimg_library::CImg< T >::get_structure_tensorXY(), cimg_library::CImg< T >::get_structure_tensorXYZ(), cimg_library::CImg< T >::is_empty(), mask, cimg_library::CImg< T >::max(), cimg_library::CImg< T >::normalize(), cimg_library::CImg< T >::pixel_type(), cimg_library::pow(), and threed.
CImg<T>& cimg_library::CImg< T >::blur_anisotropic | ( | const CImg< t > & | G, | |
const float | amplitude = 60.0f , |
|||
const float | dl = 0.8f , |
|||
const float | da = 30.0f , |
|||
const float | gauss_prec = 2.0f , |
|||
const unsigned int | interpolation = 0 , |
|||
const bool | fast_approx = true | |||
) | [inline] |
In-place version of the previous function.
Definition at line 21971 of file cimg.h.
References b, cimg_for, cimg_forV, cimg_forXY, cimg_forXYZ, cimg_plugin_greycstoration_count, cimg_valign2d, cimg_valign3d, cimg_library::CImg< T >::cos(), cimg_library::cos(), cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::exp(), cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::linear_pix2d(), cimg_library::CImg< T >::linear_pix3d(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::sin(), cimg_library::sqrt(), threed, cimg_library::cimg::valuePI, and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::blur_anisotropic().
CImg<T>& cimg_library::CImg< T >::blur_bilateral | ( | const float | sigmas, | |
const float | sigmar, | |||
const int | bgrids = -33 , |
|||
const int | bgridr = 32 , |
|||
const bool | interpolation = true | |||
) | [inline] |
In-place version of the previous function.
Definition at line 22505 of file cimg.h.
References cimg_library::CImg< T >::blur_bilateral().
CImg<T>& cimg_library::CImg< T >::blur_bilateral | ( | const float | sigmax, | |
const float | sigmay, | |||
const float | sigmaz, | |||
const float | sigmar, | |||
const int | bgridx, | |||
const int | bgridy, | |||
const int | bgridz, | |||
const int | bgridr, | |||
const bool | interpolation = true | |||
) | [inline] |
In-place version of the previous function.
Definition at line 22423 of file cimg.h.
References cimg_library::CImg< T >::blur(), cimg_forV, cimg_forXY, cimg_forXYZ, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::linear_pix3d(), cimg_library::CImg< T >::linear_pix4d(), cimg_library::CImg< T >::maxmin(), threed, and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::blur_bilateral().
CImg<T>& cimg_library::CImg< T >::blur_median | ( | const unsigned int | n = 3 |
) | [inline] |
In-place version of the previous function.
Definition at line 22770 of file cimg.h.
References cimg_library::CImg< T >::get_blur_median().
CImg<T>& cimg_library::CImg< T >::blur_patch | ( | const unsigned int | patch_size = 3 , |
|
const float | sigma_p = 10.0f , |
|||
const float | sigma_s = 10.0f , |
|||
const unsigned int | lookup_size = 4 , |
|||
const bool | fast_approx = true | |||
) | [inline] |
Blur an image in its patch-based space.
Definition at line 22517 of file cimg.h.
References _cimg_blur_patch2d, _cimg_blur_patch3d, _cimg_blur_patch_fastfunc, _cimg_blur_patch_slowfunc, cimg_for_inXY, cimg_for_inXYZ, cimg_forV, cimg_forXY, cimg_forXYZ, cimg_plugin_greycstoration_count, cimg_library::CImg< T >::depth, cimg_library::exp(), cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::height, p, cimg_library::CImg< T >::pow(), cimg_library::CImg< T >::transfer_to(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::channel | ( | const unsigned int | v0 | ) | [inline] |
In-place version of the previous function.
Definition at line 14805 of file cimg.h.
References cimg_library::CImg< T >::channels().
CImg<T>& cimg_library::CImg< T >::channels | ( | const unsigned int | v0, | |
const unsigned int | v1 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 14795 of file cimg.h.
References cimg_library::CImg< T >::get_channels().
Referenced by cimg_library::CImg< T >::channel().
CImg<T>& cimg_library::CImg< T >::clear | ( | ) | [inline] |
In-place version of the default constructor.
This function is strictly equivalent to assign() and has been introduced for having a STL-compliant function name.
Definition at line 10589 of file cimg.h.
References cimg_library::CImg< T >::assign().
CImg<T>& cimg_library::CImg< T >::column | ( | const unsigned int | x0 | ) | [inline] |
In-place version of the previous function.
Definition at line 14745 of file cimg.h.
References cimg_library::CImg< T >::columns().
CImg<T>& cimg_library::CImg< T >::columns | ( | const unsigned int | x0, | |
const unsigned int | x1 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 14735 of file cimg.h.
References cimg_library::CImg< T >::get_columns().
Referenced by cimg_library::CImg< T >::column().
bool cimg_library::CImg< T >::contains | ( | const T & | pixel | ) | const [inline] |
Return true
if pixel is inside the image boundaries.
Definition at line 11038 of file cimg.h.
References cimg_library::CImg< T >::contains().
bool cimg_library::CImg< T >::contains | ( | const T & | pixel, | |
t & | x | |||
) | const [inline] |
Return true
if specified pixel is inside image boundaries. If true, returns pixel coordinates in (x).
Definition at line 11032 of file cimg.h.
References cimg_library::CImg< T >::contains().
bool cimg_library::CImg< T >::contains | ( | const T & | pixel, | |
t & | x, | |||
t & | y | |||
) | const [inline] |
Return true
if specified pixel is inside image boundaries. If true, returns pixel coordinates in (x,y).
Definition at line 11026 of file cimg.h.
References cimg_library::CImg< T >::contains().
bool cimg_library::CImg< T >::contains | ( | const T & | pixel, | |
t & | x, | |||
t & | y, | |||
t & | z | |||
) | const [inline] |
Return true
if specified pixel is inside image boundaries. If true, returns pixel coordinates in (x,y,z).
Definition at line 11020 of file cimg.h.
References cimg_library::CImg< T >::contains().
bool cimg_library::CImg< T >::contains | ( | const T & | pixel, | |
t & | x, | |||
t & | y, | |||
t & | z, | |||
t & | v | |||
) | const [inline] |
Return true
if specified pixel is inside image boundaries. If true, returns pixel coordinates in (x,y,z,v).
Definition at line 11005 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImgList< T >::contains(), cimg_library::CImg< T >::contains(), and cimg_library::CImg< T >::print().
bool cimg_library::CImg< T >::containsXYZV | ( | const int | x, | |
const int | y = 0 , |
|||
const int | z = 0 , |
|||
const int | v = 0 | |||
) | const [inline] |
Return true
if pixel (x,y,z,v) is inside image boundaries.
Definition at line 10999 of file cimg.h.
References cimg_library::CImg< T >::dimv(), and cimg_library::CImg< T >::is_empty().
CImg<T>& cimg_library::CImg< T >::convolve | ( | const CImg< t > & | mask, | |
const unsigned int | cond = 1 , |
|||
const bool | weighted_convol = false | |||
) | [inline] |
In-place version of the previous function.
Definition at line 21546 of file cimg.h.
References cimg_library::CImg< T >::get_convolve().
CImg<T>& cimg_library::CImg< T >::coordinates | ( | const int | coords_type = 0 , |
|
unsigned int *const | XYZ = 0 , |
|||
const unsigned char *const | color = 0 | |||
) | [inline] |
Definition at line 24815 of file cimg.h.
References cimg_library::CImg< T >::get_coordinates().
CImg<T>& cimg_library::CImg< T >::correlate | ( | const CImg< t > & | mask, | |
const unsigned int | cond = 1 , |
|||
const bool | weighted_correl = false | |||
) | [inline] |
In-place version of the previous function.
Definition at line 21521 of file cimg.h.
References cimg_library::CImg< T >::get_correlate().
CImg<T>& cimg_library::CImg< T >::cos | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 12722 of file cimg.h.
References cimg_for, cimg_library::cos(), and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::draw_arrow(), cimg_library::CImgList< T >::FFT(), cimg_library::CImg< T >::get_cos(), and cimg_library::CImg< T >::HSItoRGB().
CImg<T>& cimg_library::CImg< T >::crop | ( | const int | x0, | |
const int | x1, | |||
const bool | border_condition = false | |||
) | [inline] |
In-place version of the previous function.
Definition at line 14725 of file cimg.h.
References cimg_library::CImg< T >::crop(), cimg_library::CImg< T >::depth, and cimg_library::CImg< T >::height.
CImg<T>& cimg_library::CImg< T >::crop | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const bool | border_condition = false | |||
) | [inline] |
In-place version of the previous function.
Definition at line 14707 of file cimg.h.
References cimg_library::CImg< T >::crop(), and cimg_library::CImg< T >::depth.
CImg<T>& cimg_library::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 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 14685 of file cimg.h.
References cimg_library::CImg< T >::crop().
CImg<T>& cimg_library::CImg< T >::crop | ( | const int | x0, | |
const int | y0, | |||
const int | z0, | |||
const int | v0, | |||
const int | x1, | |||
const int | y1, | |||
const int | z1, | |||
const int | v1, | |||
const bool | border_condition = false | |||
) | [inline] |
In-place version of the previous function.
Definition at line 14661 of file cimg.h.
References cimg_library::CImg< T >::get_crop().
Referenced by cimg_library::CImg< T >::crop().
CImg<T>& cimg_library::CImg< T >::cross | ( | const CImg< t > & | img | ) | [inline] |
In-place version of the previous function.
Definition at line 23807 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::height, cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
cimg::superset<T,float>::type cimg_library::CImg< T >::cubic_pix1d | ( | const float | fx, | |
const int | y = 0 , |
|||
const int | z = 0 , |
|||
const int | v = 0 | |||
) | const [inline] |
Definition at line 11667 of file cimg.h.
References b, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::max(), cimg_library::cimg::min(), and cimg_library::CImg< T >::width.
cimg::superset<T,float>::type cimg_library::CImg< T >::cubic_pix1d | ( | const float | fx, | |
const int | y, | |||
const int | z, | |||
const int | v, | |||
const T | out_val | |||
) | const [inline] |
Read a pixel value using cubic interpolation for the first coordinate cx
.
Definition at line 11648 of file cimg.h.
References b, cimg_library::CImg< T >::max(), cimg_library::CImg< T >::min(), and cimg_library::CImg< T >::pix1d().
Referenced by cimg_library::CImg< T >::draw_graph().
cimg::superset<T,float>::type cimg_library::CImg< T >::cubic_pix2d | ( | const float | fx, | |
const float | fy, | |||
const int | z = 0 , |
|||
const int | v = 0 | |||
) | const [inline] |
Definition at line 11752 of file cimg.h.
References b, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::max(), cimg_library::cimg::max(), cimg_library::CImg< T >::min(), cimg_library::cimg::min(), and cimg_library::CImg< T >::width.
cimg::superset<T,float>::type cimg_library::CImg< T >::cubic_pix2d | ( | const float | fx, | |
const float | fy, | |||
const int | z, | |||
const int | v, | |||
const T | out_val | |||
) | const [inline] |
Read a pixel value using bicubic interpolation.
fx | X-coordinate of the pixel (float-valued). | |
fy | Y-coordinate of the pixel (float-valued). | |
z | Z-coordinate of the pixel. | |
v | V-coordinate of the pixel. | |
out_val | Value considered at image borders. |
Definition at line 11704 of file cimg.h.
References b, cimg_library::cimg::max(), cimg_library::CImg< T >::max(), cimg_library::cimg::min(), cimg_library::CImg< T >::min(), and cimg_library::CImg< T >::pix2d().
Referenced by cimg_library::CImg< T >::get_resize(), and cimg_library::CImg< T >::get_rotate().
CImg<T>& cimg_library::CImg< T >::cut | ( | const T | a, | |
const T | b | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13432 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::deriche | ( | const float | sigma, | |
const int | order = 0 , |
|||
const char | axe = 'x' , |
|||
const bool | cond = true | |||
) | [inline] |
In-place version of the previous function.
Definition at line 21836 of file cimg.h.
References cimg_deriche2_apply, cimg_forXYV, cimg_forXYZ, cimg_forXZV, cimg_forYZV, cimg_library::CImg< T >::depth, cimg_library::exp(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::cimg::uncase(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::blur(), and cimg_library::CImg< T >::get_deriche().
double cimg_library::CImg< T >::det | ( | ) | const [inline] |
Return the determinant of the current matrix.
Definition at line 12010 of file cimg.h.
References cimg_library::CImg< T >::_LU(), b, cimg_forX, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, blender::g, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::invert().
CImg<T>& cimg_library::CImg< T >::diagonal | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 23668 of file cimg.h.
References cimg_library::CImg< T >::get_diagonal().
static CImg<T> cimg_library::CImg< T >::diagonal | ( | const double | a0, | |
... | ||||
) | [inline, static] |
Return a NxN diagonal matrix with specified coefficients.
Definition at line 23454 of file cimg.h.
References cimg_library::CImg< T >::assign().
static CImg<T> cimg_library::CImg< T >::diagonal | ( | const int | a0, | |
... | ||||
) | [inline, static] |
Return a NxN diagonal matrix with specified coefficients.
Definition at line 23440 of file cimg.h.
References cimg_library::CImg< T >::assign().
static CImg<T> cimg_library::CImg< T >::diagonal | ( | const T | a0, | |
const T | a1, | |||
const T | a2, | |||
const T | a3, | |||
const T | a4 | |||
) | [inline, static] |
Return a 5x5 diagonal matrix with specified coefficients.
Definition at line 23435 of file cimg.h.
References cimg_library::CImg< T >::matrix().
static CImg<T> cimg_library::CImg< T >::diagonal | ( | const T | a0, | |
const T | a1, | |||
const T | a2, | |||
const T | a3 | |||
) | [inline, static] |
Return a 4x4 diagonal matrix with specified coefficients.
Definition at line 23430 of file cimg.h.
References cimg_library::CImg< T >::matrix().
static CImg<T> cimg_library::CImg< T >::diagonal | ( | const T | a0, | |
const T | a1, | |||
const T | a2 | |||
) | [inline, static] |
Return a 3x3 diagonal matrix with specified coefficients.
Definition at line 23425 of file cimg.h.
References cimg_library::CImg< T >::matrix().
static CImg<T> cimg_library::CImg< T >::diagonal | ( | const T | a0, | |
const T | a1 | |||
) | [inline, static] |
Return a 2x2 diagonal matrix with specified coefficients.
Definition at line 23420 of file cimg.h.
References cimg_library::CImg< T >::matrix().
static CImg<T> cimg_library::CImg< T >::diagonal | ( | const T | a0 | ) | [inline, static] |
Return a 1x1 diagonal matrix with specified coefficients.
Definition at line 23415 of file cimg.h.
References cimg_library::CImg< T >::matrix().
CImg<T>& cimg_library::CImg< T >::dijkstra | ( | const unsigned int | starting_node, | |
const unsigned int | ending_node = ~0U | |||
) | [inline] |
Definition at line 15595 of file cimg.h.
References cimg_library::CImg< T >::get_dijkstra().
CImg<T>& cimg_library::CImg< T >::dijkstra | ( | const unsigned int | starting_node, | |
const unsigned int | ending_node, | |||
CImg< t > & | previous | |||
) | [inline] |
Definition at line 15583 of file cimg.h.
References cimg_library::CImg< T >::get_dijkstra().
CImg<T>& cimg_library::CImg< T >::dilate | ( | const unsigned int | n, | |
const unsigned int | cond = 1 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 21744 of file cimg.h.
References cimg_library::CImg< T >::get_dilate().
CImg<T>& cimg_library::CImg< T >::dilate | ( | const CImg< t > & | mask, | |
const unsigned int | cond = 1 , |
|||
const bool | weighted_dilatation = false | |||
) | [inline] |
Definition at line 21729 of file cimg.h.
References cimg_library::CImg< T >::get_dilate().
int cimg_library::CImg< T >::dimv | ( | ) | const [inline] |
Return the number of vector channels of the instance image (size along the V-axis).
Definition at line 10904 of file cimg.h.
Referenced by cimg_library::CImg< T >::containsXYZV(), lux::createImageData(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::get_columns(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::get_lines(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_slices(), cimg_library::CImg< T >::load_analyze(), cimg_library::CImg< T >::pix4d(), cimg_library::CImg< T >::save_off(), cimg_library::CImg< T >::save_png(), and cimg_library::CImg< T >::translate().
int cimg_library::CImg< T >::dimx | ( | ) | const [inline] |
Return the number of columns of the instance image (size along the X-axis, i.e image width).
Definition at line 10880 of file cimg.h.
References cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::_draw_polygon(), cimg_library::CImg< T >::_draw_scanline(), cimg_library::CImg< T >::_LU(), cimg_library::CImg< T >::blur_anisotropic(), lux::createImageData(), cimg_library::CImg< T >::cubic_pix1d(), cimg_library::CImg< T >::cubic_pix2d(), cimg_library::cimg::dialog(), cimg_library::CImg< T >::display(), cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::draw_axis(), cimg_library::CImg< T >::draw_circle(), cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::draw_grid(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_plasma(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::get_BayertoRGB(), cimg_library::CImg< T >::get_blur_median(), cimg_library::CImg< T >::get_channels(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_correlate(), cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::get_dilate(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_erode(), cimg_library::CImgList< T >::get_font(), cimg_library::CImg< T >::get_label_regions(), cimg_library::CImg< T >::get_lines(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_RGBtoLUT(), cimg_library::CImg< T >::get_rotate(), cimg_library::CImg< T >::get_slices(), cimg_library::CImg< T >::load_analyze(), cimg_library::CImg< T >::marching_cubes(), cimg_library::CImg< T >::marching_squares(), cimg_library::CImg< T >::pix1d(), cimg_library::CImg< T >::pix2d(), cimg_library::CImg< T >::pix3d(), cimg_library::CImg< T >::pix4d(), cimg_library::CImg< T >::save_dlm(), cimg_library::CImg< T >::save_png(), cimg_library::CImgList< T >::save_yuv(), cimg_library::CImg< T >::SVD(), cimg_library::CImg< T >::translate(), and cimg_library::CImg< T >::transpose().
int cimg_library::CImg< T >::dimy | ( | ) | const [inline] |
Return the number of rows of the instance image (size along the Y-axis, i.e image height).
Definition at line 10888 of file cimg.h.
References cimg_library::CImg< T >::height.
Referenced by cimg_library::CImg< T >::_draw_ellipse(), cimg_library::CImg< T >::_draw_polygon(), cimg_library::CImg< T >::_draw_triangle(), cimg_library::CImg< T >::blur_anisotropic(), lux::createImageData(), cimg_library::CImg< T >::cubic_pix2d(), cimg_library::cimg::dialog(), cimg_library::CImg< T >::display(), cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::draw_axis(), cimg_library::CImg< T >::draw_circle(), cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::draw_grid(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_plasma(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::get_BayertoRGB(), cimg_library::CImg< T >::get_blur_median(), cimg_library::CImg< T >::get_channels(), cimg_library::CImg< T >::get_columns(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_correlate(), cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::get_dilate(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_erode(), cimg_library::CImgList< T >::get_font(), cimg_library::CImg< T >::get_label_regions(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_RGBtoLUT(), cimg_library::CImg< T >::get_rotate(), cimg_library::CImg< T >::get_slices(), cimg_library::CImg< T >::load_analyze(), cimg_library::CImg< T >::marching_cubes(), cimg_library::CImg< T >::marching_squares(), cimg_library::CImg< T >::pix2d(), cimg_library::CImg< T >::pix3d(), cimg_library::CImg< T >::pix4d(), cimg_library::CImg< T >::save_bmp(), cimg_library::CImg< T >::save_png(), cimg_library::CImgList< T >::save_yuv(), cimg_library::CImg< T >::SVD(), and cimg_library::CImg< T >::translate().
int cimg_library::CImg< T >::dimz | ( | ) | const [inline] |
Return the number of slices of the instance image (size along the Z-axis).
Definition at line 10896 of file cimg.h.
References cimg_library::CImg< T >::depth.
Referenced by cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::display(), cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::get_blur_median(), cimg_library::CImg< T >::get_channels(), cimg_library::CImg< T >::get_columns(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_correlate(), cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::get_dilate(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_erode(), cimg_library::CImg< T >::get_lines(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::load_analyze(), cimg_library::CImg< T >::marching_cubes(), cimg_library::CImg< T >::pix3d(), cimg_library::CImg< T >::pix4d(), and cimg_library::CImg< T >::translate().
CImg<T>& cimg_library::CImg< T >::displacement_field | ( | const CImg< T > & | target, | |
const float | smooth = 0.1f , |
|||
const float | precision = 0.1f , |
|||
const unsigned int | nb_scales = 0 , |
|||
const unsigned int | itermax = 10000 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 23166 of file cimg.h.
References cimg_library::CImg< T >::get_displacement_field().
const CImg<T>& cimg_library::CImg< T >::display | ( | const char *const | title = 0 , |
|
const bool | display_info = true | |||
) | const [inline] |
Display an image in a window with a title title
, and wait a 'is_closed' or 'keyboard' event.
.
Definition at line 24320 of file cimg.h.
References cimg_library::CImgDisplay::_fitscreen(), cimg_library::CImg< T >::assign(), cimg_library::CImgDisplay::button, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::get_slice(), cimg_library::CImgDisplay::height, cimg_library::CImg< T >::height, cimg_library::CImgDisplay::is_closed, cimg_library::CImg< T >::is_empty(), cimg_library::CImgDisplay::is_fullscreen, cimg_library::CImgDisplay::is_key(), cimg_library::CImgDisplay::is_resized, cimg_library::CImgDisplay::key, cimg_library::cimg::keyARROWDOWN, cimg_library::cimg::keyARROWLEFT, cimg_library::cimg::keyARROWRIGHT, cimg_library::cimg::keyARROWUP, cimg_library::cimg::keyBACKSPACE, cimg_library::cimg::keyC, cimg_library::cimg::keyCTRLLEFT, cimg_library::cimg::keyD, cimg_library::cimg::keyF, cimg_library::cimg::keyHOME, cimg_library::cimg::keyP, cimg_library::cimg::keyPAD1, cimg_library::cimg::keyPAD2, cimg_library::cimg::keyPAD3, cimg_library::cimg::keyPAD4, cimg_library::cimg::keyPAD5, cimg_library::cimg::keyPAD6, cimg_library::cimg::keyPAD7, cimg_library::cimg::keyPAD8, cimg_library::cimg::keyPAD9, cimg_library::cimg::keyPADADD, cimg_library::cimg::keyPADSUB, cimg_library::cimg::keyPAGEDOWN, cimg_library::cimg::keyPAGEUP, cimg_library::cimg::keyR, cimg_library::cimg::max(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::print(), cimg_library::CImgDisplay::resize(), cimg_library::CImgDisplay::screen_dimx(), cimg_library::CImgDisplay::screen_dimy(), cimg_library::CImgDisplay::set_title(), cimg_library::CImgDisplay::toggle_fullscreen(), cimg_library::CImgDisplay::wait(), cimg_library::CImgDisplay::wheel, cimg_library::CImgDisplay::width, and cimg_library::CImg< T >::width.
const CImg<T>& cimg_library::CImg< T >::display | ( | CImgDisplay & | disp | ) | const [inline] |
Display an image into a CImgDisplay window.
Definition at line 24314 of file cimg.h.
References cimg_library::CImgDisplay::display().
Referenced by cimg_library::cimg::dialog(), cimg_library::CImgList< T >::display(), cimg_library::CImg< T >::display_object3d(), cimg_library::CImgList< T >::operator>>(), and cimg_library::CImg< T >::operator>>().
const CImg<T>& cimg_library::CImg< T >::display_object3d | ( | const tp & | points, | |
const CImgList< tf > & | primitives, | |||
const CImgList< tc > & | colors, | |||
CImgDisplay & | disp, | |||
const bool | centering = true , |
|||
const int | render_static = 4 , |
|||
const int | render_motion = 1 , |
|||
const bool | double_sided = false , |
|||
const float | focale = 500.0f , |
|||
const float | specular_light = 0.2f , |
|||
const float | specular_shine = 0.1f , |
|||
const bool | display_axes = true , |
|||
float *const | pose_matrix = 0 , |
|||
const float | opacity = 1.0f | |||
) | const [inline] |
High-level interface for displaying a 3d object.
Definition at line 25187 of file cimg.h.
References cimg_library::CImg< T >::display_object3d().
const CImg<T>& cimg_library::CImg< T >::display_object3d | ( | const tp & | points, | |
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 = false , |
|||
const float | focale = 500.0f , |
|||
const float | specular_light = 0.2f , |
|||
const float | specular_shine = 0.1f , |
|||
const bool | display_axes = true , |
|||
float *const | pose_matrix = 0 , |
|||
const float | opacity = 1.0f | |||
) | const [inline] |
High-level interface for displaying a 3d object.
Definition at line 25171 of file cimg.h.
References cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
const CImg<T>& cimg_library::CImg< T >::display_object3d | ( | const tp & | points, | |
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 = false , |
|||
const float | focale = 500.0f , |
|||
const float | specular_light = 0.2f , |
|||
const float | specular_shine = 0.1f , |
|||
const bool | display_axes = true , |
|||
float *const | pose_matrix = 0 | |||
) | const [inline] |
High-level interface for displaying a 3d object.
Definition at line 25156 of file cimg.h.
References cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
const CImg<T>& cimg_library::CImg< T >::display_object3d | ( | const CImgList< tp > & | points, | |
const CImgList< tf > & | primitives, | |||
const CImgList< tc > & | colors, | |||
const CImg< to > & | opacities, | |||
CImgDisplay & | disp, | |||
const bool | centering = true , |
|||
const int | render_static = 4 , |
|||
const int | render_motion = 1 , |
|||
const bool | double_sided = false , |
|||
const float | focale = 500.0f , |
|||
const float | specular_light = 0.2f , |
|||
const float | specular_shine = 0.1f , |
|||
const bool | display_axes = true , |
|||
float *const | pose_matrix = 0 | |||
) | const [inline] |
High-level interface for displaying a 3d object.
Definition at line 25125 of file cimg.h.
References cimg_forX, cimglist_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImgList< T >::size, and cimg_library::CImg< T >::size().
const CImg<T>& cimg_library::CImg< T >::display_object3d | ( | const CImg< tp > & | points, | |
const CImgList< tf > & | primitives, | |||
const CImgList< tc > & | colors, | |||
const CImg< to > & | opacities, | |||
CImgDisplay & | disp, | |||
const bool | centering = true , |
|||
const int | render_static = 4 , |
|||
const int | render_motion = 1 , |
|||
const bool | double_sided = false , |
|||
const float | focale = 500.0f , |
|||
const float | specular_light = 0.2f , |
|||
const float | specular_shine = 0.1f , |
|||
const bool | display_axes = true , |
|||
float *const | pose_matrix = 0 | |||
) | const [inline] |
High-level interface for displaying a 3d object.
Definition at line 25109 of file cimg.h.
References cimglist_for, cimg_library::CImg< T >::display_object3d(), and cimg_library::CImg< T >::size().
const CImg<T>& cimg_library::CImg< T >::display_object3d | ( | const CImgList< tp > & | points, | |
const CImgList< tf > & | primitives, | |||
const CImgList< tc > & | colors, | |||
const CImgList< to > & | opacities, | |||
CImgDisplay & | disp, | |||
const bool | centering = true , |
|||
const int | render_static = 4 , |
|||
const int | render_motion = 1 , |
|||
const bool | double_sided = false , |
|||
const float | focale = 500.0f , |
|||
const float | specular_light = 0.2f , |
|||
const float | specular_shine = 0.1f , |
|||
const bool | display_axes = true , |
|||
float *const | pose_matrix = 0 | |||
) | const [inline] |
High-level interface for displaying a 3d object.
Definition at line 25083 of file cimg.h.
References cimg_forX, cimg_library::CImg< T >::data, cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::size(), and cimg_library::CImgList< T >::size.
const CImg<T>& cimg_library::CImg< T >::display_object3d | ( | const CImg< tp > & | points, | |
const CImgList< tf > & | primitives, | |||
const CImgList< tc > & | colors, | |||
const CImgList< to > & | opacities, | |||
CImgDisplay & | disp, | |||
const bool | centering = true , |
|||
const int | render_static = 4 , |
|||
const int | render_motion = 1 , |
|||
const bool | double_sided = false , |
|||
const float | focale = 500.0f , |
|||
const float | specular_light = 0.2f , |
|||
const float | specular_shine = 0.1f , |
|||
const bool | display_axes = true , |
|||
float *const | pose_matrix = 0 | |||
) | const [inline] |
High-level interface for displaying a 3d object.
Definition at line 24821 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_library::cimg::abs(), cimg_library::asin(), cimg_library::CImgList< T >::assign(), cimg_forX, cimg_library::CImg< T >::data, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::display(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_text(), cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_shared_line(), cimg_library::CImg< T >::height, cimg_library::CImgDisplay::height, cimg_library::CImg< T >::identity_matrix(), cimg_library::CImgList< T >::insert(), cimg_library::CImg< T >::is_empty(), cimg_library::cimg::keyC, cimg_library::cimg::keyCTRLLEFT, cimg_library::cimg::keyCTRLRIGHT, cimg_library::cimg::keyD, cimg_library::cimg::keyF, cimg_library::cimg::keyO, cimg_library::cimg::keyR, cimg_library::cimg::keyS, cimg_library::cimg::max(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::mean(), memcpy(), cimg_library::CImg< T >::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::rotation_matrix(), cimg_library::CImg< T >::save(), cimg_library::CImg< T >::save_off(), cimg_library::CImgList< T >::size, cimg_library::CImg< T >::size(), cimg_library::sqrt(), cimg_library::CImg< T >::sqrt(), cimg_library::CImg< T >::width, and cimg_library::CImgDisplay::width.
Referenced by cimg_library::CImg< T >::display_object3d().
CImg<T>& cimg_library::CImg< T >::distance_function | ( | const unsigned int | nb_iter = 100 , |
|
const float | band_size = 0.0f , |
|||
const float | precision = 0.5f | |||
) | [inline] |
In-place version of the previous function.
Definition at line 15458 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_library::cimg::abs(), CImg_3x3, CImg_3x3x3, cimg_for3x3, cimg_for3x3x3, cimg_forV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::is_empty(), cimg_library::cimg::max(), cimg_library::CImg< T >::maxmin(), cimg_library::cimg::sign(), and cimg_library::sqrt().
Referenced by cimg_library::CImg< T >::get_distance_function().
CImg<T>& cimg_library::CImg< T >::div | ( | const CImg< t > & | img | ) | [inline] |
In-place version of the previous function.
Definition at line 12524 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::min(), and cimg_library::CImg< T >::size().
Referenced by cimg_library::CImg< T >::get_div().
double cimg_library::CImg< T >::dot | ( | const CImg< t > & | img | ) | const [inline] |
Return the dot product of the current vector/matrix with the vector/matrix img
.
Definition at line 11996 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::norm().
CImg<T>& cimg_library::CImg< T >::draw_arrow | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const CImg< tc > & | color, | |||
const float | angle = 30 , |
|||
const float | length = -10 , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U | |||
) | [inline] |
Definition at line 17766 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_arrow().
CImg<T>& cimg_library::CImg< T >::draw_arrow | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const tc *const | color, | |||
const float | angle = 30 , |
|||
const float | length = -10 , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U | |||
) | [inline] |
Draw a colored arrow in the instance image.
x0 | X-coordinate of the starting arrow point (tail). | |
y0 | Y-coordinate of the starting arrow point (tail). | |
x1 | X-coordinate of the ending arrow point (head). | |
y1 | Y-coordinate of the ending arrow point (head). | |
color | Pointer to dimv() consecutive values of type T , defining the drawing color. | |
angle | Aperture angle of the arrow head (optional). | |
length | Length of the arrow head. If negative, describes a percentage of the arrow length (optional). | |
opacity | Drawing opacity (optional). | |
pattern | An integer whose bits describe the line pattern (optional). |
Definition at line 17745 of file cimg.h.
References cimg_library::CImg< T >::cos(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::sin(), cimg_library::CImg< T >::sqrt(), and cimg_library::cimg::valuePI.
Referenced by cimg_library::CImg< T >::draw_arrow(), cimg_library::CImg< T >::draw_axis(), cimg_library::CImg< T >::draw_quiver(), and cimg_library::CImg< T >::get_coordinates().
CImg<T>& cimg_library::CImg< T >::draw_axis | ( | const float | x0, | |
const float | x1, | |||
const float | y0, | |||
const float | y1, | |||
const CImg< tc > & | color, | |||
const int | subdivisionx = -60 , |
|||
const int | subdivisiony = -60 , |
|||
const float | precisionx = 0 , |
|||
const float | precisiony = 0 , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | patternx = ~0U , |
|||
const unsigned int | patterny = ~0U | |||
) | [inline] |
Definition at line 20009 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_axis().
CImg<T>& cimg_library::CImg< T >::draw_axis | ( | const float | x0, | |
const float | x1, | |||
const float | y0, | |||
const float | y1, | |||
const tc *const | color, | |||
const int | subdivisionx = -60 , |
|||
const int | subdivisiony = -60 , |
|||
const float | precisionx = 0 , |
|||
const float | precisiony = 0 , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | patternx = ~0U , |
|||
const unsigned int | patterny = ~0U | |||
) | [inline] |
Draw a labeled horizontal+vertical axis on the instance image.
Definition at line 19993 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_axis(), cimg_library::log10(), cimg_library::CImg< T >::pow(), and cimg_library::CImg< T >::round().
CImg<T>& cimg_library::CImg< T >::draw_axis | ( | const CImg< tx > & | xvalues, | |
const CImg< ty > & | yvalues, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | patternx = ~0U , |
|||
const unsigned int | patterny = ~0U | |||
) | [inline] |
Definition at line 19984 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_axis().
CImg<T>& cimg_library::CImg< T >::draw_axis | ( | const CImg< tx > & | xvalues, | |
const CImg< ty > & | yvalues, | |||
const tc *const | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | patternx = ~0U , |
|||
const unsigned int | patterny = ~0U | |||
) | [inline] |
Draw a labeled horizontal+vertical axis on the instance image.
Definition at line 19954 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::draw_axis(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_axis | ( | const int | x, | |
const CImg< t > & | yvalues, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U | |||
) | [inline] |
Definition at line 19947 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_axis().
CImg<T>& cimg_library::CImg< T >::draw_axis | ( | const int | x, | |
const CImg< t > & | yvalues, | |||
const tc *const | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U | |||
) | [inline] |
Draw a labeled vertical axis on the instance image.
Definition at line 19921 of file cimg.h.
References cimg_foroff, cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_arrow(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_text(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::size(), and cimg_library::cimg::strlen().
CImg<T>& cimg_library::CImg< T >::draw_axis | ( | const CImg< t > & | xvalues, | |
const int | y, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U | |||
) | [inline] |
Definition at line 19914 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_axis().
CImg<T>& cimg_library::CImg< T >::draw_axis | ( | const CImg< t > & | xvalues, | |
const int | y, | |||
const tc *const | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U | |||
) | [inline] |
Draw a labeled horizontal axis on the instance image.
xvalues | Lower bound of the x-range. | |
y | Y-coordinate of the horizontal axis in the instance image. | |
color | Array of dimv() values of type T , defining the drawing color. | |
opacity | Drawing opacity. | |
pattern | Drawing pattern. |
precision==0
, precision of the labels is automatically computed. Definition at line 19892 of file cimg.h.
References cimg_foroff, cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_arrow(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_text(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::size(), cimg_library::cimg::strlen(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::draw_axis().
CImg<T>& cimg_library::CImg< T >::draw_circle | ( | const int | x0, | |
const int | y0, | |||
int | radius, | |||
const CImg< tc > & | color, | |||
const float | opacity, | |||
const unsigned int | foo | |||
) | [inline] |
Definition at line 19562 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_circle().
CImg<T>& cimg_library::CImg< T >::draw_circle | ( | const int | x0, | |
const int | y0, | |||
int | radius, | |||
const tc *const | color, | |||
const float | opacity, | |||
const unsigned | int | |||
) | [inline] |
Draw an outlined circle.
x0 | X-coordinate of the circle center. | |
y0 | Y-coordinate of the circle center. | |
radius | Circle radius. | |
color | Array of dimv() values of type T , defining the drawing color. | |
opacity | Drawing opacity. |
Definition at line 19537 of file cimg.h.
References cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::pixel_type().
CImg<T>& cimg_library::CImg< T >::draw_circle | ( | const int | x0, | |
const int | y0, | |||
int | radius, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 19524 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_circle().
CImg<T>& cimg_library::CImg< T >::draw_circle | ( | const int | x0, | |
const int | y0, | |||
int | radius, | |||
const tc *const | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a filled circle on the instance image.
x0 | X-coordinate of the circle center. | |
y0 | Y-coordinate of the circle center. | |
radius | Circle radius. | |
color | Array of dimv() values of type T , defining the drawing color. | |
opacity | Drawing opacity. |
Definition at line 19498 of file cimg.h.
References cimg_library::CImg< T >::_draw_scanline(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::pixel_type().
Referenced by cimg_library::CImg< T >::draw_circle(), and cimg_library::CImg< T >::draw_object3d().
CImg<T>& cimg_library::CImg< T >::draw_ellipse | ( | const int | x0, | |
const int | y0, | |||
const CImg< t > & | tensor, | |||
const CImg< tc > & | color, | |||
const float | opacity, | |||
const unsigned int | pattern | |||
) | [inline] |
Definition at line 19482 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_ellipse().
CImg<T>& cimg_library::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 | |||
) | [inline] |
Draw an outlined ellipse on the instance image.
x0 | = X-coordinate of the ellipse center. | |
y0 | = Y-coordinate of the ellipse center. | |
tensor | = Diffusion tensor describing the ellipse. | |
color | = array of dimv() values of type T , defining the drawing color. | |
pattern | = If zero, the ellipse is filled, else pattern is an integer whose bits describe the outline pattern. | |
opacity | = opacity of the drawing. |
Definition at line 19474 of file cimg.h.
References cimg_library::CImg< T >::draw_ellipse(), and cimg_library::CImg< T >::get_symmetric_eigen().
CImg<T>& cimg_library::CImg< T >::draw_ellipse | ( | const int | x0, | |
const int | y0, | |||
const CImg< t > & | tensor, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 19459 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_ellipse().
CImg<T>& cimg_library::CImg< T >::draw_ellipse | ( | const int | x0, | |
const int | y0, | |||
const CImg< t > & | tensor, | |||
const tc *const | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a filled ellipse on the instance image.
x0 | = X-coordinate of the ellipse center. | |
y0 | = Y-coordinate of the ellipse center. | |
tensor | = Diffusion tensor describing the ellipse. | |
color | = array of dimv() values of type T , defining the drawing color. | |
opacity | = opacity of the drawing. |
Definition at line 19451 of file cimg.h.
References cimg_library::CImg< T >::draw_ellipse(), and cimg_library::CImg< T >::get_symmetric_eigen().
CImg<T>& cimg_library::CImg< T >::draw_ellipse | ( | const int | x0, | |
const int | y0, | |||
const float | r1, | |||
const float | r2, | |||
const float | ru, | |||
const float | rv, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 19437 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_ellipse().
CImg<T>& cimg_library::CImg< T >::draw_ellipse | ( | const int | x0, | |
const int | y0, | |||
const float | r1, | |||
const float | r2, | |||
const float | ru, | |||
const float | rv, | |||
const tc *const | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a filled ellipse.
x0 | = X-coordinate of the ellipse center. | |
y0 | = Y-coordinate of the ellipse center. | |
r1 | = First radius of the ellipse. | |
r2 | = Second radius of the ellipse. | |
ru | = X-coordinate of the orientation vector related to the first radius. | |
rv | = Y-coordinate of the orientation vector related to the first radius. | |
color | = array of dimv() values of type T , defining the drawing color. | |
opacity | = opacity of the drawing. |
Definition at line 19431 of file cimg.h.
References cimg_library::CImg< T >::_draw_ellipse().
CImg<T>& cimg_library::CImg< T >::draw_ellipse | ( | const int | x0, | |
const int | y0, | |||
const float | r1, | |||
const float | r2, | |||
const float | ru, | |||
const float | rv, | |||
const CImg< tc > & | color, | |||
const float | opacity, | |||
const unsigned int | pattern | |||
) | [inline] |
Definition at line 19414 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_ellipse().
CImg<T>& cimg_library::CImg< T >::draw_ellipse | ( | const int | x0, | |
const int | y0, | |||
const float | r1, | |||
const float | r2, | |||
const float | ru, | |||
const float | rv, | |||
const tc *const | color, | |||
const float | opacity, | |||
const unsigned int | pattern | |||
) | [inline] |
Draw an outlined ellipse.
x0 | = X-coordinate of the ellipse center. | |
y0 | = Y-coordinate of the ellipse center. | |
r1 | = First radius of the ellipse. | |
r2 | = Second radius of the ellipse. | |
ru | = X-coordinate of the orientation vector related to the first radius. | |
rv | = Y-coordinate of the orientation vector related to the first radius. | |
color | = array of dimv() values of type T , defining the drawing color. | |
pattern | = If zero, the ellipse is filled, else pattern is an integer whose bits describe the outline pattern. | |
opacity | = opacity of the drawing. |
Definition at line 19407 of file cimg.h.
References cimg_library::CImg< T >::_draw_ellipse().
Referenced by cimg_library::CImg< T >::draw_ellipse(), and cimg_library::CImg< T >::get_coordinates().
CImg<T>& cimg_library::CImg< T >::draw_fill | ( | const int | x, | |
const int | y, | |||
const CImg< tc > & | color, | |||
const float | sigma = 0 , |
|||
const float | opacity = 1.0f , |
|||
const bool | high_connexity = false | |||
) | [inline] |
Definition at line 20313 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_fill().
CImg<T>& cimg_library::CImg< T >::draw_fill | ( | const int | x, | |
const int | y, | |||
const tc *const | color, | |||
const float | sigma = 0 , |
|||
const float | opacity = 1.0f , |
|||
const bool | high_connexity = false | |||
) | [inline] |
Draw a 2D filled region starting from a point (x
,y
) in the instance image.
x | = X-coordinate of the starting point of the region to fill. | |
y | = Y-coordinate of the starting point of the region to fill. | |
color | = an array of dimv() values of type T , defining the drawing color. | |
sigma | = tolerance concerning neighborhood values. | |
opacity | = opacity of the drawing. |
Definition at line 20306 of file cimg.h.
References cimg_library::CImg< T >::draw_fill().
CImg<T>& cimg_library::CImg< T >::draw_fill | ( | const int | x, | |
const int | y, | |||
const int | z, | |||
const CImg< tc > & | color, | |||
const float | sigma = 0 , |
|||
const float | opacity = 1.0f , |
|||
const bool | high_connexity = false | |||
) | [inline] |
Definition at line 20292 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_fill().
CImg<T>& cimg_library::CImg< T >::draw_fill | ( | const int | x, | |
const int | y, | |||
const int | z, | |||
const tc *const | color, | |||
const float | sigma = 0 , |
|||
const float | opacity = 1.0f , |
|||
const bool | high_connexity = false | |||
) | [inline] |
Draw a 3D filled region starting from a point (x
,y
,\ z) in the instance image.
x | = X-coordinate of the starting point of the region to fill. | |
y | = Y-coordinate of the starting point of the region to fill. | |
z | = Z-coordinate of the starting point of the region to fill. | |
color | = an array of dimv() values of type T , defining the drawing color. | |
sigma | = tolerance concerning neighborhood values. | |
opacity | = opacity of the drawing. |
Definition at line 20285 of file cimg.h.
References cimg_library::CImg< T >::draw_fill().
CImg<T>& cimg_library::CImg< T >::draw_fill | ( | const int | x, | |
const int | y, | |||
const int | z, | |||
const CImg< tc > & | color, | |||
CImg< t > & | region, | |||
const float | sigma = 0 , |
|||
const float | opacity = 1.0f , |
|||
const bool | high_connexity = false | |||
) | [inline] |
Definition at line 20269 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_fill().
CImg<T>& cimg_library::CImg< T >::draw_fill | ( | const int | x, | |
const int | y, | |||
const int | z, | |||
const tc *const | color, | |||
CImg< t > & | region, | |||
const float | sigma = 0 , |
|||
const float | opacity = 1.0f , |
|||
const bool | high_connexity = false | |||
) | [inline] |
Draw a 3D filled region starting from a point (x
,y
,\ z) in the instance image.
x | X-coordinate of the starting point of the region to fill. | |
y | Y-coordinate of the starting point of the region to fill. | |
z | Z-coordinate of the starting point of the region to fill. | |
color | An array of dimv() values of type T , defining the drawing color. | |
region | Image that will contain the mask of the filled region mask, as an output. | |
sigma | Tolerance concerning neighborhood values. | |
opacity | Opacity of the drawing. | |
high_connexity | Tells if 8-connexity must be used (only for 2D images). |
region
is initialized with the binary mask of the filled region. Definition at line 20089 of file cimg.h.
References _cimg_draw_fill_set, _cimg_draw_fill_test, _cimg_draw_fill_test_neighbor, cimg_library::CImg< T >::abs(), cimg_library::CImg< T >::assign(), cimg_for, D1, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::get_vector_at(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), threed, cimg_library::CImg< T >::translate(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::draw_fill().
CImg<T>& cimg_library::CImg< T >::draw_gaussian | ( | const float | xc, | |
const float | yc, | |||
const float | zc, | |||
const double | sigma, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 20622 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_gaussian().
CImg<T>& cimg_library::CImg< T >::draw_gaussian | ( | const float | xc, | |
const float | yc, | |||
const float | zc, | |||
const double | sigma, | |||
const tc *const | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw an isotropic 3D gaussian function in the instance image.
xc | = X-coordinate of the gaussian center. | |
yc | = Y-coordinate of the gaussian center. | |
zc | = Z-coordinate of the gaussian center. | |
sigma | = standard variation of the gaussian distribution. | |
color | = array of dimv() values of type T , defining the drawing color. | |
opacity | = opacity of the drawing. |
Definition at line 20616 of file cimg.h.
References cimg_library::CImg< T >::draw_gaussian().
CImg<T>& cimg_library::CImg< T >::draw_gaussian | ( | const float | xc, | |
const float | yc, | |||
const float | zc, | |||
const CImg< t > & | tensor, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 20601 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_gaussian().
CImg<T>& cimg_library::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.0f | |||
) | [inline] |
Draw an anisotropic 3D gaussian function in the instance image.
xc | = X-coordinate of the gaussian center. | |
yc | = Y-coordinate of the gaussian center. | |
zc | = Z-coordinate of the gaussian center. | |
tensor | = 3x3 covariance matrix. | |
color | = array of dimv() values of type T , defining the drawing color. | |
opacity | = opacity of the drawing. |
Definition at line 20577 of file cimg.h.
References cimg_library::CImg< T >::abs(), b, cimg_forV, cimg_forXYZ, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::exp(), cimg_library::CImg< T >::get_invert(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_gaussian | ( | const float | xc, | |
const float | yc, | |||
const float | sigma, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 20563 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_gaussian().
CImg<T>& cimg_library::CImg< T >::draw_gaussian | ( | const float | xc, | |
const float | yc, | |||
const float | sigma, | |||
const tc *const | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw an isotropic 2D gaussian function in the instance image.
xc | = X-coordinate of the gaussian center. | |
yc | = Y-coordinate of the gaussian center. | |
sigma | = standard variation of the gaussian distribution. | |
color | = array of dimv() values of type T , defining the drawing color. | |
opacity | = opacity of the drawing. |
Definition at line 20558 of file cimg.h.
References cimg_library::CImg< T >::draw_gaussian().
CImg<T>& cimg_library::CImg< T >::draw_gaussian | ( | const float | xc, | |
const float | yc, | |||
const CImg< t > & | tensor, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 20544 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_gaussian().
CImg<T>& cimg_library::CImg< T >::draw_gaussian | ( | const float | xc, | |
const float | yc, | |||
const CImg< t > & | tensor, | |||
const tc *const | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw an anisotropic 2D gaussian function in the instance image.
xc | = X-coordinate of the gaussian center. | |
yc | = Y-coordinate of the gaussian center. | |
tensor | = 2x2 covariance matrix. | |
color | = array of dimv() values of type T , defining the drawing color. | |
opacity | = opacity of the drawing. |
Definition at line 20513 of file cimg.h.
References cimg_library::CImg< T >::abs(), b, cimg_forV, cimg_forX, cimg_forY, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::exp(), cimg_library::CImg< T >::get_invert(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_gaussian | ( | const float | xc, | |
const double | sigma, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 20500 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_gaussian().
CImg<T>& cimg_library::CImg< T >::draw_gaussian | ( | const float | xc, | |
const double | sigma, | |||
const tc *const | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a 1D gaussian function in the instance image.
xc | = X-coordinate of the gaussian center. | |
sigma | = Standard variation of the gaussian distribution. | |
color | = array of dimv() values of type T , defining the drawing color. | |
opacity | = opacity of the drawing. |
Definition at line 20480 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_forV, cimg_forX, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::exp(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::draw_gaussian(), and cimg_library::CImg< T >::draw_object3d().
CImg<T>& cimg_library::CImg< T >::draw_graph | ( | const CImg< t > & | data, | |
const CImg< tc > & | color, | |||
const unsigned int | gtype = 1 , |
|||
const double | ymin = 0 , |
|||
const double | ymax = 0 , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U | |||
) | [inline] |
Definition at line 19875 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_graph().
CImg<T>& cimg_library::CImg< T >::draw_graph | ( | const CImg< t > & | data, | |
const tc *const | color, | |||
const unsigned int | gtype = 1 , |
|||
const double | ymin = 0 , |
|||
const double | ymax = 0 , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U | |||
) | [inline] |
Draw a 1D graph on the instance image.
data | Image containing the graph values I = f(x). | |
color | Array of dimv() values of type T , defining the drawing color. | |
gtype | Define the type of the plot :
| |
ymin | Lower bound of the y-range. | |
ymax | Upper bound of the y-range. | |
opacity | Drawing opacity. | |
pattern | Drawing pattern. |
ymin==ymax==0
, the y-range is computed automatically from the input sample. Definition at line 19823 of file cimg.h.
References cimg_foroff, cimg_forV, cimg_forX, cimg_library::CImg< T >::cubic_pix1d(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::get_shared_points(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::maxmin(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::draw_graph().
CImg<T>& cimg_library::CImg< T >::draw_grid | ( | const float | deltax, | |
const float | deltay, | |||
const float | offsetx, | |||
const float | offsety, | |||
const bool | invertx, | |||
const bool | inverty, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | patternx = ~0U , |
|||
const unsigned int | patterny = ~0U | |||
) | [inline] |
Definition at line 20068 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_grid().
CImg<T>& cimg_library::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.0f , |
|||
const unsigned int | patternx = ~0U , |
|||
const unsigned int | patterny = ~0U | |||
) | [inline] |
Draw grid on the instance image.
Definition at line 20043 of file cimg.h.
References cimg_foroff, cimg_library::CImg< T >::draw_grid(), cimg_library::CImg< T >::height, cimg_library::cimg::mod(), cimg_library::CImg< T >::sequence(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_grid | ( | const CImg< tx > & | xvalues, | |
const CImg< ty > & | yvalues, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | patternx = ~0U , |
|||
const unsigned int | patterny = ~0U | |||
) | [inline] |
Definition at line 20036 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_grid().
CImg<T>& cimg_library::CImg< T >::draw_grid | ( | const CImg< tx > & | xvalues, | |
const CImg< ty > & | yvalues, | |||
const tc *const | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | patternx = ~0U , |
|||
const unsigned int | patterny = ~0U | |||
) | [inline] |
Draw grid on the instance image.
Definition at line 20020 of file cimg.h.
References cimg_foroff, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::draw_grid().
CImg<T>& cimg_library::CImg< T >::draw_image | ( | const CImg< ti > & | sprite, | |
const CImg< tm > & | mask, | |||
const int | x0, | |||
const int | y0 = 0 , |
|||
const int | z0 = 0 , |
|||
const int | v0 = 0 , |
|||
const float | mask_valmax = 1.0f , |
|||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a sprite image in the instance image (masked version).
sprite | Sprite image. | |
mask | Mask image. | |
x0 | X-coordinate of the sprite position in the instance image. | |
y0 | Y-coordinate of the sprite position in the instance image. | |
z0 | Z-coordinate of the sprite position in the instance image. | |
v0 | V-coordinate of the sprite position in the instance image. | |
mask_valmax | Maximum pixel value of the mask image mask (optional). | |
opacity | Drawing opacity. |
mask
set the opacity of the corresponding pixels in sprite
.sprite
and mask
must be the same. Definition at line 17888 of file cimg.h.
References cimg_library::cimg::abs(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_image | ( | const CImg< T > & | sprite, | |
const int | x0, | |||
const int | y0 = 0 , |
|||
const int | z0 = 0 , |
|||
const int | v0 = 0 , |
|||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 17828 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::max(), memcpy(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_image | ( | const CImg< t > & | sprite, | |
const int | x0, | |||
const int | y0 = 0 , |
|||
const int | z0 = 0 , |
|||
const int | v0 = 0 , |
|||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a sprite image in the instance image.
sprite | Sprite image. | |
x0 | X-coordinate of the sprite position. | |
y0 | Y-coordinate of the sprite position. | |
z0 | Z-coordinate of the sprite position. | |
v0 | V-coordinate of the sprite position. | |
opacity | Drawing opacity (optional). |
Definition at line 17785 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::cimg::dialog(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_text(), cimg_library::CImgList< T >::get_append(), cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::get_haar(), cimg_library::CImg< T >::get_projections2d(), cimg_library::CImg< T >::get_resize(), and cimg_library::CImg< T >::load_tiff().
CImg<T>& cimg_library::CImg< T >::draw_line | ( | const CImg< t > & | points, | |
const CImg< tc > & | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Definition at line 17215 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_line().
CImg<T>& cimg_library::CImg< T >::draw_line | ( | const CImg< t > & | points, | |
const tc *const | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Draw a set of consecutive colored lines in the instance image.
Definition at line 17209 of file cimg.h.
References cimg_library::CImg< T >::_draw_line(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_line | ( | const CImgList< t > & | points, | |
const CImg< tc > & | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Definition at line 17197 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_line().
CImg<T>& cimg_library::CImg< T >::draw_line | ( | const CImgList< t > & | points, | |
const tc *const | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Draw a set of consecutive colored lines in the instance image.
points | Coordinates of vertices, stored as a list of vectors. | |
color | Pointer to dimv() consecutive values of type T , defining the drawing color. | |
opacity | Drawing opacity (optional). | |
pattern | An integer whose bits describe the line pattern (optional). | |
init_hatch | If set to true, init hatch motif. |
points
. CImg<unsigned char> img(100,100,1,3,0); const unsigned char color[] = { 255,128,64 }; CImgList<int> points; points.insert(CImg<int>::vector(0,0)). .insert(CImg<int>::vector(70,10)). .insert(CImg<int>::vector(80,60)). .insert(CImg<int>::vector(10,90)); img.draw_line(points,color);
Definition at line 17190 of file cimg.h.
References cimg_library::CImg< T >::_draw_line(), cimglist_for, cimg_library::CImg< T >::min(), p, cimg_library::CImgList< T >::size, and cimg_library::CImg< T >::size().
CImg<T>& cimg_library::CImg< T >::draw_line | ( | const int | x0, | |
const int | y0, | |||
const float | z0, | |||
const int | x1, | |||
const int | y1, | |||
const float | z1, | |||
const CImg< t > & | texture, | |||
const int | tx0, | |||
const int | ty0, | |||
const int | tx1, | |||
const int | ty1, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Draw a textured line in the instance image, with perspective correction.
Definition at line 17028 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_forV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_line | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const CImg< t > & | texture, | |||
const int | tx0, | |||
const int | ty0, | |||
const int | tx1, | |||
const int | ty1, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Draw a textured line in the instance image.
x0 | X-coordinate of the starting line point. | |
y0 | Y-coordinate of the starting line point. | |
x1 | X-coordinate of the ending line point. | |
y1 | Y-coordinate of the ending line point. | |
texture | Texture image defining the pixel colors. | |
tx0 | X-coordinate of the starting texture point. | |
ty0 | Y-coordinate of the starting texture point. | |
tx1 | X-coordinate of the ending texture point. | |
ty1 | Y-coordinate of the ending texture point. | |
opacity | Drawing opacity (optional). | |
pattern | An integer whose bits describe the line pattern (optional). | |
init_hatch | Flag telling if the hash variable must be reinitialized (optional). |
CImg<unsigned char> img(100,100,1,3,0), texture("texture256x256.ppm"); const unsigned char color[] = { 255,128,64 }; img.draw_line(40,40,80,70,texture,0,0,255,255);
Definition at line 16931 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_forV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_line | ( | const int | x0, | |
const int | y0, | |||
const int | z0, | |||
const int | x1, | |||
const int | y1, | |||
const int | z1, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Definition at line 16900 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_line().
CImg<T>& cimg_library::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.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Draw a colored line in the instance image (for volumetric images).
Definition at line 16853 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_library::cimg::abs(), cimg_forV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_line | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Definition at line 16841 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_line().
CImg<T>& cimg_library::CImg< T >::draw_line | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const tc *const | color, | |||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Draw a colored line in the instance image.
x0 | X-coordinate of the starting line point. | |
y0 | Y-coordinate of the starting line point. | |
x1 | X-coordinate of the ending line point. | |
y1 | Y-coordinate of the ending line point. | |
color | Pointer to dimv() consecutive values of type T , defining the drawing color. | |
opacity | Drawing opacity (optional). | |
pattern | An integer whose bits describe the line pattern (optional). | |
init_hatch | Flag telling if a reinitialization of the hash state must be done (optional). |
init_hatch
= false to draw consecutive hatched segments without breaking the line pattern. CImg<unsigned char> img(100,100,1,3,0); const unsigned char color[] = { 255,128,64 }; img.draw_line(40,40,80,70,color);
Definition at line 16783 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_forV, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::_draw_line(), cimg_library::CImg< T >::_draw_polygon(), cimg_library::cimg::dialog(), cimg_library::CImg< T >::draw_arrow(), cimg_library::CImg< T >::draw_axis(), cimg_library::CImg< T >::draw_graph(), cimg_library::CImg< T >::draw_grid(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_quiver(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::draw_spline(), cimg_library::CImg< T >::draw_triangle(), and cimg_library::CImg< T >::get_coordinates().
CImg<T>& cimg_library::CImg< T >::draw_mandelbrot | ( | const CImg< tc > & | color_palette, | |
const double | z0r = -2 , |
|||
const double | z0i = -2 , |
|||
const double | z1r = 2 , |
|||
const double | z1i = 2 , |
|||
const unsigned int | itermax = 255 , |
|||
const bool | normalized_iteration = false , |
|||
const bool | julia_set = false , |
|||
const double | paramr = 0 , |
|||
const double | parami = 0 , |
|||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a quadratic Mandelbrot or Julia fractal set, computed using the Escape Time Algorithm.
Definition at line 20462 of file cimg.h.
References cimg_library::CImg< T >::draw_mandelbrot(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_mandelbrot | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const CImg< tc > & | color_palette, | |||
const double | z0r = -2 , |
|||
const double | z0i = -2 , |
|||
const double | z1r = 2 , |
|||
const double | z1i = 2 , |
|||
const unsigned int | itermax = 255 , |
|||
const bool | normalized_iteration = false , |
|||
const bool | julia_set = false , |
|||
const double | paramr = 0 , |
|||
const double | parami = 0 , |
|||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a quadratic Mandelbrot or Julia fractal set, computed using the Escape Time Algorithm.
Definition at line 20400 of file cimg.h.
References cimg_library::cimg::abs(), cimg_library::CImg< T >::abs(), cimg_library::CImg< T >::assign(), cimg_for_inXY, cimg_forV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::linear_pix1d(), cimg_library::log(), cimg_library::CImg< T >::max(), p, cimg_library::CImg< T >::pix1d(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::draw_mandelbrot().
CImg<T>& cimg_library::CImg< T >::draw_object3d | ( | const float | X, | |
const float | Y, | |||
const float | Z, | |||
const tp & | points, | |||
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 , |
|||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a 3D object in the instance image.
Definition at line 21291 of file cimg.h.
References cimg_library::CImg< T >::draw_object3d(), and cimg_library::CImgList< T >::size.
CImg<T>& cimg_library::CImg< T >::draw_object3d | ( | const float | X, | |
const float | Y, | |||
const float | Z, | |||
const CImgList< tp > & | points, | |||
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 | |||
) | [inline] |
Draw a 3D object in the instance image.
Definition at line 21263 of file cimg.h.
References cimg_forX, cimglist_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImgList< T >::size, and cimg_library::CImg< T >::size().
CImg<T>& cimg_library::CImg< T >::draw_object3d | ( | const float | X, | |
const float | Y, | |||
const float | Z, | |||
const CImg< tp > & | points, | |||
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 | |||
) | [inline] |
Draw a 3D object in the instance image.
Definition at line 21248 of file cimg.h.
References cimglist_for, cimg_library::CImg< T >::draw_object3d(), and cimg_library::CImg< T >::size().
CImg<T>& cimg_library::CImg< T >::draw_object3d | ( | const float | X, | |
const float | Y, | |||
const float | Z, | |||
const CImgList< tp > & | points, | |||
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 | |||
) | [inline] |
Draw a 3D object in the instance image.
Definition at line 21222 of file cimg.h.
References cimg_forX, cimg_library::CImg< T >::data, cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::size(), and cimg_library::CImgList< T >::size.
CImg<T>& cimg_library::CImg< T >::draw_object3d | ( | const float | X, | |
const float | Y, | |||
const float | Z, | |||
const CImg< tp > & | points, | |||
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 | |||
) | [inline] |
Draw a 3D object in the instance image.
X | = X-coordinate of the 3d object position | |
Y | = Y-coordinate of the 3d object position | |
Z | = Z-coordinate of the 3d object position | |
points | = Image N*3 describing 3D point coordinates | |
primitives | = List of P primitives | |
colors | = List of P color (or textures) | |
opacities | = Image of P opacities | |
render_type | = Render type (0=Points, 1=Lines, 2=Faces (no light), 3=Faces (flat), 4=Faces(Gouraud) | |
double_sided | = Tell if object faces have two sides or are oriented. | |
focale | = length of the focale | |
lightx | = X-coordinate of the light | |
lighty | = Y-coordinate of the light | |
lightz | = Z-coordinate of the light | |
specular_shine | = Shininess of the object |
Definition at line 20645 of file cimg.h.
References cimg_library::CImg< T >::_draw_triangle(), cimg_library::cimg::abs(), cimg_library::CImg< T >::assign(), cimg_forX, cimg_forXY, cimglist_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_circle(), cimg_library::CImg< T >::draw_gaussian(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_vector_at(), cimg_library::CImg< T >::height, if(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::min(), cimg_library::CImg< T >::norm(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), cimg_library::CImgList< T >::size, cimg_library::CImg< T >::sort(), cimg_library::CImg< T >::sqr(), cimg_library::CImg< T >::sqrt(), cimg_library::sqrt(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::display_object3d(), and cimg_library::CImg< T >::draw_object3d().
CImg<T>& cimg_library::CImg< T >::draw_plasma | ( | const double | alpha = 1.0 , |
|
const double | beta = 1.0 , |
|||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a plasma in the instance image.
alpha | = Alpha-parameter of the plasma. | |
beta | = Beta-parameter of the plasma. | |
opacity | = opacity of the drawing. |
Definition at line 20394 of file cimg.h.
References cimg_library::CImg< T >::draw_plasma(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_plasma | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const double | alpha = 1.0 , |
|||
const double | beta = 1.0 , |
|||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a plasma square in the instance image.
x0 | = X-coordinate of the upper-left corner of the plasma. | |
y0 | = Y-coordinate of the upper-left corner of the plasma. | |
x1 | = X-coordinate of the lower-right corner of the plasma. | |
y1 | = Y-coordinate of the lower-right corner of the plasma. | |
alpha | = Alpha-parameter of the plasma. | |
beta | = Beta-parameter of the plasma. | |
opacity | = opacity of the drawing. |
Definition at line 20328 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_forV, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::cimg::grand(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::min(), cimg_library::sqrt(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::draw_plasma().
CImg<T>& cimg_library::CImg< T >::draw_point | ( | const CImg< t > & | points, | |
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 16757 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_point().
CImg<T>& cimg_library::CImg< T >::draw_point | ( | const CImg< t > & | points, | |
const tc *const | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a cloud of points in the instance image.
Definition at line 16752 of file cimg.h.
References cimg_library::CImg< T >::_draw_point(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_point | ( | const CImgList< t > & | points, | |
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 16741 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_point().
CImg<T>& cimg_library::CImg< T >::draw_point | ( | const CImgList< t > & | points, | |
const tc *const | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a cloud of colored points in the instance image.
points | Coordinates of vertices, stored as a list of vectors. | |
color | Pointer to dimv() consecutive values of type T , defining the drawing color. | |
opacity | Drawing opacity (optional). |
points
. CImg<unsigned char> img(100,100,1,3,0); const unsigned char color[] = { 255,128,64 }; CImgList<int> points; points.insert(CImg<int>::vector(0,0)). .insert(CImg<int>::vector(70,10)). .insert(CImg<int>::vector(80,60)). .insert(CImg<int>::vector(10,90)); img.draw_point(points,color);
Definition at line 16735 of file cimg.h.
References cimg_library::CImg< T >::_draw_point(), cimglist_for, cimg_library::CImg< T >::min(), p, cimg_library::CImgList< T >::size, and cimg_library::CImg< T >::size().
CImg<T>& cimg_library::CImg< T >::draw_point | ( | const int | x0, | |
const int | y0, | |||
const int | z0, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 16693 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_point().
CImg<T>& cimg_library::CImg< T >::draw_point | ( | const int | x0, | |
const int | y0, | |||
const int | z0, | |||
const tc *const | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a colored point (pixel) in the instance image (for volumetric images).
Definition at line 16677 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_forV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_point | ( | const int | x0, | |
const int | y0, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 16667 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_point().
CImg<T>& cimg_library::CImg< T >::draw_point | ( | const int | x0, | |
const int | y0, | |||
const tc *const | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a colored point (pixel) in the instance image.
x0 | X-coordinate of the point. | |
y0 | Y-coordinate of the point. | |
color | Pointer to (or image of) dimv() consecutive values, defining the color channels. | |
opacity | Drawing opacity (optional). |
CImg<unsigned char> img(100,100,1,3,0); const unsigned char color[] = { 255,128,64 }; img.draw_point(50,50,color);
Definition at line 16662 of file cimg.h.
Referenced by cimg_library::CImg< T >::_draw_ellipse(), cimg_library::CImg< T >::_draw_point(), cimg_library::CImg< T >::draw_arrow(), cimg_library::CImg< T >::draw_axis(), cimg_library::CImg< T >::draw_circle(), cimg_library::CImg< T >::draw_graph(), cimg_library::CImg< T >::draw_object3d(), and cimg_library::CImg< T >::draw_point().
CImg<T>& cimg_library::CImg< T >::draw_polygon | ( | const CImg< t > & | points, | |
const CImg< tc > & | color, | |||
const float | opacity, | |||
const unsigned int | pattern | |||
) | [inline] |
Definition at line 17353 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_polygon().
CImg<T>& cimg_library::CImg< T >::draw_polygon | ( | const CImg< t > & | points, | |
const tc *const | color, | |||
const float | opacity, | |||
const unsigned int | pattern | |||
) | [inline] |
Definition at line 17347 of file cimg.h.
References cimg_library::CImg< T >::_draw_polygon(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_polygon | ( | const CImgList< t > & | points, | |
const CImg< tc > & | color, | |||
const float | opacity, | |||
const unsigned int | pattern | |||
) | [inline] |
Definition at line 17340 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_polygon().
CImg<T>& cimg_library::CImg< T >::draw_polygon | ( | const CImgList< t > & | points, | |
const tc *const | color, | |||
const float | opacity, | |||
const unsigned int | pattern | |||
) | [inline] |
Definition at line 17333 of file cimg.h.
References cimg_library::CImg< T >::_draw_polygon(), cimglist_for, cimg_library::CImg< T >::min(), p, cimg_library::CImgList< T >::size, and cimg_library::CImg< T >::size().
CImg<T>& cimg_library::CImg< T >::draw_polygon | ( | const CImg< t > & | points, | |
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 17295 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_polygon().
CImg<T>& cimg_library::CImg< T >::draw_polygon | ( | const CImg< t > & | points, | |
const tc *const | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a filled polygon in the instance image.
Definition at line 17290 of file cimg.h.
References cimg_library::CImg< T >::_draw_polygon(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_polygon | ( | const CImgList< t > & | points, | |
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 17284 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_polygon().
CImg<T>& cimg_library::CImg< T >::draw_polygon | ( | const CImgList< t > & | points, | |
const tc *const | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a filled polygon in the instance image.
Definition at line 17279 of file cimg.h.
References cimg_library::CImg< T >::_draw_polygon(), and cimg_library::CImgList< T >::size.
Referenced by cimg_library::CImg< T >::draw_polygon().
CImg<T>& cimg_library::CImg< T >::draw_quiver | ( | const CImg< t1 > & | flow, | |
const CImg< t2 > & | color, | |||
const unsigned int | sampling = 25 , |
|||
const float | factor = -20 , |
|||
const int | quiver_type = 0 , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U | |||
) | [inline] |
Draw a vector field in the instance image, using a colormap.
flow | Image of 2d vectors used as input data. | |
color | Image of dimv()-D vectors corresponding to the color of each arrow. | |
sampling | Length (in pixels) between each arrow. | |
factor | Length factor of each arrow (if <0, computed as a percentage of the maximum length). | |
quiver_type | Type of plot. Can be 0 (arrows) or 1 (segments). | |
opacity | Opacity of the drawing. | |
pattern | Used pattern to draw lines. |
Definition at line 19769 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_library::cimg::abs(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::draw_arrow(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_quiver(), cimg_library::CImg< T >::get_norm_pointwise(), cimg_library::CImg< T >::get_vector_at(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::cimg::max(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_quiver | ( | const CImg< t1 > & | flow, | |
const t2 *const | color, | |||
const unsigned int | sampling = 25 , |
|||
const float | factor = -20 , |
|||
const int | quiver_type = 0 , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U | |||
) | [inline] |
Draw a vector field in the instance image, using a colormap.
flow | Image of 2d vectors used as input data. | |
color | Image of dimv()-D vectors corresponding to the color of each arrow. | |
sampling | Length (in pixels) between each arrow. | |
factor | Length factor of each arrow (if <0, computed as a percentage of the maximum length). | |
quiver_type | Type of plot. Can be 0 (arrows) or 1 (segments). | |
opacity | Opacity of the drawing. | |
pattern | Used pattern to draw lines. |
Definition at line 19751 of file cimg.h.
Referenced by cimg_library::CImg< T >::draw_quiver().
CImg<T>& cimg_library::CImg< T >::draw_rectangle | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const CImg< tc > & | color, | |||
const float | opacity, | |||
const unsigned int | pattern | |||
) | [inline] |
Definition at line 18075 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_rectangle().
CImg<T>& cimg_library::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 | |||
) | [inline] |
Draw a 2D outlined colored rectangle.
Definition at line 18066 of file cimg.h.
References cimg_library::CImg< T >::draw_line().
CImg<T>& cimg_library::CImg< T >::draw_rectangle | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 18059 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_rectangle().
CImg<T>& cimg_library::CImg< T >::draw_rectangle | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const tc *const | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a 2D filled colored rectangle in the instance image, at coordinates (x0
,y0
)-(x1
,y1
).
x0 | X-coordinate of the upper-left rectangle corner. | |
y0 | Y-coordinate of the upper-left rectangle corner. | |
x1 | X-coordinate of the lower-right rectangle corner. | |
y1 | Y-coordinate of the lower-right rectangle corner. | |
color | Pointer to dimv() consecutive values of type T , defining the drawing color. | |
opacity | Drawing opacity (optional). |
Definition at line 18053 of file cimg.h.
References cimg_library::CImg< T >::depth, and cimg_library::CImg< T >::draw_rectangle().
CImg<T>& cimg_library::CImg< T >::draw_rectangle | ( | const int | x0, | |
const int | y0, | |||
const int | z0, | |||
const int | x1, | |||
const int | y1, | |||
const int | z1, | |||
const CImg< tc > & | color, | |||
const float | opacity, | |||
const unsigned int | pattern | |||
) | [inline] |
Definition at line 18035 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_rectangle().
CImg<T>& cimg_library::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 | |||
) | [inline] |
Draw a 3D outlined colored rectangle in the instance image.
Definition at line 18017 of file cimg.h.
References cimg_library::CImg< T >::draw_line().
CImg<T>& cimg_library::CImg< T >::draw_rectangle | ( | const int | x0, | |
const int | y0, | |||
const int | z0, | |||
const int | x1, | |||
const int | y1, | |||
const int | z1, | |||
const CImg< tc > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 18009 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_rectangle().
CImg<T>& cimg_library::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.0f | |||
) | [inline] |
Draw a 3D filled colored rectangle in the instance image, at coordinates (x0
,y0
,z0
)-(x1
,y1
,z1
).
x0 | X-coordinate of the upper-left rectangle corner. | |
y0 | Y-coordinate of the upper-left rectangle corner. | |
z0 | Z-coordinate of the upper-left rectangle corner. | |
x1 | X-coordinate of the lower-right rectangle corner. | |
y1 | Y-coordinate of the lower-right rectangle corner. | |
z1 | Z-coordinate of the lower-right rectangle corner. | |
color | Pointer to dimv() consecutive values of type T , defining the drawing color. | |
opacity | Drawing opacity (optional). |
Definition at line 18000 of file cimg.h.
References cimg_forV, cimg_library::CImg< T >::draw_rectangle(), and cimg_library::CImg< T >::pixel_type().
CImg<T>& cimg_library::CImg< T >::draw_rectangle | ( | const int | x0, | |
const int | y0, | |||
const int | z0, | |||
const int | v0, | |||
const int | x1, | |||
const int | y1, | |||
const int | z1, | |||
const int | v1, | |||
const T | val, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a 4D filled rectangle in the instance image, at coordinates (x0
,y0
,z0
,v0
)-(x1
,y1
,z1
,v1
).
x0 | X-coordinate of the upper-left rectangle corner. | |
y0 | Y-coordinate of the upper-left rectangle corner. | |
z0 | Z-coordinate of the upper-left rectangle corner. | |
v0 | V-coordinate of the upper-left rectangle corner. | |
x1 | X-coordinate of the lower-right rectangle corner. | |
y1 | Y-coordinate of the lower-right rectangle corner. | |
z1 | Z-coordinate of the lower-right rectangle corner. | |
v1 | V-coordinate of the lower-right rectangle corner. | |
val | Scalar value used to fill the rectangle area. | |
opacity | Drawing opacity (optional). |
Definition at line 17955 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::cimg::dialog(), cimg_library::CImg< T >::draw_graph(), cimg_library::CImg< T >::draw_rectangle(), and cimg_library::CImg< T >::get_coordinates().
CImg<T>& cimg_library::CImg< T >::draw_spline | ( | const CImg< t > & | points, | |
const CImg< tc > & | color, | |||
const bool | close_set = false , |
|||
const float | precision = 4.0f , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Definition at line 17724 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_spline().
CImg<T>& cimg_library::CImg< T >::draw_spline | ( | const CImg< t > & | points, | |
const tc *const | color, | |||
const bool | close_set = false , |
|||
const float | precision = 4.0f , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Draw a set of consecutive colored lines in the instance image.
Definition at line 17717 of file cimg.h.
References cimg_library::CImg< T >::_draw_spline(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_spline | ( | const CImgList< t > & | points, | |
CImg< tc > & | color, | |||
const bool | close_set = false , |
|||
const float | precision = 4.0f , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Definition at line 17709 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_spline().
CImg<T>& cimg_library::CImg< T >::draw_spline | ( | const CImgList< t > & | points, | |
const tc *const | color, | |||
const bool | close_set = false , |
|||
const float | precision = 4.0f , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Draw a set of consecutive colored splines in the instance image.
Definition at line 17697 of file cimg.h.
References cimg_library::CImg< T >::_draw_spline(), cimglist_for, p, and cimg_library::CImgList< T >::size.
CImg<T>& cimg_library::CImg< T >::draw_spline | ( | const CImg< tp > & | points, | |
const CImg< tt > & | tangents, | |||
const CImg< tc > & | color, | |||
const bool | close_set = false , |
|||
const float | precision = 4.0f , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Definition at line 17688 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_spline().
CImg<T>& cimg_library::CImg< T >::draw_spline | ( | const CImg< tp > & | points, | |
const CImg< tt > & | tangents, | |||
const tc *const | color, | |||
const bool | close_set = false , |
|||
const float | precision = 4.0f , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Draw a set of consecutive colored splines in the instance image.
Definition at line 17680 of file cimg.h.
References cimg_library::CImg< T >::_draw_spline(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_spline | ( | const CImgList< tp > & | points, | |
const CImgList< tt > & | tangents, | |||
const CImg< tc > & | color, | |||
const bool | close_set = false , |
|||
const float | precision = 4.0f , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Definition at line 17671 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_spline().
CImg<T>& cimg_library::CImg< T >::draw_spline | ( | const CImgList< tp > & | points, | |
const CImgList< tt > & | tangents, | |||
const tc *const | color, | |||
const bool | close_set = false , |
|||
const float | precision = 4.0f , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Draw a set of consecutive colored splines in the instance image.
Definition at line 17662 of file cimg.h.
References cimg_library::CImg< T >::_draw_spline(), cimglist_for, cimg_library::CImg< T >::min(), p, cimg_library::CImgList< T >::size, and cimg_library::CImg< T >::size().
CImg<T>& cimg_library::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 | precision = 4.0f , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Draw a cubic spline curve in the instance image.
x0 | X-coordinate of the starting curve point | |
y0 | Y-coordinate of the starting curve point | |
u0 | X-coordinate of the starting velocity | |
v0 | Y-coordinate of the starting velocity | |
x1 | X-coordinate of the ending curve point | |
y1 | Y-coordinate of the ending curve point | |
u1 | X-coordinate of the ending velocity | |
v1 | Y-coordinate of the ending velocity | |
texture | Texture image defining line pixel colors. | |
tx0 | X-coordinate of the starting texture point. | |
ty0 | Y-coordinate of the starting texture point. | |
tx1 | X-coordinate of the ending texture point. | |
ty1 | Y-coordinate of the ending texture point. | |
precision | Curve drawing precision (optional). | |
opacity | Drawing opacity (optional). | |
pattern | An integer whose bits describe the line pattern (optional). | |
init_hatch | if true , reinit hatch motif. |
Definition at line 17508 of file cimg.h.
References cimg_library::cimg::abs(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_spline(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::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 CImg< tc > & | color, | |||
const float | precision = 4.0f , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Definition at line 17479 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_spline().
CImg<T>& cimg_library::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 | precision = 4.0f , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Draw a cubic spline curve in the instance image (for volumetric images).
Definition at line 17440 of file cimg.h.
References cimg_library::cimg::abs(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), and cimg_library::CImg< T >::pixel_type().
CImg<T>& cimg_library::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< tc > & | color, | |||
const float | precision = 4.0f , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Definition at line 17426 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_spline().
CImg<T>& cimg_library::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 | precision = 4.0f , |
|||
const float | opacity = 1.0f , |
|||
const unsigned int | pattern = ~0U , |
|||
const bool | init_hatch = true | |||
) | [inline] |
Draw a cubic spline curve in the instance image.
x0 | X-coordinate of the starting curve point | |
y0 | Y-coordinate of the starting curve point | |
u0 | X-coordinate of the starting velocity | |
v0 | Y-coordinate of the starting velocity | |
x1 | X-coordinate of the ending curve point | |
y1 | Y-coordinate of the ending curve point | |
u1 | X-coordinate of the ending velocity | |
v1 | Y-coordinate of the ending velocity | |
color | Pointer to dimv() consecutive values of type T , defining the drawing color. | |
precision | Curve drawing precision (optional). | |
opacity | Drawing opacity (optional). | |
pattern | An integer whose bits describe the line pattern (optional). | |
init_hatch | If true , init hatch motif. |
precision
parameter sets the average number of pixels in each drawn segment.x0
,y0
), (xa
,ya
), (xb
,yb
), (x1
,y1
) } where (x0
,y0
) is the starting point, (x1
,y1
) is the ending point and (xa
,ya
), (xb
,yb
) are two control points. The starting and ending velocities (u0
,v0
) and (u1
,v1
) can be deduced easily from the control points as u0
= (xa
- x0
), v0
= (ya
- y0
), u1
= (x1
- xb
) and v1
= (y1
- yb
). CImg<unsigned char> img(100,100,1,3,0); const unsigned char color[] = { 255,255,255 }; img.draw_spline(30,30,0,100,90,40,0,-100,color);
Definition at line 17391 of file cimg.h.
References cimg_library::cimg::abs(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), and cimg_library::CImg< T >::pixel_type().
Referenced by cimg_library::CImg< T >::_draw_spline(), and cimg_library::CImg< T >::draw_spline().
CImg<T>& cimg_library::CImg< T >::draw_text | ( | const int | x0, | |
const int | y0, | |||
const CImg< tc > & | fgcolor, | |||
const CImg< tc > & | bgcolor, | |||
const CImgList< t > & | font, | |||
const float | opacity, | |||
const char * | format, | |||
... | ||||
) | [inline] |
Definition at line 19728 of file cimg.h.
References cimg_library::CImg< T >::draw_text().
CImg<T>& cimg_library::CImg< T >::draw_text | ( | const int | x0, | |
const int | y0, | |||
const T *const | fgcolor, | |||
const T *const | bgcolor, | |||
const CImgList< t > & | font, | |||
const float | opacity, | |||
const char * | format, | |||
... | ||||
) | [inline] |
Draw a text into the instance image.
x0 | X-coordinate of the text in the instance image. | |
y0 | Y-coordinate of the text in the instance image. | |
fgcolor | Array of dimv() values of type T , defining the foreground color (0 means 'transparent'). | |
bgcolor | Array of dimv() values of type T , defining the background color (0 means 'transparent'). | |
font | Font used for drawing text. | |
opacity | Drawing opacity. | |
format | 'printf'-style format string, followed by arguments. |
Definition at line 19716 of file cimg.h.
References cimg_library::CImg< T >::draw_text().
CImg<T>& cimg_library::CImg< T >::draw_text | ( | const int | x0, | |
const int | y0, | |||
const CImg< tc > & | fgcolor, | |||
const CImg< tc > & | bgcolor, | |||
const unsigned int | font_size, | |||
const float | opacity, | |||
const char * | format, | |||
... | ||||
) | [inline] |
Definition at line 19693 of file cimg.h.
References cimg_library::CImg< T >::draw_text().
CImg<T>& cimg_library::CImg< T >::draw_text | ( | const int | x0, | |
const int | y0, | |||
const T *const | fgcolor, | |||
const T *const | bgcolor, | |||
const unsigned int | font_size, | |||
const float | opacity, | |||
const char * | format, | |||
... | ||||
) | [inline] |
Draw a text into the instance image.
x0 | X-coordinate of the text in the instance image. | |
y0 | Y-coordinate of the text in the instance image. | |
fgcolor | Array of dimv() values of type T , defining the foreground color (0 means 'transparent'). | |
bgcolor | Array of dimv() values of type T , defining the background color (0 means 'transparent'). | |
font_size | Size of the font (nearest match). | |
opacity | Drawing opacity. | |
format | 'printf'-style format string, followed by arguments. |
Definition at line 19681 of file cimg.h.
References cimg_library::CImg< T >::draw_text().
CImg<T>& cimg_library::CImg< T >::draw_text | ( | const char *const | text, | |
const int | x0, | |||
const int | y0, | |||
const CImg< tc > & | fgcolor, | |||
const CImg< tc > & | bgcolor, | |||
const unsigned int | font_size = 11 , |
|||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 19662 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_text().
CImg<T>& cimg_library::CImg< T >::draw_text | ( | const char *const | text, | |
const int | x0, | |||
const int | y0, | |||
const T *const | fgcolor, | |||
const T *const | bgcolor = 0 , |
|||
const unsigned int | font_size = 11 , |
|||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a text into the instance image.
text | = a C-string containing the text to display. | |
x0 | = X-coordinate of the text in the instance image. | |
y0 | = Y-coordinate of the text in the instance image. | |
fgcolor | = an array of dimv() values of type T , defining the foreground color (0 means 'transparent'). | |
bgcolor | = an array of dimv() values of type T , defining the background color (0 means 'transparent'). | |
font_size | = Height of the desired font (11,13,24,38 or 57) | |
opacity | = opacity of the drawing. |
Definition at line 19654 of file cimg.h.
References cimg_library::CImg< T >::draw_text().
CImg<T>& cimg_library::CImg< T >::draw_text | ( | const char *const | text, | |
const int | x0, | |||
const int | y0, | |||
const CImg< tc > & | fgcolor, | |||
const CImg< tc > & | bgcolor, | |||
const CImgList< t > & | font, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 19634 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_text().
CImg<T>& cimg_library::CImg< T >::draw_text | ( | const char *const | text, | |
const int | x0, | |||
const int | y0, | |||
const T *const | fgcolor, | |||
const T *const | bgcolor, | |||
const CImgList< t > & | font, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a text into the instance image.
text | = a C-string containing the text to display. | |
x0 | = X-coordinate of the text in the instance image. | |
y0 | = Y-coordinate of the text in the instance image. | |
fgcolor | = an array of dimv() values of type T , defining the foreground color (0 means 'transparent'). | |
bgcolor | = an array of dimv() values of type T , defining the background color (0 means 'transparent'). | |
font | = List of font characters used for the drawing. | |
opacity | = opacity of the drawing. |
Definition at line 19579 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_forV, cimg_library::CImgList< T >::data, cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::get_shared_channel(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), mask, p, cimg_library::CImg< T >::pixel_type(), cimg_library::CImgList< T >::size, cimg_library::cimg::strlen(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::cimg::dialog(), cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::draw_axis(), cimg_library::CImg< T >::draw_text(), lux::LuxGLViewer::FontGenerator::DrawText(), and cimg_library::CImg< T >::get_coordinates().
CImg<T>& cimg_library::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< t > & | 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.0f | |||
) | [inline] |
Draw a phong + textured triangle with perspective correction.
Definition at line 19222 of file cimg.h.
References _cimg_for_triangle3, cimg_library::CImg< T >::abs(), cimg_forV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::max(), cimg_library::cimg::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_triangle | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const int | x2, | |||
const int | y2, | |||
const CImg< t > & | 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.0f | |||
) | [inline] |
Draw a phong-shaded 2D textured triangle in the instance image, at coordinates (x0
,y0
)-(x1
,y1
)-(x2
,y2
).
x0 | = X-coordinate of the first corner in the instance image. | |
y0 | = Y-coordinate of the first corner in the instance image. | |
x1 | = X-coordinate of the second corner in the instance image. | |
y1 | = Y-coordinate of the second corner in the instance image. | |
x2 | = X-coordinate of the third corner in the instance image. | |
y2 | = Y-coordinate of the third corner in the instance image. | |
texture | = texture image used to fill the triangle. | |
tx0 | = X-coordinate of the first corner in the texture image. | |
ty0 | = Y-coordinate of the first corner in the texture image. | |
tx1 | = X-coordinate of the second corner in the texture image. | |
ty1 | = Y-coordinate of the second corner in the texture image. | |
tx2 | = X-coordinate of the third corner in the texture image. | |
ty2 | = Y-coordinate of the third corner in the texture image. | |
light | = light image. | |
lx0 | = X-coordinate of the first corner in the light image. | |
ly0 | = Y-coordinate of the first corner in the light image. | |
lx1 | = X-coordinate of the second corner in the light image. | |
ly1 | = Y-coordinate of the second corner in the light image. | |
lx2 | = X-coordinate of the third corner in the light image. | |
ly2 | = Y-coordinate of the third corner in the light image. | |
opacity | = opacity of the drawing. |
Definition at line 19123 of file cimg.h.
References _cimg_for_triangle5, cimg_library::CImg< T >::abs(), cimg_forV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::max(), cimg_library::cimg::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::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< t > & | texture, | |||
const int | tx0, | |||
const int | ty0, | |||
const int | tx1, | |||
const int | ty1, | |||
const int | tx2, | |||
const int | ty2, | |||
const float | c0, | |||
const float | c1, | |||
const float | c2, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a gouraud + textured triangle with perspective correction.
Definition at line 18996 of file cimg.h.
References _cimg_for_triangle2, cimg_library::CImg< T >::abs(), cimg_forV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::max(), cimg_library::cimg::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_triangle | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const int | x2, | |||
const int | y2, | |||
const CImg< t > & | 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 | |||
) | [inline] |
Draw a 2D textured triangle with Gouraud-Shading in the instance image, at coordinates (x0
,y0
)-(x1
,y1
)-(x2
,y2
).
x0 | = X-coordinate of the first corner in the instance image. | |
y0 | = Y-coordinate of the first corner in the instance image. | |
x1 | = X-coordinate of the second corner in the instance image. | |
y1 | = Y-coordinate of the second corner in the instance image. | |
x2 | = X-coordinate of the third corner in the instance image. | |
y2 | = Y-coordinate of the third corner in the instance image. | |
texture | = texture image used to fill the triangle. | |
tx0 | = X-coordinate of the first corner in the texture image. | |
ty0 | = Y-coordinate of the first corner in the texture image. | |
tx1 | = X-coordinate of the second corner in the texture image. | |
ty1 | = Y-coordinate of the second corner in the texture image. | |
tx2 | = X-coordinate of the third corner in the texture image. | |
ty2 | = Y-coordinate of the third corner in the texture image. | |
brightness0 | = brightness value of the first corner. | |
brightness1 | = brightness value of the second corner. | |
brightness2 | = brightness value of the third corner. | |
opacity | = opacity of the drawing. |
Definition at line 18908 of file cimg.h.
References _cimg_for_triangle4, cimg_library::CImg< T >::abs(), cimg_forV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::max(), cimg_library::cimg::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::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 > & | color, | |||
const CImg< t > & | light, | |||
const int | lx0, | |||
const int | ly0, | |||
const int | lx1, | |||
const int | ly1, | |||
const int | lx2, | |||
const int | ly2, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 18875 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_triangle().
CImg<T>& cimg_library::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< t > & | light, | |||
const int | lx0, | |||
const int | ly0, | |||
const int | lx1, | |||
const int | ly1, | |||
const int | lx2, | |||
const int | ly2, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Draw a 2D phong-shaded triangle in the instance image, at coordinates (x0
,y0
)-(x1
,y1
)-(x2
,y2
).
x0 | = X-coordinate of the first corner in the instance image. | |
y0 | = Y-coordinate of the first corner in the instance image. | |
x1 | = X-coordinate of the second corner in the instance image. | |
y1 | = Y-coordinate of the second corner in the instance image. | |
x2 | = X-coordinate of the third corner in the instance image. | |
y2 | = Y-coordinate of the third corner in the instance image. | |
color | = array of dimv() values of type T , defining the global drawing color. | |
light | = light image. | |
lx0 | = X-coordinate of the first corner in the light image. | |
ly0 | = Y-coordinate of the first corner in the light image. | |
lx1 | = X-coordinate of the second corner in the light image. | |
ly1 | = Y-coordinate of the second corner in the light image. | |
lx2 | = X-coordinate of the third corner in the light image. | |
ly2 | = Y-coordinate of the third corner in the light image. | |
opacity | = opacity of the drawing. |
Definition at line 18798 of file cimg.h.
References _cimg_for_triangle3, cimg_library::CImg< T >::abs(), cimg_forV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::max(), cimg_library::cimg::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::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< t > & | texture, | |||
const int | tx0, | |||
const int | ty0, | |||
const int | tx1, | |||
const int | ty1, | |||
const int | tx2, | |||
const int | ty2, | |||
const float | opacity = 1.0f , |
|||
const float | brightness = 1.0f | |||
) | [inline] |
Draw a textured triangle with perspective correction.
Definition at line 18651 of file cimg.h.
References _cimg_for_triangle1, cimg_library::CImg< T >::abs(), cimg_forV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::max(), cimg_library::cimg::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::draw_triangle | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const int | x2, | |||
const int | y2, | |||
const CImg< t > & | texture, | |||
const int | tx0, | |||
const int | ty0, | |||
const int | tx1, | |||
const int | ty1, | |||
const int | tx2, | |||
const int | ty2, | |||
const float | opacity = 1.0f , |
|||
const float | brightness = 1.0f | |||
) | [inline] |
Draw a 2D textured triangle in the instance image, at coordinates (x0
,y0
)-(x1
,y1
)-(x2
,y2
).
x0 | = X-coordinate of the first corner in the instance image. | |
y0 | = Y-coordinate of the first corner in the instance image. | |
x1 | = X-coordinate of the second corner in the instance image. | |
y1 | = Y-coordinate of the second corner in the instance image. | |
x2 | = X-coordinate of the third corner in the instance image. | |
y2 | = Y-coordinate of the third corner in the instance image. | |
texture | = texture image used to fill the triangle. | |
tx0 | = X-coordinate of the first corner in the texture image. | |
ty0 | = Y-coordinate of the first corner in the texture image. | |
tx1 | = X-coordinate of the second corner in the texture image. | |
ty1 | = Y-coordinate of the second corner in the texture image. | |
tx2 | = X-coordinate of the third corner in the texture image. | |
ty2 | = Y-coordinate of the third corner in the texture image. | |
opacity | = opacity of the drawing. | |
brightness | = brightness of the drawing (in [0,2]). |
Definition at line 18534 of file cimg.h.
References _cimg_for_triangle3, cimg_library::CImg< T >::abs(), cimg_forV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::max(), cimg_library::cimg::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::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 > & | color, | |||
const float | brightness0, | |||
const float | brightness1, | |||
const float | brightness2, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 18504 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_triangle().
CImg<T>& cimg_library::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.0f | |||
) | [inline] |
Draw a 2D Gouraud-filled triangle in the instance image, at coordinates (x0
,y0
)-(x1
,y1
)-(x2
,y2
).
x0 | = X-coordinate of the first corner in the instance image. | |
y0 | = Y-coordinate of the first corner in the instance image. | |
x1 | = X-coordinate of the second corner in the instance image. | |
y1 | = Y-coordinate of the second corner in the instance image. | |
x2 | = X-coordinate of the third corner in the instance image. | |
y2 | = Y-coordinate of the third corner in the instance image. | |
color | = array of dimv() values of type T , defining the global drawing color. | |
brightness0 | = brightness of the first corner (in [0,2]). | |
brightness1 | = brightness of the second corner (in [0,2]). | |
brightness2 | = brightness of the third corner (in [0,2]). | |
opacity | = opacity of the drawing. |
Definition at line 18444 of file cimg.h.
References _cimg_for_triangle2, cimg_library::CImg< T >::abs(), cimg_forV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::cimg::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::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 > & | color, | |||
const float | opacity, | |||
const unsigned int | pattern | |||
) | [inline] |
Definition at line 18423 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_triangle().
CImg<T>& cimg_library::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 | |||
) | [inline] |
Draw a 2D outlined colored triangle.
Definition at line 18411 of file cimg.h.
References cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::pixel_type().
CImg<T>& cimg_library::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 > & | color, | |||
const float | opacity = 1.0f | |||
) | [inline] |
Definition at line 18404 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::draw_triangle().
CImg<T>& cimg_library::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.0f | |||
) | [inline] |
Draw a 2D filled colored triangle in the instance image.
Definition at line 18394 of file cimg.h.
References cimg_library::CImg< T >::_draw_triangle(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::pixel_type().
Referenced by cimg_library::CImg< T >::draw_object3d(), and cimg_library::CImg< T >::draw_triangle().
const CImg<T>& cimg_library::CImg< T >::eigen | ( | CImg< t > & | val, | |
CImg< t > & | vec | |||
) | const [inline] |
Compute the eigenvalues and eigenvectors of a matrix.
Definition at line 24209 of file cimg.h.
References cimg_library::CImg< T >::assign(), b, cimg_library::cos(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::sin(), cimg_library::CImg< T >::size(), cimg_library::CImg< T >::sqrt(), cimg_library::cimg::warn(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_eigen(), and cimg_library::CImg< T >::symmetric_eigen().
const_iterator cimg_library::CImg< T >::end | ( | ) | const [inline] |
Definition at line 11184 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::size().
iterator cimg_library::CImg< T >::end | ( | ) | [inline] |
Return an iterator to the last image pixel.
Definition at line 11180 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::size().
Referenced by cimg_library::CImg< T >::_fill(), cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_shared_channels(), cimg_library::CImg< T >::get_shared_lines(), cimg_library::CImg< T >::get_shared_planes(), cimg_library::CImg< T >::get_shared_points(), cimg_library::CImg< T >::MSE(), and cimg_library::CImg< T >::operator~().
CImg<T>& cimg_library::CImg< T >::equalize_histogram | ( | const unsigned int | nblevels = 256 , |
|
const T | val_min = (T)0 , |
|||
const T | val_max = (T)0 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 15015 of file cimg.h.
References cimg_for, cimg_forX, cimg_library::CImg< T >::get_histogram(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::minmax(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::size().
CImg<T>& cimg_library::CImg< T >::erode | ( | const unsigned int | n, | |
const unsigned int | cond = 1 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 21645 of file cimg.h.
References cimg_library::CImg< T >::get_erode().
CImg<T>& cimg_library::CImg< T >::erode | ( | const CImg< t > & | mask, | |
const unsigned int | cond = 1 , |
|||
const bool | weighted_erosion = false | |||
) | [inline] |
In-place version of the previous function.
Definition at line 21630 of file cimg.h.
References cimg_library::CImg< T >::get_erode().
CImg<T>& cimg_library::CImg< T >::exp | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 12641 of file cimg.h.
References cimg_for, cimg_library::exp(), and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::draw_gaussian(), cimg_library::CImg< T >::get_exp(), and cimg_library::CImg< T >::noise().
CImg<T>& cimg_library::CImg< T >::fill | ( | const char *const | values, | |
const bool | repeat_pattern | |||
) | [inline] |
Fill image values according to the values found in the specified string.
Definition at line 13328 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::size(), and cimg_library::cimg::strlen().
CImg<T>& cimg_library::CImg< T >::fill | ( | const double | val0, | |
... | ||||
) | [inline] |
CImg<T>& cimg_library::CImg< T >::fill | ( | const int | val0, | |
... | ||||
) | [inline] |
CImg<T>& cimg_library::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 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13241 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::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 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13202 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::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 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13164 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::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 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13128 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::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 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13095 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::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 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13062 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::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 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13031 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::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 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13000 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::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 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 12971 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::fill | ( | const T | val0, | |
const T | val1, | |||
const T | val2, | |||
const T | val3, | |||
const T | val4, | |||
const T | val5, | |||
const T | val6 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 12945 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::fill | ( | const T | val0, | |
const T | val1, | |||
const T | val2, | |||
const T | val3, | |||
const T | val4, | |||
const T | val5 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 12921 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::fill | ( | const T | val0, | |
const T | val1, | |||
const T | val2, | |||
const T | val3, | |||
const T | val4 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 12900 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::fill | ( | const T | val0, | |
const T | val1, | |||
const T | val2, | |||
const T | val3 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 12880 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::fill | ( | const T | val0, | |
const T | val1, | |||
const T | val2 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 12861 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::fill | ( | const T | val0, | |
const T | val1 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 12846 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::fill | ( | const T | val | ) | [inline] |
In-place version of the previous function.
Definition at line 12832 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::size().
Referenced by cimg_library::CImg< T >::_LU(), cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::blur_bilateral(), cimg_library::CImg< T >::CImg(), cimg_library::CImg< T >::get_BayertoRGB(), cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_fill(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_rotate(), cimg_library::CImg< T >::invert(), cimg_library::CImgList< T >::load_yuv(), cimg_library::cimg::marching_cubes(), cimg_library::cimg::marching_squares(), cimg_library::CImg< T >::normalize(), cimg_library::CImg< T >::operator=(), cimg_library::CImg< T >::pow(), cimg_library::CImg< T >::solve(), cimg_library::CImg< T >::SVD(), cimg_library::CImg< T >::symmetric_eigen(), and cimg_library::CImg< T >::translate().
CImg<T>& cimg_library::CImg< T >::fillV | ( | const unsigned int | x, | |
const unsigned int | y, | |||
const unsigned int | z, | |||
const double | a0, | |||
... | ||||
) | [inline] |
Fill image values along the V-axis at the specified pixel position (x,y,z) (double version).
Definition at line 13358 of file cimg.h.
References _cimg_fillv.
CImg<T>& cimg_library::CImg< T >::fillV | ( | const unsigned int | x, | |
const unsigned int | y, | |||
const unsigned int | z, | |||
const int | a0, | |||
... | ||||
) | [inline] |
Fill image values along the V-axis at the specified pixel position (x,y,z) (int version).
Definition at line 13345 of file cimg.h.
References _cimg_fillv.
CImg<T>& cimg_library::CImg< T >::fillYZV | ( | const unsigned int | x, | |
const double | a0, | |||
... | ||||
) | [inline] |
Fill image values along the YZV-axes at the specified pixel position x (double version).
Definition at line 13396 of file cimg.h.
References _cimg_fillyzv.
CImg<T>& cimg_library::CImg< T >::fillYZV | ( | const unsigned int | x, | |
const int | a0, | |||
... | ||||
) | [inline] |
Fill image values along the YZV-axes at the specified pixel position x (int version).
Definition at line 13383 of file cimg.h.
References _cimg_fillyzv.
CImg<T>& cimg_library::CImg< T >::fillZV | ( | const unsigned int | x, | |
const unsigned int | y, | |||
const double | a0, | |||
... | ||||
) | [inline] |
Fill image values along the ZV-axes at the specified pixel position (x,y) (double version).
Definition at line 13377 of file cimg.h.
References _cimg_fillzv.
CImg<T>& cimg_library::CImg< T >::fillZV | ( | const unsigned int | x, | |
const unsigned int | y, | |||
const int | a0, | |||
... | ||||
) | [inline] |
Fill image values along the ZV-axes at the specified pixel position (x,y) (int version).
Definition at line 13364 of file cimg.h.
References _cimg_fillzv.
const T& cimg_library::CImg< T >::front | ( | ) | const [inline] |
Definition at line 11325 of file cimg.h.
References cimg_library::CImg< T >::data.
T& cimg_library::CImg< T >::front | ( | ) | [inline] |
Return a reference to the first image value.
Definition at line 11321 of file cimg.h.
References cimg_library::CImg< T >::data.
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_abs | ( | ) | const [inline] |
Compute the absolute value of each pixel value.
Definition at line 12704 of file cimg.h.
References cimg_library::CImg< T >::abs().
Referenced by cimg_library::abs().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_acos | ( | ) | const [inline] |
Compute the arc-cosine of each pixel value.
Definition at line 12752 of file cimg.h.
References cimg_library::CImg< T >::acos().
Referenced by cimg_library::acos().
CImg<T> cimg_library::CImg< T >::get_append | ( | const CImg< T > & | img, | |
const char | axis = 'x' , |
|||
const char | align = 'c' | |||
) | const [inline] |
Append an image to another one.
Definition at line 15219 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImgList< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImgList< T >::get_append(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::append(), cimg_library::append(), cimg_library::CImgList< T >::display(), and cimg_library::CImgList< T >::save_off().
CImg<T> cimg_library::CImg< T >::get_apply | ( | t & | func | ) | const [inline] |
Apply a R->R function on all pixel values.
Definition at line 12492 of file cimg.h.
Referenced by cimg_library::apply().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_asin | ( | ) | const [inline] |
Compute the arc-sinus of each pixel value.
Definition at line 12764 of file cimg.h.
References cimg_library::CImg< T >::asin().
Referenced by cimg_library::asin().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_atan | ( | ) | const [inline] |
Compute the arc-tangent of each pixel.
Definition at line 12776 of file cimg.h.
References cimg_library::CImg< T >::atan().
Referenced by cimg_library::atan().
CImg<T> cimg_library::CImg< T >::get_BayertoRGB | ( | const unsigned int | interpolation_type = 3 |
) | const [inline] |
Convert a Bayer-coded image to a (R,G,B) color image.
Definition at line 16442 of file cimg.h.
References CImg_3x3, cimg_forXYZ, cimg_get3x3, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::sqr(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::BayertoRGB(), and cimg_library::BayertoRGB().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_blur | ( | const float | sigma, | |
const bool | cond = true | |||
) | const [inline] |
Return a blurred version of the image, using a Canny-Deriche filter.
Definition at line 21943 of file cimg.h.
References cimg_library::CImg< T >::blur().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_blur | ( | const float | sigmax, | |
const float | sigmay, | |||
const float | sigmaz, | |||
const bool | cond = true | |||
) | const [inline] |
Return a blurred version of the image, using a Canny-Deriche filter.
Blur the image with an anisotropic exponential filter (Deriche filter of order 0).
Definition at line 21926 of file cimg.h.
References cimg_library::CImg< T >::blur().
Referenced by cimg_library::blur(), and cimg_library::CImg< T >::sharpen().
CImg<T> cimg_library::CImg< T >::get_blur_anisotropic | ( | const float | amplitude, | |
const float | sharpness = 0.7f , |
|||
const float | anisotropy = 0.3f , |
|||
const float | alpha = 0.6f , |
|||
const float | sigma = 1.1f , |
|||
const float | dl = 0.8f , |
|||
const float | da = 30.0f , |
|||
const float | gauss_prec = 2.0f , |
|||
const unsigned int | interpolation = 0 , |
|||
const bool | fast_approx = true , |
|||
const float | geom_factor = 1.0f | |||
) | const [inline] |
CImg<T> cimg_library::CImg< T >::get_blur_anisotropic | ( | const CImg< tm > & | mask, | |
const float | amplitude, | |||
const float | sharpness = 0.7f , |
|||
const float | anisotropy = 0.3f , |
|||
const float | alpha = 0.6f , |
|||
const float | sigma = 1.1f , |
|||
const float | dl = 0.8f , |
|||
const float | da = 30.0f , |
|||
const float | gauss_prec = 2.0f , |
|||
const unsigned int | interpolation = 0 , |
|||
const bool | fast_approx = true , |
|||
const float | geom_factor = 1.0f | |||
) | const [inline] |
Blur an image in an anisotropic way.
mask | Binary mask. | |
amplitude | Amplitude of the anisotropic blur. | |
sharpness | Contour preservation. | |
anisotropy | Smoothing anisotropy. | |
alpha | Image pre-blurring (gaussian). | |
sigma | Regularity of the tensor-valued geometry. | |
dl | Spatial discretization. | |
da | Angular discretization. | |
gauss_prec | Precision of the gaussian function. | |
interpolation | Used interpolation scheme (0 = nearest-neighbor, 1 = linear, 2 = Runge-Kutta) | |
fast_approx | Tell to use the fast approximation or not | |
geom_factor | Geometry factor. |
CImg<T> cimg_library::CImg< T >::get_blur_anisotropic | ( | const CImg< t > & | G, | |
const float | amplitude = 60.0f , |
|||
const float | dl = 0.8f , |
|||
const float | da = 30.0f , |
|||
const float | gauss_prec = 2.0f , |
|||
const unsigned int | interpolation = 0 , |
|||
const bool | fast_approx = true | |||
) | const [inline] |
Get a blurred version of an image following a field of diffusion tensors.
G | = Field of square roots of diffusion tensors used to drive the smoothing. | |
amplitude | = amplitude of the smoothing. | |
dl | = spatial discretization. | |
da | = angular discretization. | |
gauss_prec | = precision of the gaussian function. | |
interpolation | Used interpolation scheme (0 = nearest-neighbor, 1 = linear, 2 = Runge-Kutta) | |
fast_approx | = Tell to use the fast approximation or not. |
Definition at line 21964 of file cimg.h.
Referenced by cimg_library::blur_anisotropic().
CImg<T> cimg_library::CImg< T >::get_blur_bilateral | ( | const float | sigmas, | |
const float | sigmar, | |||
const int | bgrids = -33 , |
|||
const int | bgridr = 32 , |
|||
const bool | interpolation = true | |||
) | const [inline] |
CImg<T> cimg_library::CImg< T >::get_blur_bilateral | ( | const float | sigmax, | |
const float | sigmay, | |||
const float | sigmaz, | |||
const float | sigmar, | |||
const int | bgridx, | |||
const int | bgridy, | |||
const int | bgridz, | |||
const int | bgridr, | |||
const bool | interpolation = true | |||
) | const [inline] |
Blur an image using the bilateral filter.
sigmax | Amount of blur along the X-axis. | |
sigmay | Amount of blur along the Y-axis. | |
sigmaz | Amount of blur along the Z-axis. | |
sigmar | Amount of blur along the range axis. | |
bgridx | Size of the bilateral grid along the X-axis. | |
bgridy | Size of the bilateral grid along the Y-axis. | |
bgridz | Size of the bilateral grid along the Z-axis. | |
bgridr | Size of the bilateral grid along the range axis. | |
interpolation | Use interpolation for image slicing. |
Definition at line 22416 of file cimg.h.
Referenced by cimg_library::blur_bilateral().
CImg<T> cimg_library::CImg< T >::get_blur_median | ( | const unsigned int | n = 3 |
) | [inline] |
Apply a median filter.
Definition at line 22663 of file cimg.h.
References _median_sort, CImg_3x3, CImg_5x5, cimg_for2x2, cimg_for3x3, cimg_for5x5, cimg_forV, cimg_forXV, cimg_forXYV, cimg_forXYZV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::median(), memcpy(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::blur_median(), and cimg_library::blur_median().
CImg<T> cimg_library::CImg< T >::get_blur_patch | ( | const unsigned int | patch_size = 3 , |
|
const float | sigma_p = 10.0f , |
|||
const float | sigma_s = 10.0f , |
|||
const unsigned int | lookup_size = 4 , |
|||
const bool | fast_approx = true | |||
) | const [inline] |
Blur an image in its patch-based space.
Definition at line 22511 of file cimg.h.
Referenced by cimg_library::blur_patch().
CImg<T> cimg_library::CImg< T >::get_channel | ( | const unsigned int | v0 | ) | const [inline] |
Return a copy of a channel of the instance image.
Definition at line 14800 of file cimg.h.
References cimg_library::CImg< T >::get_channels().
Referenced by cimg_library::channel().
CImg<T> cimg_library::CImg< T >::get_channels | ( | const unsigned int | v0, | |
const unsigned int | v1 | |||
) | const [inline] |
Return a copy of a set of channels of the instance image.
Definition at line 14790 of file cimg.h.
References cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), and cimg_library::CImg< T >::get_crop().
Referenced by cimg_library::CImg< T >::channels(), cimg_library::channels(), cimg_library::CImg< T >::get_channel(), and cimg_library::CImg< T >::get_coordinates().
static CImg<T> cimg_library::CImg< T >::get_cluster_LUT8 | ( | ) | [inline, static] |
CImg<T> cimg_library::CImg< T >::get_column | ( | const unsigned int | x0 | ) | const [inline] |
Return one column.
Definition at line 14740 of file cimg.h.
References cimg_library::CImg< T >::get_columns().
Referenced by cimg_library::column().
CImg<T> cimg_library::CImg< T >::get_columns | ( | const unsigned int | x0, | |
const unsigned int | x1 | |||
) | const [inline] |
Return a set of columns.
Definition at line 14730 of file cimg.h.
References cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), and cimg_library::CImg< T >::get_crop().
Referenced by cimg_library::CImg< T >::columns(), cimg_library::columns(), and cimg_library::CImg< T >::get_column().
CImg<typename cimg::superset2<T,t,float>::type> cimg_library::CImg< T >::get_convolve | ( | const CImg< t > & | mask, | |
const unsigned int | cond = 1 , |
|||
const bool | weighted_convol = false | |||
) | const [inline] |
Return the convolution of the image by a mask.
The result res
of the convolution of an image img
by a mask mask
is defined to be :
res(x,y,z) = sum_{i,j,k} img(x-i,y-j,z-k)*mask(i,j,k)
mask | = the correlation kernel. | |
cond | = the border condition type (0=zero, 1=dirichlet) | |
weighted_convol | = enable local normalization. |
Definition at line 21536 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::get_correlate(), cimg_library::CImg< T >::get_mirror(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::convolve(), and cimg_library::convolve().
CImg<typename cimg::last<T,int>::type> cimg_library::CImg< T >::get_coordinates | ( | const int | coords_type = 0 , |
|
unsigned int *const | XYZ = 0 , |
|||
const unsigned char *const | color = 0 | |||
) | const [inline] |
High-level interface to select features in images.
Definition at line 24807 of file cimg.h.
References cimg_library::CImgDisplay::_fitscreen(), cimg_library::CImg< T >::depth, cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<typename cimg::last<T,int>::type> cimg_library::CImg< T >::get_coordinates | ( | const int | coords_type, | |
CImgDisplay & | disp, | |||
unsigned int *const | XYZ = 0 , |
|||
const unsigned char *const | color = 0 | |||
) | const [inline] |
Simple interface to select shaped from an image.
selection | Array of 6 values containing the selection result | |
coords_type | Determine shape type to select (0=point, 1=vector, 2=rectangle, 3=circle) | |
disp | Display window used to make the selection | |
XYZ | Initial XYZ position (for volumetric images only) | |
color | Color of the shape selector. |
Definition at line 24497 of file cimg.h.
References cimg_library::CImgDisplay::_fitscreen(), cimg_library::cimg::abs(), cimg_library::CImg< T >::assign(), cimg_library::CImgDisplay::button, cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImgDisplay::display(), cimg_library::CImg< T >::draw_arrow(), cimg_library::CImg< T >::draw_ellipse(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::draw_text(), cimg_library::CImg< T >::end(), cimg_library::CImgDisplay::events, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::CImg< T >::get_channels(), cimg_library::CImg< T >::get_projections2d(), cimg_library::CImgDisplay::height, cimg_library::CImg< T >::height, cimg_library::CImgDisplay::is_closed, cimg_library::CImg< T >::is_empty(), cimg_library::CImgDisplay::is_fullscreen, cimg_library::CImgDisplay::is_key(), cimg_library::CImgDisplay::is_resized, cimg_library::CImgDisplay::key, cimg_library::cimg::keyC, cimg_library::cimg::keyCTRLLEFT, cimg_library::cimg::keyD, cimg_library::cimg::keyF, cimg_library::cimg::keyO, cimg_library::cimg::keyPAGEDOWN, cimg_library::cimg::keyPAGEUP, cimg_library::cimg::keyR, cimg_library::cimg::keyS, cimg_library::CImg< T >::mean(), memcpy(), cimg_library::cimg::min(), cimg_library::CImgDisplay::mouse_x, cimg_library::CImgDisplay::mouse_y, cimg_library::CImg< T >::norm(), cimg_library::CImgDisplay::normalization, cimg_library::CImg< T >::normalize(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::resize(), cimg_library::CImgDisplay::resize(), cimg_library::CImg< T >::save(), cimg_library::CImgDisplay::screen_dimx(), cimg_library::CImgDisplay::screen_dimy(), cimg_library::CImgDisplay::show(), cimg_library::CImg< T >::sqrt(), cimg_library::cimg::strlen(), cimg_library::CImg< T >::swap(), cimg_library::CImgDisplay::toggle_fullscreen(), cimg_library::CImgDisplay::wait(), cimg_library::CImgDisplay::wheel, cimg_library::CImgDisplay::width, and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::coordinates(), cimg_library::coordinates(), cimg_library::CImg< T >::display(), and cimg_library::CImg< T >::get_coordinates().
CImg<typename cimg::superset2<T,t,float>::type> cimg_library::CImg< T >::get_correlate | ( | const CImg< t > & | mask, | |
const unsigned int | cond = 1 , |
|||
const bool | weighted_correl = false | |||
) | const [inline] |
Compute the correlation of the instance image by a mask.
The correlation of the instance image *this
by the mask mask
is defined to be :
res(x,y,z) = sum_{i,j,k} (*this)(x+i,y+j,z+k)*mask(i,j,k)
mask | = the correlation kernel. | |
cond | = the border condition type (0=zero, 1=dirichlet) | |
weighted_correl | = enable local normalization. |
Definition at line 21323 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_for2x2, cimg_for2x2x2, cimg_for3x3, cimg_for3x3x3, cimg_for4x4, cimg_for5x5, cimg_for6x6, cimg_forV, cimg_forYZV, cimg_forZV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), mask, cimg_library::CImg< T >::pix3d(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::sqrt(), cimg_library::sqrt(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::correlate(), cimg_library::correlate(), and cimg_library::CImg< T >::get_convolve().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_cos | ( | ) | const [inline] |
Compute the cosinus of each pixel value.
Definition at line 12716 of file cimg.h.
References cimg_library::CImg< T >::cos().
Referenced by cimg_library::cos().
CImg<T> cimg_library::CImg< T >::get_crop | ( | const int | x0, | |
const int | x1, | |||
const bool | border_condition = false | |||
) | const [inline] |
Return a square region of the image, as a new image.
x0 | = X-coordinate of the upper-left crop rectangle corner. | |
x1 | = X-coordinate of the lower-right crop rectangle corner. | |
border_condition | = determine the type of border condition if some of the desired region is outside the image. |
Definition at line 14720 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::get_crop(), and cimg_library::CImg< T >::height.
CImg<T> cimg_library::CImg< T >::get_crop | ( | const int | x0, | |
const int | y0, | |||
const int | x1, | |||
const int | y1, | |||
const bool | border_condition = false | |||
) | const [inline] |
Return a square region of the image, as a new image.
x0 | = X-coordinate of the upper-left crop rectangle corner. | |
y0 | = Y-coordinate of the upper-left crop rectangle corner. | |
x1 | = X-coordinate of the lower-right crop rectangle corner. | |
y1 | = Y-coordinate of the lower-right crop rectangle corner. | |
border_condition | = determine the type of border condition if some of the desired region is outside the image. |
Definition at line 14700 of file cimg.h.
References cimg_library::CImg< T >::depth, and cimg_library::CImg< T >::get_crop().
CImg<T> cimg_library::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 [inline] |
Return a square region of the image, as a new image.
x0 | = X-coordinate of the upper-left crop rectangle corner. | |
y0 | = Y-coordinate of the upper-left crop rectangle corner. | |
z0 | = Z-coordinate of the upper-left crop rectangle corner. | |
x1 | = X-coordinate of the lower-right crop rectangle corner. | |
y1 | = Y-coordinate of the lower-right crop rectangle corner. | |
z1 | = Z-coordinate of the lower-right crop rectangle corner. | |
border_condition | = determine the type of border condition if some of the desired region is outside the image. |
Definition at line 14678 of file cimg.h.
References cimg_library::CImg< T >::get_crop().
CImg<T> cimg_library::CImg< T >::get_crop | ( | const int | x0, | |
const int | y0, | |||
const int | z0, | |||
const int | v0, | |||
const int | x1, | |||
const int | y1, | |||
const int | z1, | |||
const int | v1, | |||
const bool | border_condition = false | |||
) | const [inline] |
Return a square region of the image, as a new image.
x0 | = X-coordinate of the upper-left crop rectangle corner. | |
y0 | = Y-coordinate of the upper-left crop rectangle corner. | |
z0 | = Z-coordinate of the upper-left crop rectangle corner. | |
v0 | = V-coordinate of the upper-left crop rectangle corner. | |
x1 | = X-coordinate of the lower-right crop rectangle corner. | |
y1 | = Y-coordinate of the lower-right crop rectangle corner. | |
z1 | = Z-coordinate of the lower-right crop rectangle corner. | |
v1 | = V-coordinate of the lower-right crop rectangle corner. | |
border_condition | = Dirichlet (false) or Neumann border conditions. |
Definition at line 14643 of file cimg.h.
References cimg_forXYZV, cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::pix4d().
Referenced by cimg_library::CImg< T >::blur_patch(), cimg_library::CImgList< T >::crop(), cimg_library::CImg< T >::crop(), cimg_library::crop(), cimg_library::CImg< T >::display(), cimg_library::CImg< T >::get_blur_median(), cimg_library::CImg< T >::get_channels(), cimg_library::CImg< T >::get_columns(), cimg_library::CImg< T >::get_crop(), cimg_library::CImgList< T >::get_crop_font(), cimg_library::CImg< T >::get_haar(), cimg_library::CImg< T >::get_lines(), cimg_library::CImg< T >::get_slices(), and cimg_library::CImg< T >::get_split().
CImg<typename cimg::superset<T,t>::type> cimg_library::CImg< T >::get_cross | ( | const CImg< t > & | img | ) | const [inline] |
Compute the cross product between two 3d vectors.
Definition at line 23801 of file cimg.h.
Referenced by cimg_library::cross().
CImg<T> cimg_library::CImg< T >::get_cut | ( | const T | a, | |
const T | b | |||
) | const [inline] |
Cut pixel values between a and b.
a | = minimum pixel value after cut. | |
b | = maximum pixel value after cut. |
Definition at line 13427 of file cimg.h.
Referenced by cimg_library::cut().
static CImg<T> cimg_library::CImg< T >::get_default_LUT8 | ( | ) | [inline, static] |
Return the default 256 colors palette.
The default color palette is used by CImg when displaying images on 256 colors displays. It consists in the quantification of the (R,G,B) color space using 3:3:2 bits for color coding (i.e 8 levels for the Red and Green and 4 levels for the Blue).
Definition at line 15710 of file cimg.h.
References cimg_library::CImg< T >::assign(), b, and blender::g.
Referenced by cimg_library::CImg< T >::get_LUTtoRGB(), and cimg_library::CImg< T >::get_RGBtoLUT().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_deriche | ( | const float | sigma, | |
const int | order = 0 , |
|||
const char | axe = 'x' , |
|||
const bool | cond = true | |||
) | const [inline] |
Return the result of the Deriche filter.
The Canny-Deriche filter is a recursive algorithm allowing to compute blurred derivatives of order 0,1 or 2 of an image.
Definition at line 21829 of file cimg.h.
References cimg_library::CImg< T >::deriche().
Referenced by cimg_library::deriche(), cimg_library::CImg< T >::get_gradientXY(), and cimg_library::CImg< T >::get_gradientXYZ().
CImg<T> cimg_library::CImg< T >::get_diagonal | ( | ) | const [inline] |
Get a diagonal matrix, whose diagonal coefficients are the coefficients of the input image.
Definition at line 23660 of file cimg.h.
References cimg_foroff, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::size().
Referenced by cimg_library::CImg< T >::diagonal(), and cimg_library::diagonal().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_dijkstra | ( | const unsigned int | starting_node, | |
const unsigned int | ending_node = ~0U | |||
) | const [inline] |
Return minimal path in a graph, using the Dijkstra algorithm.
Definition at line 15588 of file cimg.h.
References cimg_library::CImg< T >::get_dijkstra().
CImg<T> cimg_library::CImg< T >::get_dijkstra | ( | const unsigned int | starting_node, | |
const unsigned int | ending_node, | |||
CImg< t > & | previous | |||
) | const [inline] |
Return minimal path in a graph, using the Dijkstra algorithm.
Instance image corresponds to the adjacency matrix of the graph.
starting_node | Indice of the starting node. | |
previous | Array that gives the previous node indice in the path to the starting node (optional parameter). |
Definition at line 15575 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::get_dijkstra(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
static CImg<T> cimg_library::CImg< T >::get_dijkstra | ( | const tf & | distance, | |
const unsigned int | nb_nodes, | |||
const unsigned int | starting_node, | |||
const unsigned int | ending_node = ~0U | |||
) | [inline, static] |
Definition at line 15561 of file cimg.h.
References cimg_library::CImg< T >::get_dijkstra().
static CImg<T> cimg_library::CImg< T >::get_dijkstra | ( | const tf & | distance, | |
const unsigned int | nb_nodes, | |||
const unsigned int | starting_node, | |||
const unsigned int | ending_node, | |||
CImg< t > & | previous | |||
) | [inline, static] |
Return minimal path in a graph, using the Dijkstra algorithm.
distance | An object having operator()(unsigned int i, unsigned int j) which returns distance between two nodes (i,j). | |
nb_nodes | Number of graph nodes. | |
starting_node | Indice of the starting node. | |
ending_node | Indice of the ending node (set to ~0U to ignore ending node). | |
previous | Array that gives the previous node indice in the path to the starting node (optional parameter). |
Definition at line 15512 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_forX, cimg_library::CImg< T >::max(), cimg_library::cimg::swap(), and cimg_library::CImg< T >::swap().
Referenced by cimg_library::CImg< T >::dijkstra(), cimg_library::dijkstra(), and cimg_library::CImg< T >::get_dijkstra().
CImg<T> cimg_library::CImg< T >::get_dilate | ( | const unsigned int | n, | |
const unsigned int | cond = 1 | |||
) | const [inline] |
Dilate the image by a square structuring element of size n.
Definition at line 21734 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::get_dilate(), mask, and cimg_library::CImg< T >::width.
CImg<typename cimg::superset<T,t>::type> cimg_library::CImg< T >::get_dilate | ( | const CImg< t > & | mask, | |
const unsigned int | cond = 1 , |
|||
const bool | weighted_dilatation = false | |||
) | const [inline] |
Return the dilatation of the image by a structuring element.
Definition at line 21652 of file cimg.h.
References cimg_forV, cimg_forYZV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), mask, cimg_library::CImg< T >::min(), cimg_library::CImg< T >::pix3d(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::dilate(), cimg_library::dilate(), and cimg_library::CImg< T >::get_dilate().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_displacement_field | ( | const CImg< T > & | target, | |
const float | smoothness = 0.1f , |
|||
const float | precision = 0.1f , |
|||
const unsigned int | nb_scales = 0 , |
|||
const unsigned int | itermax = 10000 | |||
) | const [inline] |
Estimate a displacement field between instance image and given target image.
Definition at line 23070 of file cimg.h.
References cimg_library::cimg::abs(), cimg_library::CImg< T >::assign(), CImg_3x3, CImg_3x3x3, cimg_for3XY, cimg_for3XYZ, cimg_forV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_sameXYZV(), cimg_library::log(), cimg_library::CImg< T >::max(), cimg_library::cimg::max(), cimg_library::CImg< T >::maxmin(), cimg_library::CImg< T >::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::pow(), cimg_library::pow(), threed, cimg_library::CImg< T >::transfer_to(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::displacement_field(), and cimg_library::displacement_field().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_distance_function | ( | const unsigned int | nb_iter = 100 , |
|
const float | band_size = 0.0f , |
|||
const float | precision = 0.5f | |||
) | const [inline] |
Get distance function from 0-valued isophotes by the application of the eikonal equation.
Definition at line 15452 of file cimg.h.
References cimg_library::CImg< T >::distance_function().
Referenced by cimg_library::distance_function().
CImg<typename cimg::superset<T,t>::type> cimg_library::CImg< T >::get_div | ( | const CImg< t > & | img | ) | const [inline] |
Pointwise division between two images.
Definition at line 12518 of file cimg.h.
References cimg_library::CImg< T >::div().
Referenced by cimg_library::div().
CImgList<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_eigen | ( | ) | const [inline] |
Return the eigenvalues and eigenvectors of a matrix.
Definition at line 24201 of file cimg.h.
References cimg_library::CImg< T >::eigen().
Referenced by cimg_library::eigen().
CImg<T> cimg_library::CImg< T >::get_equalize_histogram | ( | const unsigned int | nblevels = 256 , |
|
const T | val_min = (T)0 , |
|||
const T | val_max = (T)0 | |||
) | const [inline] |
Return the histogram-equalized version of the current image.
The histogram equalization is a classical image processing algorithm that enhances the image contrast by expanding its histogram.
nblevels | = Number of different levels of the computed histogram. For classical images, this value is 256 (default value). You should specify more levels if you are working with CImg<float> or images with high range of pixel values. | |
val_min | = Minimum value considered for the histogram computation. All pixel values lower than val_min won't be changed. | |
val_max | = Maximum value considered for the histogram computation. All pixel values higher than val_max won't be changed. |
Definition at line 15010 of file cimg.h.
Referenced by cimg_library::equalize_histogram().
CImg<T> cimg_library::CImg< T >::get_erode | ( | const unsigned int | n, | |
const unsigned int | cond = 1 | |||
) | const [inline] |
Erode the image by a square structuring element of size n.
Definition at line 21635 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::get_erode(), mask, and cimg_library::CImg< T >::width.
CImg<typename cimg::superset<T,t>::type> cimg_library::CImg< T >::get_erode | ( | const CImg< t > & | mask, | |
const unsigned int | cond = 1 , |
|||
const bool | weighted_erosion = false | |||
) | const [inline] |
Return the erosion of the image by a structuring element.
Definition at line 21552 of file cimg.h.
References cimg_forV, cimg_forYZV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), mask, cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pix3d(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::erode(), cimg_library::erode(), and cimg_library::CImg< T >::get_erode().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_exp | ( | ) | const [inline] |
Compute the exponential of each pixel value.
Definition at line 12635 of file cimg.h.
References cimg_library::CImg< T >::exp().
Referenced by cimg_library::exp().
CImgList<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_FFT | ( | const bool | invert = false |
) | const [inline] |
Return the Fast Fourier Transform on an image.
Definition at line 22657 of file cimg.h.
References cimg_library::CImg< T >::invert().
CImgList<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_FFT | ( | const char | axe, | |
const bool | invert = false | |||
) | const [inline] |
Return the Fast Fourier Transform of an image (along a specified axis).
Definition at line 22651 of file cimg.h.
References cimg_library::CImg< T >::invert().
Referenced by cimg_library::FFT().
CImg<T> cimg_library::CImg< T >::get_fill | ( | const double | val0, | |
... | ||||
) | const [inline] |
Fill sequentially pixel values.
Definition at line 13293 of file cimg.h.
References cimg_library::CImg< T >::_fill().
CImg<T> cimg_library::CImg< T >::get_fill | ( | const int | val0, | |
... | ||||
) | const [inline] |
Fill sequentially pixel values.
Definition at line 13274 of file cimg.h.
References cimg_library::CImg< T >::_fill().
CImg<T> cimg_library::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 [inline] |
Fill sequentially pixel values.
Definition at line 13234 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::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 [inline] |
Fill sequentially pixel values.
Definition at line 13195 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::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 [inline] |
Fill sequentially pixel values.
Definition at line 13157 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::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 [inline] |
Fill sequentially pixel values.
Definition at line 13122 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::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 [inline] |
Fill sequentially pixel values.
Definition at line 13089 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::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 [inline] |
Fill sequentially pixel values.
Definition at line 13056 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::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 [inline] |
Fill sequentially pixel values.
Definition at line 13025 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::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 [inline] |
Fill sequentially pixel values.
Definition at line 12994 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::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 [inline] |
Fill sequentially pixel values.
Definition at line 12965 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::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 [inline] |
Fill sequentially pixel values.
Definition at line 12940 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::CImg< T >::get_fill | ( | const T | val0, | |
const T | val1, | |||
const T | val2, | |||
const T | val3, | |||
const T | val4, | |||
const T | val5 | |||
) | const [inline] |
Fill sequentially all pixel values with values val0 and val1 and val2 and val3 and val4 and val5.
Definition at line 12916 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::CImg< T >::get_fill | ( | const T | val0, | |
const T | val1, | |||
const T | val2, | |||
const T | val3, | |||
const T | val4 | |||
) | const [inline] |
Fill sequentially all pixel values with values val0 and val1 and val2 and val3 and val4.
Definition at line 12895 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::CImg< T >::get_fill | ( | const T | val0, | |
const T | val1, | |||
const T | val2, | |||
const T | val3 | |||
) | const [inline] |
Fill sequentially all pixel values with values val0 and val1 and val2 and val3.
Definition at line 12875 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::CImg< T >::get_fill | ( | const T | val0, | |
const T | val1, | |||
const T | val2 | |||
) | const [inline] |
Fill sequentially all pixel values with values val0 and val1 and val2.
Definition at line 12856 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::CImg< T >::get_fill | ( | const T | val0, | |
const T | val1 | |||
) | const [inline] |
Fill sequentially all pixel values with values val0 and val1 respectively.
Definition at line 12841 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::CImg< T >::get_fill | ( | const T | val | ) | const [inline] |
Fill an image by a value val
.
val | = fill value |
val
. Definition at line 12827 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
Referenced by cimg_library::fill().
CImgList<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_gradientXY | ( | const int | scheme = 0 |
) | const [inline] |
Return a list of images, corresponding to the XY-gradients of an image.
scheme | = Numerical scheme used for the gradient computation :
|
Definition at line 15250 of file cimg.h.
References b, CImg_2x2, CImg_3x3, cimg_for2x2, cimg_for3x3, cimg_forZV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::get_deriche(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::sqrt(), cimg_library::sqrt(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::gradientXY().
CImgList<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_gradientXYZ | ( | const int | scheme = 0 |
) | const [inline] |
Return a list of images, corresponding to the XYZ-gradients of an image.
Definition at line 15298 of file cimg.h.
References CImg_3x3x3, cimg_for3x3x3, cimg_forV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::get_deriche(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::gradientXYZ().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_haar | ( | const bool | invert = false , |
|
const unsigned int | nb_scales = 1 | |||
) | const [inline] |
Compute the Haar multiscale wavelet transform.
invert | Set inverse of direct transform. | |
nb_scales | Number of scales used for the transform. |
Definition at line 22978 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::depth, cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::get_haar(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::invert(), and cimg_library::CImg< T >::width.
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_haar | ( | const char | axis, | |
const bool | invert = false , |
|||
const unsigned int | nb_scales = 1 | |||
) | const [inline] |
Compute the Haar multiscale wavelet transform (monodimensional version).
axis | Axis considered for the transform. | |
invert | Set inverse of direct transform. | |
nb_scales | Number of scales used for the transform. |
Definition at line 22859 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_forXYV, cimg_forXZV, cimg_forYZV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::invert(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::cimg::uncase(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_haar(), cimg_library::CImg< T >::haar(), and cimg_library::haar().
CImgList<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_hessianXY | ( | ) | [inline] |
Get components of the 2D Hessian matrix of an image.
Components are ordered as : Ixx, Ixy, Iyy
Definition at line 15418 of file cimg.h.
References CImg_3x3, cimg_for3x3, cimg_forZV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::width.
CImgList<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_hessianXYZ | ( | ) | [inline] |
Get components of the 3D Hessian matrix of an image.
Components are ordered as : Ixx, Ixy, Ixz, Iyy, Iyz, Izz.
Definition at line 15435 of file cimg.h.
References CImg_3x3x3, cimg_for3x3x3, cimg_forV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::width.
CImg<typename cimg::last<T,float>::type> cimg_library::CImg< T >::get_histogram | ( | const unsigned int | nblevels = 256 , |
|
const T | val_min = (T)0 , |
|||
const T | val_max = (T)0 | |||
) | const [inline] |
Return the image histogram.
The histogram H of an image I is a 1D-function where H(x) is the number of occurences of the value x in I.
nblevels | = Number of different levels of the computed histogram. For classical images, this value is 256 (default value). You should specify more levels if you are working with CImg<float> or images with high range of pixel values. | |
val_min | = Minimum value considered for the histogram computation. All pixel values lower than val_min won't be counted. | |
val_max | = Maximum value considered for the histogram computation. All pixel values higher than val_max won't be counted. |
Definition at line 14974 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::minmax(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::size().
Referenced by cimg_library::CImg< T >::equalize_histogram(), cimg_library::CImg< T >::histogram(), and cimg_library::histogram().
CImg<T> cimg_library::CImg< T >::get_HSItoRGB | ( | ) | const [inline] |
Convert color pixels from (H,S,I) to (R,G,B). Reference: "Digital Image Processing, 2nd. edition", R. Gonzalez and R. Woods. Prentice Hall, 2002.
Definition at line 16085 of file cimg.h.
Referenced by cimg_library::HSItoRGB().
CImg<T> cimg_library::CImg< T >::get_HSLtoRGB | ( | ) | const [inline] |
Convert color pixels from (H,S,L) to (R,G,B).
Definition at line 16011 of file cimg.h.
Referenced by cimg_library::HSLtoRGB().
CImg<T> cimg_library::CImg< T >::get_HSVtoRGB | ( | ) | const [inline] |
Convert color pixels from (H,S,V) to (R,G,B).
Definition at line 15927 of file cimg.h.
Referenced by cimg_library::HSVtoRGB().
CImg<T> cimg_library::CImg< T >::get_identity_matrix | ( | ) | const [inline] |
Get an identity matrix having same dimension than instance image.
Definition at line 23673 of file cimg.h.
References cimg_library::CImg< T >::height, cimg_library::CImg< T >::identity_matrix(), cimg_library::cimg::max(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::identity_matrix().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_invert | ( | const bool | use_LU = true |
) | const [inline] |
Return the inverse of the current matrix.
Definition at line 23715 of file cimg.h.
References cimg_library::CImg< T >::invert().
Referenced by cimg_library::CImg< T >::draw_gaussian(), cimg_library::invert(), cimg_library::operator/(), and cimg_library::CImg< T >::operator/=().
CImg<typename cimg::last<T,unsigned int>::type> cimg_library::CImg< T >::get_label_regions | ( | ) | const [inline] |
Get a label map of disconnected regions with same intensities.
Definition at line 15033 of file cimg.h.
References _cimg_get_label_test, cimg_for, cimg_foroff, cimg_forXY, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::max(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::label_regions(), and cimg_library::label_regions().
CImg<T> cimg_library::CImg< T >::get_LabtoRGB | ( | ) | const [inline] |
Convert a (L,a,b) image to a (R,G,B) one.
Definition at line 16380 of file cimg.h.
Referenced by cimg_library::LabtoRGB().
CImg<T> cimg_library::CImg< T >::get_LabtoXYZ | ( | ) | const [inline] |
Convert (L,a,b) pixels of a color image into the (X,Y,Z) color space.
Definition at line 16297 of file cimg.h.
Referenced by cimg_library::LabtoXYZ().
CImg<T> cimg_library::CImg< T >::get_line | ( | const unsigned int | y0 | ) | const [inline] |
Get a copy of a line of the instance image.
Definition at line 14760 of file cimg.h.
References cimg_library::CImg< T >::get_lines().
Referenced by cimg_library::line().
CImg<T> cimg_library::CImg< T >::get_lines | ( | const unsigned int | y0, | |
const unsigned int | y1 | |||
) | const [inline] |
Get a copy of a set of lines of the instance image.
Definition at line 14750 of file cimg.h.
References cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimz(), and cimg_library::CImg< T >::get_crop().
Referenced by cimg_library::CImg< T >::get_line(), cimg_library::CImg< T >::lines(), and cimg_library::lines().
static CImg<T> cimg_library::CImg< T >::get_load | ( | const char *const | filename | ) | [inline, static] |
Load an image from a file.
filename | = name of the image file to load. |
filename
defines the file format. If no filename extension is provided, CImg<T>::get_load() will try to load a CRAW file (CImg Raw file). Definition at line 25213 of file cimg.h.
References cimg_library::CImg< T >::load().
static CImg<T> cimg_library::CImg< T >::get_load_analyze | ( | const char *const | filename, | |
float *const | voxsize = 0 | |||
) | [inline, static] |
Load an image from an ANALYZE7.5/NIFTI file.
Definition at line 26708 of file cimg.h.
References cimg_library::CImg< T >::load_analyze().
static CImg<T> cimg_library::CImg< T >::get_load_ascii | ( | const char *const | filename | ) | [inline, static] |
Load an image from an ASCII file.
Definition at line 25316 of file cimg.h.
References cimg_library::CImg< T >::load_ascii().
static CImg<T> cimg_library::CImg< T >::get_load_ascii | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | [inline, static] |
Load an image from an ASCII file.
Definition at line 25277 of file cimg.h.
References cimg_library::CImg< T >::load_ascii().
static CImg<T> cimg_library::CImg< T >::get_load_bmp | ( | const char *const | filename | ) | [inline, static] |
Load an image from a BMP file.
Definition at line 25614 of file cimg.h.
References cimg_library::CImg< T >::load_bmp().
static CImg<T> cimg_library::CImg< T >::get_load_bmp | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | [inline, static] |
Load an image from a BMP file.
Definition at line 25500 of file cimg.h.
References cimg_library::CImg< T >::load_bmp().
static CImg<T> cimg_library::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 | v0, | |||
const unsigned int | x1, | |||
const unsigned int | y1, | |||
const unsigned int | z1, | |||
const unsigned int | v1, | |||
const char | axis = 'z' , |
|||
const char | align = 'p' | |||
) | [inline, static] |
Load a sub-image (list) from a .cimg file.
Definition at line 27064 of file cimg.h.
References cimg_library::CImg< T >::load_cimg().
static CImg<T> cimg_library::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 | v0, | |||
const unsigned int | x1, | |||
const unsigned int | y1, | |||
const unsigned int | z1, | |||
const unsigned int | v1, | |||
const char | axis = 'z' , |
|||
const char | align = 'p' | |||
) | [inline, static] |
Load a sub-image (list) from a .cimg file.
Definition at line 27043 of file cimg.h.
References cimg_library::CImg< T >::load_cimg().
static CImg<T> cimg_library::CImg< T >::get_load_cimg | ( | const char *const | filename, | |
const char | axis = 'z' , |
|||
const char | align = 'p' | |||
) | [inline, static] |
Load an image (list) from a .cimg file.
Definition at line 27030 of file cimg.h.
References cimg_library::CImg< T >::load_cimg().
static CImg<T> cimg_library::CImg< T >::get_load_cimg | ( | std::FILE *const | file, | |
const char | axis = 'z' , |
|||
const char | align = 'p' | |||
) | [inline, static] |
Load an image (list) from a .cimg file.
Definition at line 27017 of file cimg.h.
References cimg_library::CImg< T >::load_cimg().
static CImg<T> cimg_library::CImg< T >::get_load_dlm | ( | const char *const | filename | ) | [inline, static] |
Load an image from a DLM file.
Definition at line 25360 of file cimg.h.
References cimg_library::CImg< T >::load_dlm().
static CImg<T> cimg_library::CImg< T >::get_load_dlm | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | [inline, static] |
Load an image from a DLM file.
Definition at line 25325 of file cimg.h.
References cimg_library::CImg< T >::load_dlm().
static CImg<T> cimg_library::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' | |||
) | [inline, static] |
Load a video sequence using FFMPEG av's libraries.
Definition at line 27203 of file cimg.h.
References cimg_library::CImg< T >::load_ffmpeg().
Referenced by cimg_library::CImg< T >::load_ffmpeg().
static CImg<T> cimg_library::CImg< T >::get_load_ffmpeg_external | ( | const char *const | filename, | |
const char | axis = 'z' , |
|||
const char | align = 'p' | |||
) | [inline, static] |
Load a video sequence using FFMPEG's external tool 'ffmpeg'.
Definition at line 27217 of file cimg.h.
References cimg_library::CImg< T >::load_ffmpeg_external().
Referenced by cimg_library::CImg< T >::load_ffmpeg_external().
static CImg<T> cimg_library::CImg< T >::get_load_graphicsmagick_external | ( | const char *const | filename | ) | [inline, static] |
Load an image using GraphicsMagick's external tool 'gm'.
Definition at line 27176 of file cimg.h.
References cimg_library::CImg< T >::load_graphicsmagick_external().
static CImg<T> cimg_library::CImg< T >::get_load_imagemagick_external | ( | const char *const | filename | ) | [inline, static] |
Load an image using ImageMagick's external tool 'convert'.
Definition at line 27149 of file cimg.h.
References cimg_library::CImg< T >::load_imagemagick_external().
static CImg<T> cimg_library::CImg< T >::get_load_inr | ( | const char *const | filename, | |
float *const | voxsize = 0 | |||
) | [inline, static] |
Load an image from an INRIMAGE-4 file.
Definition at line 26495 of file cimg.h.
References cimg_library::CImg< T >::load_inr().
static CImg<T> cimg_library::CImg< T >::get_load_inr | ( | std::FILE *const | file, | |
const char *const | filename = 0 , |
|||
float * | voxsize = 0 | |||
) | [inline, static] |
Load an image from an INRIMAGE-4 file.
Definition at line 26413 of file cimg.h.
References cimg_library::CImg< T >::load_inr().
static CImg<T> cimg_library::CImg< T >::get_load_jpeg | ( | const char *const | filename | ) | [inline, static] |
Load an image from a JPEG file.
Definition at line 26209 of file cimg.h.
References cimg_library::CImg< T >::load_jpeg().
static CImg<T> cimg_library::CImg< T >::get_load_jpeg | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | [inline, static] |
Load an image from a JPEG file.
Definition at line 26135 of file cimg.h.
References cimg_library::CImg< T >::load_jpeg().
static CImg<T> cimg_library::CImg< T >::get_load_magick | ( | const char *const | filename | ) | [inline, static] |
Load an image using builtin ImageMagick++ Library.
Added April/may 2006 by Christoph Hormann <chris_hormann@gmx.de> This is experimental code, not much tested, use with care.
Definition at line 26222 of file cimg.h.
References cimg_library::CImg< T >::load_magick().
static CImg<T> cimg_library::CImg< T >::get_load_medcon_external | ( | const char *const | filename | ) | [inline, static] |
Load a DICOM image file, using XMedcon's external tool 'medcon'.
Definition at line 27117 of file cimg.h.
References cimg_library::CImg< T >::load_medcon_external().
static CImg<T> cimg_library::CImg< T >::get_load_off | ( | const char *const | filename, | |
CImgList< tf > & | primitives, | |||
CImgList< tc > & | colors, | |||
const bool | invert_faces = false | |||
) | [inline, static] |
Load a 3D object from a .OFF file (GeomView 3D object files).
Definition at line 26812 of file cimg.h.
References cimg_library::CImg< T >::load_off().
static CImg<T> cimg_library::CImg< T >::get_load_other | ( | const char *const | filename | ) | [inline, static] |
Load an image using ImageMagick's or GraphicsMagick's executables.
Definition at line 27227 of file cimg.h.
References cimg_library::CImg< T >::load_other().
static CImg<T> cimg_library::CImg< T >::get_load_pandore | ( | const char *const | filename | ) | [inline, static] |
Load an image from a PANDORE file.
Definition at line 26699 of file cimg.h.
References cimg_library::CImg< T >::load_pandore().
static CImg<T> cimg_library::CImg< T >::get_load_pandore | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | [inline, static] |
Load an image from a PANDORE file.
Definition at line 26504 of file cimg.h.
References cimg_library::CImg< T >::load_pandore().
static CImg<T> cimg_library::CImg< T >::get_load_parrec | ( | const char *const | filename, | |
const char | axis = 'v' , |
|||
const char | align = 'p' | |||
) | [inline, static] |
Load an image from a PAR-REC (Philips) file.
Definition at line 27004 of file cimg.h.
References cimg_library::CImg< T >::load_parrec().
static CImg<T> cimg_library::CImg< T >::get_load_png | ( | const char *const | filename | ) | [inline, static] |
Load an image from a PNG file.
Definition at line 25765 of file cimg.h.
References cimg_library::CImg< T >::load_png().
static CImg<T> cimg_library::CImg< T >::get_load_png | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | [inline, static] |
Load an image from a PNG file.
Definition at line 25624 of file cimg.h.
References cimg_library::CImg< T >::load_png().
static CImg<T> cimg_library::CImg< T >::get_load_pnm | ( | const char *const | filename | ) | [inline, static] |
Load an image from a PNM file.
Definition at line 25491 of file cimg.h.
References cimg_library::CImg< T >::get_load_pnm().
static CImg<T> cimg_library::CImg< T >::get_load_pnm | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | [inline, static] |
Load an image from a PNM file.
Definition at line 25369 of file cimg.h.
References cimg_library::CImg< T >::load_pnm().
Referenced by cimg_library::CImg< T >::get_load_pnm().
static CImg<T> cimg_library::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 | endian_swap = false | |||
) | [inline, static] |
Load an image from a .RAW file.
Definition at line 26317 of file cimg.h.
References cimg_library::cimg::endian_swap(), and cimg_library::CImg< T >::load_raw().
static CImg<T> cimg_library::CImg< T >::get_load_raw | ( | std::FILE *const | file, | |
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 | endian_swap = false | |||
) | [inline, static] |
Load an image from a .RAW file.
Definition at line 26285 of file cimg.h.
References cimg_library::cimg::endian_swap(), and cimg_library::CImg< T >::load_raw().
static CImg<T> cimg_library::CImg< T >::get_load_rgb | ( | const char *const | filename, | |
const unsigned int | dimw, | |||
const unsigned int | dimh | |||
) | [inline, static] |
Load an image from a RGB file.
Definition at line 26404 of file cimg.h.
References cimg_library::CImg< T >::load_rgb().
static CImg<T> cimg_library::CImg< T >::get_load_rgb | ( | std::FILE *const | file, | |
const char *const | filename, | |||
const unsigned int | dimw, | |||
const unsigned int | dimh | |||
) | [inline, static] |
Load an image from a RGB file.
Definition at line 26374 of file cimg.h.
References cimg_library::CImg< T >::load_rgb().
static CImg<T> cimg_library::CImg< T >::get_load_rgba | ( | const char *const | filename, | |
const unsigned int | dimw, | |||
const unsigned int | dimh | |||
) | [inline, static] |
Load an image from a RGBA file.
Definition at line 26364 of file cimg.h.
References cimg_library::CImg< T >::load_rgba().
static CImg<T> cimg_library::CImg< T >::get_load_rgba | ( | std::FILE *const | file, | |
const char *const | filename, | |||
const unsigned int | dimw, | |||
const unsigned int | dimh | |||
) | [inline, static] |
Load an image from a RGBA file.
Definition at line 26332 of file cimg.h.
References cimg_library::CImg< T >::load_rgba().
static CImg<T> cimg_library::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 | |||
) | [inline, static] |
Load an image from a TIFF file.
Definition at line 26090 of file cimg.h.
References cimg_library::CImg< T >::load_tiff().
static CImg<T> cimg_library::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' | |||
) | [inline, static] |
Load an image sequence from a YUV file.
Definition at line 27101 of file cimg.h.
References cimg_library::CImg< T >::load_yuv().
static CImg<T> cimg_library::CImg< T >::get_load_yuv | ( | std::FILE *const | file, | |
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' | |||
) | [inline, static] |
Load an image sequence from a YUV file.
Definition at line 27085 of file cimg.h.
References cimg_library::CImg< T >::load_yuv().
Referenced by cimg_library::CImg< T >::load_yuv().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_log | ( | ) | const [inline] |
Compute the log of each each pixel value.
Definition at line 12647 of file cimg.h.
References cimg_library::CImg< T >::log().
Referenced by cimg_library::log().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_log10 | ( | ) | const [inline] |
Compute the log10 of each each pixel value.
Definition at line 12659 of file cimg.h.
References cimg_library::CImg< T >::log10().
Referenced by cimg_library::log10().
static CImg<T> cimg_library::CImg< T >::get_logo40x38 | ( | ) | [inline, static] |
Get a 40x38 color logo of a 'danger' item.
Definition at line 28620 of file cimg.h.
References b, blender::g, cimg_library::CImg< T >::height, cimg_library::cimg::logo40x38, cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
CImg<T> cimg_library::CImg< T >::get_LUTtoRGB | ( | ) | const [inline] |
Convert an indexed image (with the default palette) to a (R,G,B) image.
Definition at line 15876 of file cimg.h.
Referenced by cimg_library::CImg< T >::LUTtoRGB().
CImg<t> cimg_library::CImg< T >::get_LUTtoRGB | ( | const CImg< t > & | palette | ) | const [inline] |
Convert an indexed image to a (R,G,B) image using the specified color palette.
Definition at line 15852 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::get_default_LUT8(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::LUTtoRGB().
CImg<T> cimg_library::CImg< T >::get_matrix | ( | ) | const [inline] |
Realign pixel values of the instance image as a square matrix.
Definition at line 23578 of file cimg.h.
Referenced by cimg_library::matrix().
CImg<T> cimg_library::CImg< T >::get_matrix_at | ( | const unsigned int | x = 0 , |
|
const unsigned int | y = 0 , |
|||
const unsigned int | z = 0 | |||
) | const [inline] |
Return a new image corresponding to the square matrix located at (x
,y
,z
) of the current vector-valued image.
Definition at line 23529 of file cimg.h.
References cimg_forV, and cimg_library::sqrt().
Referenced by cimg_library::matrix_at().
CImg<T> cimg_library::CImg< T >::get_max | ( | const T | val | ) | const [inline] |
CImg<typename cimg::superset<T,t>::type> cimg_library::CImg< T >::get_max | ( | const CImg< t > & | img | ) | const [inline] |
Pointwise max operator between two images.
Definition at line 12533 of file cimg.h.
References cimg_library::CImg< T >::max().
Referenced by cimg_library::max().
CImg<T> cimg_library::CImg< T >::get_min | ( | const T | val | ) | const [inline] |
CImg<typename cimg::superset<T,t>::type> cimg_library::CImg< T >::get_min | ( | const CImg< t > & | img | ) | const [inline] |
Pointwise min operator between two images.
Definition at line 12559 of file cimg.h.
References cimg_library::CImg< T >::min().
Referenced by cimg_library::min().
CImg<T> cimg_library::CImg< T >::get_mirror | ( | const char | axe = 'x' |
) | const [inline] |
Mirror an image along the specified axis.
Definition at line 14349 of file cimg.h.
Referenced by cimg_library::CImg< T >::get_convolve(), and cimg_library::mirror().
CImg<typename cimg::superset<T,t>::type> cimg_library::CImg< T >::get_mul | ( | const CImg< t > & | img | ) | const [inline] |
Pointwise multiplication between two images.
Definition at line 12503 of file cimg.h.
References cimg_library::CImg< T >::mul().
Referenced by cimg_library::mul().
CImg<T> cimg_library::CImg< T >::get_noise | ( | const double | sigma = -20 , |
|
const unsigned int | ntype = 0 | |||
) | const [inline] |
Add noise to the image.
sigma | = power of the noise. if sigma<0, it corresponds to the percentage of the maximum image value. | |
ntype | = noise type. can be 0=gaussian, 1=uniform or 2=Salt and Pepper. |
Definition at line 21755 of file cimg.h.
Referenced by cimg_library::noise().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_norm_pointwise | ( | int | norm_type = 2 |
) | const [inline] |
Return the scalar image of vector norms.
When dealing with vector-valued images (i.e images with dimv()>1), this function computes the L1,L2 or Linf norm of each vector-valued pixel.
norm_type | = Type of the norm being computed (1 = L1, 2 = L2, -1 = Linf). |
Definition at line 15109 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_library::cimg::abs(), cimg_forV, cimg_forXYZ, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::sqrt(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::draw_quiver(), cimg_library::CImg< T >::norm_pointwise(), and cimg_library::norm_pointwise().
CImg<T> cimg_library::CImg< T >::get_normalize | ( | const T | a, | |
const T | b | |||
) | const [inline] |
Linear normalization of the pixel values between a and b.
a | = minimum pixel value after normalization. | |
b | = maximum pixel value after normalization. |
Definition at line 13406 of file cimg.h.
Referenced by cimg_library::normalize().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_orientation_pointwise | ( | ) | const [inline] |
Return the image of normalized vectors.
When dealing with vector-valued images (i.e images with dimv()>1), this function return the image of normalized vectors (unit vectors). Null vectors are unchanged. The L2-norm is computed for the normalization.
Definition at line 15148 of file cimg.h.
References cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::orientation_pointwise().
Referenced by cimg_library::orientation_pointwise().
CImg<T> cimg_library::CImg< T >::get_permute | ( | const CImg< t > & | permutation | ) | const [inline] |
Get a permutation of the pixels.
Definition at line 23958 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::height, p, cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::permute(), and cimg_library::permute().
CImg<T> cimg_library::CImg< T >::get_permute_axes | ( | const char * | permut = "vxyz" |
) | const [inline] |
Permute axes order.
Definition at line 14338 of file cimg.h.
References cimg_library::CImg< T >::get_permute_axes().
CImg<t> cimg_library::CImg< T >::get_permute_axes | ( | const char * | permut, | |
const t & | ||||
) | const [inline] |
Permute axes order.
This function permutes image axes.
permut | = String describing the permutation (4 characters). |
Definition at line 14176 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_forXYZV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::cimg::strncasecmp(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_permute_axes(), cimg_library::CImg< T >::get_transpose(), cimg_library::CImgList< T >::load_ffmpeg(), cimg_library::CImg< T >::permute_axes(), and cimg_library::permute_axes().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_pow | ( | const CImg< t > & | img | ) | const [inline] |
Compute the power of each pixel value.
Definition at line 12689 of file cimg.h.
References cimg_library::CImg< T >::pow().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_pow | ( | const double | p | ) | const [inline] |
Compute the power by p of each pixel value.
Definition at line 12671 of file cimg.h.
References cimg_library::CImg< T >::pow().
Referenced by cimg_library::pow().
CImg<T> cimg_library::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 [inline] |
Return a 2D representation of a 3D image, with three slices.
Definition at line 14926 of file cimg.h.
References cimg_forXYV, cimg_forXZV, cimg_forYZV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::resize(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::projections2d(), and cimg_library::projections2d().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_pseudoinvert | ( | ) | const [inline] |
Return the pseudo-inverse (Moore-Penrose) of the matrix.
Definition at line 23784 of file cimg.h.
References cimg_forX, cimg_forY, cimg_library::CImg< T >::SVD(), and cimg_library::CImg< T >::transpose().
Referenced by cimg_library::CImg< T >::pseudoinvert(), cimg_library::pseudoinvert(), and cimg_library::CImg< T >::solve().
CImg<T> cimg_library::CImg< T >::get_quantize | ( | const unsigned int | n = 256 , |
|
const bool | keep_range = true | |||
) | const [inline] |
Quantize pixel values into
levels.
n | = number of quantification levels | |
keep_range | = keep same value range. |
Definition at line 13443 of file cimg.h.
Referenced by cimg_library::quantize().
static CImg<T> cimg_library::CImg< T >::get_rainbow_LUT8 | ( | ) | [inline, static] |
Return a rainbow-palette.
Definition at line 15726 of file cimg.h.
References cimg_library::CImg< T >::get_shared_channel(), and cimg_library::CImg< T >::HSVtoRGB().
CImg<T> cimg_library::CImg< T >::get_rand | ( | const T | val_min, | |
const T | val_max | |||
) | const [inline] |
Fill image with random values between specified range.
Definition at line 12803 of file cimg.h.
Referenced by cimg_library::rand().
CImg<T> cimg_library::CImg< T >::get_resize | ( | const CImgDisplay & | disp, | |
const int | interp = 1 , |
|||
const int | border_condition = -1 , |
|||
const bool | center = false | |||
) | const [inline] |
Return a resized image.
disp | = Display giving the geometry of the resize. | |
interp | = Resizing type :
| |
border_condition | Border condition type. |
Definition at line 14018 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::get_resize(), cimg_library::CImgDisplay::height, and cimg_library::CImgDisplay::width.
CImg<T> cimg_library::CImg< T >::get_resize | ( | const CImg< t > & | src, | |
const int | interp = 1 , |
|||
const int | border_condition = -1 , |
|||
const bool | center = false | |||
) | const [inline] |
Return a resized image.
src | Image giving the geometry of the resize. | |
interp | Interpolation method :
| |
border_condition | Border condition type. |
Definition at line 13993 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::CImg< T >::get_resize | ( | const int | pdx = -100 , |
|
const int | pdy = -100 , |
|||
const int | pdz = -100 , |
|||
const int | pdv = -100 , |
|||
const int | interp = 1 , |
|||
const int | border_condition = -1 , |
|||
const bool | center = false | |||
) | const [inline] |
Return a resized image.
pdx | Number of columns (new size along the X-axis). | |
pdy | Number of rows (new size along the Y-axis). | |
pdz | Number of slices (new size along the Z-axis). | |
pdv | Number of vector-channels (new size along the V-axis). | |
interp | Method of interpolation :
| |
border_condition | Border condition type. | |
center | Set centering type (only if interp=0 ). |
Definition at line 13653 of file cimg.h.
References cimg_library::CImg< T >::assign(), b, cimg_for_outXYZV, cimg_forV, cimg_forX, cimg_forXYV, cimg_forXYZ, cimg_forXYZV, cimg_forXZV, cimg_forY, cimg_forYZV, cimg_forZ, cimg_library::CImg< T >::cubic_pix2d(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_shared, cimg_library::CImg< T >::max(), memcpy(), cimg_library::CImg< T >::min(), cimg_library::cimg::min(), cimg_library::CImg< T >::pix4d(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::size(), cimg_library::CImg< T >::transfer_to(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::resize(), cimg_library::resize(), cimg_library::CImg< T >::save_off(), and cimg_library::CImgList< T >::save_yuv().
CImg<T> cimg_library::CImg< T >::get_resize_doubleXY | ( | ) | const [inline] |
Upscale an image by a factor 2x.
Use anisotropic upscaling algorithm described at http://scale2x.sourceforge.net/algorithm.html
Definition at line 14056 of file cimg.h.
References CImg_3x3, cimg_forZV, cimg_gs2x_for3x3, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::resize_doubleXY(), and cimg_library::resize_doubleXY().
CImg<T> cimg_library::CImg< T >::get_resize_halfXY | ( | ) | const [inline] |
Return an half-resized image, using a special filter.
Definition at line 14030 of file cimg.h.
References cimg_for3x3, cimg_forZV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), mask, and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::resize_halfXY(), and cimg_library::resize_halfXY().
CImg<T> cimg_library::CImg< T >::get_resize_tripleXY | ( | ) | const [inline] |
Upscale an image by a factor 3x.
Use anisotropic upscaling algorithm described at http://scale2x.sourceforge.net/algorithm.html
Definition at line 14111 of file cimg.h.
References CImg_3x3, cimg_forZV, cimg_gs3x_for3x3, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::resize_tripleXY(), and cimg_library::resize_tripleXY().
CImg<T> cimg_library::CImg< T >::get_RGBtoBayer | ( | ) | const [inline] |
Convert a (R,G,B) image to a Bayer-coded representation.
Definition at line 16413 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::RGBtoBayer(), and cimg_library::RGBtoBayer().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_RGBtoHSI | ( | ) | const [inline] |
Convert color pixels from (R,G,B) to (H,S,I). Reference: "Digital Image Processing, 2nd. edition", R. Gonzalez and R. Woods. Prentice Hall, 2002.
Definition at line 16050 of file cimg.h.
References cimg_library::CImg< T >::RGBtoHSI().
Referenced by cimg_library::RGBtoHSI().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_RGBtoHSL | ( | ) | const [inline] |
Convert color pixels from (R,G,B) to (H,S,L).
Definition at line 15970 of file cimg.h.
References cimg_library::CImg< T >::RGBtoHSL().
Referenced by cimg_library::RGBtoHSL().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_RGBtoHSV | ( | ) | const [inline] |
Convert color pixels from (R,G,B) to (H,S,V).
Definition at line 15888 of file cimg.h.
References cimg_library::CImg< T >::RGBtoHSV().
Referenced by cimg_library::RGBtoHSV().
CImg<T> cimg_library::CImg< T >::get_RGBtoLab | ( | ) | const [inline] |
Convert a (R,G,B) image to a (L,a,b) one.
Definition at line 16370 of file cimg.h.
Referenced by cimg_library::RGBtoLab().
CImg<T> cimg_library::CImg< T >::get_RGBtoLUT | ( | const bool | dithering = true , |
|
const bool | indexing = false | |||
) | const [inline] |
Convert color pixels from (R,G,B) to match the default 256 colors palette.
Same as get_RGBtoLUT() with the default color palette given by get_default_LUT8().
Definition at line 15840 of file cimg.h.
References cimg_library::CImg< T >::get_RGBtoLUT().
CImg<t> cimg_library::CImg< T >::get_RGBtoLUT | ( | const CImg< t > & | palette, | |
const bool | dithering = true , |
|||
const bool | indexing = false | |||
) | const [inline] |
Convert color pixels from (R,G,B) to match a specified palette.
This function return a (R,G,B) image where colored pixels are constrained to match entries of the specified color palette
.
palette | User-defined palette that will constraint the color conversion. | |
dithering | Enable/Disable Floyd-Steinberg dithering. | |
indexing | If true , each resulting image pixel is an index to the given color palette. Otherwise, (R,G,B) values of the palette are copied instead. |
Definition at line 15778 of file cimg.h.
References cimg_forX, cimg_forY, cimg_forZ, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::get_default_LUT8(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_RGBtoLUT(), cimg_library::CImg< T >::RGBtoLUT(), and cimg_library::RGBtoLUT().
CImg<T> cimg_library::CImg< T >::get_RGBtoxyY | ( | ) | const [inline] |
Convert a (R,G,B) image to a (x,y,Y) one.
Definition at line 16390 of file cimg.h.
Referenced by cimg_library::RGBtoxyY().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_RGBtoXYZ | ( | ) | const [inline] |
Convert color pixels from (R,G,B) to (X,Y,Z)_709.
Definition at line 16222 of file cimg.h.
References cimg_library::CImg< T >::RGBtoXYZ().
Referenced by cimg_library::RGBtoXYZ().
CImg<T> cimg_library::CImg< T >::get_RGBtoYCbCr | ( | ) | const [inline] |
Convert color pixels from (R,G,B) to (Y,Cb,Cr)_8 (Thanks to Chen Wang).
Definition at line 16125 of file cimg.h.
Referenced by cimg_library::RGBtoYCbCr().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_RGBtoYUV | ( | ) | const [inline] |
Convert color pixels from (R,G,B) to (Y,U,V).
Definition at line 16177 of file cimg.h.
References cimg_library::CImg< T >::RGBtoYUV().
Referenced by cimg_library::RGBtoYUV().
CImg<T> cimg_library::CImg< T >::get_rotate | ( | const float | angle, | |
const float | cx, | |||
const float | cy, | |||
const float | zoom = 1 , |
|||
const unsigned int | cond = 3 | |||
) | const [inline] |
Return a rotated image around the point (cx
,cy
).
angle | = rotation angle (in degrees). | |
cx | = X-coordinate of the rotation center. | |
cy | = Y-coordinate of the rotation center. | |
zoom | = zoom. | |
cond | = rotation type. can be :
|
Definition at line 13567 of file cimg.h.
References cimg_forXY, cimg_forXYZV, cimg_forZV, cimg_library::cos(), cimg_library::CImg< T >::cubic_pix2d(), cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::linear_pix2d(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::min(), cimg_library::cimg::mod(), cimg_library::CImg< T >::pix2d(), cimg_library::sin(), cimg_library::cimg::valuePI, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::CImg< T >::get_rotate | ( | const float | angle, | |
const unsigned int | cond = 3 | |||
) | const [inline] |
Return a rotated image.
angle | = rotation angle (in degrees). | |
cond | = rotation type. can be :
|
Definition at line 13490 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_library::cimg::abs(), cimg_library::CImg< T >::assign(), cimg_forXY, cimg_forXYZV, cimg_forZV, cimg_library::cos(), cimg_library::CImg< T >::cubic_pix2d(), cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::linear_pix2d(), cimg_library::cimg::mod(), cimg_library::CImg< T >::pix2d(), cimg_library::sin(), cimg_library::cimg::valuePI, and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::rotate(), and cimg_library::rotate().
CImg<T> cimg_library::CImg< T >::get_round | ( | const float | x, | |
const unsigned int | round_type = 0 | |||
) | const [inline] |
Compute image with rounded pixel values.
x | Rounding precision. | |
round_type | Roundin type, can be 0 (nearest), 1 (forward), 2 (backward). |
Definition at line 12792 of file cimg.h.
Referenced by cimg_library::round().
CImg<T> cimg_library::CImg< T >::get_sequence | ( | const T | a0, | |
const T | a1 | |||
) | const [inline] |
Return a N-numbered sequence vector from a0
to a1
.
Definition at line 23683 of file cimg.h.
Referenced by cimg_library::sequence().
const CImg<T> cimg_library::CImg< T >::get_shared | ( | ) | const [inline] |
Return a shared version of the instance image (const version).
Definition at line 14921 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::CImg< T >::get_shared | ( | ) | [inline] |
Return a shared version of the instance image.
Definition at line 14916 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
Referenced by cimg_library::shared().
const CImg<T> cimg_library::CImg< T >::get_shared_channel | ( | const unsigned int | v0 | ) | const [inline] |
Return a shared-memory image referencing one channel v0 of the instance image (const version).
Definition at line 14911 of file cimg.h.
References cimg_library::CImg< T >::get_shared_channels().
CImg<T> cimg_library::CImg< T >::get_shared_channel | ( | const unsigned int | v0 | ) | [inline] |
Return a shared-memory image referencing one channel v0 of the instance image.
Definition at line 14906 of file cimg.h.
References cimg_library::CImg< T >::get_shared_channels().
Referenced by cimg_library::CImg< T >::draw_text(), cimg_library::CImg< T >::get_rainbow_LUT8(), cimg_library::CImg< T >::save_off(), and cimg_library::shared_channel().
const CImg<T> cimg_library::CImg< T >::get_shared_channels | ( | const unsigned int | v0, | |
const unsigned int | v1 | |||
) | const [inline] |
Return a shared-memory image referencing a set of channels (v0->v1) of the instance image (const version).
Definition at line 14897 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::offset(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
CImg<T> cimg_library::CImg< T >::get_shared_channels | ( | const unsigned int | v0, | |
const unsigned int | v1 | |||
) | [inline] |
Return a shared-memory image referencing a set of channels (v0->v1) of the instance image.
Definition at line 14888 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::offset(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_shared_channel(), and cimg_library::shared_channels().
const CImg<T> cimg_library::CImg< T >::get_shared_line | ( | const unsigned int | y0, | |
const unsigned int | z0 = 0 , |
|||
const unsigned int | v0 = 0 | |||
) | const [inline] |
Return a shared-memory image referencing one particular line (y0,z0,v0) of the instance image (const version).
Definition at line 14855 of file cimg.h.
References cimg_library::CImg< T >::get_shared_lines().
CImg<T> cimg_library::CImg< T >::get_shared_line | ( | const unsigned int | y0, | |
const unsigned int | z0 = 0 , |
|||
const unsigned int | v0 = 0 | |||
) | [inline] |
Return a shared-memory image referencing one particular line (y0,z0,v0) of the instance image.
Definition at line 14850 of file cimg.h.
References cimg_library::CImg< T >::get_shared_lines().
Referenced by cimg_library::CImg< T >::display_object3d(), and cimg_library::shared_line().
const CImg<T> cimg_library::CImg< T >::get_shared_lines | ( | const unsigned int | y0, | |
const unsigned int | y1, | |||
const unsigned int | z0 = 0 , |
|||
const unsigned int | v0 = 0 | |||
) | const [inline] |
Return a shared-memory image referencing a set of lines of the instance image (const version).
Definition at line 14840 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::offset(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
CImg<T> cimg_library::CImg< T >::get_shared_lines | ( | const unsigned int | y0, | |
const unsigned int | y1, | |||
const unsigned int | z0 = 0 , |
|||
const unsigned int | v0 = 0 | |||
) | [inline] |
Return a shared-memory image referencing a set of lines of the instance image.
Definition at line 14830 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::offset(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_shared_line(), and cimg_library::shared_lines().
const CImg<T> cimg_library::CImg< T >::get_shared_plane | ( | const unsigned int | z0, | |
const unsigned int | v0 = 0 | |||
) | const [inline] |
Return a shared-memory image referencing one plane (z0,v0) of the instance image (const version).
Definition at line 14883 of file cimg.h.
References cimg_library::CImg< T >::get_shared_planes().
CImg<T> cimg_library::CImg< T >::get_shared_plane | ( | const unsigned int | z0, | |
const unsigned int | v0 = 0 | |||
) | [inline] |
Return a shared-memory image referencing one plane (z0,v0) of the instance image.
Definition at line 14878 of file cimg.h.
References cimg_library::CImg< T >::get_shared_planes().
Referenced by cimg_library::shared_plane().
const CImg<T> cimg_library::CImg< T >::get_shared_planes | ( | const unsigned int | z0, | |
const unsigned int | z1, | |||
const unsigned int | v0 = 0 | |||
) | const [inline] |
Return a shared-memory image referencing a set of planes (z0->z1,v0) of the instance image (const version).
Definition at line 14869 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::offset(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
CImg<T> cimg_library::CImg< T >::get_shared_planes | ( | const unsigned int | z0, | |
const unsigned int | z1, | |||
const unsigned int | v0 = 0 | |||
) | [inline] |
Return a shared memory image referencing a set of planes (z0->z1,v0) of the instance image.
Definition at line 14860 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::offset(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_shared_plane(), and cimg_library::shared_planes().
const CImg<T> cimg_library::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 | v0 = 0 | |||
) | const [inline] |
Get a shared-memory image referencing a set of points of the instance image (const version).
Definition at line 14820 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::offset(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
CImg<T> cimg_library::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 | v0 = 0 | |||
) | [inline] |
Get a shared-memory image referencing a set of points of the instance image.
Definition at line 14810 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::offset(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::draw_graph(), and cimg_library::shared_points().
CImg<T> cimg_library::CImg< T >::get_sharpen | ( | const float | amplitude = 50.0f , |
|
const float | edge = 1.0f , |
|||
const float | alpha = 0.0f , |
|||
const float | sigma = 0.0f | |||
) | const [inline] |
Sharpen image using anisotropic shock filters.
Definition at line 22775 of file cimg.h.
Referenced by cimg_library::sharpen().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_sin | ( | ) | const [inline] |
Compute the sinus of each pixel value.
Definition at line 12728 of file cimg.h.
References cimg_library::CImg< T >::sin().
Referenced by cimg_library::sin().
CImg<T> cimg_library::CImg< T >::get_slice | ( | const unsigned int | z0 | ) | const [inline] |
Get the z-slice z of *this, as a new image.
Definition at line 14780 of file cimg.h.
References cimg_library::CImg< T >::get_slices().
Referenced by cimg_library::CImg< T >::display(), cimg_library::CImg< T >::save_tiff(), and cimg_library::slice().
CImg<T> cimg_library::CImg< T >::get_slices | ( | const unsigned int | z0, | |
const unsigned int | z1 | |||
) | const [inline] |
Get a set of slices.
Definition at line 14770 of file cimg.h.
References cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), and cimg_library::CImg< T >::get_crop().
Referenced by cimg_library::CImg< T >::get_slice(), cimg_library::CImg< T >::slices(), and cimg_library::slices().
CImg<typename cimg::superset2<T,t,float>::type> cimg_library::CImg< T >::get_solve | ( | const CImg< t > & | A | ) | const [inline] |
Solve a linear system AX=B where B=*this.
Definition at line 23819 of file cimg.h.
References cimg_library::CImg< T >::solve().
Referenced by cimg_library::solve().
CImg<T> cimg_library::CImg< T >::get_sort | ( | const bool | increasing = true |
) | const [inline] |
CImg<T> cimg_library::CImg< T >::get_sort | ( | CImg< t > & | permutations, | |
const bool | increasing = true | |||
) | const [inline] |
Sort values of a vector and get permutations.
Definition at line 23883 of file cimg.h.
Referenced by cimg_library::sort().
CImgList<T> cimg_library::CImg< T >::get_split | ( | const char | axe = 'x' , |
|
const unsigned int | nb = 0 | |||
) | const [inline] |
Split image into a list.
Definition at line 15167 of file cimg.h.
References cimg_library::CImgList< T >::assign(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImgList< T >::size, cimg_library::cimg::uncase(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImgList< T >::load_off(), cimg_library::CImg< T >::save_ffmpeg_external(), cimg_library::CImg< T >::save_yuv(), cimg_library::CImgList< T >::split(), and cimg_library::split().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_sqr | ( | ) | const [inline] |
Compute the square of each pixel value.
Definition at line 12611 of file cimg.h.
References cimg_library::CImg< T >::sqr().
Referenced by cimg_library::sqr().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_sqrt | ( | ) | const [inline] |
Compute the square root of each pixel value.
Definition at line 12623 of file cimg.h.
References cimg_library::CImg< T >::sqrt().
Referenced by cimg_library::sqrt().
CImg<typename cimg::last<T,double>::type> cimg_library::CImg< T >::get_stats | ( | ) | const [inline] |
Compute a statistics vector (min,max,mean,variance,offmin,offmax).
Definition at line 12585 of file cimg.h.
References cimg_library::CImg< T >::stats().
Referenced by cimg_library::CImg< T >::print(), and cimg_library::stats().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_structure_tensorXY | ( | const int | scheme = 1 |
) | const [inline] |
Return the 2D structure tensor field of an image.
Definition at line 15335 of file cimg.h.
References CImg_3x3, cimg_for3x3, cimg_forZV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::sharpen(), cimg_library::CImg< T >::structure_tensorXY(), and cimg_library::structure_tensorXY().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_structure_tensorXYZ | ( | const int | scheme = 1 |
) | const [inline] |
Return the 3D structure tensor field of an image.
Definition at line 15371 of file cimg.h.
References CImg_3x3x3, cimg_for3x3x3, cimg_forV, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::sharpen(), cimg_library::CImg< T >::structure_tensorXYZ(), and cimg_library::structure_tensorXYZ().
CImgList<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_SVD | ( | const bool | sorting = true |
) | const [inline] |
Compute the SVD of a general matrix.
Definition at line 24147 of file cimg.h.
References cimg_library::CImg< T >::SVD().
Referenced by cimg_library::SVD().
CImgList<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_symmetric_eigen | ( | ) | const [inline] |
Compute the eigenvalues and eigenvectors of a symmetric matrix.
Definition at line 24242 of file cimg.h.
References cimg_library::CImg< T >::symmetric_eigen().
Referenced by cimg_library::CImg< T >::draw_ellipse(), and cimg_library::symmetric_eigen().
CImg<typename cimg::superset<T,float>::type> cimg_library::CImg< T >::get_tan | ( | ) | const [inline] |
Compute the tangent of each pixel.
Definition at line 12740 of file cimg.h.
References cimg_library::CImg< T >::tan().
Referenced by cimg_library::tan().
CImg<T> cimg_library::CImg< T >::get_tensor | ( | ) | const [inline] |
Realign pixel values of the instance image as a symmetric tensor.
Definition at line 23607 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::size().
Referenced by cimg_library::CImg< T >::tensor(), and cimg_library::tensor().
CImg<T> cimg_library::CImg< T >::get_tensor_at | ( | const unsigned int | x = 0 , |
|
const unsigned int | y = 0 , |
|||
const unsigned int | z = 0 | |||
) | const [inline] |
Return a new image corresponding to the diffusion tensor located at (x
,y
,z
) of the current vector-valued image.
Definition at line 23542 of file cimg.h.
References cimg_library::CImg< T >::tensor().
Referenced by cimg_library::CImg< T >::sharpen(), and cimg_library::tensor_at().
CImg<T> cimg_library::CImg< T >::get_threshold | ( | const T | thres | ) | const [inline] |
Threshold the image.
thres | = threshold |
Definition at line 13471 of file cimg.h.
Referenced by cimg_library::threshold().
CImg<T> cimg_library::CImg< T >::get_translate | ( | const int | deltax, | |
const int | deltay = 0 , |
|||
const int | deltaz = 0 , |
|||
const int | deltav = 0 , |
|||
const int | border_condition = 0 | |||
) | const [inline] |
Translate the image.
deltax | Amount of displacement along the X-axis. | |
deltay | Amount of displacement along the Y-axis. | |
deltaz | Amount of displacement along the Z-axis. | |
deltav | Amount of displacement along the V-axis. | |
border_condition | Border condition. |
border_condition
can be :Definition at line 14428 of file cimg.h.
Referenced by cimg_library::translate().
CImg<T> cimg_library::CImg< T >::get_transpose | ( | ) | const [inline] |
Return the transpose version of the current matrix.
Definition at line 23699 of file cimg.h.
References cimg_library::CImg< T >::get_permute_axes().
Referenced by cimg_library::CImg< T >::transpose(), and cimg_library::transpose().
CImg<T> cimg_library::CImg< T >::get_unroll | ( | const char | axe = 'x' |
) | const [inline] |
Unroll all images values into specified axis.
Definition at line 23641 of file cimg.h.
Referenced by cimg_library::CImg< T >::get_vector(), and cimg_library::unroll().
CImg<T> cimg_library::CImg< T >::get_vector | ( | ) | const [inline] |
Unroll all images values into a one-column vector.
Definition at line 23568 of file cimg.h.
References cimg_library::CImg< T >::get_unroll().
CImg<T> cimg_library::CImg< T >::get_vector_at | ( | const unsigned int | x = 0 , |
|
const unsigned int | y = 0 , |
|||
const unsigned int | z = 0 | |||
) | const [inline] |
Return a new image corresponding to the vector located at (x
,y
,z
) of the current vector-valued image.
Definition at line 23507 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_forV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_quiver(), and cimg_library::vector_at().
CImg<T> cimg_library::CImg< T >::get_xyYtoRGB | ( | ) | const [inline] |
Convert a (x,y,Y) image to a (R,G,B) one.
Definition at line 16400 of file cimg.h.
Referenced by cimg_library::xyYtoRGB().
CImg<T> cimg_library::CImg< T >::get_xyYtoXYZ | ( | ) | const [inline] |
Convert (x,y,Y) pixels of a color image into the (X,Y,Z)_709 color space.
Definition at line 16350 of file cimg.h.
Referenced by cimg_library::xyYtoXYZ().
CImg<T> cimg_library::CImg< T >::get_XYZtoLab | ( | ) | const [inline] |
Convert (X,Y,Z)_709 pixels of a color image into the (L*,a*,b*) color space.
Definition at line 16269 of file cimg.h.
Referenced by cimg_library::XYZtoLab().
CImg<T> cimg_library::CImg< T >::get_XYZtoRGB | ( | ) | const [inline] |
Convert (X,Y,Z)_709 pixels of a color image into the (R,G,B) color space.
Definition at line 16246 of file cimg.h.
Referenced by cimg_library::XYZtoRGB().
CImg<T> cimg_library::CImg< T >::get_XYZtoxyY | ( | ) | const [inline] |
Convert (X,Y,Z)_709 pixels of a color image into the (x,y,Y) color space.
Definition at line 16330 of file cimg.h.
Referenced by cimg_library::XYZtoxyY().
CImg<T> cimg_library::CImg< T >::get_YCbCrtoRGB | ( | ) | const [inline] |
Convert color pixels from (Y,Cb,Cr)_8 to (R,G,B).
Definition at line 16151 of file cimg.h.
Referenced by cimg_library::YCbCrtoRGB().
CImg<T> cimg_library::CImg< T >::get_YUVtoRGB | ( | ) | const [inline] |
Convert color pixels from (Y,U,V) to (R,G,B).
Definition at line 16202 of file cimg.h.
Referenced by cimg_library::YUVtoRGB().
CImg<T>& cimg_library::CImg< T >::haar | ( | const bool | invert = false , |
|
const unsigned int | nb_scales = 1 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 23064 of file cimg.h.
References cimg_library::CImg< T >::get_haar(), and cimg_library::CImg< T >::invert().
CImg<T>& cimg_library::CImg< T >::haar | ( | const char | axis, | |
const bool | invert = false , |
|||
const unsigned int | nb_scales = 1 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 22969 of file cimg.h.
References cimg_library::CImg< T >::get_haar(), and cimg_library::CImg< T >::invert().
CImg<T>& cimg_library::CImg< T >::histogram | ( | const unsigned int | nblevels = 256 , |
|
const T | val_min = (T)0 , |
|||
const T | val_max = (T)0 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 14991 of file cimg.h.
References cimg_library::CImg< T >::get_histogram().
CImg<T>& cimg_library::CImg< T >::HSItoRGB | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16090 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::cos(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::cimg::valuePI.
CImg<T>& cimg_library::CImg< T >::HSLtoRGB | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16016 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::is_empty(), p, and cimg_library::CImg< T >::pixel_type().
CImg<T>& cimg_library::CImg< T >::HSVtoRGB | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 15932 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::pixel_type().
Referenced by cimg_library::CImg< T >::get_rainbow_LUT8().
CImg<T>& cimg_library::CImg< T >::identity_matrix | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 23678 of file cimg.h.
References cimg_library::CImg< T >::height, cimg_library::cimg::max(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::display_object3d(), and cimg_library::CImg< T >::get_identity_matrix().
static CImg<T> cimg_library::CImg< T >::identity_matrix | ( | const unsigned int | N | ) | [inline, static] |
CImg<T>& cimg_library::CImg< T >::invert | ( | const bool | use_LU = true |
) | [inline] |
In-place version of the previous function.
Definition at line 23721 of file cimg.h.
References cimg_library::CImg< T >::_solve(), b, cimg_forX, cimg_forXY, cimg_forY, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::det(), cimg_library::CImg< T >::fill(), blender::g, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::SVD(), cimg_library::cimg::warn(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImgList< T >::FFT(), cimg_library::CImgList< T >::get_FFT(), cimg_library::CImg< T >::get_FFT(), cimg_library::CImg< T >::get_haar(), cimg_library::CImg< T >::get_invert(), and cimg_library::CImg< T >::haar().
bool cimg_library::CImg< T >::is_empty | ( | ) | const [inline] |
Return true
if current image is empty.
Definition at line 11053 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::_draw_ellipse(), cimg_library::CImg< T >::_draw_polygon(), cimg_library::CImg< T >::_fill(), cimg_library::CImg< T >::append(), cimg_library::CImg< T >::blur(), cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImgList< T >::contains(), cimg_library::CImg< T >::contains(), cimg_library::CImgList< T >::containsN(), cimg_library::CImgList< T >::containsNXYZV(), cimg_library::CImg< T >::containsXYZV(), cimg_library::CImg< T >::cut(), cimg_library::CImg< T >::deriche(), cimg_library::CImg< T >::det(), cimg_library::CImgList< T >::display(), cimg_library::CImg< T >::display(), cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::distance_function(), cimg_library::CImg< T >::dot(), cimg_library::CImg< T >::draw_arrow(), cimg_library::CImg< T >::draw_axis(), cimg_library::CImg< T >::draw_circle(), cimg_library::CImg< T >::draw_gaussian(), cimg_library::CImg< T >::draw_graph(), cimg_library::CImg< T >::draw_grid(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_mandelbrot(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_plasma(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_quiver(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::draw_spline(), cimg_library::CImg< T >::draw_text(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::eigen(), cimg_library::CImg< T >::equalize_histogram(), cimg_library::CImgList< T >::FFT(), cimg_library::CImg< T >::fill(), cimg_library::CImgList< T >::get_append(), cimg_library::CImg< T >::get_append(), cimg_library::CImg< T >::get_BayertoRGB(), cimg_library::CImg< T >::get_convolve(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_correlate(), cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::get_diagonal(), cimg_library::CImg< T >::get_dilate(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_erode(), cimg_library::CImg< T >::get_gradientXY(), cimg_library::CImg< T >::get_gradientXYZ(), cimg_library::CImg< T >::get_haar(), cimg_library::CImg< T >::get_hessianXY(), cimg_library::CImg< T >::get_hessianXYZ(), cimg_library::CImg< T >::get_histogram(), cimg_library::CImg< T >::get_LUTtoRGB(), cimg_library::CImg< T >::get_norm_pointwise(), cimg_library::CImg< T >::get_orientation_pointwise(), cimg_library::CImg< T >::get_permute_axes(), cimg_library::CImg< T >::get_projections2d(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_resize_doubleXY(), cimg_library::CImg< T >::get_resize_halfXY(), cimg_library::CImg< T >::get_resize_tripleXY(), cimg_library::CImg< T >::get_RGBtoBayer(), cimg_library::CImg< T >::get_RGBtoLUT(), cimg_library::CImg< T >::get_rotate(), cimg_library::CImg< T >::get_split(), cimg_library::CImg< T >::get_structure_tensorXY(), cimg_library::CImg< T >::get_structure_tensorXYZ(), cimg_library::CImg< T >::HSItoRGB(), cimg_library::CImg< T >::HSLtoRGB(), cimg_library::CImg< T >::HSVtoRGB(), cimg_library::CImg< T >::invert(), cimg_library::CImg< T >::kth_smallest(), cimg_library::CImg< T >::LabtoXYZ(), cimg_library::CImgList< T >::load_ffmpeg_external(), cimg_library::CImg< T >::load_other(), cimg_library::CImgList< T >::max(), cimg_library::CImg< T >::max(), cimg_library::CImgList< T >::maxmin(), cimg_library::CImg< T >::maxmin(), cimg_library::CImgList< T >::mean(), cimg_library::CImg< T >::mean(), cimg_library::CImgList< T >::min(), cimg_library::CImg< T >::min(), cimg_library::CImgList< T >::minmax(), cimg_library::CImg< T >::minmax(), cimg_library::CImg< T >::mirror(), cimg_library::CImg< T >::noise(), cimg_library::CImg< T >::norm(), cimg_library::CImg< T >::normalize(), cimg_library::CImgList< T >::operator bool(), cimg_library::CImg< T >::operator bool(), cimg_library::CImg< T >::print(), cimg_library::CImg< T >::quantize(), cimg_library::CImg< T >::RGBtoHSI(), cimg_library::CImg< T >::RGBtoHSL(), cimg_library::CImg< T >::RGBtoHSV(), cimg_library::CImg< T >::RGBtoXYZ(), cimg_library::CImg< T >::RGBtoYCbCr(), cimg_library::CImg< T >::RGBtoYUV(), cimg_library::CImgList< T >::save(), cimg_library::CImg< T >::save(), cimg_library::CImg< T >::save_analyze(), cimg_library::CImg< T >::save_ascii(), cimg_library::CImg< T >::save_bmp(), cimg_library::CImgList< T >::save_cimg(), cimg_library::CImg< T >::save_cimg(), cimg_library::CImg< T >::save_cpp(), cimg_library::CImg< T >::save_dlm(), cimg_library::CImg< T >::save_graphicsmagick_external(), cimg_library::CImg< T >::save_imagemagick_external(), cimg_library::CImg< T >::save_inr(), cimg_library::CImg< T >::save_jpeg(), cimg_library::CImg< T >::save_magick(), cimg_library::CImg< T >::save_medcon_external(), cimg_library::CImg< T >::save_off(), cimg_library::CImg< T >::save_pandore(), cimg_library::CImg< T >::save_png(), cimg_library::CImg< T >::save_pnm(), cimg_library::CImg< T >::save_raw(), cimg_library::CImg< T >::save_rgb(), cimg_library::CImg< T >::save_rgba(), cimg_library::CImg< T >::save_tiff(), cimg_library::CImgList< T >::save_yuv(), cimg_library::CImg< T >::sequence(), cimg_library::CImg< T >::sharpen(), cimg_library::CImg< T >::sort(), cimg_library::CImg< T >::stats(), cimg_library::CImg< T >::sum(), cimg_library::CImg< T >::SVD(), cimg_library::CImg< T >::symmetric_eigen(), cimg_library::CImg< T >::threshold(), cimg_library::CImg< T >::trace(), cimg_library::CImg< T >::translate(), cimg_library::CImgList< T >::variance(), cimg_library::CImg< T >::variancemean(), cimg_library::CImg< T >::xyYtoXYZ(), cimg_library::CImg< T >::XYZtoLab(), cimg_library::CImg< T >::XYZtoRGB(), cimg_library::CImg< T >::XYZtoxyY(), cimg_library::CImg< T >::YCbCrtoRGB(), and cimg_library::CImg< T >::YUVtoRGB().
bool cimg_library::CImg< T >::is_overlapping | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if the memory buffers of the two images overlaps.
May happen when using shared images.
Definition at line 11047 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::size().
Referenced by cimg_library::CImg< T >::div(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_quiver(), cimg_library::CImg< T >::draw_spline(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::min(), cimg_library::CImg< T >::mul(), cimg_library::CImg< T >::operator%=(), cimg_library::CImg< T >::operator&=(), cimg_library::CImg< T >::operator+=(), cimg_library::CImg< T >::operator-=(), cimg_library::CImg< T >::operator^=(), cimg_library::CImg< T >::operator|=(), and cimg_library::CImg< T >::pow().
bool cimg_library::CImg< T >::is_sameV | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images (*this) and
img
have same dim.
Definition at line 10934 of file cimg.h.
References cimg_library::CImg< T >::dim.
Referenced by cimg_library::CImg< T >::is_sameXV(), cimg_library::CImg< T >::is_sameXYZV(), cimg_library::CImg< T >::is_sameYV(), and cimg_library::CImg< T >::is_sameZV().
bool cimg_library::CImg< T >::is_sameX | ( | const CImgDisplay & | disp | ) | const [inline] |
Return true
if images (*this) and the display
disp
have same width.
Definition at line 10914 of file cimg.h.
References cimg_library::CImgDisplay::width, and cimg_library::CImg< T >::width.
bool cimg_library::CImg< T >::is_sameX | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images (*this) and
img
have same width.
Definition at line 10909 of file cimg.h.
References cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::is_sameXV(), cimg_library::CImg< T >::is_sameXY(), and cimg_library::CImg< T >::is_sameXZ().
bool cimg_library::CImg< T >::is_sameXV | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images have same width and same number of channels.
Definition at line 10954 of file cimg.h.
References cimg_library::CImg< T >::is_sameV(), and cimg_library::CImg< T >::is_sameX().
bool cimg_library::CImg< T >::is_sameXY | ( | const CImgDisplay & | disp | ) | const [inline] |
Return true
if image (*this) and the display
disp
have same width and same height.
Definition at line 10944 of file cimg.h.
References cimg_library::CImg< T >::is_sameX(), and cimg_library::CImg< T >::is_sameY().
bool cimg_library::CImg< T >::is_sameXY | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images have same width and same height.
Definition at line 10939 of file cimg.h.
References cimg_library::CImg< T >::is_sameX(), and cimg_library::CImg< T >::is_sameY().
Referenced by cimg_library::CImg< T >::is_sameXYV(), cimg_library::CImg< T >::is_sameXYZ(), cimg_library::CImg< T >::is_sameXZV(), and cimg_library::CImg< T >::is_sameYZV().
bool cimg_library::CImg< T >::is_sameXYV | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images have same width, same height and same number of channels.
Definition at line 10979 of file cimg.h.
References cimg_library::CImg< T >::is_sameXY(), and cimg_library::CImg< T >::is_sameZ().
bool cimg_library::CImg< T >::is_sameXYZ | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images have same width, same height and same depth.
Definition at line 10974 of file cimg.h.
References cimg_library::CImg< T >::is_sameXY(), and cimg_library::CImg< T >::is_sameZ().
Referenced by cimg_library::CImg< T >::is_sameXYZV(), and cimg_library::CImgList< T >::save_ffmpeg_external().
bool cimg_library::CImg< T >::is_sameXYZV | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images (*this) and
img
have same width, same height, same depth and same number of channels.
Definition at line 10994 of file cimg.h.
References cimg_library::CImg< T >::is_sameV(), and cimg_library::CImg< T >::is_sameXYZ().
Referenced by cimg_library::CImg< T >::get_displacement_field().
bool cimg_library::CImg< T >::is_sameXZ | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images have same width and same depth.
Definition at line 10949 of file cimg.h.
References cimg_library::CImg< T >::is_sameX(), and cimg_library::CImg< T >::is_sameZ().
bool cimg_library::CImg< T >::is_sameXZV | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images have same width, same depth and same number of channels.
Definition at line 10984 of file cimg.h.
References cimg_library::CImg< T >::is_sameXY(), and cimg_library::CImg< T >::is_sameZ().
bool cimg_library::CImg< T >::is_sameY | ( | const CImgDisplay & | disp | ) | const [inline] |
Return true
if images (*this) and the display
disp
have same height.
Definition at line 10924 of file cimg.h.
References cimg_library::CImgDisplay::height, and cimg_library::CImg< T >::height.
bool cimg_library::CImg< T >::is_sameY | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images (*this) and
img
have same height.
Definition at line 10919 of file cimg.h.
References cimg_library::CImg< T >::height.
Referenced by cimg_library::CImg< T >::is_sameXY(), cimg_library::CImg< T >::is_sameYV(), and cimg_library::CImg< T >::is_sameYZ().
bool cimg_library::CImg< T >::is_sameYV | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images have same height and same number of channels.
Definition at line 10964 of file cimg.h.
References cimg_library::CImg< T >::is_sameV(), and cimg_library::CImg< T >::is_sameY().
bool cimg_library::CImg< T >::is_sameYZ | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images have same height and same depth.
Definition at line 10959 of file cimg.h.
References cimg_library::CImg< T >::is_sameY(), and cimg_library::CImg< T >::is_sameZ().
bool cimg_library::CImg< T >::is_sameYZV | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images have same heigth, same depth and same number of channels.
Definition at line 10989 of file cimg.h.
References cimg_library::CImg< T >::is_sameXY(), and cimg_library::CImg< T >::is_sameZ().
bool cimg_library::CImg< T >::is_sameZ | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images (*this) and
img
have same depth.
Definition at line 10929 of file cimg.h.
References cimg_library::CImg< T >::depth.
Referenced by cimg_library::CImg< T >::is_sameXYV(), cimg_library::CImg< T >::is_sameXYZ(), cimg_library::CImg< T >::is_sameXZ(), cimg_library::CImg< T >::is_sameXZV(), cimg_library::CImg< T >::is_sameYZ(), cimg_library::CImg< T >::is_sameYZV(), and cimg_library::CImg< T >::is_sameZV().
bool cimg_library::CImg< T >::is_sameZV | ( | const CImg< t > & | img | ) | const [inline] |
Return true
if images have same depth and same number of channels.
Definition at line 10969 of file cimg.h.
References cimg_library::CImg< T >::is_sameV(), and cimg_library::CImg< T >::is_sameZ().
const T cimg_library::CImg< T >::kth_smallest | ( | const unsigned int | k | ) | const [inline] |
Return the kth smallest element of the image.
Definition at line 12073 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), cimg_library::CImg< T >::swap(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::median().
CImg<T>& cimg_library::CImg< T >::label_regions | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 15096 of file cimg.h.
References cimg_library::CImg< T >::get_label_regions().
CImg<T>& cimg_library::CImg< T >::LabtoRGB | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16385 of file cimg.h.
References cimg_library::CImg< T >::LabtoXYZ().
CImg<T>& cimg_library::CImg< T >::LabtoXYZ | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16302 of file cimg.h.
References b, cimg_forXYZ, cimg_Labfi, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::pow().
Referenced by cimg_library::CImg< T >::LabtoRGB().
CImg<T>& cimg_library::CImg< T >::line | ( | const unsigned int | y0 | ) | [inline] |
In-place version of the previous function.
Definition at line 14765 of file cimg.h.
References cimg_library::CImg< T >::lines().
Referenced by cimg_library::CImg< T >::load_ascii(), cimg_library::CImg< T >::load_off(), and cimg_library::CImgList< T >::load_parrec().
cimg::superset<T,float>::type cimg_library::CImg< T >::linear_pix1d | ( | const float | fx, | |
const int | y = 0 , |
|||
const int | z = 0 , |
|||
const int | v = 0 | |||
) | const [inline] |
Definition at line 11407 of file cimg.h.
References cimg_library::CImg< T >::width.
cimg::superset<T,float>::type cimg_library::CImg< T >::linear_pix1d | ( | const float | fx, | |
const int | y, | |||
const int | z, | |||
const int | v, | |||
const T | out_val | |||
) | const [inline] |
Read a pixel value using linear interpolation for the first coordinate cx
.
Definition at line 11395 of file cimg.h.
References cimg_library::CImg< T >::pix1d(), and cimg_library::CImg< T >::pix2d().
Referenced by cimg_library::CImg< T >::draw_mandelbrot().
cimg::superset<T,float>::type cimg_library::CImg< T >::linear_pix2d | ( | const float | fx, | |
const float | fy, | |||
const int | z = 0 , |
|||
const int | v = 0 | |||
) | const [inline] |
Definition at line 11443 of file cimg.h.
References cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
cimg::superset<T,float>::type cimg_library::CImg< T >::linear_pix2d | ( | const float | fx, | |
const float | fy, | |||
const int | z, | |||
const int | v, | |||
const T | out_val | |||
) | const [inline] |
Read a pixel value using linear interpolation for the two first coordinates (cx
,cy
).
Definition at line 11428 of file cimg.h.
References cimg_library::CImg< T >::pix2d().
Referenced by cimg_library::CImg< T >::blur_anisotropic(), and cimg_library::CImg< T >::get_rotate().
cimg::superset<T,float>::type cimg_library::CImg< T >::linear_pix3d | ( | const float | fx, | |
const float | fy = 0 , |
|||
const float | fz = 0 , |
|||
const int | v = 0 | |||
) | const [inline] |
Definition at line 11495 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
cimg::superset<T,float>::type cimg_library::CImg< T >::linear_pix3d | ( | const float | fx, | |
const float | fy, | |||
const float | fz, | |||
const int | v, | |||
const T | out_val | |||
) | const [inline] |
Read a pixel value using linear interpolation for the three first coordinates (cx
,cy
,cz
).
Definition at line 11469 of file cimg.h.
References cimg_library::CImg< T >::pix3d().
Referenced by cimg_library::CImg< T >::blur_anisotropic(), and cimg_library::CImg< T >::blur_bilateral().
cimg::superset<T,float>::type cimg_library::CImg< T >::linear_pix4d | ( | const float | fx, | |
const float | fy = 0 , |
|||
const float | fz = 0 , |
|||
const float | fv = 0 | |||
) | const [inline] |
Definition at line 11593 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
cimg::superset<T,float>::type cimg_library::CImg< T >::linear_pix4d | ( | const float | fx, | |
const float | fy, | |||
const float | fz, | |||
const float | fv, | |||
const T | out_val | |||
) | const [inline] |
Read a pixel value using linear interpolation.
fx | X-coordinate of the pixel (float-valued). | |
fy | Y-coordinate of the pixel (float-valued). | |
fz | Z-coordinate of the pixel (float-valued). | |
fv | V-coordinate of the pixel (float-valued). | |
out_val | Out-of-border pixel value |
CImg<float> img(2,2); // Define a greyscale 2x2 image. img(0,0) = 0; // Fill image with specified pixel values. img(1,0) = 1; img(0,1) = 2; img(1,1) = 3; const double val = img.linear_pix4d(0.5,0.5); // Return val=1.5, which is the average intensity of the four pixels values.
Definition at line 11553 of file cimg.h.
References cimg_library::CImg< T >::pix4d().
Referenced by cimg_library::CImg< T >::blur_bilateral().
CImg<T>& cimg_library::CImg< T >::lines | ( | const unsigned int | y0, | |
const unsigned int | y1 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 14755 of file cimg.h.
References cimg_library::CImg< T >::get_lines().
Referenced by cimg_library::CImg< T >::line().
CImg<T>& cimg_library::CImg< T >::load | ( | const char *const | filename | ) | [inline] |
Definition at line 25217 of file cimg.h.
References cimg_library::cimg::filename_split(), cimg_library::CImg< T >::load_analyze(), cimg_library::CImg< T >::load_ascii(), cimg_library::CImg< T >::load_bmp(), cimg_library::CImg< T >::load_cimg(), cimg_library::CImg< T >::load_dlm(), cimg_library::CImg< T >::load_ffmpeg(), cimg_library::CImg< T >::load_inr(), cimg_library::CImg< T >::load_jpeg(), cimg_library::CImg< T >::load_medcon_external(), cimg_library::CImg< T >::load_other(), cimg_library::CImg< T >::load_pandore(), cimg_library::CImg< T >::load_parrec(), cimg_library::CImg< T >::load_png(), cimg_library::CImg< T >::load_pnm(), cimg_library::CImg< T >::load_tiff(), and cimg_library::cimg::strcasecmp().
Referenced by cimg_library::CImgList< T >::assign(), cimg_library::CImg< T >::assign(), cimg_library::CImgList< T >::get_load(), and cimg_library::CImg< T >::get_load().
CImg<T>& cimg_library::CImg< T >::load_analyze | ( | const char *const | filename, | |
float *const | voxsize = 0 | |||
) | [inline] |
Definition at line 26712 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_foroff, cimg_library::CImg< T >::data, cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::cimg::endian(), cimg_library::cimg::endian_swap(), cimg_library::cimg::fclose(), cimg_library::cimg::filename_split(), cimg_library::cimg::fopen(), cimg_library::cimg::fread(), cimg_library::CImg< T >::pixel_type(), cimg_library::cimg::strlen(), cimg_library::cimg::strncasecmp(), and cimg_library::cimg::warn().
Referenced by cimg_library::CImg< T >::get_load_analyze(), cimg_library::CImg< T >::load(), and cimg_library::CImg< T >::load_medcon_external().
CImg<T>& cimg_library::CImg< T >::load_ascii | ( | const char *const | filename | ) | [inline] |
Definition at line 25320 of file cimg.h.
References cimg_library::CImg< T >::load_ascii().
CImg<T>& cimg_library::CImg< T >::load_ascii | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | [inline] |
Definition at line 25281 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::data, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::CImg< T >::line(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::size(), and cimg_library::cimg::warn().
Referenced by cimg_library::CImg< T >::get_load_ascii(), cimg_library::CImg< T >::load(), and cimg_library::CImg< T >::load_ascii().
CImg<T>& cimg_library::CImg< T >::load_bmp | ( | const char *const | filename | ) | [inline] |
Definition at line 25618 of file cimg.h.
References cimg_library::CImg< T >::load_bmp().
CImg<T>& cimg_library::CImg< T >::load_bmp | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | [inline] |
Definition at line 25504 of file cimg.h.
References cimg_library::cimg::abs(), cimg_library::CImg< T >::assign(), cimg_forX, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::cimg::fread(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::load_other(), mask, cimg_library::cimg::min(), cimg_library::CImg< T >::mirror(), cimg_library::CImg< T >::offset(), cimg_library::CImg< T >::pixel_type(), and cimg_library::cimg::ror().
Referenced by cimg_library::CImg< T >::get_load_bmp(), cimg_library::CImg< T >::load(), and cimg_library::CImg< T >::load_bmp().
CImg<T>& cimg_library::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 | v0, | |||
const unsigned int | x1, | |||
const unsigned int | y1, | |||
const unsigned int | z1, | |||
const unsigned int | v1, | |||
const char | axis = 'z' , |
|||
const char | align = 'p' | |||
) | [inline] |
In-place version of the previous function.
Definition at line 27073 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImgList< T >::get_append(), cimg_library::CImgList< T >::load_cimg(), cimg_library::CImgList< T >::size, and cimg_library::CImgList< T >::transfer_to().
CImg<T>& cimg_library::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 | v0, | |||
const unsigned int | x1, | |||
const unsigned int | y1, | |||
const unsigned int | z1, | |||
const unsigned int | v1, | |||
const char | axis = 'z' , |
|||
const char | align = 'p' | |||
) | [inline] |
In-place version of the previous function.
Definition at line 27052 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImgList< T >::get_append(), cimg_library::CImgList< T >::load_cimg(), cimg_library::CImgList< T >::size, and cimg_library::CImgList< T >::transfer_to().
CImg<T>& cimg_library::CImg< T >::load_cimg | ( | const char *const | filename, | |
const char | axis = 'z' , |
|||
const char | align = 'p' | |||
) | [inline] |
In-place version of the previous function.
Definition at line 27035 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImgList< T >::get_append(), cimg_library::CImgList< T >::load_cimg(), cimg_library::CImgList< T >::size, and cimg_library::CImgList< T >::transfer_to().
CImg<T>& cimg_library::CImg< T >::load_cimg | ( | std::FILE *const | file, | |
const char | axis = 'z' , |
|||
const char | align = 'p' | |||
) | [inline] |
In-place version of the previous function.
Definition at line 27022 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImgList< T >::get_append(), cimg_library::CImgList< T >::load_cimg(), cimg_library::CImgList< T >::size, and cimg_library::CImgList< T >::transfer_to().
Referenced by cimg_library::CImgList< T >::get_load_cimg(), cimg_library::CImg< T >::get_load_cimg(), cimg_library::CImgList< T >::load(), cimg_library::CImg< T >::load(), and cimg_library::CImgList< T >::load_cimg().
CImg<T>& cimg_library::CImg< T >::load_dlm | ( | const char *const | filename | ) | [inline] |
Definition at line 25364 of file cimg.h.
References cimg_library::CImg< T >::load_dlm().
CImg<T>& cimg_library::CImg< T >::load_dlm | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | [inline] |
Definition at line 25329 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::max(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::resize(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_load_dlm(), cimg_library::CImg< T >::load(), and cimg_library::CImg< T >::load_dlm().
CImg<T>& cimg_library::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' | |||
) | [inline] |
Definition at line 27210 of file cimg.h.
References cimg_library::CImg< T >::get_load_ffmpeg().
Referenced by cimg_library::CImgList< T >::get_load_ffmpeg(), cimg_library::CImg< T >::get_load_ffmpeg(), cimg_library::CImgList< T >::load(), and cimg_library::CImg< T >::load().
CImg<T>& cimg_library::CImg< T >::load_ffmpeg_external | ( | const char *const | filename, | |
const char | axis = 'z' , |
|||
const char | align = 'p' | |||
) | [inline] |
In-place version of the previous function.
Definition at line 27222 of file cimg.h.
References cimg_library::CImg< T >::get_load_ffmpeg_external().
Referenced by cimg_library::CImgList< T >::get_load_ffmpeg_external(), cimg_library::CImg< T >::get_load_ffmpeg_external(), and cimg_library::CImgList< T >::load_ffmpeg().
CImg<T>& cimg_library::CImg< T >::load_graphicsmagick_external | ( | const char *const | filename | ) | [inline] |
In-place version of the previous function.
Definition at line 27181 of file cimg.h.
References cimg_OS, cimg_library::cimg::fclose(), cimg_library::cimg::filenamerand(), cimg_library::cimg::fopen(), cimg_library::cimg::graphicsmagick_path(), cimg_library::CImg< T >::load_pnm(), cimg_library::CImg< T >::pixel_type(), cimg_library::remove(), cimg_library::cimg::system(), and cimg_library::cimg::temporary_path().
Referenced by cimg_library::CImg< T >::get_load_graphicsmagick_external(), and cimg_library::CImg< T >::load_other().
CImg<T>& cimg_library::CImg< T >::load_imagemagick_external | ( | const char *const | filename | ) | [inline] |
In-place version of the previous function.
Definition at line 27154 of file cimg.h.
References cimg_OS, cimg_library::cimg::fclose(), cimg_library::cimg::filenamerand(), cimg_library::cimg::fopen(), cimg_library::cimg::imagemagick_path(), cimg_library::CImg< T >::load_pnm(), cimg_library::CImg< T >::pixel_type(), cimg_library::remove(), cimg_library::cimg::system(), and cimg_library::cimg::temporary_path().
Referenced by cimg_library::CImg< T >::get_load_imagemagick_external(), and cimg_library::CImg< T >::load_other().
CImg<T>& cimg_library::CImg< T >::load_inr | ( | const char *const | filename, | |
float *const | voxsize = 0 | |||
) | [inline] |
Definition at line 26499 of file cimg.h.
References cimg_library::CImg< T >::load_inr().
CImg<T>& cimg_library::CImg< T >::load_inr | ( | std::FILE *const | file, | |
const char *const | filename = 0 , |
|||
float *const | voxsize = 0 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 26418 of file cimg.h.
References cimg_library::CImg< T >::_load_inr(), cimg_library::CImg< T >::assign(), cimg_load_inr_case, cimg_library::cimg::endian(), cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), and cimg_library::CImg< T >::pixel_type().
Referenced by cimg_library::CImg< T >::get_load_inr(), cimg_library::CImg< T >::load(), and cimg_library::CImg< T >::load_inr().
CImg<T>& cimg_library::CImg< T >::load_jpeg | ( | const char *const | filename | ) | [inline] |
Definition at line 26213 of file cimg.h.
References cimg_library::CImg< T >::load_jpeg().
CImg<T>& cimg_library::CImg< T >::load_jpeg | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | [inline] |
Definition at line 26139 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_forXY, cimg_library::CImg< T >::data, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::CImg< T >::load_other(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::cimg::warn().
Referenced by cimg_library::CImg< T >::get_load_jpeg(), cimg_library::CImg< T >::load(), and cimg_library::CImg< T >::load_jpeg().
CImg<T>& cimg_library::CImg< T >::load_magick | ( | const char *const | filename | ) | [inline] |
Definition at line 26226 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::get_load_magick(), and cimg_library::CImg< T >::load_other().
CImg<T>& cimg_library::CImg< T >::load_medcon_external | ( | const char *const | filename | ) | [inline] |
In-place version of the previous function.
Definition at line 27122 of file cimg.h.
References cimg_library::cimg::fclose(), cimg_library::cimg::filename_split(), cimg_library::cimg::filenamerand(), cimg_library::cimg::fopen(), cimg_library::CImg< T >::load_analyze(), cimg_library::cimg::medcon_path(), cimg_library::CImg< T >::pixel_type(), cimg_library::remove(), and cimg_library::cimg::system().
Referenced by cimg_library::CImg< T >::get_load_medcon_external(), and cimg_library::CImg< T >::load().
CImg<T>& cimg_library::CImg< T >::load_off | ( | const char *const | filename, | |
CImgList< tf > & | primitives, | |||
CImgList< tc > & | colors, | |||
const bool | invert_faces = false | |||
) | [inline] |
In-place version of the previous function.
Definition at line 26819 of file cimg.h.
References cimg_library::CImgList< T >::assign(), cimg_library::CImg< T >::assign(), cimg_forX, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::CImgList< T >::insert(), cimg_library::CImg< T >::line(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImgList< T >::size, cimg_library::cimg::strncasecmp(), and cimg_library::cimg::warn().
Referenced by cimg_library::CImgList< T >::get_load_off(), cimg_library::CImg< T >::get_load_off(), and cimg_library::CImgList< T >::load_off().
CImg<T>& cimg_library::CImg< T >::load_other | ( | const char *const | filename | ) | [inline] |
In-place version of the previous function.
Definition at line 27232 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::cimg::exception_mode(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::load_graphicsmagick_external(), cimg_library::CImg< T >::load_imagemagick_external(), cimg_library::CImg< T >::load_magick(), and cimg_library::CImg< T >::pixel_type().
Referenced by cimg_library::CImg< T >::get_load_other(), cimg_library::CImg< T >::load(), cimg_library::CImg< T >::load_bmp(), cimg_library::CImg< T >::load_jpeg(), cimg_library::CImg< T >::load_png(), and cimg_library::CImg< T >::load_tiff().
CImg<T>& cimg_library::CImg< T >::load_pandore | ( | const char *const | filename | ) | [inline] |
Definition at line 26703 of file cimg.h.
References cimg_library::CImg< T >::load_pandore().
CImg<T>& cimg_library::CImg< T >::load_pandore | ( | std::FILE *const | file, | |
const char *const | filename | |||
) | [inline] |
In-place version of the previous function.
Definition at line 26509 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_foroff, cimg_load_pandore_case, cimg_library::CImg< T >::data, cimg_library::cimg::endian(), cimg_library::cimg::endian_swap(), cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::cimg::fread(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::cimg::strncasecmp().
Referenced by cimg_library::CImg< T >::get_load_pandore(), cimg_library::CImg< T >::load(), and cimg_library::CImg< T >::load_pandore().
CImg<T>& cimg_library::CImg< T >::load_parrec | ( | const char *const | filename, | |
const char | axis = 'v' , |
|||
const char | align = 'p' | |||
) | [inline] |
In-place version of the previous function.
Definition at line 27009 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImgList< T >::get_append(), cimg_library::CImgList< T >::load_parrec(), cimg_library::CImgList< T >::size, and cimg_library::CImgList< T >::transfer_to().
Referenced by cimg_library::CImgList< T >::get_load_parrec(), cimg_library::CImg< T >::get_load_parrec(), cimg_library::CImgList< T >::load(), and cimg_library::CImg< T >::load().
CImg<T>& cimg_library::CImg< T >::load_png | ( | const char *const | filename | ) | [inline] |
Definition at line 25769 of file cimg.h.
References cimg_library::CImg< T >::load_png().
CImg<T>& cimg_library::CImg< T >::load_png | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | [inline] |
Definition at line 25628 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_forX, cimg_forY, cimg_library::cimg::endian(), cimg_library::cimg::endian_swap(), cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::cimg::fread(), cimg_library::CImg< T >::load_other(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_load_png(), cimg_library::CImg< T >::load(), and cimg_library::CImg< T >::load_png().
CImg<T>& cimg_library::CImg< T >::load_pnm | ( | const char *const | filename | ) | [inline] |
Definition at line 25495 of file cimg.h.
References cimg_library::CImg< T >::load_pnm().
CImg<T>& cimg_library::CImg< T >::load_pnm | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | [inline] |
Definition at line 25373 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_foroff, cimg_forXY, cimg_library::CImg< T >::data, cimg_library::cimg::endian(), cimg_library::cimg::endian_swap(), cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::cimg::fread(), cimg_library::cimg::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::size(), cimg_library::cimg::warn(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_load_pnm(), cimg_library::CImg< T >::load(), cimg_library::CImgList< T >::load_ffmpeg_external(), cimg_library::CImg< T >::load_graphicsmagick_external(), cimg_library::CImg< T >::load_imagemagick_external(), and cimg_library::CImg< T >::load_pnm().
CImg<T>& cimg_library::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 | endian_swap = false | |||
) | [inline] |
Definition at line 26324 of file cimg.h.
References cimg_library::cimg::endian_swap(), and cimg_library::CImg< T >::load_raw().
CImg<T>& cimg_library::CImg< T >::load_raw | ( | std::FILE *const | file, | |
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 | endian_swap = false | |||
) | [inline] |
Definition at line 26292 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_forXYZ, cimg_library::CImg< T >::data, cimg_library::cimg::endian_swap(), cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::cimg::fread(), cimg_library::CImg< T >::set_vector_at(), and cimg_library::CImg< T >::size().
Referenced by cimg_library::CImg< T >::get_load_raw(), and cimg_library::CImg< T >::load_raw().
CImg<T>& cimg_library::CImg< T >::load_rgb | ( | const char *const | filename, | |
const unsigned int | dimw, | |||
const unsigned int | dimh | |||
) | [inline] |
Definition at line 26408 of file cimg.h.
References cimg_library::CImg< T >::load_rgb().
CImg<T>& cimg_library::CImg< T >::load_rgb | ( | std::FILE *const | file, | |
const char *const | filename, | |||
const unsigned int | dimw, | |||
const unsigned int | dimh | |||
) | [inline] |
In-place version of the previous function.
Definition at line 26379 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::data, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::cimg::fread(), cimg_library::cimg::min(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_load_rgb(), and cimg_library::CImg< T >::load_rgb().
CImg<T>& cimg_library::CImg< T >::load_rgba | ( | const char *const | filename, | |
const unsigned int | dimw, | |||
const unsigned int | dimh | |||
) | [inline] |
In-place version of the previous function.
Definition at line 26369 of file cimg.h.
References cimg_library::CImg< T >::load_rgba().
CImg<T>& cimg_library::CImg< T >::load_rgba | ( | std::FILE *const | file, | |
const char *const | filename, | |||
const unsigned int | dimw, | |||
const unsigned int | dimh | |||
) | [inline] |
In-place version of the previous function.
Definition at line 26337 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::data, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::cimg::fread(), cimg_library::cimg::min(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_load_rgba(), and cimg_library::CImg< T >::load_rgba().
CImg<T>& cimg_library::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 | |||
) | [inline] |
Definition at line 26096 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::dim, cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::load_other(), cimg_library::cimg::max(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::resize(), cimg_library::cimg::warn(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImgList< T >::get_load_tiff(), cimg_library::CImg< T >::get_load_tiff(), cimg_library::CImgList< T >::load(), and cimg_library::CImg< T >::load().
CImg<T>& cimg_library::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' | |||
) | [inline] |
In-place version of the previous function.
Definition at line 27109 of file cimg.h.
References cimg_library::CImg< T >::get_load_yuv().
CImg<T>& cimg_library::CImg< T >::load_yuv | ( | std::FILE *const | file, | |
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' | |||
) | [inline] |
In-place version of the previous function.
Definition at line 27093 of file cimg.h.
References cimg_library::CImg< T >::get_load_yuv().
Referenced by cimg_library::CImgList< T >::get_load_yuv(), cimg_library::CImg< T >::get_load_yuv(), and cimg_library::CImgList< T >::load_yuv().
CImg<T>& cimg_library::CImg< T >::log | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 12653 of file cimg.h.
References cimg_for, cimg_library::log(), and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::get_log().
CImg<T>& cimg_library::CImg< T >::log10 | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 12665 of file cimg.h.
References cimg_for, cimg_library::log10(), and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::get_log10(), and cimg_library::CImg< T >::PSNR().
CImg<T>& cimg_library::CImg< T >::LUTtoRGB | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 15882 of file cimg.h.
References cimg_library::CImg< T >::get_LUTtoRGB().
CImg<T>& cimg_library::CImg< T >::LUTtoRGB | ( | const CImg< T > & | palette | ) | [inline] |
In-place version of the previous function.
Definition at line 15871 of file cimg.h.
References cimg_library::CImg< T >::get_LUTtoRGB().
const CImg<T>& cimg_library::CImg< T >::marching_cubes | ( | const float | isovalue, | |
const float | resx, | |||
const float | resy, | |||
const float | resz, | |||
CImgList< tp > & | points, | |||
CImgList< tf > & | primitives, | |||
const bool | invert_faces = false | |||
) | const [inline] |
Get a triangulation of an implicit function defined by the instance image.
This version allows to specify the marching cube resolution along x,y and z.
Definition at line 15683 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::marching_cubes(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
const CImg<T>& cimg_library::CImg< T >::marching_cubes | ( | const float | isovalue, | |
CImgList< tp > & | points, | |||
CImgList< tf > & | primitives, | |||
const bool | invert_faces = false | |||
) | const [inline] |
Get a triangulation of an implicit function defined by the instance image.
Definition at line 15667 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::marching_cubes().
const CImg<T>& cimg_library::CImg< T >::marching_squares | ( | const float | isovalue, | |
const float | resx, | |||
const float | resy, | |||
CImgList< tp > & | points, | |||
CImgList< tf > & | primitives | |||
) | const [inline] |
Get a vectorization of an implicit function defined by the instance image.
This version allows to specify the marching squares resolution along x,y, and z.
Definition at line 15654 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::marching_squares(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
const CImg<T>& cimg_library::CImg< T >::marching_squares | ( | const float | isovalue, | |
CImgList< tp > & | points, | |||
CImgList< tf > & | primitives | |||
) | const [inline] |
Get a vectorization of an implicit function defined by the instance image.
Definition at line 15640 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::marching_squares().
CImg<T>& cimg_library::CImg< T >::matrix | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 23583 of file cimg.h.
References cimg_library::CImg< T >::height, cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::diagonal(), cimg_library::CImg< T >::rotation_matrix(), and cimg_library::CImg< T >::tensor().
static CImg<T> cimg_library::CImg< T >::matrix | ( | const double | a0, | |
const double | a1, | |||
... | ||||
) | [inline, static] |
Return a NxN square matrix with specified coefficients.
Definition at line 23393 of file cimg.h.
References _CImg_stdarg.
static CImg<T> cimg_library::CImg< T >::matrix | ( | const int | a0, | |
const int | a1, | |||
... | ||||
) | [inline, static] |
Return a MxN square matrix with specified coefficients.
Definition at line 23386 of file cimg.h.
References _CImg_stdarg.
static CImg<T> cimg_library::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 | |||
) | [inline, static] |
Return a 5x5 square matrix with specified coefficients.
Definition at line 23371 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::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 | |||
) | [inline, static] |
Return a 4x4 square matrix with specified coefficients.
Definition at line 23358 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::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 | |||
) | [inline, static] |
Return a 3x3 square matrix with specified coefficients.
Definition at line 23347 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::CImg< T >::matrix | ( | const T | a0, | |
const T | a1, | |||
const T | a2, | |||
const T | a3 | |||
) | [inline, static] |
Return a 2x2 square matrix with specified coefficients.
Definition at line 23338 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::CImg< T >::matrix | ( | const T | a0 | ) | [inline, static] |
Return a 1x1 square matrix with specified coefficients.
Definition at line 23333 of file cimg.h.
References cimg_library::CImg< T >::vector().
CImg<T>& cimg_library::CImg< T >::max | ( | const T | val | ) | [inline] |
In-place version of the previous function.
Definition at line 12553 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::max(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::max | ( | const CImg< t > & | img | ) | [inline] |
In-place version of the previous function.
Definition at line 12539 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::min(), and cimg_library::CImg< T >::size().
T& cimg_library::CImg< T >::max | ( | ) | [inline] |
Return a reference to the maximum pixel value of the instance image.
Definition at line 11815 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::ptr().
const T& cimg_library::CImg< T >::max | ( | ) | const [inline] |
Return a reference to the maximum pixel value of the instance image.
Definition at line 11806 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::_draw_ellipse(), cimg_library::CImg< T >::_draw_scanline(), cimg_library::CImgList< T >::assign(), cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImgList< T >::CImgList(), cimg_library::CImg< T >::cubic_pix1d(), cimg_library::CImg< T >::cubic_pix2d(), cimg_library::cimg::dialog(), cimg_library::CImg< T >::display(), cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::draw_gaussian(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_mandelbrot(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_plasma(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::draw_spline(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImgList< T >::get_append(), cimg_library::CImg< T >::get_dijkstra(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_erode(), cimg_library::CImg< T >::get_label_regions(), cimg_library::CImg< T >::get_max(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_RGBtoLUT(), cimg_library::CImg< T >::get_rotate(), cimg_library::CImg< T >::load_dlm(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::noise(), cimg_library::CImg< T >::RGBtoHSL(), cimg_library::CImg< T >::RGBtoHSV(), and cimg_library::CImg< T >::SVD().
T& cimg_library::CImg< T >::maxmin | ( | t & | min_val | ) | [inline] |
Return a reference to the maximum pixel value and return also the minimum pixel value.
Definition at line 11884 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::ptr().
const T& cimg_library::CImg< T >::maxmin | ( | t & | min_val | ) | const [inline] |
Return a reference to the maximum pixel value and return also the minimum pixel value.
Definition at line 11870 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::blur_bilateral(), cimg_library::CImg< T >::distance_function(), cimg_library::CImg< T >::draw_graph(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::normalize(), cimg_library::CImg< T >::quantize(), cimg_library::CImg< T >::save_png(), cimg_library::CImg< T >::save_pnm(), and cimg_library::CImg< T >::sharpen().
double cimg_library::CImg< T >::mean | ( | ) | const [inline] |
Return the mean pixel value of the instance image.
Definition at line 11898 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::size().
Referenced by cimg_library::CImg< T >::display_object3d(), and cimg_library::CImg< T >::get_coordinates().
T cimg_library::CImg< T >::median | ( | ) | const [inline] |
Return the median of the image.
Definition at line 11989 of file cimg.h.
References cimg_library::CImg< T >::kth_smallest(), and cimg_library::CImg< T >::size().
Referenced by cimg_library::CImg< T >::get_blur_median().
CImg<T>& cimg_library::CImg< T >::min | ( | const T | val | ) | [inline] |
In-place version of the previous function.
Definition at line 12579 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::min(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::min | ( | const CImg< t > & | img | ) | [inline] |
In-place version of the previous function.
Definition at line 12565 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::min(), and cimg_library::CImg< T >::size().
T& cimg_library::CImg< T >::min | ( | ) | [inline] |
Return a reference to the minimum pixel value of the instance image.
Definition at line 11833 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::ptr().
const T& cimg_library::CImg< T >::min | ( | ) | const [inline] |
Return a reference to the minimum pixel value of the instance image.
Definition at line 11824 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::cubic_pix1d(), cimg_library::CImg< T >::cubic_pix2d(), cimg_library::CImg< T >::display(), cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::div(), cimg_library::CImg< T >::dot(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_plasma(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_polygon(), cimg_library::CImg< T >::draw_spline(), cimg_library::CImg< T >::get_BayertoRGB(), cimg_library::CImg< T >::get_dilate(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_min(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_rotate(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::min(), cimg_library::CImg< T >::mul(), cimg_library::CImg< T >::operator%=(), cimg_library::CImg< T >::operator&=(), cimg_library::CImgList< T >::operator*=(), cimg_library::CImgList< T >::operator+=(), cimg_library::CImg< T >::operator+=(), cimg_library::CImgList< T >::operator-=(), cimg_library::CImg< T >::operator-=(), cimg_library::CImgList< T >::operator/=(), cimg_library::CImg< T >::operator^=(), cimg_library::CImg< T >::operator|=(), cimg_library::CImg< T >::pow(), cimg_library::CImg< T >::RGBtoHSI(), cimg_library::CImg< T >::RGBtoHSL(), cimg_library::CImg< T >::RGBtoHSV(), cimg_library::CImgList< T >::save_cimg(), and cimg_library::CImg< T >::SVD().
T& cimg_library::CImg< T >::minmax | ( | t & | max_val | ) | [inline] |
Return a reference to the minimum pixel value and return also the maximum pixel value.
Definition at line 11856 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::ptr().
const T& cimg_library::CImg< T >::minmax | ( | t & | max_val | ) | const [inline] |
Return a reference to the minimum pixel value and return also the maximum pixel value.
Definition at line 11842 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::equalize_histogram(), cimg_library::CImg< T >::get_histogram(), and cimg_library::CImg< T >::noise().
CImg<T>& cimg_library::CImg< T >::mirror | ( | const char | axe = 'x' |
) | [inline] |
In-place version of the previous function.
Definition at line 14354 of file cimg.h.
References cimg_forV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), memcpy(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::cimg::uncase(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::load_bmp().
double cimg_library::CImg< T >::MSE | ( | const CImg< t > & | img | ) | const [inline] |
Compute the MSE (Mean-Squared Error) between two images.
Definition at line 11957 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::PSNR().
CImg<T>& cimg_library::CImg< T >::mul | ( | const CImg< t > & | img | ) | [inline] |
In-place version of the previous function.
Definition at line 12509 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::min(), and cimg_library::CImg< T >::size().
Referenced by cimg_library::CImg< T >::get_mul().
CImg<T>& cimg_library::CImg< T >::noise | ( | const double | sigma = -20 , |
|
const unsigned int | ntype = 0 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 21760 of file cimg.h.
References cimg_for, cimg_library::cimg::crand(), cimg_library::CImg< T >::exp(), cimg_library::cimg::grand(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::minmax(), cimg_library::CImg< T >::ptr(), cimg_library::cimg::rand(), cimg_library::sqrt(), cimg_library::CImg< T >::sqrt(), and cimg_library::cimg::srand().
double cimg_library::CImg< T >::norm | ( | const int | norm_type = 2 |
) | const [inline] |
Return the norm of the current vector/matrix. ntype
= norm type (0=L2, 1=L1, -1=Linf).
Definition at line 12039 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_foroff, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dot(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::sqrt(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::_draw_ellipse(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::get_coordinates(), and cimg_library::CImg< T >::rotation_matrix().
CImg<T>& cimg_library::CImg< T >::norm_pointwise | ( | int | norm_type = 2 |
) | [inline] |
In-place version of the previous function.
Definition at line 15137 of file cimg.h.
References cimg_library::CImg< T >::get_norm_pointwise().
CImg<T>& cimg_library::CImg< T >::normalize | ( | const T | a, | |
const T | b | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13411 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::maxmin(), and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::blur_anisotropic(), and cimg_library::CImg< T >::get_coordinates().
long cimg_library::CImg< T >::offset | ( | const int | x | ) | const [inline] |
long cimg_library::CImg< T >::offset | ( | const int | x, | |
const int | y | |||
) | const [inline] |
Definition at line 11087 of file cimg.h.
References cimg_library::CImg< T >::width.
long cimg_library::CImg< T >::offset | ( | const int | x, | |
const int | y, | |||
const int | z | |||
) | const [inline] |
Definition at line 11083 of file cimg.h.
References cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
long cimg_library::CImg< T >::offset | ( | const int | x, | |
const int | y, | |||
const int | z, | |||
const int | v | |||
) | const [inline] |
Return the offset of the pixel coordinates (x
,y
,z
,v
) with respect to the data pointer data
.
x | X-coordinate of the pixel. | |
y | Y-coordinate of the pixel. | |
z | Z-coordinate of the pixel. | |
v | V-coordinate of the pixel. |
CImg<float> img(100,100,1,3,0); // Define a 100x100 color image with float-valued black pixels. long off = img.offset(10,10,0,2); // Get the offset of the blue value of the pixel located at (10,10). float val = img[off]; // Get the blue value of the pixel.
Definition at line 11079 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_shared_channels(), cimg_library::CImg< T >::get_shared_lines(), cimg_library::CImg< T >::get_shared_planes(), cimg_library::CImg< T >::get_shared_points(), and cimg_library::CImg< T >::load_bmp().
cimg_library::CImg< T >::operator bool | ( | ) | const [inline] |
Image to boolean conversion.
Definition at line 11058 of file cimg.h.
References cimg_library::CImg< T >::is_empty().
bool cimg_library::CImg< T >::operator!= | ( | const CImg< t > & | img | ) | const [inline] |
CImg<T> cimg_library::CImg< T >::operator% | ( | const T | val | ) | const [inline] |
CImg<typename cimg::superset<T,t>::type> cimg_library::CImg< T >::operator% | ( | const CImg< t > & | img | ) | const [inline] |
CImg<T>& cimg_library::CImg< T >::operator%= | ( | const CImg< t > & | img | ) | [inline] |
In-place modulo.
Definition at line 12313 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::min(), cimg_library::cimg::mod(), and cimg_library::CImg< T >::size().
CImg<T>& cimg_library::CImg< T >::operator%= | ( | const T | val | ) | [inline] |
In-place modulo.
Definition at line 12307 of file cimg.h.
References cimg_for, cimg_library::cimg::mod(), and cimg_library::CImg< T >::ptr().
CImg<T> cimg_library::CImg< T >::operator& | ( | const T | val | ) | const [inline] |
CImg<typename cimg::superset<T,t>::type> cimg_library::CImg< T >::operator& | ( | const CImg< t > & | img | ) | const [inline] |
CImg<T>& cimg_library::CImg< T >::operator&= | ( | const T | val | ) | [inline] |
In-place bitwise AND.
Definition at line 12349 of file cimg.h.
References cimg_for, and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::operator&= | ( | const CImg< t > & | img | ) | [inline] |
In-place bitwise AND.
Definition at line 12337 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::min(), and cimg_library::CImg< T >::size().
const T& cimg_library::CImg< T >::operator() | ( | const unsigned int | x | ) | const [inline] |
Definition at line 11255 of file cimg.h.
References cimg_library::CImg< T >::data.
T& cimg_library::CImg< T >::operator() | ( | const unsigned int | x | ) | [inline] |
Definition at line 11251 of file cimg.h.
References cimg_library::CImg< T >::data.
const T& cimg_library::CImg< T >::operator() | ( | const unsigned int | x, | |
const unsigned int | y | |||
) | const [inline] |
Definition at line 11247 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::width.
T& cimg_library::CImg< T >::operator() | ( | const unsigned int | x, | |
const unsigned int | y | |||
) | [inline] |
Definition at line 11243 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::width.
const T& cimg_library::CImg< T >::operator() | ( | const unsigned int | x, | |
const unsigned int | y, | |||
const unsigned int | z | |||
) | const [inline] |
Definition at line 11239 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
T& cimg_library::CImg< T >::operator() | ( | const unsigned int | x, | |
const unsigned int | y, | |||
const unsigned int | z | |||
) | [inline] |
Definition at line 11235 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
const T& cimg_library::CImg< T >::operator() | ( | const unsigned int | x, | |
const unsigned int | y, | |||
const unsigned int | z, | |||
const unsigned int | v | |||
) | const [inline] |
Definition at line 11231 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
T& cimg_library::CImg< T >::operator() | ( | const unsigned int | x, | |
const unsigned int | y, | |||
const unsigned int | z, | |||
const unsigned int | v | |||
) | [inline] |
Fast access to pixel value for reading or writing.
x | X-coordinate of the pixel. | |
y | Y-coordinate of the pixel. | |
z | Z-coordinate of the pixel. | |
v | V-coordinate of the pixel. |
cimg_debug
== 3, boundary checking is performed and warning messages may appear (but function performances decrease).CImg<float> img(100,100,1,3,0); // Define a 100x100 color image with float-valued black pixels. const float valR = img(10,10,0,0); // Read the red component at coordinates (10,10). const float valG = img(10,10,0,1); // Read the green component at coordinates (10,10) const float valB = img(10,10,2); // Read the blue component at coordinates (10,10) (Z-coordinate omitted here). const float avg = (valR + valG + valB)/3; // Compute average pixel value. img(10,10,0) = img(10,10,1) = img(10,10,2) = avg; // Replace the pixel (10,10) by the average grey value.
Definition at line 11227 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::back().
CImg<T>& cimg_library::CImg< T >::operator*= | ( | const CImg< t > & | img | ) | [inline] |
CImg<T>& cimg_library::CImg< T >::operator*= | ( | const t | val | ) | [inline] |
Operator*=.
Definition at line 12269 of file cimg.h.
References cimg_for, and cimg_library::CImg< T >::ptr().
CImg<T> cimg_library::CImg< T >::operator+ | ( | ) | const [inline] |
CImg<T> cimg_library::CImg< T >::operator++ | ( | int | ) | [inline] |
CImg<T>& cimg_library::CImg< T >::operator++ | ( | ) | [inline] |
Operator++ (prefix).
Definition at line 12216 of file cimg.h.
References cimg_for, and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::operator+= | ( | const CImg< t > & | img | ) | [inline] |
Operator+=.
Definition at line 12207 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::min(), and cimg_library::CImg< T >::size().
CImg<T>& cimg_library::CImg< T >::operator+= | ( | const t | val | ) | [inline] |
Operator+=;.
Definition at line 12200 of file cimg.h.
References cimg_for, and cimg_library::CImg< T >::ptr().
CImg<T> cimg_library::CImg< T >::operator- | ( | ) | const [inline] |
Operator-.
Definition at line 12229 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T> cimg_library::CImg< T >::operator-- | ( | int | ) | [inline] |
CImg<T>& cimg_library::CImg< T >::operator-- | ( | ) | [inline] |
Operator-- (prefix).
Definition at line 12253 of file cimg.h.
References cimg_for, and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::operator-= | ( | const CImg< t > & | img | ) | [inline] |
Operator-=.
Definition at line 12244 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::min(), and cimg_library::CImg< T >::size().
CImg<T>& cimg_library::CImg< T >::operator-= | ( | const t | val | ) | [inline] |
Operator-=.
Definition at line 12237 of file cimg.h.
References cimg_for, and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::operator/= | ( | const CImg< t > & | img | ) | [inline] |
Operator/=.
Definition at line 12291 of file cimg.h.
References cimg_library::CImg< T >::assign(), and cimg_library::CImg< T >::get_invert().
CImg<T>& cimg_library::CImg< T >::operator/= | ( | const t | val | ) | [inline] |
Operator/=.
Definition at line 12284 of file cimg.h.
References cimg_for, and cimg_library::CImg< T >::ptr().
CImgList<typename cimg::superset<T,t>::type> cimg_library::CImg< T >::operator<< | ( | const CImgList< t > & | list | ) | const [inline] |
Return a copy of list
, where image *this has been inserted at first position.
Definition at line 12464 of file cimg.h.
References cimg_library::insert().
CImgList<typename cimg::superset<T,t>::type> cimg_library::CImg< T >::operator<< | ( | const CImg< t > & | img | ) | const [inline] |
CImg<T> cimg_library::CImg< T >::operator<< | ( | const int | n | ) | const [inline] |
CImg<T>& cimg_library::CImg< T >::operator<<= | ( | const int | n | ) | [inline] |
Bitwise shift.
Definition at line 12421 of file cimg.h.
References cimg_for, and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::operator= | ( | const T | val | ) | [inline] |
Assign a value to each image pixel of the instance image.
Definition at line 12183 of file cimg.h.
References cimg_library::CImg< T >::fill().
CImg<T>& cimg_library::CImg< T >::operator= | ( | const T * | buf | ) | [inline] |
Assign values of a C-array to the instance image.
buf | Pointer to a C-style array having a size of (at least) this->size() . |
buf
.float tab[4*4] = { 1,2,3,4, 5,6,7,8, 9,10,11,12, 13,14,15,16 }; // Define a 4x4 matrix in C-style. CImg<float> matrice(4,4); // Define a 4x4 greyscale image. matrice = tab; // Fill the image by the values in tab.
Definition at line 12178 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::operator= | ( | const CImg< T > & | img | ) | [inline] |
Definition at line 12160 of file cimg.h.
References cimg_library::CImg< T >::assign().
CImg<T>& cimg_library::CImg< T >::operator= | ( | const CImg< t > & | img | ) | [inline] |
Assignment operator.
This operator assigns a copy of the input image img
to the current instance image.
img | The input image to copy. |
Definition at line 12156 of file cimg.h.
References cimg_library::CImg< T >::assign().
bool cimg_library::CImg< T >::operator== | ( | const CImg< t > & | img | ) | const [inline] |
Boolean equality.
Definition at line 12443 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::size().
const CImg<T>& cimg_library::CImg< T >::operator>> | ( | CImgDisplay & | disp | ) | const [inline] |
Display an image into a CImgDisplay.
Definition at line 12480 of file cimg.h.
References cimg_library::CImg< T >::display().
CImgList<t>& cimg_library::CImg< T >::operator>> | ( | const CImgList< t > & | list | ) | const [inline] |
Insert an image into the begining of an image list.
Definition at line 12475 of file cimg.h.
References cimg_library::CImgList< T >::insert().
CImgList<typename cimg::superset<T,t>::type> cimg_library::CImg< T >::operator>> | ( | const CImg< t > & | img | ) | const [inline] |
CImg<T> cimg_library::CImg< T >::operator>> | ( | const int | n | ) | const [inline] |
CImg<T>& cimg_library::CImg< T >::operator>>= | ( | const int | n | ) | [inline] |
Bitwise shift.
Definition at line 12432 of file cimg.h.
References cimg_for, and cimg_library::CImg< T >::ptr().
const T& cimg_library::CImg< T >::operator[] | ( | const unsigned long | off | ) | const [inline] |
Definition at line 11306 of file cimg.h.
References cimg_library::CImg< T >::data.
T& cimg_library::CImg< T >::operator[] | ( | const unsigned long | off | ) | [inline] |
Fast access to pixel value for reading or writing, using an offset to the image pixel.
off | Offset of the pixel according to the begining of the pixel buffer, given by ptr(). |
cimg_debug==3
, boundary checking is performed and warning messages may appear (but function performances decrease).CImg<float> vec(1,10); // Define a vector of float values (10 lines, 1 row). const float val1 = vec(0,4); // Get the fifth element using operator()(). const float val2 = vec[4]; // Get the fifth element using operator[]. Here, val2==val1.
Definition at line 11302 of file cimg.h.
References cimg_library::CImg< T >::data.
CImg<T> cimg_library::CImg< T >::operator^ | ( | const T | val | ) | const [inline] |
CImg<typename cimg::superset<T,t>::type> cimg_library::CImg< T >::operator^ | ( | const CImg< t > & | img | ) | const [inline] |
CImg<T>& cimg_library::CImg< T >::operator^= | ( | const T | val | ) | [inline] |
In-place bitwise XOR.
Definition at line 12407 of file cimg.h.
References cimg_for, and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::operator^= | ( | const CImg< t > & | img | ) | [inline] |
In-place bitwise XOR.
Definition at line 12395 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::min(), and cimg_library::CImg< T >::size().
CImg<T> cimg_library::CImg< T >::operator| | ( | const T | val | ) | const [inline] |
CImg<typename cimg::superset<T,t>::type> cimg_library::CImg< T >::operator| | ( | const CImg< t > & | img | ) | const [inline] |
CImg<T>& cimg_library::CImg< T >::operator|= | ( | const T | val | ) | [inline] |
In-place bitwise OR.
Definition at line 12378 of file cimg.h.
References cimg_for, and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::operator|= | ( | const CImg< t > & | img | ) | [inline] |
In-place bitwise OR.
Definition at line 12366 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::min(), and cimg_library::CImg< T >::size().
CImg<T> cimg_library::CImg< T >::operator~ | ( | ) | const [inline] |
Bitwise NOT.
Definition at line 12413 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::end(), cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::orientation_pointwise | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 15155 of file cimg.h.
References cimg_forV, cimg_forXYZ, and cimg_library::sqrt().
Referenced by cimg_library::CImg< T >::get_orientation_pointwise().
CImg<T>& cimg_library::CImg< T >::permute | ( | const CImg< t > & | permutation | ) | [inline] |
In-place version of the previous function.
Definition at line 23971 of file cimg.h.
References cimg_library::CImg< T >::get_permute().
CImg<T>& cimg_library::CImg< T >::permute_axes | ( | const char * | order = "vxyz" |
) | [inline] |
In-place version of the previous function.
Definition at line 14344 of file cimg.h.
References cimg_library::CImg< T >::get_permute_axes().
const T& cimg_library::CImg< T >::pix1d | ( | const int | x, | |
const int | y = 0 , |
|||
const int | z = 0 , |
|||
const int | v = 0 | |||
) | const [inline] |
Definition at line 11356 of file cimg.h.
References cimg_library::CImg< T >::dimx().
T cimg_library::CImg< T >::pix1d | ( | const int | x, | |
const int | y, | |||
const int | z, | |||
const int | v, | |||
const T | out_val | |||
) | const [inline] |
Read a pixel value with Dirichlet or Neumann boundary conditions.
x | X-coordinate of the pixel. | |
y | Y-coordinate of the pixel. | |
z | Z-coordinate of the pixel. | |
v | V-coordinate of the pixel. | |
out_val | Desired value if pixel coordinates are outside the image range (optional parameter). |
out_val
is returned.CImg<float> img(100,100,1,1,128); // Define a 100x100 images with all pixel values equal to 128. const float val1 = img.pix4d(10,10,0,0,0); // Equivalent to val1=img(10,10) (but slower). const float val2 = img.pix4d(-4,5,0,0,0); // Return 0, since coordinates are outside the image range. const float val3 = img.pix4d(10,10,5,0,64); // Return 64, since coordinates are outside the image range.
Definition at line 11352 of file cimg.h.
References cimg_library::CImg< T >::dimx().
Referenced by cimg_library::CImg< T >::cubic_pix1d(), cimg_library::CImg< T >::draw_mandelbrot(), and cimg_library::CImg< T >::linear_pix1d().
const T& cimg_library::CImg< T >::pix2d | ( | const int | x, | |
const int | y, | |||
const int | z = 0 , |
|||
const int | v = 0 | |||
) | const [inline] |
Definition at line 11365 of file cimg.h.
References cimg_library::CImg< T >::dimx(), and cimg_library::CImg< T >::dimy().
T cimg_library::CImg< T >::pix2d | ( | const int | x, | |
const int | y, | |||
const int | z, | |||
const int | v, | |||
const T | out_val | |||
) | const [inline] |
Read a pixel value with Dirichlet or Neumann boundary conditions for the two first coordinates (x
,y
).
Definition at line 11361 of file cimg.h.
References cimg_library::CImg< T >::dimx(), and cimg_library::CImg< T >::dimy().
Referenced by cimg_library::CImg< T >::cubic_pix2d(), cimg_library::CImg< T >::get_rotate(), cimg_library::CImg< T >::linear_pix1d(), and cimg_library::CImg< T >::linear_pix2d().
const T& cimg_library::CImg< T >::pix3d | ( | const int | x, | |
const int | y, | |||
const int | z, | |||
const int | v = 0 | |||
) | const [inline] |
Definition at line 11374 of file cimg.h.
References cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), and cimg_library::CImg< T >::dimz().
T cimg_library::CImg< T >::pix3d | ( | const int | x, | |
const int | y, | |||
const int | z, | |||
const int | v, | |||
const T | out_val | |||
) | const [inline] |
Read a pixel value with Dirichlet or Neumann boundary conditions for the three first coordinates (x
,y
,z
).
Definition at line 11370 of file cimg.h.
References cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), and cimg_library::CImg< T >::dimz().
Referenced by cimg_library::CImg< T >::get_correlate(), cimg_library::CImg< T >::get_dilate(), cimg_library::CImg< T >::get_erode(), and cimg_library::CImg< T >::linear_pix3d().
T cimg_library::CImg< T >::pix4d | ( | const int | x, | |
const int | y, | |||
const int | z, | |||
const int | v | |||
) | const [inline] |
Definition at line 11384 of file cimg.h.
References cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), and cimg_library::CImg< T >::dimz().
T cimg_library::CImg< T >::pix4d | ( | const int | x, | |
const int | y, | |||
const int | z, | |||
const int | v, | |||
const T | out_val | |||
) | const [inline] |
Read a pixel value with Dirichlet or Neumann boundary conditions.
Definition at line 11380 of file cimg.h.
References cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), and cimg_library::CImg< T >::dimz().
Referenced by cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::get_resize(), and cimg_library::CImg< T >::linear_pix4d().
static const char* cimg_library::CImg< T >::pixel_type | ( | ) | [inline, static] |
Return the type of the pixel values.
T
)."unsigned char"
)."unknown"
is returned. Definition at line 10857 of file cimg.h.
Referenced by cimg_library::CImg< T >::_draw_ellipse(), cimg_library::CImg< T >::_draw_polygon(), cimg_library::CImg< T >::_load_inr(), cimg_library::CImg< T >::assign(), cimg_library::CImgList< T >::at(), cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::CImg(), cimg_library::CImgList< T >::CImgList(), cimg_library::CImg< T >::cross(), cimg_library::CImg< T >::deriche(), cimg_library::CImg< T >::det(), cimg_library::CImgList< T >::display(), cimg_library::CImg< T >::display(), cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::dot(), cimg_library::CImg< T >::draw_circle(), cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::draw_gaussian(), cimg_library::CImg< T >::draw_graph(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_mandelbrot(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_quiver(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::draw_spline(), cimg_library::CImg< T >::draw_text(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::eigen(), cimg_library::CImgList< T >::FFT(), cimg_library::CImgList< T >::get_append(), cimg_library::CImg< T >::get_BayertoRGB(), cimg_library::CImg< T >::get_convolve(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_correlate(), cimg_library::CImgList< T >::get_crop(), cimg_library::CImg< T >::get_dijkstra(), cimg_library::CImg< T >::get_dilate(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_erode(), cimg_library::CImg< T >::get_haar(), cimg_library::CImg< T >::get_histogram(), cimg_library::CImg< T >::get_LUTtoRGB(), cimg_library::CImg< T >::get_permute(), cimg_library::CImg< T >::get_permute_axes(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_RGBtoBayer(), cimg_library::CImg< T >::get_RGBtoLUT(), cimg_library::CImg< T >::get_shared_channels(), cimg_library::CImg< T >::get_shared_lines(), cimg_library::CImg< T >::get_shared_planes(), cimg_library::CImg< T >::get_shared_points(), cimg_library::CImg< T >::get_split(), cimg_library::CImg< T >::get_tensor(), cimg_library::CImg< T >::HSItoRGB(), cimg_library::CImg< T >::HSLtoRGB(), cimg_library::CImg< T >::HSVtoRGB(), cimg_library::CImgList< T >::insert(), cimg_library::CImg< T >::invert(), cimg_library::CImg< T >::kth_smallest(), cimg_library::CImg< T >::LabtoXYZ(), cimg_library::CImg< T >::load_analyze(), cimg_library::CImg< T >::load_ascii(), cimg_library::CImg< T >::load_bmp(), cimg_library::CImgList< T >::load_cimg(), cimg_library::CImg< T >::load_dlm(), cimg_library::CImgList< T >::load_ffmpeg(), cimg_library::CImgList< T >::load_ffmpeg_external(), cimg_library::CImg< T >::load_graphicsmagick_external(), cimg_library::CImg< T >::load_imagemagick_external(), cimg_library::CImg< T >::load_inr(), cimg_library::CImg< T >::load_jpeg(), cimg_library::CImg< T >::load_magick(), cimg_library::CImg< T >::load_medcon_external(), cimg_library::CImg< T >::load_off(), cimg_library::CImg< T >::load_other(), cimg_library::CImg< T >::load_pandore(), cimg_library::CImgList< T >::load_parrec(), cimg_library::CImg< T >::load_png(), cimg_library::CImg< T >::load_pnm(), cimg_library::CImgList< T >::load_tiff(), cimg_library::CImg< T >::load_tiff(), cimg_library::CImgList< T >::load_yuv(), cimg_library::CImg< T >::marching_cubes(), cimg_library::CImg< T >::marching_squares(), cimg_library::CImg< T >::matrix(), cimg_library::CImgList< T >::max(), cimg_library::CImg< T >::max(), cimg_library::CImgList< T >::maxmin(), cimg_library::CImg< T >::maxmin(), cimg_library::CImgList< T >::mean(), cimg_library::CImg< T >::mean(), cimg_library::CImgList< T >::min(), cimg_library::CImg< T >::min(), cimg_library::CImgList< T >::minmax(), cimg_library::CImg< T >::minmax(), cimg_library::CImg< T >::mirror(), cimg_library::CImg< T >::MSE(), cimg_library::CImg< T >::norm(), cimg_library::CImgList< T >::operator[](), cimg_library::CImgList< T >::print(), cimg_library::CImg< T >::print(), cimg_library::CImg< T >::quantize(), cimg_library::CImgList< T >::remove(), cimg_library::CImg< T >::RGBtoHSI(), cimg_library::CImg< T >::RGBtoHSL(), cimg_library::CImg< T >::RGBtoHSV(), cimg_library::CImg< T >::RGBtoXYZ(), cimg_library::CImg< T >::RGBtoYCbCr(), cimg_library::CImg< T >::RGBtoYUV(), cimg_library::CImgList< T >::save(), cimg_library::CImg< T >::save(), cimg_library::CImg< T >::save_analyze(), cimg_library::CImg< T >::save_ascii(), cimg_library::CImg< T >::save_bmp(), cimg_library::CImgList< T >::save_cimg(), cimg_library::CImg< T >::save_cimg(), cimg_library::CImg< T >::save_cpp(), cimg_library::CImg< T >::save_dlm(), cimg_library::CImgList< T >::save_empty_cimg(), cimg_library::CImgList< T >::save_ffmpeg_external(), cimg_library::CImg< T >::save_graphicsmagick_external(), cimg_library::CImg< T >::save_imagemagick_external(), cimg_library::CImg< T >::save_inr(), cimg_library::CImg< T >::save_jpeg(), cimg_library::CImg< T >::save_magick(), cimg_library::CImg< T >::save_medcon_external(), cimg_library::CImg< T >::save_off(), cimg_library::CImg< T >::save_other(), cimg_library::CImg< T >::save_pandore(), cimg_library::CImg< T >::save_png(), cimg_library::CImg< T >::save_pnm(), cimg_library::CImg< T >::save_raw(), cimg_library::CImg< T >::save_rgb(), cimg_library::CImg< T >::save_rgba(), cimg_library::CImg< T >::save_tiff(), cimg_library::CImgList< T >::save_yuv(), cimg_library::CImg< T >::solve(), cimg_library::CImg< T >::stats(), cimg_library::CImg< T >::sum(), cimg_library::CImg< T >::SVD(), cimg_library::CImg< T >::symmetric_eigen(), cimg_library::CImg< T >::trace(), cimg_library::CImg< T >::unroll(), cimg_library::CImgList< T >::variance(), cimg_library::CImg< T >::variancemean(), cimg_library::CImg< T >::xyYtoXYZ(), cimg_library::CImg< T >::XYZtoLab(), cimg_library::CImg< T >::XYZtoRGB(), cimg_library::CImg< T >::XYZtoxyY(), cimg_library::CImg< T >::YCbCrtoRGB(), and cimg_library::CImg< T >::YUVtoRGB().
CImg<T>& cimg_library::CImg< T >::pow | ( | const CImg< t > & | img | ) | [inline] |
In-place version of the previous function.
Definition at line 12695 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::min(), cimg_library::pow(), cimg_library::CImg< T >::pow(), and cimg_library::CImg< T >::size().
CImg<T>& cimg_library::CImg< T >::pow | ( | const double | p | ) | [inline] |
In-place version of the previous function.
Definition at line 12677 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::fill(), cimg_library::pow(), cimg_library::CImg< T >::ptr(), and cimg_library::sqrt().
Referenced by cimg_library::CImg< T >::_draw_ellipse(), cimg_library::CImg< T >::blur_patch(), cimg_library::CImg< T >::draw_axis(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_pow(), cimg_library::CImg< T >::LabtoXYZ(), and cimg_library::CImg< T >::pow().
const CImg<T>& cimg_library::CImg< T >::print | ( | const char * | title = 0 , |
|
const bool | display_stats = true | |||
) | const [inline] |
Display informations about the image on the standard error output.
title | Name for the considered image (optional). | |
display_stats | Compute and display image statistics (optional). |
Definition at line 12111 of file cimg.h.
References cimg_foroff, cimg_library::CImg< T >::contains(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::get_stats(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_shared, cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), cimg_library::sqrt(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImgList< T >::display(), and cimg_library::CImg< T >::display().
CImg<T>& cimg_library::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 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 14950 of file cimg.h.
References cimg_library::CImg< T >::get_projections2d().
CImg<T>& cimg_library::CImg< T >::pseudoinvert | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 23796 of file cimg.h.
References cimg_library::CImg< T >::get_pseudoinvert().
double cimg_library::CImg< T >::PSNR | ( | const CImg< t > & | img, | |
const double | valmax = 255.0 | |||
) | const [inline] |
Compute the PSNR between two images.
Definition at line 11973 of file cimg.h.
References cimg_library::CImg< T >::log10(), cimg_library::CImg< T >::MSE(), and cimg_library::CImg< T >::sqrt().
const T* cimg_library::CImg< T >::ptr | ( | ) | const [inline] |
Definition at line 11166 of file cimg.h.
References cimg_library::CImg< T >::data.
T* cimg_library::CImg< T >::ptr | ( | ) | [inline] |
Definition at line 11162 of file cimg.h.
References cimg_library::CImg< T >::data.
Referenced by cimg_library::CImg< T >::_draw_scanline(), cimg_library::CImg< T >::_fill(), cimg_library::CImg< T >::abs(), cimg_library::CImg< T >::acos(), cimg_library::CImg< T >::apply(), cimg_library::CImg< T >::asin(), cimg_library::CImg< T >::atan(), cimg_library::CImg< T >::cos(), cimg_library::CImg< T >::cut(), cimg_library::CImg< T >::deriche(), cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::draw_gaussian(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::equalize_histogram(), cimg_library::CImg< T >::exp(), cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::get_histogram(), cimg_library::CImg< T >::get_label_regions(), cimg_library::CImg< T >::get_permute(), cimg_library::CImg< T >::get_permute_axes(), cimg_library::CImg< T >::get_RGBtoBayer(), cimg_library::CImg< T >::get_RGBtoLUT(), cimg_library::CImg< T >::get_vector_at(), cimg_library::CImg< T >::load_ascii(), cimg_library::CImg< T >::load_jpeg(), cimg_library::CImg< T >::load_magick(), cimg_library::CImg< T >::load_png(), cimg_library::CImg< T >::load_pnm(), cimg_library::CImg< T >::load_rgb(), cimg_library::CImg< T >::load_rgba(), cimg_library::CImg< T >::log(), cimg_library::CImg< T >::log10(), cimg_library::CImg< T >::matrix(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::maxmin(), cimg_library::CImg< T >::mean(), cimg_library::CImg< T >::min(), cimg_library::CImg< T >::minmax(), cimg_library::CImg< T >::mirror(), cimg_library::CImg< T >::noise(), cimg_library::CImg< T >::normalize(), cimg_library::CImg< T >::operator%=(), cimg_library::CImg< T >::operator&=(), cimg_library::CImg< T >::operator*=(), cimg_library::CImg< T >::operator++(), cimg_library::CImg< T >::operator+=(), cimg_library::CImg< T >::operator--(), cimg_library::CImg< T >::operator-=(), cimg_library::CImg< T >::operator/=(), cimg_library::CImg< T >::operator<<=(), cimg_library::CImg< T >::operator>>=(), cimg_library::CImg< T >::operator^=(), cimg_library::CImg< T >::operator|=(), cimg_library::CImg< T >::pow(), cimg_library::CImg< T >::quantize(), cimg_library::CImg< T >::rand(), cimg_library::CImg< T >::round(), cimg_library::CImg< T >::save_bmp(), cimg_library::CImg< T >::save_jpeg(), cimg_library::CImg< T >::save_magick(), cimg_library::CImg< T >::save_png(), cimg_library::CImg< T >::save_pnm(), cimg_library::CImg< T >::save_rgb(), cimg_library::CImg< T >::save_rgba(), cimg_library::CImg< T >::sequence(), cimg_library::CImg< T >::set_vector_at(), cimg_library::CImg< T >::sin(), cimg_library::CImg< T >::sqr(), cimg_library::CImg< T >::sqrt(), cimg_library::CImg< T >::stats(), cimg_library::CImg< T >::sum(), cimg_library::CImg< T >::tan(), cimg_library::CImg< T >::threshold(), cimg_library::CImg< T >::translate(), cimg_library::CImg< T >::variancemean(), and cimg_library::CImg< T >::vector().
const T* cimg_library::CImg< T >::ptr | ( | const unsigned int | x | ) | const [inline] |
Definition at line 11158 of file cimg.h.
References cimg_library::CImg< T >::data.
T* cimg_library::CImg< T >::ptr | ( | const unsigned int | x | ) | [inline] |
Definition at line 11154 of file cimg.h.
References cimg_library::CImg< T >::data.
const T* cimg_library::CImg< T >::ptr | ( | const unsigned int | x, | |
const unsigned int | y | |||
) | const [inline] |
Definition at line 11150 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::width.
T* cimg_library::CImg< T >::ptr | ( | const unsigned int | x, | |
const unsigned int | y | |||
) | [inline] |
Definition at line 11146 of file cimg.h.
References cimg_library::CImg< T >::data, and cimg_library::CImg< T >::width.
const T* cimg_library::CImg< T >::ptr | ( | const unsigned int | x, | |
const unsigned int | y, | |||
const unsigned int | z | |||
) | const [inline] |
Definition at line 11142 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
T* cimg_library::CImg< T >::ptr | ( | const unsigned int | x, | |
const unsigned int | y, | |||
const unsigned int | z | |||
) | [inline] |
Definition at line 11138 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
const T* cimg_library::CImg< T >::ptr | ( | const unsigned int | x, | |
const unsigned int | y, | |||
const unsigned int | z, | |||
const unsigned int | v | |||
) | const [inline] |
Definition at line 11134 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
T* cimg_library::CImg< T >::ptr | ( | const unsigned int | x, | |
const unsigned int | y, | |||
const unsigned int | z, | |||
const unsigned int | v | |||
) | [inline] |
Return a pointer to the pixel value located at (x
,y
,z
,v
).
x | X-coordinate of the pixel. | |
y | Y-coordinate of the pixel. | |
z | Z-coordinate of the pixel. | |
v | V-coordinate of the pixel. |
cimg_debug
== 3, boundary checking is performed and warning messages may appear if given coordinates are outside the image range (but function performances decrease).Definition at line 11130 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_triangle(), lux::LuxGLViewer::FontGenerator::DrawText(), cimg_library::CImgList< T >::FFT(), cimg_library::CImg< T >::get_BayertoRGB(), cimg_library::CImg< T >::get_convolve(), cimg_library::CImg< T >::get_label_regions(), cimg_library::CImg< T >::get_logo40x38(), cimg_library::CImg< T >::get_permute(), cimg_library::CImg< T >::get_permute_axes(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_resize_doubleXY(), cimg_library::CImg< T >::get_resize_tripleXY(), cimg_library::CImg< T >::SVD(), cimg_library::CImg< T >::symmetric_eigen(), and cimg_library::CImg< T >::variancemean().
CImg<T>& cimg_library::CImg< T >::quantize | ( | const unsigned int | n = 256 , |
|
const bool | keep_range = true | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13448 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::maxmin(), cimg_library::cimg::min(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::ptr().
CImg<T>& cimg_library::CImg< T >::rand | ( | const T | val_min, | |
const T | val_max | |||
) | [inline] |
In-place version of the previous function.
Definition at line 12808 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::ptr(), and cimg_library::cimg::rand().
CImg<T>& cimg_library::CImg< T >::resize | ( | const CImgDisplay & | disp, | |
const int | interp = 1 , |
|||
const int | border_condition = -1 , |
|||
const bool | center = false | |||
) | [inline] |
In-place version of the previous function.
Definition at line 14024 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImgDisplay::height, cimg_library::CImg< T >::resize(), and cimg_library::CImgDisplay::width.
CImg<T>& cimg_library::CImg< T >::resize | ( | const CImg< t > & | src, | |
const int | interp = 1 , |
|||
const int | border_condition = -1 , |
|||
const bool | center = false | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13999 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::height, cimg_library::CImg< T >::resize(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::resize | ( | const int | pdx = -100 , |
|
const int | pdy = -100 , |
|||
const int | pdz = -100 , |
|||
const int | pdv = -100 , |
|||
const int | interp = 1 , |
|||
const int | border_condition = -1 , |
|||
const bool | center = false | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13963 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::depth, cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_projections2d(), cimg_library::CImg< T >::load_dlm(), cimg_library::CImg< T >::load_tiff(), and cimg_library::CImg< T >::resize().
CImg<T>& cimg_library::CImg< T >::resize_doubleXY | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 14102 of file cimg.h.
References cimg_library::CImg< T >::get_resize_doubleXY().
CImg<T>& cimg_library::CImg< T >::resize_halfXY | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 14047 of file cimg.h.
References cimg_library::CImg< T >::get_resize_halfXY().
CImg<T>& cimg_library::CImg< T >::resize_tripleXY | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 14167 of file cimg.h.
References cimg_library::CImg< T >::get_resize_tripleXY().
CImg<T>& cimg_library::CImg< T >::RGBtoBayer | ( | ) | [inline] |
Definition at line 16437 of file cimg.h.
References cimg_library::CImg< T >::get_RGBtoBayer().
CImg<T>& cimg_library::CImg< T >::RGBtoHSI | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16056 of file cimg.h.
References cimg_library::CImg< T >::acos(), cimg_forXYZ, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::min(), cimg_library::CImg< T >::pixel_type(), cimg_library::pow(), cimg_library::sqrt(), cimg_library::CImg< T >::sum(), and cimg_library::cimg::valuePI.
Referenced by cimg_library::CImg< T >::get_RGBtoHSI().
CImg<T>& cimg_library::CImg< T >::RGBtoHSL | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 15976 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::min(), and cimg_library::CImg< T >::pixel_type().
Referenced by cimg_library::CImg< T >::get_RGBtoHSL().
CImg<T>& cimg_library::CImg< T >::RGBtoHSV | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 15894 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::max(), cimg_library::CImg< T >::min(), and cimg_library::CImg< T >::pixel_type().
Referenced by cimg_library::CImg< T >::get_RGBtoHSV().
CImg<T>& cimg_library::CImg< T >::RGBtoLab | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16375 of file cimg.h.
References cimg_library::CImg< T >::RGBtoXYZ().
CImg<T>& cimg_library::CImg< T >::RGBtoLUT | ( | const bool | dithering = true , |
|
const bool | indexing = false | |||
) | [inline] |
In-place version of the previous function.
Definition at line 15846 of file cimg.h.
References cimg_library::CImg< T >::get_RGBtoLUT().
CImg<T>& cimg_library::CImg< T >::RGBtoLUT | ( | const CImg< T > & | palette, | |
const bool | dithering = true , |
|||
const bool | indexing = false | |||
) | [inline] |
In-place version of the previous function.
Definition at line 15832 of file cimg.h.
References cimg_library::CImg< T >::get_RGBtoLUT().
CImg<T>& cimg_library::CImg< T >::RGBtoxyY | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16395 of file cimg.h.
References cimg_library::CImg< T >::RGBtoXYZ().
CImg<T>& cimg_library::CImg< T >::RGBtoXYZ | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16228 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::pixel_type().
Referenced by cimg_library::CImg< T >::get_RGBtoXYZ(), cimg_library::CImg< T >::RGBtoLab(), and cimg_library::CImg< T >::RGBtoxyY().
CImg<T>& cimg_library::CImg< T >::RGBtoYCbCr | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16130 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::pixel_type().
Referenced by cimg_library::CImgList< T >::save_yuv().
CImg<T>& cimg_library::CImg< T >::RGBtoYUV | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16183 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::pixel_type().
Referenced by cimg_library::CImg< T >::get_RGBtoYUV().
CImg<T>& cimg_library::CImg< T >::rotate | ( | const float | angle, | |
const float | cx, | |||
const float | cy, | |||
const float | zoom = 1 , |
|||
const unsigned int | cond = 3 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13631 of file cimg.h.
References cimg_library::CImg< T >::get_rotate().
CImg<T>& cimg_library::CImg< T >::rotate | ( | const float | angle, | |
const unsigned int | cond = 3 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 13551 of file cimg.h.
References cimg_library::CImg< T >::get_rotate().
static CImg<T> cimg_library::CImg< T >::rotation_matrix | ( | const float | x, | |
const float | y, | |||
const float | z, | |||
const float | w, | |||
const bool | quaternion_data = false | |||
) | [inline, static] |
Return a 3x3 rotation matrix along the (x,y,z)-axis with an angle w.
Definition at line 23481 of file cimg.h.
References cimg_library::cos(), cimg_library::CImg< T >::matrix(), cimg_library::CImg< T >::norm(), cimg_library::sin(), and cimg_library::sqrt().
Referenced by cimg_library::CImg< T >::display_object3d().
CImg<T>& cimg_library::CImg< T >::round | ( | const float | x, | |
const unsigned int | round_type = 0 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 12797 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::ptr(), and cimg_library::cimg::round().
Referenced by cimg_library::CImg< T >::draw_axis().
const CImg<T>& cimg_library::CImg< T >::save | ( | const char *const | filename, | |
const int | number = -1 | |||
) | const [inline] |
Save the image as a file.
The used file format is defined by the file extension in the filename filename
.
Parameter number
can be used to add a 6-digit number to the filename before saving.
If normalize
is true, a normalized version of the image (between [0,255]) is saved.
Definition at line 27258 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::cimg::filename_number(), cimg_library::cimg::filename_split(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::save_analyze(), cimg_library::CImg< T >::save_ascii(), cimg_library::CImg< T >::save_bmp(), cimg_library::CImg< T >::save_cimg(), cimg_library::CImg< T >::save_cpp(), cimg_library::CImg< T >::save_dlm(), cimg_library::CImg< T >::save_ffmpeg_external(), cimg_library::CImg< T >::save_inr(), cimg_library::CImg< T >::save_jpeg(), cimg_library::CImg< T >::save_medcon_external(), cimg_library::CImg< T >::save_other(), cimg_library::CImg< T >::save_pandore(), cimg_library::CImg< T >::save_png(), cimg_library::CImg< T >::save_pnm(), cimg_library::CImg< T >::save_raw(), cimg_library::CImg< T >::save_rgb(), cimg_library::CImg< T >::save_rgba(), cimg_library::CImg< T >::save_tiff(), cimg_library::CImg< T >::save_yuv(), cimg_library::cimg::strcasecmp(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::display_object3d(), and cimg_library::CImg< T >::get_coordinates().
const CImg<T>& cimg_library::CImg< T >::save_analyze | ( | const char *const | filename, | |
const float *const | voxsize = 0 | |||
) | const [inline] |
Save the image as an ANALYZE7.5 or NIFTI file.
Definition at line 27530 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::cimg::fclose(), cimg_library::cimg::filename_split(), cimg_library::cimg::fopen(), cimg_library::cimg::fwrite(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), cimg_library::cimg::strcasecmp(), cimg_library::cimg::strlen(), cimg_library::cimg::strncasecmp(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::save(), and cimg_library::CImg< T >::save_medcon_external().
const CImg<T>& cimg_library::CImg< T >::save_ascii | ( | const char *const | filename | ) | const [inline] |
Save the image as an ASCII file (ASCII Raw + simple header).
Definition at line 27343 of file cimg.h.
References cimg_library::CImg< T >::save_ascii().
const CImg<T>& cimg_library::CImg< T >::save_ascii | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | const [inline] |
Save the image as an ASCII file (ASCII Raw + simple header).
Definition at line 27326 of file cimg.h.
References cimg_forX, cimg_forYZV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::save(), and cimg_library::CImg< T >::save_ascii().
const CImg<T>& cimg_library::CImg< T >::save_bmp | ( | const char *const | filename | ) | const [inline] |
Save the image as a BMP file.
Definition at line 28065 of file cimg.h.
References cimg_library::CImg< T >::save_bmp().
const CImg<T>& cimg_library::CImg< T >::save_bmp | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | const [inline] |
Save the image as a BMP file.
Definition at line 27982 of file cimg.h.
References cimg_forX, cimg_forY, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimy(), cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::cimg::fwrite(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::cimg::warn(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::save(), and cimg_library::CImg< T >::save_bmp().
const CImg<T>& cimg_library::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 | v0 | |||
) | const [inline] |
Insert the image into an existing .cimg file, at specified coordinates.
Definition at line 27633 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImgList< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImgList< T >::save_cimg(), and cimg_library::CImg< T >::width.
const CImg<T>& cimg_library::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 | v0 | |||
) | const [inline] |
Insert the image into an existing .cimg file, at specified coordinates.
Definition at line 27616 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImgList< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImgList< T >::save_cimg(), and cimg_library::CImg< T >::width.
const CImg<T>& cimg_library::CImg< T >::save_cimg | ( | const char *const | filename | ) | const [inline] |
Save the image as a .cimg file.
Definition at line 27611 of file cimg.h.
References cimg_library::CImg< T >::save_cimg().
const CImg<T>& cimg_library::CImg< T >::save_cimg | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | const [inline] |
Save the image as a .cimg file.
Definition at line 27593 of file cimg.h.
References cimg_library::CImgList< T >::data, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImgList< T >::save_cimg(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImgList< T >::save(), cimg_library::CImg< T >::save(), cimg_library::CImgList< T >::save_cimg(), and cimg_library::CImg< T >::save_cimg().
const CImg<T>& cimg_library::CImg< T >::save_cpp | ( | const char *const | filename | ) | const [inline] |
Save the image as a CPP source file.
Definition at line 27400 of file cimg.h.
References cimg_library::CImg< T >::save_cpp().
const CImg<T>& cimg_library::CImg< T >::save_cpp | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | const [inline] |
Save the image as a C or CPP source file.
Definition at line 27376 of file cimg.h.
References cimg_library::cimg::basename(), cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::save(), and cimg_library::CImg< T >::save_cpp().
const CImg<T>& cimg_library::CImg< T >::save_dlm | ( | const char *const | filename | ) | const [inline] |
Save the image as a DLM file.
Definition at line 27371 of file cimg.h.
References cimg_library::CImg< T >::save_dlm().
const CImg<T>& cimg_library::CImg< T >::save_dlm | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | const [inline] |
Save the image as a DLM file.
Definition at line 27348 of file cimg.h.
References cimg_forX, cimg_forYZV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimx(), cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::cimg::warn(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::save(), and cimg_library::CImg< T >::save_dlm().
static void cimg_library::CImg< T >::save_empty_cimg | ( | const char *const | filename, | |
const unsigned int | dx, | |||
const unsigned int | dy = 1 , |
|||
const unsigned int | dz = 1 , |
|||
const unsigned int | dv = 1 | |||
) | [inline, static] |
Save an empty .cimg file with specified dimensions.
Definition at line 27657 of file cimg.h.
References cimg_library::CImg< T >::save_empty_cimg().
static void cimg_library::CImg< T >::save_empty_cimg | ( | std::FILE *const | file, | |
const unsigned int | dx, | |||
const unsigned int | dy = 1 , |
|||
const unsigned int | dz = 1 , |
|||
const unsigned int | dv = 1 | |||
) | [inline, static] |
Save an empty .cimg file with specified dimensions.
Definition at line 27650 of file cimg.h.
Referenced by cimg_library::CImgList< T >::save_empty_cimg(), and cimg_library::CImg< T >::save_empty_cimg().
const CImg<T>& cimg_library::CImg< T >::save_ffmpeg_external | ( | const char *const | filename, | |
const char *const | codec = "mpeg2video" | |||
) | const [inline] |
Save the image as a video sequence file, using the external tool 'ffmpeg'.
Definition at line 27976 of file cimg.h.
References cimg_library::CImg< T >::get_split().
Referenced by cimg_library::CImgList< T >::save(), and cimg_library::CImg< T >::save().
const CImg<T>& cimg_library::CImg< T >::save_graphicsmagick_external | ( | const char *const | filename, | |
const unsigned int | quality = 100 | |||
) | const [inline] |
Save the image using GraphicsMagick's gm.
Function that saves the image for other file formats that are not natively handled by CImg, using the tool 'gm' from the GraphicsMagick package.
This is the case for all compressed image formats (GIF,PNG,JPG,TIF, ...). You need to install the GraphicsMagick package in order to get this function working properly (see http://www.graphicsmagick.org ).
Definition at line 27726 of file cimg.h.
References cimg_OS, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::cimg::fclose(), cimg_library::cimg::filenamerand(), cimg_library::cimg::fopen(), cimg_library::cimg::graphicsmagick_path(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::remove(), cimg_library::CImg< T >::save_pnm(), cimg_library::cimg::system(), cimg_library::cimg::temporary_path(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::save_other().
const CImg<T>& cimg_library::CImg< T >::save_imagemagick_external | ( | const char *const | filename, | |
const unsigned int | quality = 100 | |||
) | const [inline] |
Save the image using ImageMagick's convert.
Function that saves the image for other file formats that are not natively handled by CImg, using the tool 'convert' from the ImageMagick package.
This is the case for all compressed image formats (GIF,PNG,JPG,TIF, ...). You need to install the ImageMagick package in order to get this function working properly (see http://www.imagemagick.org ).
Definition at line 27694 of file cimg.h.
References cimg_OS, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::cimg::fclose(), cimg_library::cimg::filenamerand(), cimg_library::cimg::fopen(), cimg_library::CImg< T >::height, cimg_library::cimg::imagemagick_path(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::remove(), cimg_library::CImg< T >::save_pnm(), cimg_library::cimg::system(), cimg_library::cimg::temporary_path(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::save_other().
const CImg<T>& cimg_library::CImg< T >::save_inr | ( | const char *const | filename, | |
const float *const | voxsize = 0 | |||
) | const [inline] |
Save the image as an INRIMAGE-4 file.
Definition at line 27803 of file cimg.h.
References cimg_library::CImg< T >::save_inr().
const CImg<T>& cimg_library::CImg< T >::save_inr | ( | std::FILE *const | file, | |
const char *const | filename = 0 , |
|||
const float *const | voxsize = 0 | |||
) | const [inline] |
Save the image as an INRIMAGE-4 file.
Definition at line 27773 of file cimg.h.
References cimg_forV, cimg_forXYZ, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::cimg::endian(), cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::cimg::fwrite(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), memcpy(), cimg_library::CImg< T >::pixel_type(), cimg_library::cimg::strcasecmp(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::save(), and cimg_library::CImg< T >::save_inr().
const CImg<T>& cimg_library::CImg< T >::save_jpeg | ( | const char *const | filename, | |
const unsigned int | quality = 100 | |||
) | const [inline] |
Save a file in JPEG format.
Definition at line 28406 of file cimg.h.
References cimg_library::CImg< T >::save_jpeg().
const CImg<T>& cimg_library::CImg< T >::save_jpeg | ( | std::FILE *const | file, | |
const char *const | filename = 0 , |
|||
const unsigned int | quality = 100 | |||
) | const [inline] |
Save a file in JPEG format.
Definition at line 28317 of file cimg.h.
References cimg_forXY, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::save_other(), and cimg_library::cimg::warn().
Referenced by cimg_library::CImg< T >::save(), and cimg_library::CImg< T >::save_jpeg().
const CImg<T>& cimg_library::CImg< T >::save_magick | ( | const char *const | filename | ) | const [inline] |
Save the image using built-in ImageMagick++ library.
Definition at line 28411 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::save_other().
const CImg<T>& cimg_library::CImg< T >::save_medcon_external | ( | const char *const | filename | ) | const [inline] |
Save an image as a Dicom file (need '(X)Medcon' : http://xmedcon.sourceforge.net ).
Definition at line 27498 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::cimg::fclose(), cimg_library::cimg::filename_split(), cimg_library::cimg::filenamerand(), cimg_library::cimg::fopen(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::cimg::medcon_path(), cimg_library::CImg< T >::pixel_type(), cimg_library::remove(), cimg_library::CImg< T >::save_analyze(), cimg_library::cimg::system(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::save().
const CImg<T>& cimg_library::CImg< T >::save_off | ( | const char *const | filename, | |
const CImgList< tf > & | primitives, | |||
const CImgList< tc > & | colors, | |||
const bool | invert_faces = false | |||
) | const [inline] |
Save OFF files (GeomView 3D object files).
Definition at line 28614 of file cimg.h.
References cimg_library::CImg< T >::save_off().
const CImg<T>& cimg_library::CImg< T >::save_off | ( | std::FILE *const | file, | |
const char *const | filename, | |||
const CImgList< tf > & | primitives, | |||
const CImgList< tc > & | colors, | |||
const bool | invert_faces = false | |||
) | const [inline] |
Save OFF files (GeomView 3D object files).
Definition at line 28566 of file cimg.h.
References b, cimg_forX, cimglist_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimv(), cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), blender::g, cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_shared_channel(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImgList< T >::size.
Referenced by cimg_library::CImg< T >::display_object3d(), cimg_library::CImgList< T >::save_off(), and cimg_library::CImg< T >::save_off().
const CImg<T>& cimg_library::CImg< T >::save_other | ( | const char *const | filename, | |
const unsigned int | quality = 100 | |||
) | const [inline] |
Definition at line 27751 of file cimg.h.
References cimg_library::cimg::exception_mode(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::save_graphicsmagick_external(), cimg_library::CImg< T >::save_imagemagick_external(), and cimg_library::CImg< T >::save_magick().
Referenced by cimg_library::CImg< T >::save(), cimg_library::CImg< T >::save_jpeg(), cimg_library::CImg< T >::save_png(), and cimg_library::CImg< T >::save_tiff().
const CImg<T>& cimg_library::CImg< T >::save_pandore | ( | const char *const | filename = 0 , |
|
const unsigned int | colorspace = 0 | |||
) | const [inline] |
Save the image as a PANDORE-5 file.
Definition at line 27960 of file cimg.h.
References cimg_library::CImg< T >::save_pandore().
const CImg<T>& cimg_library::CImg< T >::save_pandore | ( | std::FILE *const | file, | |
const char *const | filename = 0 , |
|||
const unsigned int | colorspace = 0 | |||
) | const [inline] |
Save the image as a PANDORE-5 file.
Definition at line 27854 of file cimg.h.
References cimg_save_pandore_case, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::save(), and cimg_library::CImg< T >::save_pandore().
const CImg<T>& cimg_library::CImg< T >::save_png | ( | const char *const | filename | ) | const [inline] |
Save a file in PNG format.
Definition at line 28247 of file cimg.h.
References cimg_library::CImg< T >::save_png().
const CImg<T>& cimg_library::CImg< T >::save_png | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | const [inline] |
Save an image to a PNG file.
filename | = name of the png image file to save |
Definition at line 28083 of file cimg.h.
References cimg_forX, cimg_forY, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::cimg::endian(), cimg_library::cimg::endian_swap(), cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::maxmin(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::save_other(), cimg_library::cimg::warn(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::save(), and cimg_library::CImg< T >::save_png().
const CImg<T>& cimg_library::CImg< T >::save_pnm | ( | const char *const | filename | ) | const [inline] |
Save the image as a PNM file.
Definition at line 27493 of file cimg.h.
References cimg_library::CImg< T >::save_pnm().
const CImg<T>& cimg_library::CImg< T >::save_pnm | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | const [inline] |
Save the image as a PNM file.
Definition at line 27405 of file cimg.h.
References cimg_forXY, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::cimg::endian(), cimg_library::cimg::endian_swap(), cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::cimg::fwrite(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::maxmin(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::cimg::warn(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::save(), cimg_library::CImg< T >::save_graphicsmagick_external(), cimg_library::CImg< T >::save_imagemagick_external(), and cimg_library::CImg< T >::save_pnm().
const CImg<T>& cimg_library::CImg< T >::save_raw | ( | const char *const | filename = 0 , |
|
const bool | multiplexed = false | |||
) | const [inline] |
Save the image as a RAW file.
Definition at line 27683 of file cimg.h.
References cimg_library::CImg< T >::save_raw().
const CImg<T>& cimg_library::CImg< T >::save_raw | ( | std::FILE *const | file, | |
const char *const | filename = 0 , |
|||
const bool | multiplexed = false | |||
) | const [inline] |
Save the image as a RAW file.
Definition at line 27664 of file cimg.h.
References cimg_forV, cimg_forXYZ, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::cimg::fwrite(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::save(), and cimg_library::CImg< T >::save_raw().
const CImg<T>& cimg_library::CImg< T >::save_rgb | ( | const char *const | filename | ) | const [inline] |
Save the image as a RGB file.
Definition at line 28560 of file cimg.h.
References cimg_library::CImg< T >::save_rgb().
const CImg<T>& cimg_library::CImg< T >::save_rgb | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | const [inline] |
Save the image as a RGB file.
Definition at line 28517 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::cimg::fwrite(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::cimg::warn().
Referenced by cimg_library::CImg< T >::save(), and cimg_library::CImg< T >::save_rgb().
const CImg<T>& cimg_library::CImg< T >::save_rgba | ( | const char *const | filename | ) | const [inline] |
Save the image as a RGBA file.
Definition at line 28512 of file cimg.h.
References cimg_library::CImg< T >::save_rgba().
const CImg<T>& cimg_library::CImg< T >::save_rgba | ( | std::FILE *const | file, | |
const char *const | filename = 0 | |||
) | const [inline] |
Save the image as a RGBA file.
Definition at line 28458 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), cimg_library::cimg::fwrite(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::cimg::warn().
Referenced by cimg_library::CImg< T >::save(), and cimg_library::CImg< T >::save_rgba().
const CImg<T>& cimg_library::CImg< T >::save_tiff | ( | const char *const | filename | ) | const [inline] |
Save a file in TIFF format.
Definition at line 28298 of file cimg.h.
References cimg_forZ, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::get_slice(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::save_other().
Referenced by cimg_library::CImgList< T >::save(), and cimg_library::CImg< T >::save().
const CImg<T>& cimg_library::CImg< T >::save_yuv | ( | const char *const | filename, | |
const bool | rgb2yuv = true | |||
) | const [inline] |
Save the image as a YUV video sequence file.
Definition at line 27971 of file cimg.h.
References cimg_library::CImg< T >::save_yuv().
const CImg<T>& cimg_library::CImg< T >::save_yuv | ( | std::FILE *const | file, | |
const char *const | filename = 0 , |
|||
const bool | rgb2yuv = true | |||
) | const [inline] |
Save the image as a YUV video sequence file.
Definition at line 27965 of file cimg.h.
References cimg_library::CImg< T >::get_split().
Referenced by cimg_library::CImgList< T >::save(), cimg_library::CImg< T >::save(), cimg_library::CImgList< T >::save_yuv(), and cimg_library::CImg< T >::save_yuv().
CImg<T>& cimg_library::CImg< T >::sequence | ( | const T | a0, | |
const T | a1 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 23688 of file cimg.h.
References cimg_foroff, cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::size().
static CImg<T> cimg_library::CImg< T >::sequence | ( | const unsigned int | N, | |
const T | a0, | |||
const T | a1 | |||
) | [inline, static] |
Return a N-numbered sequence vector from a0
to a1
.
Definition at line 23475 of file cimg.h.
Referenced by cimg_library::CImg< T >::draw_grid().
CImg<T>& cimg_library::CImg< T >::set_matrix_at | ( | const CImg< t > & | mat, | |
const unsigned int | x = 0 , |
|||
const unsigned int | y = 0 , |
|||
const unsigned int | z = 0 | |||
) | [inline] |
Set the image vec
as the square matrix-valued pixel located at (x
,y
,z
) of the current vector-valued image.
Definition at line 23537 of file cimg.h.
References cimg_library::CImg< T >::set_vector_at().
CImg<T>& cimg_library::CImg< T >::set_tensor_at | ( | const CImg< t > & | ten, | |
const unsigned int | x = 0 , |
|||
const unsigned int | y = 0 , |
|||
const unsigned int | z = 0 | |||
) | [inline] |
Set the image vec
as the tensor valued pixel located at (x
,y
,z
) of the current vector-valued image.
Definition at line 23550 of file cimg.h.
References cimg_library::CImg< T >::height.
CImg<T>& cimg_library::CImg< T >::set_vector_at | ( | const CImg< t > & | vec, | |
const unsigned int | x = 0 , |
|||
const unsigned int | y = 0 , |
|||
const unsigned int | z = 0 | |||
) | [inline] |
Set the image vec
as the vector valued pixel located at (x
,y
,z
) of the current vector-valued image.
Definition at line 23518 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::cimg::min(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::load_raw(), and cimg_library::CImg< T >::set_matrix_at().
CImg<T>& cimg_library::CImg< T >::sharpen | ( | const float | amplitude = 50.0f , |
|
const float | edge = 1.0f , |
|||
const float | alpha = 0.0f , |
|||
const float | sigma = 0.0f | |||
) | [inline] |
In-place version of the previous function.
Definition at line 22780 of file cimg.h.
References cimg_library::cimg::abs(), cimg_library::CImg< T >::abs(), cimg_library::CImg< T >::blur(), CImg_3x3, CImg_3x3x3, cimg_for3x3, cimg_for3x3x3, cimg_forV, cimg_forXY, cimg_forXYZ, cimg_library::CImg< T >::depth, G(), cimg_library::CImg< T >::get_blur(), cimg_library::CImg< T >::get_structure_tensorXY(), cimg_library::CImg< T >::get_structure_tensorXYZ(), cimg_library::CImg< T >::get_tensor_at(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::cimg::max(), cimg_library::CImg< T >::maxmin(), cimg_library::cimg::minmod(), cimg_library::pow(), cimg_library::cimg::sign(), threed, and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::sin | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 12734 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::ptr(), and cimg_library::sin().
Referenced by cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::draw_arrow(), and cimg_library::CImg< T >::get_sin().
unsigned long cimg_library::CImg< T >::size | ( | ) | const [inline] |
Return the total number of pixel values in an image.
CImg<> img(100,100,1,3); if (img.size()==100*100*3) std::fprintf(stderr,"This statement is true");
Definition at line 10872 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::_solve(), cimg_library::CImgList< T >::assign(), cimg_library::CImg< T >::assign(), cimg_library::CImgList< T >::at(), cimg_library::CImgList< T >::back(), cimg_library::CImg< T >::back(), cimg_library::CImg< T >::CImg(), cimg_library::CImgList< T >::containsN(), cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::div(), cimg_library::CImg< T >::dot(), cimg_library::CImg< T >::draw_axis(), cimg_library::CImg< T >::draw_graph(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_mandelbrot(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_polygon(), cimg_library::CImg< T >::draw_spline(), cimg_library::CImg< T >::eigen(), cimg_library::CImgList< T >::end(), cimg_library::CImg< T >::end(), cimg_library::CImg< T >::equalize_histogram(), cimg_library::CImgList< T >::FFT(), cimg_library::CImg< T >::fill(), cimg_library::CImgList< T >::get_append(), cimg_library::CImg< T >::get_convolve(), cimg_library::CImgList< T >::get_crop(), cimg_library::CImg< T >::get_diagonal(), cimg_library::CImg< T >::get_histogram(), cimg_library::CImg< T >::get_label_regions(), cimg_library::CImg< T >::get_permute(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_shared_channels(), cimg_library::CImg< T >::get_shared_lines(), cimg_library::CImg< T >::get_shared_planes(), cimg_library::CImg< T >::get_shared_points(), cimg_library::CImg< T >::get_tensor(), cimg_library::CImgList< T >::insert(), cimg_library::CImgList< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::kth_smallest(), cimg_library::CImg< T >::load_ascii(), cimg_library::CImg< T >::load_pandore(), cimg_library::CImgList< T >::load_parrec(), cimg_library::CImg< T >::load_pnm(), cimg_library::CImg< T >::load_raw(), cimg_library::CImg< T >::load_rgb(), cimg_library::CImg< T >::load_rgba(), cimg_library::CImgList< T >::load_yuv(), cimg_library::CImg< T >::matrix(), cimg_library::CImg< T >::max(), cimg_library::CImgList< T >::mean(), cimg_library::CImg< T >::mean(), cimg_library::CImg< T >::median(), cimg_library::CImg< T >::min(), cimg_library::CImg< T >::MSE(), cimg_library::CImg< T >::mul(), cimg_library::CImg< T >::operator%=(), cimg_library::CImg< T >::operator&=(), cimg_library::CImgList< T >::operator*=(), cimg_library::CImgList< T >::operator+=(), cimg_library::CImg< T >::operator+=(), cimg_library::CImgList< T >::operator-(), cimg_library::CImgList< T >::operator-=(), cimg_library::CImg< T >::operator-=(), cimg_library::CImgList< T >::operator/=(), cimg_library::CImg< T >::operator==(), cimg_library::CImgList< T >::operator[](), cimg_library::CImg< T >::operator^=(), cimg_library::CImg< T >::operator|=(), cimg_library::CImgList< T >::pop_back(), cimg_library::CImg< T >::pow(), cimg_library::CImgList< T >::print(), cimg_library::CImg< T >::print(), cimg_library::CImgList< T >::remove(), cimg_library::CImg< T >::resize(), cimg_library::CImgList< T >::reverse(), cimg_library::CImgList< T >::save(), cimg_library::CImg< T >::save_analyze(), cimg_library::CImgList< T >::save_cimg(), cimg_library::CImg< T >::save_cpp(), cimg_library::CImg< T >::save_off(), cimg_library::CImg< T >::save_raw(), cimg_library::CImgList< T >::save_yuv(), cimg_library::CImg< T >::sequence(), cimg_library::CImg< T >::set_vector_at(), cimg_library::CImg< T >::sort(), cimg_library::CImg< T >::stats(), cimg_library::CImg< T >::SVD(), cimg_library::CImgList< T >::swap(), cimg_library::CImg< T >::unroll(), cimg_library::CImgList< T >::variance(), and cimg_library::CImg< T >::variancemean().
CImg<T>& cimg_library::CImg< T >::slice | ( | const unsigned int | z0 | ) | [inline] |
In-place version of the previous function.
Definition at line 14785 of file cimg.h.
References cimg_library::CImg< T >::slices().
CImg<T>& cimg_library::CImg< T >::slices | ( | const unsigned int | z0, | |
const unsigned int | z1 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 14775 of file cimg.h.
References cimg_library::CImg< T >::get_slices().
Referenced by cimg_library::CImg< T >::slice().
CImg<T>& cimg_library::CImg< T >::solve | ( | const CImg< t > & | A | ) | [inline] |
In-place version of the previous function.
Definition at line 23825 of file cimg.h.
References cimg_library::CImg< T >::_LU(), cimg_library::CImg< T >::_solve(), cimg_library::CImg< T >::assign(), cimg_forXY, cimg_forY, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::get_pseudoinvert(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::pixel_type(), cimg_library::cimg::warn(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_solve().
CImg<T>& cimg_library::CImg< T >::sort | ( | const bool | increasing = true |
) | [inline] |
In-place version of the previous function.
Definition at line 23905 of file cimg.h.
References cimg_library::CImg< T >::sort().
CImg<T>& cimg_library::CImg< T >::sort | ( | CImg< t > & | permutations, | |
const bool | increasing = true | |||
) | [inline] |
In-place version of the previous function.
Definition at line 23889 of file cimg.h.
References cimg_library::CImg< T >::_quicksort(), cimg_library::CImg< T >::assign(), cimg_foroff, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::size().
Referenced by cimg_library::CImg< T >::_draw_polygon(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::sort(), cimg_library::CImg< T >::SVD(), cimg_library::CImg< T >::symmetric_eigen(), and cimg_library::CImg< T >::variancemean().
CImg<T>& cimg_library::CImg< T >::sqr | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 12617 of file cimg.h.
References cimg_for, and cimg_library::CImg< T >::ptr().
Referenced by cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::get_BayertoRGB(), and cimg_library::CImg< T >::get_sqr().
CImg<T>& cimg_library::CImg< T >::sqrt | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 12629 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::ptr(), and cimg_library::sqrt().
Referenced by cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::draw_arrow(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::eigen(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_correlate(), cimg_library::CImg< T >::get_gradientXY(), cimg_library::CImg< T >::get_sqrt(), cimg_library::CImg< T >::noise(), cimg_library::CImg< T >::norm(), cimg_library::CImg< T >::PSNR(), cimg_library::CImg< T >::SVD(), and cimg_library::CImg< T >::variancemean().
CImg<T>& cimg_library::CImg< T >::stats | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 12591 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), S2(), and cimg_library::CImg< T >::size().
Referenced by cimg_library::CImg< T >::get_stats().
CImg<T>& cimg_library::CImg< T >::structure_tensorXY | ( | const int | scheme = 1 |
) | [inline] |
In-place version of the previous function.
Definition at line 15366 of file cimg.h.
References cimg_library::CImg< T >::get_structure_tensorXY().
CImg<T>& cimg_library::CImg< T >::structure_tensorXYZ | ( | const int | scheme = 1 |
) | [inline] |
In-place version of the previous function.
Definition at line 15410 of file cimg.h.
References cimg_library::CImg< T >::get_structure_tensorXYZ().
double cimg_library::CImg< T >::sum | ( | ) | const [inline] |
Return the sum of all the pixel values in an image.
Definition at line 12062 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::_LU(), cimg_library::CImg< T >::_solve(), cimg_library::CImg< T >::RGBtoHSI(), and cimg_library::CImg< T >::XYZtoxyY().
const CImg<T>& cimg_library::CImg< T >::SVD | ( | CImgList< t > & | USV | ) | const [inline] |
Compute the SVD of a general matrix.
Definition at line 24141 of file cimg.h.
References cimg_library::CImgList< T >::assign(), cimg_library::CImgList< T >::size, and cimg_library::CImg< T >::SVD().
const CImg<T>& cimg_library::CImg< T >::SVD | ( | CImg< t > & | U, | |
CImg< t > & | S, | |||
CImg< t > & | V, | |||
const bool | sorting = true , |
|||
const unsigned int | max_iter = 40 , |
|||
const float | lambda = 0 | |||
) | const [inline] |
Compute the SVD of a general matrix.
Definition at line 23976 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_library::cimg::abs(), cimg_library::CImg< T >::assign(), cimg_forX, cimg_forXY, cimg_forY, cimg_library::CImg< T >::data, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::fill(), blender::g, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::cimg::max(), cimg_library::CImg< T >::max(), memcpy(), cimg_library::cimg::min(), cimg_library::CImg< T >::min(), p, cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::cimg::pythagore(), cimg_library::CImg< T >::size(), cimg_library::CImg< T >::sort(), cimg_library::CImg< T >::sqrt(), cimg_library::cimg::warn(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_pseudoinvert(), cimg_library::CImg< T >::get_SVD(), cimg_library::CImg< T >::invert(), cimg_library::CImg< T >::SVD(), and cimg_library::CImg< T >::symmetric_eigen().
CImg<T>& cimg_library::CImg< T >::swap | ( | CImg< T > & | img | ) | [inline] |
Swap all data fields of two images. Use with care !
Definition at line 10834 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dim, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_shared, and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::_draw_triangle(), cimg_library::CImg< T >::_LU(), cimg_library::CImg< T >::_quicksort(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_plasma(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImgList< T >::FFT(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_dijkstra(), cimg_library::CImg< T >::get_RGBtoLUT(), cimg_library::CImg< T >::kth_smallest(), cimg_library::cimg::marching_cubes(), cimg_library::CImgList< T >::swap(), cimg_library::CImgList< T >::transfer_to(), and cimg_library::CImg< T >::transfer_to().
const CImg<T>& cimg_library::CImg< T >::symmetric_eigen | ( | CImg< t > & | val, | |
CImg< t > & | vec | |||
) | const [inline] |
Compute the eigenvalues and eigenvectors of a symmetric matrix.
Definition at line 24250 of file cimg.h.
References cimg_library::cimg::abs(), cimg_library::CImg< T >::assign(), cimg_forX, cimg_forXY, cimg_forY, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::eigen(), cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), memcpy(), p, cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::sort(), cimg_library::CImg< T >::SVD(), cimg_library::cimg::warn(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_symmetric_eigen().
CImg<T>& cimg_library::CImg< T >::tan | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 12746 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::ptr(), and cimg_library::tan().
Referenced by cimg_library::CImg< T >::get_tan().
CImg<T>& cimg_library::CImg< T >::tensor | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 23636 of file cimg.h.
References cimg_library::CImg< T >::get_tensor().
Referenced by cimg_library::CImg< T >::get_tensor_at().
static CImg<T> cimg_library::CImg< T >::tensor | ( | const T | a1, | |
const T | a2, | |||
const T | a3, | |||
const T | a4, | |||
const T | a5, | |||
const T | a6 | |||
) | [inline, static] |
Return a 3x3 symmetric matrix with specified coefficients.
Definition at line 23410 of file cimg.h.
References cimg_library::CImg< T >::matrix().
static CImg<T> cimg_library::CImg< T >::tensor | ( | const T | a1, | |
const T | a2, | |||
const T | a3 | |||
) | [inline, static] |
Return a 2x2 symmetric matrix tensor with specified coefficients.
Definition at line 23405 of file cimg.h.
References cimg_library::CImg< T >::matrix().
static CImg<T> cimg_library::CImg< T >::tensor | ( | const T | a1 | ) | [inline, static] |
Return a 1x1 symmetric matrix with specified coefficients.
Definition at line 23400 of file cimg.h.
References cimg_library::CImg< T >::matrix().
CImg<T>& cimg_library::CImg< T >::threshold | ( | const T | thres | ) | [inline] |
In-place version of the previous function.
Definition at line 13476 of file cimg.h.
References cimg_for, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::ptr().
double cimg_library::CImg< T >::trace | ( | ) | const [inline] |
Return the trace of the current matrix.
Definition at line 11979 of file cimg.h.
References cimg_forX, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::width.
CImg<T>& cimg_library::CImg< T >::transfer_to | ( | CImg< T > & | img | ) | [inline] |
Definition at line 10828 of file cimg.h.
References cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::is_shared, and cimg_library::CImg< T >::swap().
CImg<t>& cimg_library::CImg< T >::transfer_to | ( | CImg< t > & | img | ) | [inline] |
Transfer the content of the instance image into another one in a way that memory copies are avoided if possible.
The instance image is always empty after a call to this function.
Definition at line 10822 of file cimg.h.
References cimg_library::CImg< T >::assign().
Referenced by cimg_library::CImg< T >::blur_patch(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_resize(), and cimg_library::CImgList< T >::get_split().
CImg<T>& cimg_library::CImg< T >::translate | ( | const int | deltax, | |
const int | deltay = 0 , |
|||
const int | deltaz = 0 , |
|||
const int | deltav = 0 , |
|||
const int | border_condition = 0 | |||
) | [inline] |
In-place version of the previous function.
Definition at line 14434 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_library::cimg::abs(), cimg_forV, cimg_forYZV, cimg_forZV, cimg_library::CImg< T >::data, cimg_library::CImg< T >::depth, cimg_library::CImg< T >::dimv(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::fill(), cimg_library::CImg< T >::height, cimg_library::CImg< T >::is_empty(), memcpy(), cimg_library::cimg::mod(), cimg_library::CImg< T >::ptr(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::draw_fill().
CImg<T>& cimg_library::CImg< T >::transpose | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 23704 of file cimg.h.
References cimg_forYZV, cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::get_transpose(), cimg_library::CImg< T >::height, cimg_library::cimg::swap(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImg< T >::get_pseudoinvert().
CImg<T>& cimg_library::CImg< T >::unroll | ( | const char | axe = 'x' |
) | [inline] |
In-place version of the previous function.
Definition at line 23646 of file cimg.h.
References cimg_library::CImg< T >::depth, cimg_library::CImg< T >::height, cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::size(), and cimg_library::CImg< T >::width.
Referenced by cimg_library::CImgList< T >::get_append(), and cimg_library::CImg< T >::vector().
double cimg_library::CImg< T >::variance | ( | const unsigned int | variance_method = 0 |
) | const [inline] |
Return the variance and the mean of the image.
Definition at line 11951 of file cimg.h.
References cimg_library::CImg< T >::variancemean().
Referenced by cimg_library::CImg< T >::variancemean().
double cimg_library::CImg< T >::variancemean | ( | const unsigned int | variance_method, | |
t & | mean | |||
) | const [inline] |
Return the variance and the mean of the image.
Definition at line 11906 of file cimg.h.
References cimg_library::CImg< T >::abs(), cimg_for, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), cimg_library::CImg< T >::ptr(), S2(), cimg_library::CImg< T >::size(), cimg_library::CImg< T >::sort(), cimg_library::CImg< T >::sqrt(), and cimg_library::CImg< T >::variance().
Referenced by cimg_library::CImg< T >::variance().
CImg<T>& cimg_library::CImg< T >::vector | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 23573 of file cimg.h.
References cimg_library::CImg< T >::unroll().
Referenced by cimg_library::CImg< T >::matrix().
static CImg<T> cimg_library::CImg< T >::vector | ( | const double | a0, | |
const double | a1, | |||
... | ||||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23326 of file cimg.h.
References _CImg_stdarg.
static CImg<T> cimg_library::CImg< T >::vector | ( | const int | a0, | |
const int | a1, | |||
... | ||||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23319 of file cimg.h.
References _CImg_stdarg.
static CImg<T> cimg_library::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 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23308 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::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 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23297 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::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 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23286 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::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 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23275 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::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 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23265 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::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 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23255 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::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 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23245 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::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 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23236 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::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 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23228 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::CImg< T >::vector | ( | const T | a0, | |
const T | a1, | |||
const T | a2, | |||
const T | a3, | |||
const T | a4, | |||
const T | a5, | |||
const T | a6 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23220 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::CImg< T >::vector | ( | const T | a0, | |
const T | a1, | |||
const T | a2, | |||
const T | a3, | |||
const T | a4, | |||
const T | a5 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23213 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::CImg< T >::vector | ( | const T | a0, | |
const T | a1, | |||
const T | a2, | |||
const T | a3, | |||
const T | a4 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23206 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::CImg< T >::vector | ( | const T | a0, | |
const T | a1, | |||
const T | a2, | |||
const T | a3 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23199 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::CImg< T >::vector | ( | const T | a0, | |
const T | a1, | |||
const T | a2 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23192 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::CImg< T >::vector | ( | const T | a0, | |
const T | a1 | |||
) | [inline, static] |
Return a vector with specified coefficients.
Definition at line 23185 of file cimg.h.
References cimg_library::CImg< T >::data, cimg_library::CImg< T >::ptr(), and r.
static CImg<T> cimg_library::CImg< T >::vector | ( | const T | a0 | ) | [inline, static] |
CImg<T>& cimg_library::CImg< T >::xyYtoRGB | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16405 of file cimg.h.
References cimg_library::CImg< T >::xyYtoXYZ().
CImg<T>& cimg_library::CImg< T >::xyYtoXYZ | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16355 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::pixel_type().
Referenced by cimg_library::CImg< T >::xyYtoRGB().
CImg<T>& cimg_library::CImg< T >::XYZtoLab | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16274 of file cimg.h.
References cimg_forXYZ, cimg_Labf, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::pixel_type().
CImg<T>& cimg_library::CImg< T >::XYZtoRGB | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16251 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::pixel_type().
CImg<T>& cimg_library::CImg< T >::XYZtoxyY | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16335 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::pixel_type(), and cimg_library::CImg< T >::sum().
CImg<T>& cimg_library::CImg< T >::YCbCrtoRGB | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16156 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::pixel_type().
CImg<T>& cimg_library::CImg< T >::YUVtoRGB | ( | ) | [inline] |
In-place version of the previous function.
Definition at line 16207 of file cimg.h.
References cimg_forXYZ, cimg_library::CImg< T >::is_empty(), and cimg_library::CImg< T >::pixel_type().
T* cimg_library::CImg< T >::data |
Pointer to the first pixel of the pixel buffer.
Definition at line 10270 of file cimg.h.
Referenced by cimg_library::CImg< T >::_fill(), cimg_library::CImgList< T >::assign(), cimg_library::CImg< T >::assign(), cimg_library::CImgList< T >::at(), cimg_library::CImgList< T >::begin(), cimg_library::CImg< T >::begin(), cimg_library::CImg< T >::CImg(), cimg_library::CImgList< T >::CImgList(), cimg_library::CImgList< T >::contains(), cimg_library::CImg< T >::contains(), cimg_library::CImgList< T >::containsNXYZV(), cimg_library::CImg< T >::cross(), cimg_library::CImg< T >::det(), cimg_library::cimg::dialog(), cimg_library::CImgList< T >::display(), cimg_library::CImg< T >::display(), cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::div(), cimg_library::CImg< T >::dot(), cimg_library::CImg< T >::draw_arrow(), cimg_library::CImg< T >::draw_axis(), cimg_library::CImg< T >::draw_circle(), cimg_library::CImg< T >::draw_ellipse(), cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::draw_gaussian(), cimg_library::CImg< T >::draw_graph(), cimg_library::CImg< T >::draw_grid(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_mandelbrot(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_polygon(), cimg_library::CImg< T >::draw_quiver(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::draw_spline(), cimg_library::CImg< T >::draw_text(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::eigen(), cimg_library::CImgList< T >::end(), cimg_library::CImg< T >::end(), cimg_library::CImgList< T >::erase(), cimg_library::CImgList< T >::FFT(), cimg_library::CImg< T >::fill(), cimg_library::CImgList< T >::front(), cimg_library::CImg< T >::front(), cimg_library::CImg< T >::get_append(), cimg_library::CImg< T >::get_BayertoRGB(), cimg_library::CImg< T >::get_convolve(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_correlate(), cimg_library::CImgList< T >::get_crop(), cimg_library::CImg< T >::get_dijkstra(), cimg_library::CImg< T >::get_dilate(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_erode(), cimg_library::CImg< T >::get_LUTtoRGB(), cimg_library::CImg< T >::get_permute(), cimg_library::CImg< T >::get_permute_axes(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_RGBtoBayer(), cimg_library::CImg< T >::get_RGBtoLUT(), cimg_library::CImg< T >::get_shared(), cimg_library::CImg< T >::get_shared_channels(), cimg_library::CImg< T >::get_shared_lines(), cimg_library::CImg< T >::get_shared_planes(), cimg_library::CImg< T >::get_shared_points(), cimg_library::CImgList< T >::get_split(), cimg_library::CImg< T >::get_split(), cimg_library::CImg< T >::get_vector_at(), cimg_library::CImgList< T >::insert(), cimg_library::CImg< T >::invert(), cimg_library::CImgList< T >::is_empty(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_overlapping(), cimg_library::CImg< T >::kth_smallest(), cimg_library::CImgList< T >::load(), cimg_library::CImg< T >::load_analyze(), cimg_library::CImg< T >::load_ascii(), cimg_library::CImg< T >::load_jpeg(), cimg_library::CImg< T >::load_magick(), cimg_library::CImg< T >::load_pandore(), cimg_library::CImgList< T >::load_parrec(), cimg_library::CImg< T >::load_pnm(), cimg_library::CImg< T >::load_raw(), cimg_library::CImg< T >::load_rgb(), cimg_library::CImg< T >::load_rgba(), cimg_library::CImgList< T >::load_tiff(), cimg_library::CImgList< T >::load_yuv(), cimg_library::CImg< T >::marching_cubes(), cimg_library::CImg< T >::marching_squares(), cimg_library::CImg< T >::matrix(), cimg_library::CImgList< T >::max(), cimg_library::CImg< T >::max(), cimg_library::CImgList< T >::maxmin(), cimg_library::CImg< T >::maxmin(), cimg_library::CImgList< T >::mean(), cimg_library::CImgList< T >::min(), cimg_library::CImg< T >::min(), cimg_library::CImgList< T >::minmax(), cimg_library::CImg< T >::minmax(), cimg_library::CImg< T >::mirror(), cimg_library::CImg< T >::mul(), cimg_library::CImg< T >::norm(), cimg_library::CImg< T >::operator%=(), cimg_library::CImg< T >::operator&=(), cimg_library::CImg< T >::operator()(), cimg_library::CImg< T >::operator+=(), cimg_library::CImgList< T >::operator-(), cimg_library::CImg< T >::operator-=(), cimg_library::CImgList< T >::operator=(), cimg_library::CImg< T >::operator==(), cimg_library::CImgList< T >::operator[](), cimg_library::CImg< T >::operator[](), cimg_library::CImg< T >::operator^=(), cimg_library::CImg< T >::operator|=(), cimg_library::CImg< T >::pow(), cimg_library::CImgList< T >::print(), cimg_library::CImg< T >::print(), cimg_library::CImg< T >::ptr(), cimg_library::CImgList< T >::remove(), cimg_library::CImgList< T >::save(), cimg_library::CImg< T >::save(), cimg_library::CImg< T >::save_analyze(), cimg_library::CImg< T >::save_ascii(), cimg_library::CImg< T >::save_bmp(), cimg_library::CImgList< T >::save_cimg(), cimg_library::CImg< T >::save_cimg(), cimg_library::CImg< T >::save_cpp(), cimg_library::CImg< T >::save_dlm(), cimg_library::CImgList< T >::save_ffmpeg_external(), cimg_library::CImg< T >::save_graphicsmagick_external(), cimg_library::CImg< T >::save_imagemagick_external(), cimg_library::CImg< T >::save_inr(), cimg_library::CImg< T >::save_jpeg(), cimg_library::CImg< T >::save_magick(), cimg_library::CImg< T >::save_medcon_external(), cimg_library::CImg< T >::save_off(), cimg_library::CImg< T >::save_pandore(), cimg_library::CImg< T >::save_png(), cimg_library::CImg< T >::save_pnm(), cimg_library::CImg< T >::save_raw(), cimg_library::CImg< T >::save_rgb(), cimg_library::CImg< T >::save_rgba(), cimg_library::CImg< T >::save_tiff(), cimg_library::CImgList< T >::save_yuv(), cimg_library::CImg< T >::sequence(), cimg_library::CImg< T >::set_vector_at(), cimg_library::CImg< T >::stats(), cimg_library::CImg< T >::sum(), cimg_library::CImg< T >::SVD(), cimg_library::CImgList< T >::swap(), cimg_library::CImg< T >::swap(), cimg_library::CImg< T >::symmetric_eigen(), cimg_library::CImg< T >::trace(), cimg_library::CImg< T >::translate(), cimg_library::CImgList< T >::variance(), cimg_library::CImg< T >::vector(), cimg_library::CImg< T >::~CImg(), and cimg_library::CImgList< T >::~CImgList().
unsigned int cimg_library::CImg< T >::depth |
Variable representing the depth of the instance image (i.e. dimensions along the Z-axis).
depth
would probably result in a library crash.depth
defined to 1
.depth
defined to 0
. Definition at line 10253 of file cimg.h.
Referenced by cimg_library::CImg< T >::_draw_scanline(), cimg_library::CImg< T >::_save_pandore_header_length(), cimg_library::CImgList< T >::assign(), cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::blur(), cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::blur_bilateral(), cimg_library::CImg< T >::blur_patch(), cimg_library::CImg< T >::CImg(), cimg_library::CImgList< T >::CImgList(), cimg_library::CImg< T >::contains(), cimg_library::CImg< T >::crop(), cimg_library::CImg< T >::cross(), cimg_library::CImg< T >::deriche(), cimg_library::CImg< T >::det(), cimg_library::CImg< T >::dimz(), cimg_library::CImg< T >::display(), cimg_library::CImg< T >::distance_function(), cimg_library::CImg< T >::dot(), cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::draw_gaussian(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_mandelbrot(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_quiver(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::draw_spline(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImg< T >::eigen(), cimg_library::CImgList< T >::FFT(), cimg_library::CImgList< T >::get_append(), cimg_library::CImg< T >::get_append(), cimg_library::CImg< T >::get_BayertoRGB(), cimg_library::CImg< T >::get_blur_median(), cimg_library::CImg< T >::get_convolve(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_correlate(), cimg_library::CImg< T >::get_crop(), cimg_library::CImg< T >::get_dijkstra(), cimg_library::CImg< T >::get_dilate(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_erode(), cimg_library::CImg< T >::get_fill(), cimg_library::CImg< T >::get_gradientXY(), cimg_library::CImg< T >::get_gradientXYZ(), cimg_library::CImg< T >::get_haar(), cimg_library::CImg< T >::get_hessianXY(), cimg_library::CImg< T >::get_hessianXYZ(), cimg_library::CImg< T >::get_label_regions(), cimg_library::CImg< T >::get_LUTtoRGB(), cimg_library::CImg< T >::get_norm_pointwise(), cimg_library::CImg< T >::get_permute(), cimg_library::CImg< T >::get_permute_axes(), cimg_library::CImg< T >::get_projections2d(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_resize_doubleXY(), cimg_library::CImg< T >::get_resize_halfXY(), cimg_library::CImg< T >::get_resize_tripleXY(), cimg_library::CImg< T >::get_RGBtoBayer(), cimg_library::CImg< T >::get_RGBtoLUT(), cimg_library::CImg< T >::get_rotate(), cimg_library::CImg< T >::get_shared(), cimg_library::CImg< T >::get_shared_channels(), cimg_library::CImg< T >::get_shared_lines(), cimg_library::CImg< T >::get_shared_planes(), cimg_library::CImg< T >::get_shared_points(), cimg_library::CImg< T >::get_split(), cimg_library::CImg< T >::get_structure_tensorXY(), cimg_library::CImg< T >::get_structure_tensorXYZ(), cimg_library::CImg< T >::get_vector_at(), cimg_library::CImgList< T >::insert(), cimg_library::CImg< T >::invert(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_sameZ(), cimg_library::CImg< T >::kth_smallest(), cimg_library::CImg< T >::linear_pix3d(), cimg_library::CImg< T >::linear_pix4d(), cimg_library::CImg< T >::marching_cubes(), cimg_library::CImg< T >::marching_squares(), cimg_library::CImg< T >::mirror(), cimg_library::CImg< T >::MSE(), cimg_library::CImg< T >::norm(), cimg_library::CImg< T >::offset(), cimg_library::CImg< T >::operator()(), cimg_library::CImg< T >::operator-(), cimg_library::operator-(), cimg_library::CImg< T >::operator=(), cimg_library::CImg< T >::operator~(), cimg_library::CImg< T >::print(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::resize(), cimg_library::CImg< T >::save(), cimg_library::CImg< T >::save_analyze(), cimg_library::CImg< T >::save_ascii(), cimg_library::CImg< T >::save_bmp(), cimg_library::CImgList< T >::save_cimg(), cimg_library::CImg< T >::save_cimg(), cimg_library::CImg< T >::save_cpp(), cimg_library::CImg< T >::save_dlm(), cimg_library::CImgList< T >::save_ffmpeg_external(), cimg_library::CImg< T >::save_graphicsmagick_external(), cimg_library::CImg< T >::save_imagemagick_external(), cimg_library::CImg< T >::save_inr(), cimg_library::CImg< T >::save_jpeg(), cimg_library::CImg< T >::save_magick(), cimg_library::CImg< T >::save_medcon_external(), cimg_library::CImg< T >::save_off(), cimg_library::CImg< T >::save_pandore(), cimg_library::CImg< T >::save_png(), cimg_library::CImg< T >::save_pnm(), cimg_library::CImg< T >::save_raw(), cimg_library::CImg< T >::save_rgb(), cimg_library::CImg< T >::save_rgba(), cimg_library::CImg< T >::save_tiff(), cimg_library::CImg< T >::set_vector_at(), cimg_library::CImg< T >::sharpen(), cimg_library::CImg< T >::size(), cimg_library::CImg< T >::solve(), cimg_library::CImg< T >::sum(), cimg_library::CImg< T >::swap(), cimg_library::CImg< T >::symmetric_eigen(), cimg_library::CImg< T >::trace(), cimg_library::CImg< T >::translate(), and cimg_library::CImg< T >::unroll().
unsigned int cimg_library::CImg< T >::dim |
Variable representing the number of channels of the instance image (i.e. dimensions along the V-axis).
dim
would probably result in a library crash.dim
defined to 1
.depth
defined to 0
. Definition at line 10264 of file cimg.h.
Referenced by cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::CImg(), cimg_library::CImg< T >::cross(), cimg_library::CImg< T >::dot(), cimg_library::CImg< T >::draw_gaussian(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_mandelbrot(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_quiver(), cimg_library::CImg< T >::draw_spline(), cimg_library::CImg< T >::draw_triangle(), cimg_library::CImgList< T >::FFT(), cimg_library::CImgList< T >::get_append(), cimg_library::CImg< T >::get_append(), cimg_library::CImg< T >::get_convolve(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_correlate(), cimg_library::CImgList< T >::get_crop_font(), cimg_library::CImg< T >::get_dilate(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_erode(), cimg_library::CImg< T >::get_LUTtoRGB(), cimg_library::CImg< T >::get_permute(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_RGBtoLUT(), cimg_library::CImgList< T >::insert(), cimg_library::CImg< T >::is_sameV(), cimg_library::CImg< T >::load_tiff(), cimg_library::CImg< T >::MSE(), cimg_library::operator-(), cimg_library::CImg< T >::resize(), cimg_library::CImgList< T >::save_cimg(), cimg_library::CImg< T >::solve(), and cimg_library::CImg< T >::swap().
unsigned int cimg_library::CImg< T >::height |
Variable representing the height of the instance image (i.e. dimensions along the Y-axis).
height
would probably result in a library crash.height
defined to 1
.height
defined to 0
. Definition at line 10242 of file cimg.h.
Referenced by cimg_library::CImg< T >::_draw_ellipse(), cimg_library::CImg< T >::_draw_polygon(), cimg_library::CImg< T >::_draw_scanline(), cimg_library::CImg< T >::_save_pandore_header_length(), cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::blur(), cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::blur_bilateral(), cimg_library::CImg< T >::blur_patch(), cimg_library::CImg< T >::CImg(), cimg_library::CImg< T >::contains(), cimg_library::CImg< T >::crop(), cimg_library::CImg< T >::cross(), cimg_library::CImg< T >::cubic_pix2d(), cimg_library::CImg< T >::deriche(), cimg_library::CImg< T >::det(), cimg_library::cimg::dialog(), cimg_library::CImg< T >::dimy(), cimg_library::CImg< T >::display(), cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::dot(), cimg_library::CImg< T >::draw_axis(), cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::draw_gaussian(), cimg_library::CImg< T >::draw_graph(), cimg_library::CImg< T >::draw_grid(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_mandelbrot(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_plasma(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_polygon(), cimg_library::CImg< T >::draw_quiver(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::draw_spline(), cimg_library::CImg< T >::draw_text(), cimg_library::CImg< T >::draw_triangle(), lux::LuxGLViewer::FontGenerator::DrawText(), cimg_library::CImg< T >::eigen(), cimg_library::CImgList< T >::FFT(), cimg_library::CImgList< T >::get_append(), cimg_library::CImg< T >::get_append(), cimg_library::CImg< T >::get_BayertoRGB(), cimg_library::CImg< T >::get_blur_median(), cimg_library::CImg< T >::get_convolve(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_correlate(), cimg_library::CImg< T >::get_crop(), cimg_library::CImgList< T >::get_crop_font(), cimg_library::CImg< T >::get_dijkstra(), cimg_library::CImg< T >::get_dilate(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_erode(), cimg_library::CImg< T >::get_fill(), cimg_library::CImg< T >::get_gradientXY(), cimg_library::CImg< T >::get_gradientXYZ(), cimg_library::CImg< T >::get_haar(), cimg_library::CImg< T >::get_hessianXY(), cimg_library::CImg< T >::get_hessianXYZ(), cimg_library::CImg< T >::get_identity_matrix(), cimg_library::CImg< T >::get_label_regions(), cimg_library::CImg< T >::get_logo40x38(), cimg_library::CImg< T >::get_LUTtoRGB(), cimg_library::CImg< T >::get_norm_pointwise(), cimg_library::CImg< T >::get_permute(), cimg_library::CImg< T >::get_permute_axes(), cimg_library::CImg< T >::get_projections2d(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_resize_doubleXY(), cimg_library::CImg< T >::get_resize_halfXY(), cimg_library::CImg< T >::get_resize_tripleXY(), cimg_library::CImg< T >::get_RGBtoBayer(), cimg_library::CImg< T >::get_RGBtoLUT(), cimg_library::CImg< T >::get_rotate(), cimg_library::CImg< T >::get_shared(), cimg_library::CImg< T >::get_shared_channels(), cimg_library::CImg< T >::get_shared_lines(), cimg_library::CImg< T >::get_shared_planes(), cimg_library::CImg< T >::get_shared_points(), cimg_library::CImg< T >::get_split(), cimg_library::CImg< T >::get_structure_tensorXY(), cimg_library::CImg< T >::get_structure_tensorXYZ(), cimg_library::CImg< T >::get_vector_at(), cimg_library::CImg< T >::identity_matrix(), cimg_library::CImgList< T >::insert(), cimg_library::CImg< T >::invert(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_sameY(), cimg_library::CImg< T >::kth_smallest(), cimg_library::CImg< T >::linear_pix2d(), cimg_library::CImg< T >::linear_pix3d(), cimg_library::CImg< T >::linear_pix4d(), cimg_library::CImg< T >::load_bmp(), cimg_library::CImg< T >::load_dlm(), cimg_library::CImg< T >::load_tiff(), cimg_library::CImg< T >::marching_cubes(), cimg_library::CImg< T >::marching_squares(), cimg_library::CImg< T >::matrix(), cimg_library::CImg< T >::mirror(), cimg_library::CImg< T >::MSE(), cimg_library::CImg< T >::norm(), cimg_library::CImg< T >::offset(), cimg_library::CImg< T >::operator()(), cimg_library::operator*(), cimg_library::CImg< T >::operator-(), cimg_library::operator-(), cimg_library::CImg< T >::operator=(), cimg_library::CImg< T >::operator~(), cimg_library::CImg< T >::print(), cimg_library::CImg< T >::ptr(), cimg_library::CImg< T >::resize(), cimg_library::CImgDisplay::resize(), cimg_library::CImg< T >::save(), cimg_library::CImg< T >::save_analyze(), cimg_library::CImg< T >::save_ascii(), cimg_library::CImg< T >::save_bmp(), cimg_library::CImgList< T >::save_cimg(), cimg_library::CImg< T >::save_cimg(), cimg_library::CImg< T >::save_cpp(), cimg_library::CImg< T >::save_dlm(), cimg_library::CImg< T >::save_graphicsmagick_external(), cimg_library::CImg< T >::save_imagemagick_external(), cimg_library::CImg< T >::save_inr(), cimg_library::CImg< T >::save_medcon_external(), cimg_library::CImg< T >::save_pandore(), cimg_library::CImg< T >::save_png(), cimg_library::CImg< T >::save_pnm(), cimg_library::CImg< T >::save_raw(), cimg_library::CImgList< T >::save_yuv(), cimg_library::CImg< T >::set_tensor_at(), cimg_library::CImg< T >::set_vector_at(), cimg_library::CImg< T >::sharpen(), cimg_library::CImg< T >::size(), cimg_library::CImg< T >::solve(), cimg_library::CImg< T >::sum(), cimg_library::CImg< T >::SVD(), cimg_library::CImg< T >::swap(), cimg_library::CImg< T >::symmetric_eigen(), cimg_library::CImg< T >::trace(), cimg_library::CImg< T >::translate(), cimg_library::CImg< T >::transpose(), and cimg_library::CImg< T >::unroll().
bool cimg_library::CImg< T >::is_shared |
Variable telling if pixel buffer of the instance image is shared with another one.
Definition at line 10267 of file cimg.h.
Referenced by cimg_library::CImgList< T >::assign(), cimg_library::CImg< T >::assign(), cimg_library::CImg< T >::CImg(), cimg_library::CImgList< T >::CImgList(), cimg_library::CImg< T >::get_resize(), cimg_library::CImgList< T >::insert(), cimg_library::CImg< T >::print(), cimg_library::CImg< T >::swap(), cimg_library::CImg< T >::transfer_to(), and cimg_library::CImg< T >::~CImg().
unsigned int cimg_library::CImg< T >::width |
Variable representing the width of the instance image (i.e. dimensions along the X-axis).
width
would probably result in a library crash.width
defined to 0
. Definition at line 10231 of file cimg.h.
Referenced by cimg_library::CImg< T >::_draw_scanline(), cimg_library::CImg< T >::_save_pandore_header_length(), cimg_library::CImg< T >::assign(), cimg_library::CImgDisplay::assign(), cimg_library::CImg< T >::blur(), cimg_library::CImg< T >::blur_anisotropic(), cimg_library::CImg< T >::blur_bilateral(), cimg_library::CImg< T >::blur_patch(), cimg_library::CImg< T >::CImg(), cimg_library::CImg< T >::contains(), cimg_library::CImg< T >::cross(), cimg_library::CImg< T >::cubic_pix1d(), cimg_library::CImg< T >::cubic_pix2d(), cimg_library::CImg< T >::deriche(), cimg_library::CImg< T >::det(), cimg_library::cimg::dialog(), cimg_library::CImg< T >::dimx(), cimg_library::CImg< T >::display(), cimg_library::CImgDisplay::display(), cimg_library::CImg< T >::display_object3d(), cimg_library::CImg< T >::dot(), cimg_library::CImg< T >::draw_axis(), cimg_library::CImg< T >::draw_fill(), cimg_library::CImg< T >::draw_gaussian(), cimg_library::CImg< T >::draw_graph(), cimg_library::CImg< T >::draw_grid(), cimg_library::CImg< T >::draw_image(), cimg_library::CImg< T >::draw_line(), cimg_library::CImg< T >::draw_mandelbrot(), cimg_library::CImg< T >::draw_object3d(), cimg_library::CImg< T >::draw_plasma(), cimg_library::CImg< T >::draw_point(), cimg_library::CImg< T >::draw_polygon(), cimg_library::CImg< T >::draw_quiver(), cimg_library::CImg< T >::draw_rectangle(), cimg_library::CImg< T >::draw_spline(), cimg_library::CImg< T >::draw_text(), cimg_library::CImg< T >::draw_triangle(), lux::LuxGLViewer::FontGenerator::DrawText(), cimg_library::CImg< T >::eigen(), cimg_library::CImgList< T >::FFT(), cimg_library::CImgList< T >::get_append(), cimg_library::CImg< T >::get_append(), cimg_library::CImg< T >::get_BayertoRGB(), cimg_library::CImg< T >::get_blur_median(), cimg_library::CImg< T >::get_convolve(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_correlate(), cimg_library::CImgList< T >::get_crop_font(), cimg_library::CImg< T >::get_dijkstra(), cimg_library::CImg< T >::get_dilate(), cimg_library::CImg< T >::get_displacement_field(), cimg_library::CImg< T >::get_erode(), cimg_library::CImg< T >::get_fill(), cimg_library::CImg< T >::get_gradientXY(), cimg_library::CImg< T >::get_gradientXYZ(), cimg_library::CImg< T >::get_haar(), cimg_library::CImg< T >::get_hessianXY(), cimg_library::CImg< T >::get_hessianXYZ(), cimg_library::CImg< T >::get_identity_matrix(), cimg_library::CImg< T >::get_label_regions(), cimg_library::CImg< T >::get_logo40x38(), cimg_library::CImg< T >::get_LUTtoRGB(), cimg_library::CImg< T >::get_norm_pointwise(), cimg_library::CImg< T >::get_permute(), cimg_library::CImg< T >::get_permute_axes(), cimg_library::CImg< T >::get_projections2d(), cimg_library::CImg< T >::get_resize(), cimg_library::CImg< T >::get_resize_doubleXY(), cimg_library::CImg< T >::get_resize_halfXY(), cimg_library::CImg< T >::get_resize_tripleXY(), cimg_library::CImg< T >::get_RGBtoBayer(), cimg_library::CImg< T >::get_RGBtoLUT(), cimg_library::CImg< T >::get_rotate(), cimg_library::CImg< T >::get_shared(), cimg_library::CImg< T >::get_shared_channels(), cimg_library::CImg< T >::get_shared_lines(), cimg_library::CImg< T >::get_shared_planes(), cimg_library::CImg< T >::get_shared_points(), cimg_library::CImg< T >::get_split(), cimg_library::CImg< T >::get_structure_tensorXY(), cimg_library::CImg< T >::get_structure_tensorXYZ(), cimg_library::CImg< T >::get_vector_at(), cimg_library::CImg< T >::identity_matrix(), cimg_library::CImgList< T >::insert(), cimg_library::CImg< T >::invert(), cimg_library::CImg< T >::is_empty(), cimg_library::CImg< T >::is_sameX(), cimg_library::CImg< T >::kth_smallest(), cimg_library::CImg< T >::linear_pix1d(), cimg_library::CImg< T >::linear_pix2d(), cimg_library::CImg< T >::linear_pix3d(), cimg_library::CImg< T >::linear_pix4d(), cimg_library::CImg< T >::load_dlm(), cimg_library::CImg< T >::load_png(), cimg_library::CImg< T >::load_pnm(), cimg_library::CImg< T >::load_rgb(), cimg_library::CImg< T >::load_rgba(), cimg_library::CImg< T >::load_tiff(), cimg_library::CImg< T >::marching_cubes(), cimg_library::CImg< T >::marching_squares(), cimg_library::CImg< T >::matrix(), cimg_library::CImg< T >::mirror(), cimg_library::CImg< T >::MSE(), cimg_library::CImg< T >::norm(), cimg_library::CImg< T >::offset(), cimg_library::CImg< T >::operator()(), cimg_library::operator*(), cimg_library::CImg< T >::operator-(), cimg_library::operator-(), cimg_library::CImg< T >::operator=(), cimg_library::CImg< T >::operator~(), cimg_library::CImg< T >::print(), cimg_library::CImg< T >::ptr(), cimg_library::CImgDisplay::render(), cimg_library::CImg< T >::resize(), cimg_library::CImgDisplay::resize(), cimg_library::CImg< T >::save(), cimg_library::CImg< T >::save_analyze(), cimg_library::CImg< T >::save_ascii(), cimg_library::CImg< T >::save_bmp(), cimg_library::CImgList< T >::save_cimg(), cimg_library::CImg< T >::save_cimg(), cimg_library::CImg< T >::save_cpp(), cimg_library::CImg< T >::save_dlm(), cimg_library::CImg< T >::save_graphicsmagick_external(), cimg_library::CImg< T >::save_imagemagick_external(), cimg_library::CImg< T >::save_inr(), cimg_library::CImg< T >::save_medcon_external(), cimg_library::CImg< T >::save_pandore(), cimg_library::CImg< T >::save_png(), cimg_library::CImg< T >::save_pnm(), cimg_library::CImg< T >::save_raw(), cimg_library::CImgList< T >::save_yuv(), cimg_library::CImg< T >::set_vector_at(), cimg_library::CImg< T >::sharpen(), cimg_library::CImg< T >::size(), cimg_library::CImg< T >::solve(), cimg_library::CImg< T >::sum(), cimg_library::CImg< T >::SVD(), cimg_library::CImg< T >::swap(), cimg_library::CImg< T >::symmetric_eigen(), cimg_library::CImg< T >::trace(), cimg_library::CImg< T >::translate(), cimg_library::CImg< T >::transpose(), and cimg_library::CImg< T >::unroll().