Class representing list of images CImg<T>. More...
#include <CImg.h>
Public Types | |
typedef CImg< T > * | iterator |
Define a CImgList<T>::iterator. More... | |
typedef const CImg< T > * | const_iterator |
Define a CImgList<T>::const_iterator. More... | |
typedef T | value_type |
Value type. More... | |
typedef cimg::superset< T, bool >::type | Tbool |
typedef cimg::superset< T, unsigned char >::type | Tuchar |
typedef cimg::superset< T, char >::type | Tchar |
typedef cimg::superset< T, unsigned short >::type | Tushort |
typedef cimg::superset< T, short >::type | Tshort |
typedef cimg::superset< T, unsigned int >::type | Tuint |
typedef cimg::superset< T, int > ::type | Tint |
typedef cimg::superset< T, unsigned long >::type | Tulong |
typedef cimg::superset< T, long >::type | Tlong |
typedef cimg::superset< T, float >::type | Tfloat |
typedef cimg::superset< T, double >::type | Tdouble |
typedef cimg::last< T, bool >::type | boolT |
typedef cimg::last< T, unsigned char >::type | ucharT |
typedef cimg::last< T, char >::type | charT |
typedef cimg::last< T, unsigned short >::type | ushortT |
typedef cimg::last< T, short > ::type | shortT |
typedef cimg::last< T, unsigned int >::type | uintT |
typedef cimg::last< T, int >::type | intT |
typedef cimg::last< T, unsigned long >::type | ulongT |
typedef cimg::last< T, long >::type | longT |
typedef cimg::last< T, float > ::type | floatT |
typedef cimg::last< T, double > ::type | doubleT |
Public Member Functions | |
Overloaded Operators | |
CImg< T > & | operator[] (const unsigned int pos) |
Return a reference to the i-th element of the image list. More... | |
const CImg< T > & | operator[] (const unsigned int pos) const |
CImg< T > & | operator() (const unsigned int pos) |
Equivalent to CImgList<T>::operator[]. More... | |
const CImg< T > & | operator() (const unsigned int pos) const |
T & | operator() (const unsigned int pos, const unsigned int x, const unsigned int y=0, const unsigned int z=0, const unsigned int v=0) |
Return a reference to (x,y,z,v) pixel of the pos-th image of the list. More... | |
const T & | operator() (const unsigned int pos, const unsigned int x, const unsigned int y=0, const unsigned int z=0, const unsigned int v=0) const |
operator bool () const | |
Return true if list is not empty. More... | |
template<typename t > | |
CImgList< T > & | operator= (const CImg< t > &img) |
Operator=(). More... | |
CImgList< T > & | operator= (const CImgDisplay &disp) |
Operator=(). More... | |
template<typename t > | |
CImgList< T > & | operator= (const CImgList< t > &list) |
Operator=(). More... | |
CImgList< T > & | operator= (const CImgList< T > &list) |
CImgList< T > & | operator= (const char *const filename) |
Operator=(). More... | |
CImgList< T > | operator+ () const |
Operator+() (unary). More... | |
template<typename t > | |
CImgList< T > & | operator, (const CImg< t > &img) |
Operator,(). More... | |
template<typename t > | |
CImgList< T > & | operator, (const CImgList< t > &list) |
Operator,(). More... | |
CImg< T > | operator> (const char axis) const |
Operator>(). More... | |
CImgList< T > | operator< (const char axis) const |
Operator<(). More... | |
Instance Checking | |
bool | is_empty () const |
Return true if list is empty. More... | |
bool | is_sameN (const unsigned int n) const |
Return true if list if of specified size. More... | |
template<typename t > | |
bool | is_sameN (const CImgList< t > &list) const |
Return true if list if of specified size. More... | |
bool | is_sameXYZV (const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dv) const |
bool | is_sameNXYZV (const unsigned int n, const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dv) const |
bool | containsNXYZV (const int n, const int x=0, const int y=0, const int z=0, const int v=0) const |
Return true if the list contains the pixel (n,x,y,z,v). More... | |
bool | containsN (const int n) const |
Return true if the list contains the image (n). More... | |
template<typename t > | |
bool | contains (const T &pixel, t &n, t &x, t &y, t &z, t &v) const |
Return true if one of the image list contains the specified referenced value. If true, set coordinates (n,x,y,z,v). More... | |
template<typename t > | |
bool | contains (const T &pixel, t &n, t &x, t &y, t &z) const |
Return true if one of the image list contains the specified referenced value. If true, set coordinates (n,x,y,z). More... | |
template<typename t > | |
bool | contains (const T &pixel, t &n, t &x, t &y) const |
Return true if one of the image list contains the specified referenced value. If true, set coordinates (n,x,y). More... | |
template<typename t > | |
bool | contains (const T &pixel, t &n, t &x) const |
Return true if one of the image list contains the specified referenced value. If true, set coordinates (n,x). More... | |
template<typename t > | |
bool | contains (const T &pixel, t &n) const |
Return true if one of the image list contains the specified referenced value. If true, set coordinates (n). More... | |
bool | contains (const T &pixel) const |
Return true if one of the image list contains the specified referenced value. More... | |
template<typename t > | |
bool | contains (const CImg< T > &img, t &n) const |
Return true if the list contains the image 'img'. If true, returns the position (n) of the image in the list. More... | |
bool | contains (const CImg< T > &img) const |
Return true if the list contains the image img. More... | |
Mathematical Functions | |
T & | min () |
Return a reference to the minimum pixel value of the instance list. More... | |
const T & | min () const |
T & | max () |
Return a reference to the maximum pixel value of the instance list. More... | |
const T & | max () const |
template<typename t > | |
T & | minmax (t &max_val) |
Return a reference to the minimum pixel value of the instance list. More... | |
template<typename t > | |
const T & | minmax (t &max_val) const |
template<typename t > | |
T & | maxmin (t &min_val) |
Return a reference to the minimum pixel value of the instance list. More... | |
template<typename t > | |
const T & | maxmin (t &min_val) const |
List Manipulation | |
template<typename t > | |
CImgList< T > & | insert (const CImg< t > &img, const unsigned int pos=~0U, const bool shared=false) |
Insert a copy of the image img into the current image list, at position pos . More... | |
CImgList< T > & | insert (const CImg< T > &img, const unsigned int pos=~0U, const bool shared=false) |
template<typename t > | |
CImgList< T > | get_insert (const CImg< t > &img, const unsigned int pos=~0U, const bool shared=false) const |
CImgList< T > & | insert (const unsigned int n, const unsigned int pos=~0U) |
Insert n empty images img into the current image list, at position pos . More... | |
CImgList< T > | get_insert (const unsigned int n, const unsigned int pos=~0U) const |
template<typename t > | |
CImgList< T > & | insert (const unsigned int n, const CImg< t > &img, const unsigned int pos=~0U, const bool shared=false) |
Insert n copies of the image img into the current image list, at position pos . More... | |
template<typename t > | |
CImgList< T > | get_insert (const unsigned int n, const CImg< t > &img, const unsigned int pos=~0U, const bool shared=false) const |
template<typename t > | |
CImgList< T > & | insert (const CImgList< t > &list, const unsigned int pos=~0U, const bool shared=false) |
Insert a copy of the image list list into the current image list, starting from position pos . More... | |
template<typename t > | |
CImgList< T > | get_insert (const CImgList< t > &list, const unsigned int pos=~0U, const bool shared=false) const |
template<typename t > | |
CImgList< T > & | insert (const unsigned int n, const CImgList< t > &list, const unsigned int pos=~0U, const bool shared=false) |
Insert n copies of the list list at position pos of the current list. More... | |
template<typename t > | |
CImgList< T > | get_insert (const unsigned int n, const CImgList< t > &list, const unsigned int pos=~0U, const bool shared=false) const |
CImgList< T > & | remove (const unsigned int pos1, const unsigned int pos2) |
Remove the images from positions pos1 to pos2 . More... | |
CImgList< T > | get_remove (const unsigned int pos1, const unsigned int pos2) const |
CImgList< T > & | remove (const unsigned int pos) |
Remove the image at position pos from the image list. More... | |
CImgList< T > | get_remove (const unsigned int pos) const |
CImgList< T > & | remove () |
Remove the last image from the image list. More... | |
CImgList< T > | get_remove () const |
CImgList< T > & | reverse () |
Reverse list order. More... | |
CImgList< T > | get_reverse () const |
CImgList< T > & | images (const unsigned int i0, const unsigned int i1) |
Get a sub-list. More... | |
CImgList< T > | get_images (const unsigned int i0, const unsigned int i1) const |
CImgList< T > | get_shared_images (const unsigned int i0, const unsigned int i1) |
Get a shared sub-list. More... | |
const CImgList< T > | get_shared_images (const unsigned int i0, const unsigned int i1) const |
CImg< T > | get_append (const char axis, const char align='p') const |
Return a single image which is the concatenation of all images of the current CImgList instance. More... | |
CImgList< T > & | split (const char axis, const int nb=0) |
Return a list where each image has been split along the specified axis. More... | |
CImgList< T > | get_split (const char axis, const int nb=0) const |
template<typename t > | |
CImgList< T > & | push_back (const CImg< t > &img) |
Insert image img at the end of the list (STL-compliant name). More... | |
template<typename t > | |
CImgList< T > & | push_front (const CImg< t > &img) |
Insert image img at the front of the list (STL-compliant name). More... | |
template<typename t > | |
CImgList< T > & | push_back (const CImgList< t > &list) |
Insert list list at the end of the current list (STL-compliant name). More... | |
template<typename t > | |
CImgList< T > & | push_front (const CImgList< t > &list) |
Insert list list at the front of the current list (STL-compliant name). More... | |
CImgList< T > & | pop_back () |
Remove last element of the list (STL-compliant name). More... | |
CImgList< T > & | pop_front () |
Remove first element of the list (STL-compliant name). More... | |
CImgList< T > & | erase (const iterator iter) |
Remove the element pointed by iterator iter (STL-compliant name). More... | |
Public Attributes | |
unsigned int | width |
Size of the list (number of images). More... | |
unsigned int | allocated_width |
Allocation size of the list. More... | |
CImg< T > * | data |
Pointer to the first list element. More... | |
Constructors / Destructor / Instance Management | |
~CImgList () | |
Destructor. More... | |
CImgList () | |
Default constructor. More... | |
CImgList (const unsigned int n) | |
Construct an image list containing n empty images. More... | |
CImgList (const unsigned int n, const unsigned int width, const unsigned int height=1, const unsigned int depth=1, const unsigned int dim=1) | |
Construct an image list containing n images with specified size. More... | |
CImgList (const unsigned int n, const unsigned int width, const unsigned int height, const unsigned int depth, const unsigned int dim, const T val) | |
Construct an image list containing n images with specified size, filled with specified value. More... | |
CImgList (const unsigned int n, const unsigned int width, const unsigned int height, const unsigned int depth, const unsigned int dim, const int val0, const int val1,...) | |
Construct an image list containing n images with specified size and specified pixel values (int version). More... | |
CImgList (const unsigned int n, const unsigned int width, const unsigned int height, const unsigned int depth, const unsigned int dim, const double val0, const double val1,...) | |
Construct an image list containing n images with specified size and specified pixel values (double version). More... | |
template<typename t > | |
CImgList (const unsigned int n, const CImg< t > &img, const bool shared=false) | |
Construct a list containing n copies of the image img. More... | |
template<typename t > | |
CImgList (const CImg< t > &img, const bool shared=false) | |
Construct an image list from one image. More... | |
template<typename t1 , typename t2 > | |
CImgList (const CImg< t1 > &img1, const CImg< t2 > &img2, const bool shared=false) | |
Construct an image list from two images. More... | |
template<typename t1 , typename t2 , typename t3 > | |
CImgList (const CImg< t1 > &img1, const CImg< t2 > &img2, const CImg< t3 > &img3, const bool shared=false) | |
Construct an image list from three images. More... | |
template<typename t1 , typename t2 , typename t3 , typename t4 > | |
CImgList (const CImg< t1 > &img1, const CImg< t2 > &img2, const CImg< t3 > &img3, const CImg< t4 > &img4, const bool shared=false) | |
Construct an image list from four images. More... | |
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 > | |
CImgList (const CImg< t1 > &img1, const CImg< t2 > &img2, const CImg< t3 > &img3, const CImg< t4 > &img4, const CImg< t5 > &img5, const bool shared=false) | |
Construct an image list from five images. More... | |
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 , typename t6 > | |
CImgList (const CImg< t1 > &img1, const CImg< t2 > &img2, const CImg< t3 > &img3, const CImg< t4 > &img4, const CImg< t5 > &img5, const CImg< t6 > &img6, const bool shared=false) | |
Construct an image list from six images. More... | |
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 , typename t6 , typename t7 > | |
CImgList (const CImg< t1 > &img1, const CImg< t2 > &img2, const CImg< t3 > &img3, const CImg< t4 > &img4, const CImg< t5 > &img5, const CImg< t6 > &img6, const CImg< t7 > &img7, const bool shared=false) | |
Construct an image list from seven images. More... | |
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 , typename t6 , typename t7 , typename t8 > | |
CImgList (const CImg< t1 > &img1, const CImg< t2 > &img2, const CImg< t3 > &img3, const CImg< t4 > &img4, const CImg< t5 > &img5, const CImg< t6 > &img6, const CImg< t7 > &img7, const CImg< t8 > &img8, const bool shared=false) | |
Construct an image list from eight images. More... | |
template<typename t > | |
CImgList (const CImgList< t > &list) | |
Default copy constructor. More... | |
CImgList (const CImgList< T > &list) | |
template<typename t > | |
CImgList (const CImgList< t > &list, const bool shared) | |
Advanced copy constructor. More... | |
CImgList (const char *const filename) | |
Construct an image list from a filename. More... | |
CImgList (const CImgDisplay &disp) | |
Construct an image list from a display. More... | |
CImgList< T > | get_shared () |
Return a shared instance of the list. More... | |
const CImgList< T > | get_shared () const |
Return a shared instance of the list. More... | |
CImgList< T > & | clear () |
In-place version of the default constructor. More... | |
CImgList< T > & | assign () |
In-place version of the default constructor and default destructor. More... | |
CImgList< T > & | assign (const unsigned int n) |
In-place version of the corresponding constructor. More... | |
CImgList< T > & | assign (const unsigned int n, const unsigned int width, const unsigned int height=1, const unsigned int depth=1, const unsigned int dim=1) |
In-place version of the corresponding constructor. More... | |
CImgList< T > & | assign (const unsigned int n, const unsigned int width, const unsigned int height, const unsigned int depth, const unsigned int dim, const T val) |
In-place version of the corresponding constructor. More... | |
CImgList< T > & | assign (const unsigned int n, const unsigned int width, const unsigned int height, const unsigned int depth, const unsigned int dim, const int val0, const int val1,...) |
In-place version of the corresponding constructor. More... | |
CImgList< T > & | assign (const unsigned int n, const unsigned int width, const unsigned int height, const unsigned int depth, const unsigned int dim, const double val0, const double val1,...) |
In-place version of the corresponding constructor. More... | |
template<typename t > | |
CImgList< T > & | assign (const CImgList< t > &list, const bool shared=false) |
In-place version of the copy constructor. More... | |
template<typename t > | |
CImgList< T > & | assign (const unsigned int n, const CImg< t > &img, const bool shared=false) |
In-place version of the corresponding constructor. More... | |
template<typename t > | |
CImgList< T > & | assign (const CImg< t > &img, const bool shared=false) |
In-place version of the corresponding constructor. More... | |
template<typename t1 , typename t2 > | |
CImgList< T > & | assign (const CImg< t1 > &img1, const CImg< t2 > &img2, const bool shared=false) |
In-place version of the corresponding constructor. More... | |
template<typename t1 , typename t2 , typename t3 > | |
CImgList< T > & | assign (const CImg< t1 > &img1, const CImg< t2 > &img2, const CImg< t3 > &img3, const bool shared=false) |
In-place version of the corresponding constructor. More... | |
template<typename t1 , typename t2 , typename t3 , typename t4 > | |
CImgList< T > & | assign (const CImg< t1 > &img1, const CImg< t2 > &img2, const CImg< t3 > &img3, const CImg< t4 > &img4, const bool shared=false) |
In-place version of the corresponding constructor. More... | |
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 > | |
CImgList< T > & | assign (const CImg< t1 > &img1, const CImg< t2 > &img2, const CImg< t3 > &img3, const CImg< t4 > &img4, const CImg< t5 > &img5, const bool shared=false) |
In-place version of the corresponding constructor. More... | |
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 , typename t6 > | |
CImgList< T > & | assign (const CImg< t1 > &img1, const CImg< t2 > &img2, const CImg< t3 > &img3, const CImg< t4 > &img4, const CImg< t5 > &img5, const CImg< t6 > &img6, const bool shared=false) |
In-place version of the corresponding constructor. More... | |
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 , typename t6 , typename t7 > | |
CImgList< T > & | assign (const CImg< t1 > &img1, const CImg< t2 > &img2, const CImg< t3 > &img3, const CImg< t4 > &img4, const CImg< t5 > &img5, const CImg< t6 > &img6, const CImg< t7 > &img7, const bool shared=false) |
In-place version of the corresponding constructor. More... | |
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 , typename t6 , typename t7 , typename t8 > | |
CImgList< T > & | assign (const CImg< t1 > &img1, const CImg< t2 > &img2, const CImg< t3 > &img3, const CImg< t4 > &img4, const CImg< t5 > &img5, const CImg< t6 > &img6, const CImg< t7 > &img7, const CImg< t8 > &img8, const bool shared=false) |
In-place version of the corresponding constructor. More... | |
CImgList< T > & | assign (const char *const filename) |
In-place version of the corresponding constructor. More... | |
CImgList< T > & | assign (const CImgDisplay &disp) |
In-place version of the corresponding constructor. More... | |
template<typename t > | |
CImgList< T > & | transfer_to (CImgList< t > &list) |
Transfer the content of the instance image list into another one. More... | |
CImgList< T > & | transfer_to (CImgList< T > &list) |
template<typename t > | |
CImgList< t > & | transfer_to (CImgList< t > &list, const unsigned int pos) |
CImgList< T > & | swap (CImgList< T > &list) |
Swap all fields of two CImgList instances (use with care !) More... | |
static CImgList< T > & | empty () |
Return a reference to an empty list. More... | |
Instance Characteristics | |
int | dimx () const |
Return the size of the list. More... | |
unsigned int | size () const |
Return the size of the list. More... | |
CImg< T > * | ptr () |
Return a pointer to the image buffer. More... | |
const CImg< T > * | ptr () const |
CImg< T > * | ptr (const unsigned int l) |
Return a pointer to the image buffer. More... | |
const CImg< T > * | ptr (const unsigned int l) const |
iterator | begin () |
Returns an iterator to the beginning of the vector (STL-compliant name). More... | |
const_iterator | begin () const |
iterator | end () |
Returns an iterator just past the last element (STL-compliant name). More... | |
const_iterator | end () const |
CImg< T > & | front () |
Returns a reference to the first element (STL-compliant name). More... | |
const CImg< T > & | front () const |
const CImg< T > & | back () const |
Return a reference to the last image (STL-compliant name). More... | |
CImg< T > & | back () |
CImg< T > & | at (const int pos) |
Read an image in specified position. More... | |
T & | atNXYZV (const int pos, const int x, const int y, const int z, const int v, const T out_val) |
Read a pixel value with Dirichlet boundary conditions. More... | |
T | atNXYZV (const int pos, const int x, const int y, const int z, const int v, const T out_val) const |
T & | atNXYZV (const int pos, const int x, const int y, const int z, const int v) |
Read a pixel value with Neumann boundary conditions. More... | |
T | atNXYZV (const int pos, const int x, const int y, const int z, const int v) const |
T & | _atNXYZV (const int pos, const int x, const int y, const int z, const int v) |
T | _atNXYZV (const int pos, const int x, const int y, const int z, const int v) const |
T & | atNXYZ (const int pos, const int x, const int y, const int z, const int v, const T out_val) |
Read a pixel value with Dirichlet boundary conditions for the four first coordinates (pos , x ,y ,z ). More... | |
T | atNXYZ (const int pos, const int x, const int y, const int z, const int v, const T out_val) const |
T & | atNXYZ (const int pos, const int x, const int y, const int z, const int v=0) |
Read a pixel value with Neumann boundary conditions for the four first coordinates (pos , x ,y ,z ). More... | |
T | atNXYZ (const int pos, const int x, const int y, const int z, const int v=0) const |
T & | _atNXYZ (const int pos, const int x, const int y, const int z, const int v=0) |
T | _atNXYZ (const int pos, const int x, const int y, const int z, const int v=0) const |
T & | atNXY (const int pos, const int x, const int y, const int z, const int v, const T out_val) |
Read a pixel value with Dirichlet boundary conditions for the three first coordinates (pos , x ,y ). More... | |
T | atNXY (const int pos, const int x, const int y, const int z, const int v, const T out_val) const |
T & | atNXY (const int pos, const int x, const int y, const int z=0, const int v=0) |
Read a pixel value with Neumann boundary conditions for the three first coordinates (pos , x ,y ). More... | |
T | atNXY (const int pos, const int x, const int y, const int z=0, const int v=0) const |
T & | _atNXY (const int pos, const int x, const int y, const int z=0, const int v=0) |
T | _atNXY (const int pos, const int x, const int y, const int z=0, const int v=0) const |
T & | atNX (const int pos, const int x, const int y, const int z, const int v, const T out_val) |
Read a pixel value with Dirichlet boundary conditions for the two first coordinates (pos ,x ). More... | |
T | atNX (const int pos, const int x, const int y, const int z, const int v, const T out_val) const |
T & | atNX (const int pos, const int x, const int y=0, const int z=0, const int v=0) |
Read a pixel value with Neumann boundary conditions for the two first coordinates (pos , x ). More... | |
T | atNX (const int pos, const int x, const int y=0, const int z=0, const int v=0) const |
T & | _atNX (const int pos, const int x, const int y=0, const int z=0, const int v=0) |
T | _atNX (const int pos, const int x, const int y=0, const int z=0, const int v=0) const |
T & | atN (const int pos, const int x, const int y, const int z, const int v, const T out_val) |
Read a pixel value with Dirichlet boundary conditions for the first coordinates (pos ). More... | |
T | atN (const int pos, const int x, const int y, const int z, const int v, const T out_val) const |
T & | atN (const int pos, const int x=0, const int y=0, const int z=0, const int v=0) |
Read a pixel value with Neumann boundary conditions for the first coordinates (pos ). More... | |
T | atN (const int pos, const int x=0, const int y=0, const int z=0, const int v=0) const |
T & | _atN (const int pos, const int x=0, const int y=0, const int z=0, const int v=0) |
T | _atN (const int pos, const int x=0, const int y=0, const int z=0, const int v=0) const |
CImg< charT > | value_string (const char separator=',', const unsigned int max_size=0) const |
Return a C-string containing the values of all images in the instance list. More... | |
static const char * | pixel_type () |
Return a string describing the type of the image pixels in the list (template parameter T ). More... | |
Data Input | |
CImgList< T > & | load (const char *const filename) |
Load an image list from a file. More... | |
CImgList< T > & | load_cimg (const char *const filename) |
Load an image list from a .cimg file. More... | |
CImgList< T > & | load_cimg (std::FILE *const file) |
Load an image list from a .cimg file. More... | |
CImgList< T > & | _load_cimg (std::FILE *const file, const char *const filename) |
CImgList< 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) |
Load a sub-image list from a non compressed .cimg file. More... | |
CImgList< 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) |
Load a sub-image list from a non compressed .cimg file. More... | |
CImgList< T > & | _load_cimg (std::FILE *const file, 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) |
CImgList< T > & | load_parrec (const char *const filename) |
Load an image list from a PAR/REC (Philips) file. More... | |
CImgList< T > & | load_yuv (const char *const filename, const unsigned int sizex, const unsigned int sizey, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool yuv2rgb=true) |
Load an image sequence from a YUV file. More... | |
CImgList< T > & | load_yuv (std::FILE *const file, const unsigned int sizex, const unsigned int sizey, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool yuv2rgb=true) |
Load an image sequence from a YUV file. More... | |
CImgList< T > & | _load_yuv (std::FILE *const file, const char *const filename, const unsigned int sizex, const unsigned int sizey, const unsigned int first_frame, const unsigned int last_frame, const unsigned int step_frame, const bool yuv2rgb) |
CImgList< 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) |
Load an image from a video file, using ffmpeg libraries. More... | |
CImgList< T > & | load_ffmpeg_external (const char *const filename) |
Load an image from a video file (MPEG,AVI) using the external tool 'ffmpeg'. More... | |
CImgList< T > & | load_gzip_external (const char *const filename) |
Load a gzipped list, using external tool 'gunzip'. More... | |
template<typename tf , typename tc > | |
CImgList< T > & | load_off (const char *const filename, CImgList< tf > &primitives, CImgList< tc > &colors) |
Load a 3D object from a .OFF file. More... | |
CImgList< T > & | load_tiff (const char *const filename, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1) |
Load a TIFF file. More... | |
static CImgList< T > | get_load (const char *const filename) |
static CImgList< T > | get_load_cimg (const char *const filename) |
static CImgList< T > | get_load_cimg (std::FILE *const file) |
static CImgList< 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) |
static CImgList< 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) |
static CImgList< T > | get_load_parrec (const char *const filename) |
static CImgList< 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) |
static CImgList< T > | get_load_yuv (std::FILE *const file, const unsigned int sizex, const unsigned int sizey=1, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool yuv2rgb=true) |
static CImgList< 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) |
static CImgList< T > | get_load_ffmpeg_external (const char *const filename) |
static CImgList< T > | get_load_gzip_external (const char *const filename) |
template<typename tf , typename tc > | |
static CImgList< T > | get_load_off (const char *const filename, CImgList< tf > &primitives, CImgList< tc > &colors) |
static CImgList< 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) |
Data Output | |
const CImgList< T > & | print (const char *title=0, const bool display_stats=true) const |
Print informations about the list on the standard output. More... | |
const CImgList< T > & | display (CImgDisplay &disp, const char axis='x', const char align='p') const |
Display the current CImgList instance in an existing CImgDisplay window (by reference). More... | |
const CImgList< T > & | display (CImgDisplay &disp, const bool display_info, const char axis='x', const char align='p') const |
Display the current CImgList instance in a new display window. More... | |
const CImgList< T > & | display (const char *const title=0, const bool display_info=true, const char axis='x', const char align='p') const |
Display the current CImgList instance in a new display window. More... | |
const CImgList< T > & | save (const char *const filename, const int number=-1) const |
Save an image list into a file. More... | |
const CImgList< T > & | save_ffmpeg (const char *const filename, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int fps=25) const |
Save an image sequence, using FFMPEG library. More... | |
const CImgList< T > & | _save_yuv (std::FILE *const file, const char *const filename, const bool rgb2yuv) const |
const CImgList< T > & | save_yuv (const char *const filename=0, const bool rgb2yuv=true) const |
Save an image sequence into a YUV file. More... | |
const CImgList< T > & | save_yuv (std::FILE *const file, const bool rgb2yuv=true) const |
Save an image sequence into a YUV file. More... | |
const CImgList< T > & | _save_cimg (std::FILE *const file, const char *const filename, const bool compression) const |
Save an image list into a .cimg file. More... | |
const CImgList< T > & | save_cimg (std::FILE *file, const bool compress=false) const |
Save an image list into a CImg file (RAW binary file + simple header) More... | |
const CImgList< T > & | save_cimg (const char *const filename, const bool compress=false) const |
Save an image list into a CImg file (RAW binary file + simple header) More... | |
const CImgList< T > & | _save_cimg (std::FILE *const file, 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 |
const CImgList< 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 instance image into into an existing .cimg file, at specified coordinates. More... | |
const CImgList< 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 instance image into into an existing .cimg file, at specified coordinates. More... | |
const CImgList< T > & | save_gzip_external (const char *const filename) const |
Save a file in TIFF format. More... | |
const CImgList< T > & | save_ffmpeg_external (const char *const filename, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const char *const codec="mpeg2video") const |
Save an image sequence using the external tool 'ffmpeg'. More... | |
static void | _save_empty_cimg (std::FILE *const file, const char *const filename, const unsigned int nb, const unsigned int dx, const unsigned int dy, const unsigned int dz, const unsigned int dv) |
static void | save_empty_cimg (const char *const filename, const unsigned int nb, const unsigned int dx, const unsigned int dy=1, const unsigned int dz=1, const unsigned int dv=1) |
Create an empty .cimg file with specified dimensions. More... | |
static void | save_empty_cimg (std::FILE *const file, const unsigned int nb, const unsigned int dx, const unsigned int dy=1, const unsigned int dz=1, const unsigned int dv=1) |
Create an empty .cimg file with specified dimensions. More... | |
Others | |
CImgList< T > & | crop_font () |
Create an auto-cropped font (along the X axis) from a input font font . More... | |
CImgList< T > | get_crop_font () const |
CImgList< T > & | FFT (const char axis, const bool invert=false) |
Compute a 1-D Fast Fourier Transform, along specified axis. More... | |
CImgList< Tfloat > | get_FFT (const char axis, const bool invert=false) const |
CImgList< T > & | FFT (const bool invert=false) |
Compute a N-D Fast Fourier Transform. More... | |
CImgList< Tfloat > | get_FFT (const bool invert=false) const |
CImgList< T > & | reverse_object3d () |
Invert primitives orientation of a 3D object. More... | |
CImgList< T > | get_reverse_object3d () const |
static CImgList< T > | font (const unsigned int font_width, const bool variable_size=true) |
Return a CImg pre-defined font with desired size. More... | |
static CImgList< T > | _font (const unsigned int *const font, const unsigned int w, const unsigned int h, const unsigned int paddingx, const unsigned int paddingy, const bool variable_size=true) |
Class representing list of images CImg<T>.
typedef cimg::last<T,bool>::type boolT |
typedef cimg::last<T,char>::type charT |
typedef const CImg<T>* const_iterator |
Define a CImgList<T>::const_iterator.
typedef cimg::last<T,double>::type doubleT |
typedef cimg::last<T,float>::type floatT |
typedef cimg::last<T,int>::type intT |
Define a CImgList<T>::iterator.
typedef cimg::last<T,long>::type longT |
typedef cimg::last<T,short>::type shortT |
typedef cimg::superset<T,bool>::type Tbool |
typedef cimg::superset<T,char>::type Tchar |
typedef cimg::superset<T,double>::type Tdouble |
typedef cimg::superset<T,float>::type Tfloat |
typedef cimg::superset<T,int>::type Tint |
typedef cimg::superset<T,long>::type Tlong |
typedef cimg::superset<T,short>::type Tshort |
typedef cimg::superset<T,unsigned char>::type Tuchar |
typedef cimg::superset<T,unsigned int>::type Tuint |
typedef cimg::superset<T,unsigned long>::type Tulong |
typedef cimg::superset<T,unsigned short>::type Tushort |
typedef cimg::last<T,unsigned char>::type ucharT |
typedef cimg::last<T,unsigned int>::type uintT |
typedef cimg::last<T,unsigned long>::type ulongT |
typedef cimg::last<T,unsigned short>::type ushortT |
typedef T value_type |
|
inline |
Destructor.
Definition at line 33966 of file CImg.h.
|
inline |
Default constructor.
Definition at line 33971 of file CImg.h.
|
inlineexplicit |
Construct an image list containing n empty images.
Definition at line 33975 of file CImg.h.
|
inline |
Construct an image list containing n images with specified size.
Definition at line 33980 of file CImg.h.
|
inline |
Construct an image list containing n images with specified size, filled with specified value.
Definition at line 33988 of file CImg.h.
|
inline |
Construct an image list containing n images with specified size and specified pixel values (int version).
Definition at line 33996 of file CImg.h.
|
inline |
Construct an image list containing n images with specified size and specified pixel values (double version).
Definition at line 34015 of file CImg.h.
Construct a list containing n copies of the image img.
Definition at line 34023 of file CImg.h.
Construct an image list from one image.
Definition at line 34030 of file CImg.h.
Construct an image list from two images.
Definition at line 34037 of file CImg.h.
|
inline |
Construct an image list from three images.
Definition at line 34044 of file CImg.h.
|
inline |
Construct an image list from four images.
Definition at line 34052 of file CImg.h.
|
inline |
Construct an image list from five images.
Definition at line 34060 of file CImg.h.
|
inline |
Construct an image list from six images.
Definition at line 34070 of file CImg.h.
|
inline |
Construct an image list from seven images.
Definition at line 34080 of file CImg.h.
|
inline |
Construct an image list from eight images.
Definition at line 34090 of file CImg.h.
Default copy constructor.
Definition at line 34100 of file CImg.h.
Definition at line 34105 of file CImg.h.
Advanced copy constructor.
Definition at line 34112 of file CImg.h.
|
inlineexplicit |
Construct an image list from a filename.
Definition at line 34118 of file CImg.h.
|
inlineexplicit |
Construct an image list from a display.
Definition at line 34123 of file CImg.h.
|
inline |
Definition at line 34703 of file CImg.h.
Referenced by CImgList< uintT >::atN().
|
inline |
Definition at line 34707 of file CImg.h.
|
inline |
Definition at line 34671 of file CImg.h.
Referenced by CImgList< uintT >::atNX().
|
inline |
Definition at line 34675 of file CImg.h.
|
inline |
Definition at line 34639 of file CImg.h.
Referenced by CImgList< uintT >::atNXY().
|
inline |
Definition at line 34643 of file CImg.h.
|
inline |
Definition at line 34607 of file CImg.h.
Referenced by CImgList< uintT >::atNXYZ().
|
inline |
Definition at line 34611 of file CImg.h.
|
inline |
Definition at line 34575 of file CImg.h.
Referenced by CImgList< uintT >::atNXYZV().
|
inline |
Definition at line 34579 of file CImg.h.
|
inlinestatic |
Definition at line 37097 of file CImg.h.
Referenced by CImgList< uintT >::font().
|
inline |
Definition at line 35550 of file CImg.h.
Referenced by CImgList< uintT >::load_cimg().
|
inline |
Definition at line 35672 of file CImg.h.
|
inline |
Definition at line 35904 of file CImg.h.
Referenced by CImgList< uintT >::load_yuv().
|
inline |
Save an image list into a .cimg file.
A CImg RAW file is a simple uncompressed binary file that may be used to save list of CImg<T> images.
filename | : name of the output file. |
Definition at line 36700 of file CImg.h.
Referenced by CImgList< uintT >::save_cimg().
|
inline |
Definition at line 36762 of file CImg.h.
|
inlinestatic |
Definition at line 36886 of file CImg.h.
Referenced by CImgList< uintT >::save_empty_cimg().
|
inline |
Definition at line 36661 of file CImg.h.
Referenced by CImgList< uintT >::save_yuv().
|
inline |
In-place version of the default constructor and default destructor.
Definition at line 34151 of file CImg.h.
Referenced by CImg< uintT >::_display_object3d(), CImgList< uintT >::_load_cimg(), CImg< uintT >::_load_off(), CImg< uintT >::append_object3d(), CImgList< uintT >::assign(), CImg< uintT >::box3d(), CImgList< uintT >::CImgList(), CImgList< uintT >::clear(), CImg< uintT >::cone3d(), CImg< uintT >::cylinder3d(), CImg< uintT >::elevation3d(), CImg< uintT >::ellipsoid3d(), CImg< uintT >::get_elevation3d(), CImg< uintT >::get_gradient(), CImg< uintT >::get_hessian(), CImg< uintT >::get_isocurve3d(), CImg< uintT >::get_isosurface3d(), CImg< uintT >::get_split(), CImg< uintT >::isocurve3d(), CImg< uintT >::isosurface3d(), CImgList< uintT >::load(), CImgList< uintT >::load_ffmpeg(), CImgList< uintT >::load_ffmpeg_external(), CImgList< uintT >::load_tiff(), CImgList< uintT >::operator=(), CImg< uintT >::plane3d(), CImgList< uintT >::remove(), CImg< uintT >::sphere3d(), CImg< uintT >::torus3d(), and CImgList< uintT >::transfer_to().
|
inline |
In-place version of the corresponding constructor.
Definition at line 34159 of file CImg.h.
|
inline |
In-place version of the corresponding constructor.
Definition at line 34171 of file CImg.h.
|
inline |
In-place version of the corresponding constructor.
Definition at line 34179 of file CImg.h.
|
inline |
|
inline |
In-place version of the copy constructor.
Definition at line 34202 of file CImg.h.
|
inline |
In-place version of the corresponding constructor.
Definition at line 34210 of file CImg.h.
In-place version of the corresponding constructor.
Definition at line 34218 of file CImg.h.
|
inline |
In-place version of the corresponding constructor.
Definition at line 34226 of file CImg.h.
|
inline |
In-place version of the corresponding constructor.
Definition at line 34234 of file CImg.h.
|
inline |
In-place version of the corresponding constructor.
Definition at line 34242 of file CImg.h.
|
inline |
In-place version of the corresponding constructor.
Definition at line 34251 of file CImg.h.
|
inline |
In-place version of the corresponding constructor.
Definition at line 34261 of file CImg.h.
|
inline |
In-place version of the corresponding constructor.
Definition at line 34271 of file CImg.h.
|
inline |
In-place version of the corresponding constructor.
Definition at line 34281 of file CImg.h.
|
inline |
In-place version of the corresponding constructor.
Definition at line 34291 of file CImg.h.
|
inline |
In-place version of the corresponding constructor.
Definition at line 34296 of file CImg.h.
|
inline |
Read an image in specified position.
Definition at line 34544 of file CImg.h.
|
inline |
Read a pixel value with Dirichlet boundary conditions for the first coordinates (pos
).
Definition at line 34680 of file CImg.h.
|
inline |
Definition at line 34684 of file CImg.h.
|
inline |
Read a pixel value with Neumann boundary conditions for the first coordinates (pos
).
Definition at line 34689 of file CImg.h.
|
inline |
Definition at line 34696 of file CImg.h.
|
inline |
Read a pixel value with Dirichlet boundary conditions for the two first coordinates (pos
,x
).
Definition at line 34648 of file CImg.h.
|
inline |
Definition at line 34652 of file CImg.h.
|
inline |
Read a pixel value with Neumann boundary conditions for the two first coordinates (pos
, x
).
Definition at line 34657 of file CImg.h.
|
inline |
Definition at line 34664 of file CImg.h.
|
inline |
Read a pixel value with Dirichlet boundary conditions for the three first coordinates (pos
, x
,y
).
Definition at line 34616 of file CImg.h.
|
inline |
Definition at line 34620 of file CImg.h.
|
inline |
Read a pixel value with Neumann boundary conditions for the three first coordinates (pos
, x
,y
).
Definition at line 34625 of file CImg.h.
|
inline |
Definition at line 34632 of file CImg.h.
|
inline |
Read a pixel value with Dirichlet boundary conditions for the four first coordinates (pos
, x
,y
,z
).
Definition at line 34584 of file CImg.h.
|
inline |
Definition at line 34588 of file CImg.h.
|
inline |
Read a pixel value with Neumann boundary conditions for the four first coordinates (pos
, x
,y
,z
).
Definition at line 34593 of file CImg.h.
|
inline |
Definition at line 34600 of file CImg.h.
|
inline |
Read a pixel value with Dirichlet boundary conditions.
Definition at line 34552 of file CImg.h.
|
inline |
Definition at line 34556 of file CImg.h.
|
inline |
Read a pixel value with Neumann boundary conditions.
Definition at line 34561 of file CImg.h.
|
inline |
Definition at line 34568 of file CImg.h.
|
inline |
Return a reference to the last image (STL-compliant name).
Definition at line 34535 of file CImg.h.
|
inline |
Definition at line 34539 of file CImg.h.
|
inline |
Returns an iterator to the beginning of the vector (STL-compliant name).
Definition at line 34508 of file CImg.h.
Referenced by CImgList< uintT >::print().
|
inline |
Definition at line 34512 of file CImg.h.
|
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 34146 of file CImg.h.
|
inline |
Return true
if one of the image list contains the specified referenced value. If true, set coordinates (n,x,y,z,v).
Definition at line 34838 of file CImg.h.
Referenced by CImgList< uintT >::contains().
|
inline |
Return true
if one of the image list contains the specified referenced value. If true, set coordinates (n,x,y,z).
Definition at line 34846 of file CImg.h.
|
inline |
Return true
if one of the image list contains the specified referenced value. If true, set coordinates (n,x,y).
Definition at line 34853 of file CImg.h.
|
inline |
Return true
if one of the image list contains the specified referenced value. If true, set coordinates (n,x).
Definition at line 34860 of file CImg.h.
|
inline |
Return true
if one of the image list contains the specified referenced value. If true, set coordinates (n).
Definition at line 34867 of file CImg.h.
|
inline |
Return true
if one of the image list contains the specified referenced value.
Definition at line 34873 of file CImg.h.
|
inline |
Return true
if the list contains the image 'img'. If true, returns the position (n) of the image in the list.
Definition at line 34880 of file CImg.h.
|
inline |
Return true
if the list contains the image img.
Definition at line 34888 of file CImg.h.
|
inline |
Return true
if the list contains the image (n).
Definition at line 34831 of file CImg.h.
|
inline |
Return true
if the list contains the pixel (n,x,y,z,v).
Definition at line 34825 of file CImg.h.
|
inline |
|
inline |
Return the size of the list.
Definition at line 34465 of file CImg.h.
Referenced by CImgList< uintT >::_font(), CImgList< uintT >::_save_yuv(), and cimg_library::cimg::dialog().
|
inline |
Display the current CImgList instance in an existing CImgDisplay window (by reference).
This function displays the list images of the current CImgList instance into an existing CImgDisplay window. Images of the list are concatenated in a single temporarly image for visualization purposes. The function returns immediately.
disp | : reference to an existing CImgDisplay instance, where the current image list will be displayed. |
axis | : specify the axis for image concatenation. Can be 'x','y','z' or 'v'. |
align | : specify the alignment for image concatenation. Can be 'p' (top), 'c' (center) or 'n' (bottom). |
Definition at line 36301 of file CImg.h.
|
inline |
Display the current CImgList instance in a new display window.
This function opens a new window with a specific title and displays the list images of the current CImgList instance into it. Images of the list are concatenated in a single temporarly image for visualization purposes. The function returns when a key is pressed or the display window is closed by the user.
title | : specify the title of the opening display window. |
axis | : specify the axis for image concatenation. Can be 'x','y','z' or 'v'. |
align | : specify the alignment for image concatenation. Can be 'p' (top), 'c' (center) or 'n' (bottom). |
Definition at line 36316 of file CImg.h.
|
inline |
Display the current CImgList instance in a new display window.
Definition at line 36328 of file CImg.h.
|
inlinestatic |
Return a reference to an empty list.
Definition at line 34333 of file CImg.h.
Referenced by cimg_library::cimg::eval().
|
inline |
Returns an iterator just past the last element (STL-compliant name).
Definition at line 34517 of file CImg.h.
Referenced by CImgList< uintT >::print().
|
inline |
Definition at line 34521 of file CImg.h.
Remove the element pointed by iterator iter
(STL-compliant name).
Definition at line 35437 of file CImg.h.
|
inline |
Compute a 1-D Fast Fourier Transform, along specified axis.
Definition at line 37116 of file CImg.h.
Referenced by CImgList< uintT >::get_FFT().
|
inline |
Compute a N-D Fast Fourier Transform.
Definition at line 37130 of file CImg.h.
|
inlinestatic |
Return a CImg pre-defined font with desired size.
font_height | = height of the desired font (can be 11,13,24,38 or 57) |
fixed_size | = tell if the font has a fixed or variable width. |
Definition at line 37048 of file CImg.h.
Referenced by CImgList< uintT >::_font(), and CImg< uintT >::draw_text().
|
inline |
Returns a reference to the first element (STL-compliant name).
Definition at line 34526 of file CImg.h.
|
inline |
Definition at line 34530 of file CImg.h.
|
inline |
Return a single image which is the concatenation of all images of the current CImgList instance.
axis | : specify the axis for image concatenation. Can be 'x','y','z' or 'v'. |
align | : specify the alignment for image concatenation. Can be 'p' (top), 'c' (center) or 'n' (bottom). |
Definition at line 35280 of file CImg.h.
Referenced by CImgDisplay::display(), CImgList< uintT >::display(), CImg< uintT >::load_cimg(), CImg< uintT >::load_parrec(), and CImgList< uintT >::operator>().
|
inline |
Definition at line 37029 of file CImg.h.
Referenced by CImgList< uintT >::crop_font().
Definition at line 37125 of file CImg.h.
Definition at line 37139 of file CImg.h.
|
inline |
Definition at line 35246 of file CImg.h.
Referenced by CImgList< uintT >::images().
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Definition at line 35528 of file CImg.h.
|
inlinestatic |
Definition at line 35537 of file CImg.h.
|
inlinestatic |
Definition at line 35546 of file CImg.h.
|
inlinestatic |
Definition at line 35650 of file CImg.h.
|
inlinestatic |
Definition at line 35665 of file CImg.h.
|
inlinestatic |
Definition at line 36121 of file CImg.h.
|
inlinestatic |
Definition at line 36164 of file CImg.h.
|
inlinestatic |
Definition at line 36200 of file CImg.h.
|
inlinestatic |
Definition at line 36212 of file CImg.h.
Referenced by CImgList< uintT >::load_off().
|
inlinestatic |
Definition at line 35870 of file CImg.h.
|
inlinestatic |
Definition at line 36255 of file CImg.h.
|
inlinestatic |
Definition at line 35882 of file CImg.h.
|
inlinestatic |
Definition at line 35897 of file CImg.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return a shared instance of the list.
Definition at line 34128 of file CImg.h.
|
inline |
Return a shared instance of the list.
Definition at line 34135 of file CImg.h.
|
inline |
Get a shared sub-list.
Definition at line 35256 of file CImg.h.
|
inline |
Definition at line 35265 of file CImg.h.
|
inline |
Definition at line 35396 of file CImg.h.
Referenced by CImgList< uintT >::operator<(), and CImgList< uintT >::split().
|
inline |
Get a sub-list.
Definition at line 35242 of file CImg.h.
|
inline |
Insert a copy of the image img
into the current image list, at position pos
.
Definition at line 35041 of file CImg.h.
Referenced by CImg< uintT >::_display_object3d(), CImg< uintT >::_load_off(), CImgList< uintT >::_load_yuv(), CImg< uintT >::_save_off(), CImg< uintT >::append_object3d(), CImgList< uintT >::FFT(), CImg< uintT >::get_gradient(), CImgList< uintT >::get_insert(), CImg< uintT >::get_split(), CImgList< uintT >::insert(), CImgList< uintT >::operator,(), CImgList< uintT >::push_back(), CImgList< uintT >::push_front(), and CImg< uintT >::transfer_to().
|
inline |
Definition at line 35069 of file CImg.h.
|
inline |
Insert n empty images img into the current image list, at position pos
.
Definition at line 35117 of file CImg.h.
|
inline |
Insert n copies of the image img
into the current image list, at position pos
.
Definition at line 35131 of file CImg.h.
|
inline |
Insert a copy of the image list list
into the current image list, starting from position pos
.
Definition at line 35146 of file CImg.h.
|
inline |
Insert n copies of the list list
at position pos
of the current list.
Definition at line 35160 of file CImg.h.
|
inline |
Return true
if list is empty.
Definition at line 34734 of file CImg.h.
Referenced by CImgList< uintT >::_save_cimg(), CImgList< uintT >::_save_yuv(), CImgList< uintT >::at(), CImgList< uintT >::atN(), CImgList< uintT >::atNX(), CImgList< uintT >::atNXY(), CImgList< uintT >::atNXYZ(), CImgList< uintT >::atNXYZV(), CImgList< uintT >::contains(), CImgList< uintT >::containsN(), CImgList< uintT >::containsNXYZV(), CImgList< uintT >::display(), CImgList< uintT >::FFT(), CImgList< uintT >::get_append(), CImgList< uintT >::load(), CImgList< uintT >::load_ffmpeg_external(), CImgList< uintT >::max(), CImgList< uintT >::maxmin(), CImgList< uintT >::min(), CImgList< uintT >::minmax(), CImgList< uintT >::operator bool(), CImgList< uintT >::save(), CImgList< uintT >::save_ffmpeg(), CImgList< uintT >::save_ffmpeg_external(), CImgList< uintT >::transfer_to(), and CImgList< uintT >::value_string().
|
inline |
Return true
if list if of specified size.
Definition at line 34739 of file CImg.h.
Referenced by CImgList< uintT >::is_sameNXYZV().
|
inline |
Return true
if list if of specified size.
Definition at line 34745 of file CImg.h.
|
inline |
Definition at line 34820 of file CImg.h.
|
inline |
Definition at line 34814 of file CImg.h.
Referenced by CImgList< uintT >::is_sameNXYZV(), and CImgList< uintT >::is_sameXYZV().
|
inline |
Load an image list from a file.
Definition at line 35449 of file CImg.h.
Referenced by CImgList< uintT >::assign(), CImgList< uintT >::get_load(), and CImgList< uintT >::load_gzip_external().
|
inline |
Load an image list from a .cimg file.
Definition at line 35533 of file CImg.h.
Referenced by CImgList< uintT >::get_load_cimg(), CImgList< uintT >::load(), and CImg< uintT >::load_cimg().
|
inline |
Load an image list from a .cimg file.
Definition at line 35542 of file CImg.h.
|
inline |
Load a sub-image list from a non compressed .cimg file.
Definition at line 35643 of file CImg.h.
|
inline |
Load a sub-image list from a non compressed .cimg file.
Definition at line 35658 of file CImg.h.
|
inline |
Load an image from a video file, using ffmpeg libraries.
Definition at line 35980 of file CImg.h.
Referenced by CImgList< uintT >::get_load_ffmpeg(), and CImgList< uintT >::load().
|
inline |
Load an image from a video file (MPEG,AVI) using the external tool 'ffmpeg'.
Definition at line 36127 of file CImg.h.
Referenced by CImgList< uintT >::get_load_ffmpeg_external(), and CImgList< uintT >::load_ffmpeg().
|
inline |
Load a gzipped list, using external tool 'gunzip'.
Definition at line 36169 of file CImg.h.
Referenced by CImgList< uintT >::get_load_gzip_external(), and CImgList< uintT >::load().
|
inline |
Load a 3D object from a .OFF file.
Definition at line 36206 of file CImg.h.
Referenced by CImgList< uintT >::get_load_off().
|
inline |
Load an image list from a PAR/REC (Philips) file.
Definition at line 35781 of file CImg.h.
Referenced by CImgList< uintT >::get_load_parrec(), CImgList< uintT >::load(), and CImg< uintT >::load_parrec().
|
inline |
Load a TIFF file.
Definition at line 36218 of file CImg.h.
Referenced by CImgList< uintT >::get_load_tiff(), and CImgList< uintT >::load().
|
inline |
Load an image sequence from a YUV file.
Definition at line 35875 of file CImg.h.
Referenced by CImgList< uintT >::get_load_yuv().
|
inline |
Load an image sequence from a YUV file.
Definition at line 35890 of file CImg.h.
|
inline |
Return a reference to the maximum pixel value of the instance list.
Definition at line 34928 of file CImg.h.
|
inline |
Definition at line 34941 of file CImg.h.
|
inline |
Return a reference to the minimum pixel value of the instance list.
Definition at line 34995 of file CImg.h.
|
inline |
Definition at line 35014 of file CImg.h.
|
inline |
Return a reference to the minimum pixel value of the instance list.
Definition at line 34901 of file CImg.h.
|
inline |
Definition at line 34914 of file CImg.h.
|
inline |
Return a reference to the minimum pixel value of the instance list.
Definition at line 34956 of file CImg.h.
Referenced by CImg< uintT >::_display_object3d().
|
inline |
Definition at line 34975 of file CImg.h.
|
inline |
Return true
if list is not empty.
Definition at line 34388 of file CImg.h.
|
inline |
|
inline |
|
inline |
Return a reference to (x,y,z,v) pixel of the pos-th image of the list.
Definition at line 34378 of file CImg.h.
|
inline |
Definition at line 34382 of file CImg.h.
|
inline |
Operator,().
Definition at line 34429 of file CImg.h.
Operator,().
Definition at line 34435 of file CImg.h.
|
inline |
Operator<().
Definition at line 34445 of file CImg.h.
Operator=().
Definition at line 34394 of file CImg.h.
|
inline |
Operator=().
Definition at line 34399 of file CImg.h.
Operator=().
Definition at line 34405 of file CImg.h.
Definition at line 34409 of file CImg.h.
|
inline |
Operator=().
Definition at line 34414 of file CImg.h.
|
inline |
Operator>().
Definition at line 34440 of file CImg.h.
|
inline |
Return a reference to the i-th element of the image list.
Definition at line 34346 of file CImg.h.
|
inline |
Definition at line 34357 of file CImg.h.
|
inlinestatic |
Return a string describing the type of the image pixels in the list (template parameter T
).
Definition at line 34460 of file CImg.h.
Referenced by CImgList< uintT >::_load_cimg(), CImgList< uintT >::_load_yuv(), CImgList< uintT >::_save_cimg(), CImgList< uintT >::_save_empty_cimg(), CImgList< uintT >::_save_yuv(), CImgList< uintT >::at(), CImgList< uintT >::atN(), CImgList< uintT >::atNX(), CImgList< uintT >::atNXY(), CImgList< uintT >::atNXYZ(), CImgList< uintT >::atNXYZV(), CImgList< uintT >::display(), CImgList< uintT >::FFT(), CImgList< uintT >::get_append(), CImgList< uintT >::get_images(), CImgList< uintT >::get_shared_images(), CImgList< uintT >::insert(), CImgList< uintT >::load(), CImgList< uintT >::load_ffmpeg(), CImgList< uintT >::load_ffmpeg_external(), CImgList< uintT >::load_gzip_external(), CImgList< uintT >::load_parrec(), CImgList< uintT >::load_tiff(), CImgList< uintT >::max(), CImgList< uintT >::maxmin(), CImgList< uintT >::min(), CImgList< uintT >::minmax(), CImgList< uintT >::operator[](), CImgList< uintT >::print(), CImgList< uintT >::remove(), CImgList< uintT >::save(), CImgList< uintT >::save_ffmpeg(), CImgList< uintT >::save_ffmpeg_external(), and CImgList< uintT >::save_gzip_external().
|
inline |
Remove last element of the list (STL-compliant name).
Definition at line 35427 of file CImg.h.
|
inline |
|
inline |
Print informations about the list on the standard output.
Definition at line 36269 of file CImg.h.
Referenced by CImgList< uintT >::display().
|
inline |
Return a pointer to the image buffer.
Definition at line 34475 of file CImg.h.
Referenced by CImgList< uintT >::max(), CImgList< uintT >::maxmin(), CImgList< uintT >::min(), and CImgList< uintT >::minmax().
|
inline |
Definition at line 34479 of file CImg.h.
|
inline |
Return a pointer to the image buffer.
Definition at line 34498 of file CImg.h.
|
inline |
Definition at line 34502 of file CImg.h.
Insert image img
at the end of the list (STL-compliant name).
Definition at line 35404 of file CImg.h.
Insert list list
at the end of the current list (STL-compliant name).
Definition at line 35416 of file CImg.h.
Insert image img
at the front of the list (STL-compliant name).
Definition at line 35410 of file CImg.h.
Insert list list
at the front of the current list (STL-compliant name).
Definition at line 35422 of file CImg.h.
|
inline |
Remove the images from positions pos1
to pos2
.
Definition at line 35173 of file CImg.h.
Referenced by CImgList< uintT >::get_remove(), and CImg< uintT >::sphere3d().
|
inline |
|
inline |
Remove the last image from the image list.
Definition at line 35220 of file CImg.h.
|
inline |
Reverse list order.
Definition at line 35232 of file CImg.h.
Referenced by CImgList< uintT >::get_reverse().
|
inline |
Invert primitives orientation of a 3D object.
Definition at line 37144 of file CImg.h.
Referenced by CImgList< uintT >::get_reverse_object3d().
|
inline |
Save an image list into a file.
Depending on the extension of the given filename, a file format is chosen for the output file.
Definition at line 36342 of file CImg.h.
Referenced by CImgList< uintT >::save_gzip_external().
|
inline |
Save an image list into a CImg file (RAW binary file + simple header)
Definition at line 36752 of file CImg.h.
Referenced by CImgList< uintT >::save().
|
inline |
Save an image list into a CImg file (RAW binary file + simple header)
Definition at line 36757 of file CImg.h.
|
inline |
Insert the instance image into into an existing .cimg file, at specified coordinates.
Definition at line 36870 of file CImg.h.
|
inline |
Insert the instance image into into an existing .cimg file, at specified coordinates.
Definition at line 36878 of file CImg.h.
|
inlinestatic |
Create an empty .cimg file with specified dimensions.
Definition at line 36901 of file CImg.h.
Referenced by CImg< uintT >::save_empty_cimg().
|
inlinestatic |
Create an empty .cimg file with specified dimensions.
Definition at line 36909 of file CImg.h.
|
inline |
Save an image sequence, using FFMPEG library.
Definition at line 36413 of file CImg.h.
Referenced by CImgList< uintT >::save().
|
inline |
Save an image sequence using the external tool 'ffmpeg'.
Definition at line 36975 of file CImg.h.
Referenced by CImgList< uintT >::save_ffmpeg().
|
inline |
Save a file in TIFF format.
Save an image list as a gzipped file, using external tool 'gzip'.
Definition at line 36943 of file CImg.h.
Referenced by CImgList< uintT >::save().
|
inline |
Save an image sequence into a YUV file.
Definition at line 36685 of file CImg.h.
Referenced by CImgList< uintT >::save().
|
inline |
Save an image sequence into a YUV file.
Definition at line 36690 of file CImg.h.
|
inline |
Return the size of the list.
Definition at line 34470 of file CImg.h.
Referenced by CImg< uintT >::_display_object3d(), CImg< uintT >::_save_off(), CImg< uintT >::draw_spline(), CImgList< uintT >::save_ffmpeg(), and CImgList< uintT >::transfer_to().
|
inline |
Return a list where each image has been split along the specified axis.
Definition at line 35392 of file CImg.h.
Swap all fields of two CImgList instances (use with care !)
Definition at line 34325 of file CImg.h.
Referenced by CImgList< uintT >::reverse(), and CImgList< uintT >::transfer_to().
Transfer the content of the instance image list into another one.
Definition at line 34302 of file CImg.h.
Referenced by cimg_library::cimg::dialog(), CImgList< uintT >::get_crop_font(), CImg< uintT >::load_cimg(), CImg< uintT >::load_parrec(), CImgList< uintT >::load_parrec(), and CImgList< uintT >::value_string().
Definition at line 34309 of file CImg.h.
Definition at line 34315 of file CImg.h.
|
inline |
Return a C-string containing the values of all images in the instance list.
Definition at line 34712 of file CImg.h.
unsigned int allocated_width |
Allocation size of the list.
Definition at line 33886 of file CImg.h.
Referenced by CImgList< uintT >::assign(), CImgList< uintT >::CImgList(), CImgList< uintT >::insert(), CImgList< uintT >::remove(), and CImgList< uintT >::swap().
CImg<T>* data |
Pointer to the first list element.
Definition at line 33889 of file CImg.h.
Referenced by CImgList< uintT >::_atN(), CImgList< uintT >::_atNX(), CImgList< uintT >::_atNXY(), CImgList< uintT >::_atNXYZ(), CImgList< uintT >::_atNXYZV(), CImg< uintT >::_draw_text(), CImgList< uintT >::_save_cimg(), CImgList< uintT >::_save_yuv(), CImgList< uintT >::assign(), CImgList< uintT >::at(), CImgList< uintT >::atNX(), CImgList< uintT >::atNXY(), CImgList< uintT >::atNXYZ(), CImgList< uintT >::atNXYZV(), CImgList< uintT >::back(), CImgList< uintT >::begin(), CImgList< uintT >::CImgList(), CImgList< uintT >::contains(), CImgList< uintT >::containsNXYZV(), CImgList< uintT >::display(), CImgList< uintT >::end(), CImgList< uintT >::erase(), CImgList< uintT >::FFT(), CImgList< uintT >::front(), CImgList< uintT >::get_images(), CImgList< uintT >::get_shared(), CImgList< uintT >::get_shared_images(), CImgList< uintT >::get_split(), CImgList< uintT >::insert(), CImgList< uintT >::is_empty(), CImgList< uintT >::is_sameXYZV(), CImgList< uintT >::load(), CImgList< uintT >::load_tiff(), CImgList< uintT >::max(), CImgList< uintT >::maxmin(), CImgList< uintT >::min(), CImgList< uintT >::minmax(), CImgList< uintT >::operator[](), CImgList< uintT >::print(), CImgList< uintT >::ptr(), CImgList< uintT >::remove(), CImgList< uintT >::reverse_object3d(), CImgList< uintT >::save(), CImgList< uintT >::save_ffmpeg(), CImgList< uintT >::save_ffmpeg_external(), CImgList< uintT >::swap(), CImgList< uintT >::transfer_to(), CImgList< uintT >::value_string(), and CImgList< uintT >::~CImgList().
unsigned int width |
Size of the list (number of images).
Definition at line 33883 of file CImg.h.
Referenced by CImg< uintT >::_display_object3d(), CImg< uintT >::_draw_object3d(), CImg< uintT >::_draw_text(), CImg< uintT >::_load_off(), CImg< uintT >::_save_off(), CImg< uintT >::append_object3d(), CImgDisplay::assign(), CImgList< uintT >::assign(), CImgList< uintT >::CImgList(), CImgList< uintT >::dimx(), CImg< uintT >::draw_line(), CImg< uintT >::draw_object3d(), CImg< uintT >::draw_point(), CImg< uintT >::draw_polygon(), CImg< uintT >::draw_spline(), CImgList< uintT >::end(), CImg< uintT >::is_object3d(), CImg< uintT >::isocurve3d(), CImg< uintT >::isosurface3d(), CImg< uintT >::load_cimg(), CImg< uintT >::load_parrec(), CImgList< uintT >::load_parrec(), CImgList< uintT >::size(), CImg< uintT >::sphere3d(), and CImg< uintT >::transfer_to().