cimg_library::CImgList< T > Struct Template Reference

Class representing list of images CImg<T>. More...

#include <Robots/SeaBeeIII/Sonar/CImg.h>

List of all members.

Public Types

typedef CImg< T > * iterator
 Define a CImgList<T>::iterator.
typedef const CImg< T > * const_iterator
 Define a CImgList<T>::const_iterator.
typedef T value_type
 Value type.
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.
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 c=0)
 Return a reference to (x,y,z,c) pixel of the pos-th image of the list.
const T & operator() (const unsigned int pos, const unsigned int x, const unsigned int y=0, const unsigned int z=0, const unsigned int c=0) const
 operator const CImg< T > * () const
 Return address of the image vector.
 operator CImg< T > * ()
template<typename t >
CImgList< T > & operator= (const CImg< t > &img)
 Operator=().
CImgList< T > & operator= (const CImgDisplay &disp)
 Operator=().
template<typename t >
CImgList< T > & operator= (const CImgList< t > &list)
 Operator=().
CImgList< T > & operator= (const CImgList< T > &list)
CImgList< T > & operator= (const char *const filename)
 Operator=().
CImgList< T > operator+ () const
 Operator+() (unary).
template<typename t >
CImgList< T > & operator, (const CImg< t > &img)
 Operator,().
template<typename t >
CImgList< T > & operator, (const CImgList< t > &list)
 Operator,().
CImg< T > operator> (const char axis) const
 Operator>().
CImgList< T > operator< (const char axis) const
 Operator<().

Public Attributes

unsigned int _width
 Size of the list (number of images).
unsigned int _allocated_width
 Allocation size of the list.
CImg< T > * _data
 Pointer to the first list element.

Instance Checking



Y C C Y
Y C C Z Z
Y C C Z C const unsigned int dy
Y C C Z C const unsigned int
const unsigned int 
dz
bool is_empty () const
 Return true if list is empty.
bool is_sameN (const unsigned int n) const
 Return true if list if of specified size.
template<typename t >
bool is_sameN (const CImgList< t > &list) const
 Return true if list if of specified size.
 _cimglist_def_is_same (XY) _cimglist_def_is_same(XZ) _cimglist_def_is_same(XC) _cimglist_def_is_same(YZ) _cimglist_def_is_same(YC) _cimglist_def_is_same(XYZ) _cimglist_def_is_same(XYC) _cimglist_def_is_same(YZC) _cimglist_def_is_same(XYZC) _cimglist_def_is_same1(X) _cimglist_def_is_same1(Y) _cimglist_def_is_same1(Z) _cimglist_def_is_same1(C) _cimglist_def_is_same2(X
_cimglist_def_is_same2 (X, Z) _cimglist_def_is_same2(X
Y C _cimglist_def_is_same2 (Y, Z) _cimglist_def_is_same2(Y
Y C C _cimglist_def_is_same2 (Z, C) _cimglist_def_is_same3(X
Y C C Z _cimglist_def_is_same3 (X, Y, C) _cimglist_def_is_same3(X
Y C C Z C _cimglist_def_is_same3 (Y, Z, C) bool is_sameXYZC(const unsigned int dx
tc CImgList< T > & load_off (const char *const filename, CImgList< tf > &primitives, CImgList< tc > &colors)
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.
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)

Constructors / Destructor / Instance Management



 ~CImgList ()
 Destructor.
 CImgList ()
 Default constructor.
 CImgList (const unsigned int n)
 Construct an image list containing n empty images.
 CImgList (const unsigned int n, const unsigned int width, const unsigned int height=1, const unsigned int depth=1, const unsigned int spectrum=1)
 Construct an image list containing n images with specified size.
 CImgList (const unsigned int n, const unsigned int width, const unsigned int height, const unsigned int depth, const unsigned int spectrum, const T val)
 Construct an image list containing n images with specified size, filled with specified value.
 CImgList (const unsigned int n, const unsigned int width, const unsigned int height, const unsigned int depth, const unsigned int spectrum, const int val0, const int val1,...)
 Construct an image list containing n images with specified size and specified pixel values (int version).
 CImgList (const unsigned int n, const unsigned int width, const unsigned int height, const unsigned int depth, const unsigned int spectrum, const double val0, const double val1,...)
 Construct an image list containing n images with specified size and specified pixel values (double version).
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.
template<typename t >
 CImgList (const CImg< t > &img, const bool shared=false)
 Construct an image list from one image.
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.
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.
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.
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.
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.
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.
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.
template<typename t >
 CImgList (const CImgList< t > &list)
 Default copy constructor.
 CImgList (const CImgList< T > &list)
template<typename t >
 CImgList (const CImgList< t > &list, const bool shared)
 Advanced copy constructor.
 CImgList (const char *const filename)
 Construct an image list from a filename.
 CImgList (const CImgDisplay &disp)
 Construct an image list from a display.
CImgList< T > get_shared ()
 Return a shared instance of the list.
const CImgList< T > get_shared () const
 Return a shared instance of the list.
CImgList< T > & clear ()
 In-place version of the default constructor.
CImgList< T > & assign ()
 In-place version of the default constructor and default destructor.
CImgList< T > & assign (const unsigned int n)
 In-place version of the corresponding constructor.
CImgList< T > & assign (const unsigned int n, const unsigned int width, const unsigned int height=1, const unsigned int depth=1, const unsigned int spectrum=1)
 In-place version of the corresponding constructor.
CImgList< T > & assign (const unsigned int n, const unsigned int width, const unsigned int height, const unsigned int depth, const unsigned int spectrum, const T val)
 In-place version of the corresponding constructor.
CImgList< T > & assign (const unsigned int n, const unsigned int width, const unsigned int height, const unsigned int depth, const unsigned int spectrum, const int val0, const int val1,...)
 In-place version of the corresponding constructor.
CImgList< T > & assign (const unsigned int n, const unsigned int width, const unsigned int height, const unsigned int depth, const unsigned int spectrum, const double val0, const double val1,...)
 In-place version of the corresponding constructor.
template<typename t >
CImgList< T > & assign (const CImgList< t > &list, const bool shared=false)
 In-place version of the copy constructor.
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.
template<typename t >
CImgList< T > & assign (const CImg< t > &img, const bool shared=false)
 In-place version of the corresponding constructor.
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.
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.
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.
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.
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.
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.
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.
CImgList< T > & assign (const char *const filename)
 In-place version of the corresponding constructor.
CImgList< T > & assign (const CImgDisplay &disp)
 In-place version of the corresponding constructor.
template<typename t >
CImgList< T > & move_to (CImgList< t > &list)
 Move the content of the instance image list into another one.
CImgList< T > & move_to (CImgList< T > &list)
template<typename t >
CImgList< t > & move_to (CImgList< t > &list, const unsigned int pos)
CImgList< T > & swap (CImgList< T > &list)
 Swap all fields of two CImgList instances (use with care !).
static CImgList< T > & empty ()
 Return a reference to an empty list.

Instance Characteristics



int width () const
 Return the size of the list.
unsigned int size () const
 Return the size of the list.
CImg< T > * data ()
 Return a pointer to the image buffer.
const CImg< T > * data () const
CImg< T > * data (const unsigned int l)
 Return a pointer to the image buffer.
const CImg< T > * data (const unsigned int l) const
iterator begin ()
 Returns an iterator to the beginning of the vector (STL-compliant name).
const_iterator begin () const
iterator end ()
 Returns an iterator just past the last element (STL-compliant name).
const_iterator end () const
CImg< T > & front ()
 Returns a reference to the first element (STL-compliant name).
const CImg< T > & front () const
const CImg< T > & back () const
 Return a reference to the last image (STL-compliant name).
CImg< T > & back ()
CImg< T > & at (const int pos)
 Read an image in specified position.
T & atNXYZC (const int pos, const int x, const int y, const int z, const int c, const T out_val)
 Read a pixel value with Dirichlet boundary conditions.
atNXYZC (const int pos, const int x, const int y, const int z, const int c, const T out_val) const
T & atNXYZC (const int pos, const int x, const int y, const int z, const int c)
 Read a pixel value with Neumann boundary conditions.
atNXYZC (const int pos, const int x, const int y, const int z, const int c) const
T & _atNXYZC (const int pos, const int x, const int y, const int z, const int c)
_atNXYZC (const int pos, const int x, const int y, const int z, const int c) const
T & atNXYZ (const int pos, const int x, const int y, const int z, const int c, const T out_val)
 Read a pixel value with Dirichlet boundary conditions for the four first coordinates (pos, x,y,z).
atNXYZ (const int pos, const int x, const int y, const int z, const int c, const T out_val) const
T & atNXYZ (const int pos, const int x, const int y, const int z, const int c=0)
 Read a pixel value with Neumann boundary conditions for the four first coordinates (pos, x,y,z).
atNXYZ (const int pos, const int x, const int y, const int z, const int c=0) const
T & _atNXYZ (const int pos, const int x, const int y, const int z, const int c=0)
_atNXYZ (const int pos, const int x, const int y, const int z, const int c=0) const
T & atNXY (const int pos, const int x, const int y, const int z, const int c, const T out_val)
 Read a pixel value with Dirichlet boundary conditions for the three first coordinates (pos, x,y).
atNXY (const int pos, const int x, const int y, const int z, const int c, const T out_val) const
T & atNXY (const int pos, const int x, const int y, const int z=0, const int c=0)
 Read a pixel value with Neumann boundary conditions for the three first coordinates (pos, x,y).
atNXY (const int pos, const int x, const int y, const int z=0, const int c=0) const
T & _atNXY (const int pos, const int x, const int y, const int z=0, const int c=0)
_atNXY (const int pos, const int x, const int y, const int z=0, const int c=0) const
T & atNX (const int pos, const int x, const int y, const int z, const int c, const T out_val)
 Read a pixel value with Dirichlet boundary conditions for the two first coordinates (pos,x).
atNX (const int pos, const int x, const int y, const int z, const int c, const T out_val) const
T & atNX (const int pos, const int x, const int y=0, const int z=0, const int c=0)
 Read a pixel value with Neumann boundary conditions for the two first coordinates (pos, x).
atNX (const int pos, const int x, const int y=0, const int z=0, const int c=0) const
T & _atNX (const int pos, const int x, const int y=0, const int z=0, const int c=0)
_atNX (const int pos, const int x, const int y=0, const int z=0, const int c=0) const
T & atN (const int pos, const int x, const int y, const int z, const int c, const T out_val)
 Read a pixel value with Dirichlet boundary conditions for the first coordinates (pos).
atN (const int pos, const int x, const int y, const int z, const int c, const T out_val) const
T & atN (const int pos, const int x=0, const int y=0, const int z=0, const int c=0)
 Read a pixel value with Neumann boundary conditions for the first coordinates (pos).
atN (const int pos, const int x=0, const int y=0, const int z=0, const int c=0) const
T & _atN (const int pos, const int x=0, const int y=0, const int z=0, const int c=0)
_atN (const int pos, const int x=0, const int y=0, const int z=0, const int c=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.
static const char * pixel_type ()
 Return a string describing the type of the image pixels in the list (template parameter T).

Data Output



const CImgList< T > & print (const char *const title=0, const bool display_stats=true) const
 Print informations about the list on the standard output.
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).
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.
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.
const CImgList< T > & save (const char *const filename, const int number=-1) const
 Save an image list into a file.
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.
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.
const CImgList< T > & save_yuv (std::FILE *const file, const bool rgb2yuv=true) const
 Save an image sequence into a YUV file.
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.
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).
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).
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 c0) 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 c0) const
 Insert the instance image into into an existing .cimg file, at specified coordinates.
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 c0) const
 Insert the instance image into into an existing .cimg file, at specified coordinates.
const CImgList< T > & save_gzip_external (const char *const filename) const
 Save a file in TIFF format.
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'.
static bool is_saveable (const char *const filename)
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 dc)
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 dc=1)
 Create an empty .cimg file with specified dimensions.
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 dc=1)
 Create an empty .cimg file with specified dimensions.

Others



CImgList< T > & crop_font ()
 Create an auto-cropped font (along the X axis) from a input font font.
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.
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.
CImgList< Tfloat > get_FFT (const bool invert=false) const
CImgList< T > & reverse_object3d ()
 Invert primitives orientation of a 3d object.
CImgList< T > get_reverse_object3d () const
static const CImgList< T > & font (const unsigned int font_height, const bool variable_size=true)
 Return a CImg pre-defined font with desired size.
static CImgList< T > _font (const unsigned int *const font, const unsigned int w, const unsigned int h, const bool variable_size)

Detailed Description

template<typename T>
struct cimg_library::CImgList< T >

Class representing list of images CImg<T>.

Definition at line 35564 of file CImg.h.


Member Typedef Documentation

template<typename T>
typedef const CImg<T>* cimg_library::CImgList< T >::const_iterator

Define a CImgList<T>::const_iterator.

Definition at line 35579 of file CImg.h.

template<typename T>
typedef CImg<T>* cimg_library::CImgList< T >::iterator

Define a CImgList<T>::iterator.

Definition at line 35576 of file CImg.h.

template<typename T>
typedef T cimg_library::CImgList< T >::value_type

Value type.

Definition at line 35582 of file CImg.h.


Constructor & Destructor Documentation

template<typename T>
cimg_library::CImgList< T >::~CImgList (  )  [inline]

Destructor.

Definition at line 35650 of file CImg.h.

template<typename T>
cimg_library::CImgList< T >::CImgList (  )  [inline]

Default constructor.

Definition at line 35655 of file CImg.h.

template<typename T>
cimg_library::CImgList< T >::CImgList ( const unsigned int  n  )  [inline, explicit]

Construct an image list containing n empty images.

Definition at line 35659 of file CImg.h.

template<typename T>
cimg_library::CImgList< T >::CImgList ( const unsigned int  n,
const unsigned int  width,
const unsigned int  height = 1,
const unsigned int  depth = 1,
const unsigned int  spectrum = 1 
) [inline]

Construct an image list containing n images with specified size.

Definition at line 35665 of file CImg.h.

template<typename T>
cimg_library::CImgList< T >::CImgList ( const unsigned int  n,
const unsigned int  width,
const unsigned int  height,
const unsigned int  depth,
const unsigned int  spectrum,
const T  val 
) [inline]

Construct an image list containing n images with specified size, filled with specified value.

Definition at line 35673 of file CImg.h.

template<typename T>
cimg_library::CImgList< T >::CImgList ( const unsigned int  n,
const unsigned int  width,
const unsigned int  height,
const unsigned int  depth,
const unsigned int  spectrum,
const int  val0,
const int  val1,
  ... 
) [inline]

Construct an image list containing n images with specified size and specified pixel values (int version).

Definition at line 35681 of file CImg.h.

template<typename T>
cimg_library::CImgList< T >::CImgList ( const unsigned int  n,
const unsigned int  width,
const unsigned int  height,
const unsigned int  depth,
const unsigned int  spectrum,
const double  val0,
const double  val1,
  ... 
) [inline]

Construct an image list containing n images with specified size and specified pixel values (double version).

Definition at line 35700 of file CImg.h.

template<typename T>
template<typename t >
cimg_library::CImgList< T >::CImgList ( const unsigned int  n,
const CImg< t > &  img,
const bool  shared = false 
) [inline]

Construct a list containing n copies of the image img.

Definition at line 35708 of file CImg.h.

template<typename T>
template<typename t >
cimg_library::CImgList< T >::CImgList ( const CImg< t > &  img,
const bool  shared = false 
) [inline, explicit]

Construct an image list from one image.

Definition at line 35716 of file CImg.h.

template<typename T>
template<typename t1 , typename t2 >
cimg_library::CImgList< T >::CImgList ( const CImg< t1 > &  img1,
const CImg< t2 > &  img2,
const bool  shared = false 
) [inline]

Construct an image list from two images.

Definition at line 35724 of file CImg.h.

template<typename T>
template<typename t1 , typename t2 , typename t3 >
cimg_library::CImgList< T >::CImgList ( const CImg< t1 > &  img1,
const CImg< t2 > &  img2,
const CImg< t3 > &  img3,
const bool  shared = false 
) [inline]

Construct an image list from three images.

Definition at line 35732 of file CImg.h.

template<typename T>
template<typename t1 , typename t2 , typename t3 , typename t4 >
cimg_library::CImgList< T >::CImgList ( const CImg< t1 > &  img1,
const CImg< t2 > &  img2,
const CImg< t3 > &  img3,
const CImg< t4 > &  img4,
const bool  shared = false 
) [inline]

Construct an image list from four images.

Definition at line 35740 of file CImg.h.

template<typename T>
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 >
cimg_library::CImgList< T >::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 
) [inline]

Construct an image list from five images.

Definition at line 35748 of file CImg.h.

template<typename T>
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 , typename t6 >
cimg_library::CImgList< T >::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 
) [inline]

Construct an image list from six images.

Definition at line 35758 of file CImg.h.

template<typename T>
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 , typename t6 , typename t7 >
cimg_library::CImgList< T >::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 
) [inline]

Construct an image list from seven images.

Definition at line 35768 of file CImg.h.

template<typename T>
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 , typename t6 , typename t7 , typename t8 >
cimg_library::CImgList< T >::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 
) [inline]

Construct an image list from eight images.

Definition at line 35778 of file CImg.h.

template<typename T>
template<typename t >
cimg_library::CImgList< T >::CImgList ( const CImgList< t > &  list  )  [inline]

Default copy constructor.

Definition at line 35788 of file CImg.h.

template<typename T>
template<typename t >
cimg_library::CImgList< T >::CImgList ( const CImgList< t > &  list,
const bool  shared 
) [inline]

Advanced copy constructor.

Definition at line 35800 of file CImg.h.

template<typename T>
cimg_library::CImgList< T >::CImgList ( const char *const   filename  )  [inline, explicit]

Construct an image list from a filename.

Definition at line 35806 of file CImg.h.

template<typename T>
cimg_library::CImgList< T >::CImgList ( const CImgDisplay disp  )  [inline, explicit]

Construct an image list from a display.

Definition at line 35811 of file CImg.h.


Member Function Documentation

template<typename T>
const CImgList<T>& cimg_library::CImgList< T >::_save_cimg ( std::FILE *const   file,
const char *const   filename,
const bool  compression 
) const [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.

Parameters:
filename : name of the output file.
Returns:
A reference to the current CImgList instance is returned.

Definition at line 38580 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::assign ( const CImgDisplay disp  )  [inline]

In-place version of the corresponding constructor.

Definition at line 35984 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::assign ( const char *const   filename  )  [inline]

In-place version of the corresponding constructor.

Definition at line 35979 of file CImg.h.

template<typename T>
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 , typename t6 , typename t7 , typename t8 >
CImgList<T>& cimg_library::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 
) [inline]

In-place version of the corresponding constructor.

Definition at line 35969 of file CImg.h.

template<typename T>
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 , typename t6 , typename t7 >
CImgList<T>& cimg_library::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 
) [inline]

In-place version of the corresponding constructor.

Definition at line 35959 of file CImg.h.

template<typename T>
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 , typename t6 >
CImgList<T>& cimg_library::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 
) [inline]

In-place version of the corresponding constructor.

Definition at line 35949 of file CImg.h.

template<typename T>
template<typename t1 , typename t2 , typename t3 , typename t4 , typename t5 >
CImgList<T>& cimg_library::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 
) [inline]

In-place version of the corresponding constructor.

Definition at line 35939 of file CImg.h.

template<typename T>
template<typename t1 , typename t2 , typename t3 , typename t4 >
CImgList<T>& cimg_library::CImgList< T >::assign ( const CImg< t1 > &  img1,
const CImg< t2 > &  img2,
const CImg< t3 > &  img3,
const CImg< t4 > &  img4,
const bool  shared = false 
) [inline]

In-place version of the corresponding constructor.

Definition at line 35930 of file CImg.h.

template<typename T>
template<typename t1 , typename t2 , typename t3 >
CImgList<T>& cimg_library::CImgList< T >::assign ( const CImg< t1 > &  img1,
const CImg< t2 > &  img2,
const CImg< t3 > &  img3,
const bool  shared = false 
) [inline]

In-place version of the corresponding constructor.

Definition at line 35922 of file CImg.h.

template<typename T>
template<typename t1 , typename t2 >
CImgList<T>& cimg_library::CImgList< T >::assign ( const CImg< t1 > &  img1,
const CImg< t2 > &  img2,
const bool  shared = false 
) [inline]

In-place version of the corresponding constructor.

Definition at line 35914 of file CImg.h.

template<typename T>
template<typename t >
CImgList<T>& cimg_library::CImgList< T >::assign ( const CImg< t > &  img,
const bool  shared = false 
) [inline]

In-place version of the corresponding constructor.

Definition at line 35906 of file CImg.h.

template<typename T>
template<typename t >
CImgList<T>& cimg_library::CImgList< T >::assign ( const unsigned int  n,
const CImg< t > &  img,
const bool  shared = false 
) [inline]

In-place version of the corresponding constructor.

Definition at line 35898 of file CImg.h.

template<typename T>
template<typename t >
CImgList<T>& cimg_library::CImgList< T >::assign ( const CImgList< t > &  list,
const bool  shared = false 
) [inline]

In-place version of the copy constructor.

Definition at line 35890 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::assign ( const unsigned int  n,
const unsigned int  width,
const unsigned int  height,
const unsigned int  depth,
const unsigned int  spectrum,
const double  val0,
const double  val1,
  ... 
) [inline]

In-place version of the corresponding constructor.

Definition at line 35882 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::assign ( const unsigned int  n,
const unsigned int  width,
const unsigned int  height,
const unsigned int  depth,
const unsigned int  spectrum,
const int  val0,
const int  val1,
  ... 
) [inline]

In-place version of the corresponding constructor.

Definition at line 35875 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::assign ( const unsigned int  n,
const unsigned int  width,
const unsigned int  height,
const unsigned int  depth,
const unsigned int  spectrum,
const T  val 
) [inline]

In-place version of the corresponding constructor.

Definition at line 35867 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::assign ( const unsigned int  n,
const unsigned int  width,
const unsigned int  height = 1,
const unsigned int  depth = 1,
const unsigned int  spectrum = 1 
) [inline]

In-place version of the corresponding constructor.

Definition at line 35859 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::assign ( const unsigned int  n  )  [inline]

In-place version of the corresponding constructor.

Definition at line 35847 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::assign (  )  [inline]
template<typename T>
CImg<T>& cimg_library::CImgList< T >::at ( const int  pos  )  [inline]

Read an image in specified position.

Definition at line 36221 of file CImg.h.

template<typename T>
T& cimg_library::CImgList< T >::atN ( const int  pos,
const int  x = 0,
const int  y = 0,
const int  z = 0,
const int  c = 0 
) [inline]

Read a pixel value with Neumann boundary conditions for the first coordinates (pos).

Definition at line 36384 of file CImg.h.

template<typename T>
T& cimg_library::CImgList< T >::atN ( const int  pos,
const int  x,
const int  y,
const int  z,
const int  c,
const T  out_val 
) [inline]

Read a pixel value with Dirichlet boundary conditions for the first coordinates (pos).

Definition at line 36375 of file CImg.h.

template<typename T>
T& cimg_library::CImgList< T >::atNX ( const int  pos,
const int  x,
const int  y = 0,
const int  z = 0,
const int  c = 0 
) [inline]

Read a pixel value with Neumann boundary conditions for the two first coordinates (pos, x).

Definition at line 36348 of file CImg.h.

template<typename T>
T& cimg_library::CImgList< T >::atNX ( const int  pos,
const int  x,
const int  y,
const int  z,
const int  c,
const T  out_val 
) [inline]

Read a pixel value with Dirichlet boundary conditions for the two first coordinates (pos,x).

Definition at line 36339 of file CImg.h.

template<typename T>
T& cimg_library::CImgList< T >::atNXY ( const int  pos,
const int  x,
const int  y,
const int  z = 0,
const int  c = 0 
) [inline]

Read a pixel value with Neumann boundary conditions for the three first coordinates (pos, x,y).

Definition at line 36312 of file CImg.h.

template<typename T>
T& cimg_library::CImgList< T >::atNXY ( const int  pos,
const int  x,
const int  y,
const int  z,
const int  c,
const T  out_val 
) [inline]

Read a pixel value with Dirichlet boundary conditions for the three first coordinates (pos, x,y).

Definition at line 36303 of file CImg.h.

template<typename T>
T& cimg_library::CImgList< T >::atNXYZ ( const int  pos,
const int  x,
const int  y,
const int  z,
const int  c = 0 
) [inline]

Read a pixel value with Neumann boundary conditions for the four first coordinates (pos, x,y,z).

Definition at line 36276 of file CImg.h.

template<typename T>
T& cimg_library::CImgList< T >::atNXYZ ( const int  pos,
const int  x,
const int  y,
const int  z,
const int  c,
const T  out_val 
) [inline]

Read a pixel value with Dirichlet boundary conditions for the four first coordinates (pos, x,y,z).

Definition at line 36267 of file CImg.h.

template<typename T>
T& cimg_library::CImgList< T >::atNXYZC ( const int  pos,
const int  x,
const int  y,
const int  z,
const int  c 
) [inline]

Read a pixel value with Neumann boundary conditions.

Definition at line 36240 of file CImg.h.

template<typename T>
T& cimg_library::CImgList< T >::atNXYZC ( const int  pos,
const int  x,
const int  y,
const int  z,
const int  c,
const T  out_val 
) [inline]

Read a pixel value with Dirichlet boundary conditions.

Definition at line 36231 of file CImg.h.

template<typename T>
const CImg<T>& cimg_library::CImgList< T >::back (  )  const [inline]

Return a reference to the last image (STL-compliant name).

Definition at line 36212 of file CImg.h.

Referenced by cimg_library::CImg< charT >::is_object3d().

template<typename T>
iterator cimg_library::CImgList< T >::begin (  )  [inline]

Returns an iterator to the beginning of the vector (STL-compliant name).

Definition at line 36185 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::clear ( void   )  [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 35834 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::crop_font (  )  [inline]

Create an auto-cropped font (along the X axis) from a input font font.

Definition at line 38951 of file CImg.h.

template<typename T>
CImg<T>* cimg_library::CImgList< T >::data ( const unsigned int  l  )  [inline]

Return a pointer to the image buffer.

Definition at line 36175 of file CImg.h.

template<typename T>
CImg<T>* cimg_library::CImgList< T >::data (  )  [inline]

Return a pointer to the image buffer.

Definition at line 36150 of file CImg.h.

template<typename T>
const CImgList<T>& cimg_library::CImgList< T >::display ( const char *const   title = 0,
const bool  display_info = true,
const char  axis = 'x',
const char  align = 'p' 
) const [inline]

Display the current CImgList instance in a new display window.

Definition at line 38116 of file CImg.h.

template<typename T>
const CImgList<T>& cimg_library::CImgList< T >::display ( CImgDisplay disp,
const bool  display_info,
const char  axis = 'x',
const char  align = 'p' 
) const [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.

Parameters:
title : specify the title of the opening display window.
axis : specify the axis for image concatenation. Can be 'x','y','z' or 'c'.
align : specify the alignment for image concatenation. Can be 'p' (top), 'c' (center) or 'n' (bottom).
Returns:
A reference to the current CImgList instance is returned.

Definition at line 38102 of file CImg.h.

template<typename T>
const CImgList<T>& cimg_library::CImgList< T >::display ( CImgDisplay disp,
const char  axis = 'x',
const char  align = 'p' 
) const [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.

Parameters:
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 'c'.
align : specify the alignment for image concatenation. Can be 'p' (top), 'c' (center) or 'n' (bottom).
Returns:
A reference to the current CImgList instance is returned.

Definition at line 38087 of file CImg.h.

Referenced by cimg_library::CImgList< charT >::display().

template<typename T>
static CImgList<T>& cimg_library::CImgList< T >::empty (  )  [inline, static]

Return a reference to an empty list.

Definition at line 36021 of file CImg.h.

template<typename T>
iterator cimg_library::CImgList< T >::end (  )  [inline]

Returns an iterator just past the last element (STL-compliant name).

Definition at line 36194 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::FFT ( const bool  invert = false  )  [inline]

Compute a n-d Fast Fourier Transform.

Definition at line 39039 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::FFT ( const char  axis,
const bool  invert = false 
) [inline]

Compute a 1-D Fast Fourier Transform, along specified axis.

Definition at line 39022 of file CImg.h.

template<typename T>
static const CImgList<T>& cimg_library::CImgList< T >::font ( const unsigned int  font_height,
const bool  variable_size = true 
) [inline, static]

Return a CImg pre-defined font with desired size.

Parameters:
font_height = height of the desired font (exact match for 11,13,17,19,24,32,38,57)
fixed_size = tell if the font has a fixed or variable width.

Definition at line 38975 of file CImg.h.

template<typename T>
CImg<T>& cimg_library::CImgList< T >::front (  )  [inline]

Returns a reference to the first element (STL-compliant name).

Definition at line 36203 of file CImg.h.

template<typename T>
const CImgList<T> cimg_library::CImgList< T >::get_shared (  )  const [inline]

Return a shared instance of the list.

Definition at line 35823 of file CImg.h.

template<typename T>
CImgList<T> cimg_library::CImgList< T >::get_shared (  )  [inline]

Return a shared instance of the list.

Definition at line 35816 of file CImg.h.

template<typename T>
bool cimg_library::CImgList< T >::is_empty (  )  const [inline]

Return true if list is empty.

Definition at line 36431 of file CImg.h.

template<typename T>
template<typename t >
bool cimg_library::CImgList< T >::is_sameN ( const CImgList< t > &  list  )  const [inline]

Return true if list if of specified size.

Definition at line 36442 of file CImg.h.

template<typename T>
bool cimg_library::CImgList< T >::is_sameN ( const unsigned int  n  )  const [inline]

Return true if list if of specified size.

Definition at line 36436 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::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 
) [inline]

Load a TIFF file.

Definition at line 37993 of file CImg.h.

template<typename T>
template<typename t >
CImgList<T>& cimg_library::CImgList< T >::move_to ( CImgList< t > &  list  )  [inline]

Move the content of the instance image list into another one.

Definition at line 35990 of file CImg.h.

Referenced by cimg_library::CImgList< charT >::crop_font(), cimg_library::CImg< charT >::load_cimg(), and cimg_library::CImg< charT >::load_parrec().

template<typename T>
cimg_library::CImgList< T >::operator const CImg< T > * (  )  const [inline]

Return address of the image vector.

Definition at line 36062 of file CImg.h.

template<typename T>
T& cimg_library::CImgList< T >::operator() ( const unsigned int  pos,
const unsigned int  x,
const unsigned int  y = 0,
const unsigned int  z = 0,
const unsigned int  c = 0 
) [inline]

Return a reference to (x,y,z,c) pixel of the pos-th image of the list.

Definition at line 36052 of file CImg.h.

template<typename T>
CImg<T>& cimg_library::CImgList< T >::operator() ( const unsigned int  pos  )  [inline]

Return a reference to the i-th element of the image list.

Definition at line 36034 of file CImg.h.

template<typename T>
CImgList<T> cimg_library::CImgList< T >::operator+ (  )  const [inline]

Operator+() (unary).

Writting '+list' is a convenient shortcut to 'CImgList<T>(list,false)' (forces a copy with non-shared elements).

Definition at line 36101 of file CImg.h.

template<typename T>
template<typename t >
CImgList<T>& cimg_library::CImgList< T >::operator, ( const CImgList< t > &  list  )  [inline]

Operator,().

Definition at line 36113 of file CImg.h.

template<typename T>
template<typename t >
CImgList<T>& cimg_library::CImgList< T >::operator, ( const CImg< t > &  img  )  [inline]

Operator,().

Definition at line 36107 of file CImg.h.

template<typename T>
CImgList<T> cimg_library::CImgList< T >::operator< ( const char  axis  )  const [inline]

Operator<().

Definition at line 36123 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::operator= ( const char *const   filename  )  [inline]

Operator=().

Definition at line 36092 of file CImg.h.

template<typename T>
template<typename t >
CImgList<T>& cimg_library::CImgList< T >::operator= ( const CImgList< t > &  list  )  [inline]

Operator=().

Definition at line 36083 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::operator= ( const CImgDisplay disp  )  [inline]

Operator=().

Definition at line 36077 of file CImg.h.

template<typename T>
template<typename t >
CImgList<T>& cimg_library::CImgList< T >::operator= ( const CImg< t > &  img  )  [inline]

Operator=().

Definition at line 36072 of file CImg.h.

template<typename T>
CImg<T> cimg_library::CImgList< T >::operator> ( const char  axis  )  const [inline]

Operator>().

Definition at line 36118 of file CImg.h.

template<typename T>
static const char* cimg_library::CImgList< T >::pixel_type (  )  [inline, static]

Return a string describing the type of the image pixels in the list (template parameter T).

Definition at line 36135 of file CImg.h.

template<typename T>
const CImgList<T>& cimg_library::CImgList< T >::print ( const char *const   title = 0,
const bool  display_stats = true 
) const [inline]

Print informations about the list on the standard output.

Definition at line 38051 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::reverse_object3d (  )  [inline]

Invert primitives orientation of a 3d object.

Definition at line 39056 of file CImg.h.

template<typename T>
const CImgList<T>& cimg_library::CImgList< T >::save ( const char *const   filename,
const int  number = -1 
) const [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 38130 of file CImg.h.

template<typename T>
const CImgList<T>& cimg_library::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  c0 
) const [inline]

Insert the instance image into into an existing .cimg file, at specified coordinates.

Definition at line 38770 of file CImg.h.

template<typename T>
const CImgList<T>& cimg_library::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  c0 
) const [inline]

Insert the instance image into into an existing .cimg file, at specified coordinates.

Definition at line 38762 of file CImg.h.

template<typename T>
const CImgList<T>& cimg_library::CImgList< T >::save_cimg ( const char *const   filename,
const bool  compress = false 
) const [inline]

Save an image list into a CImg file (RAW binary file + simple header).

Definition at line 38642 of file CImg.h.

template<typename T>
const CImgList<T>& cimg_library::CImgList< T >::save_cimg ( std::FILE *  file,
const bool  compress = false 
) const [inline]

Save an image list into a CImg file (RAW binary file + simple header).

Definition at line 38637 of file CImg.h.

template<typename T>
static void cimg_library::CImgList< T >::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  dc = 1 
) [inline, static]

Create an empty .cimg file with specified dimensions.

Definition at line 38801 of file CImg.h.

template<typename T>
static void cimg_library::CImgList< T >::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  dc = 1 
) [inline, static]

Create an empty .cimg file with specified dimensions.

Definition at line 38793 of file CImg.h.

template<typename T>
const CImgList<T>& cimg_library::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 [inline]

Save an image sequence, using FFMPEG library.

Definition at line 38232 of file CImg.h.

template<typename T>
const CImgList<T>& cimg_library::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 [inline]

Save an image sequence using the external tool 'ffmpeg'.

Definition at line 38887 of file CImg.h.

template<typename T>
const CImgList<T>& cimg_library::CImgList< T >::save_gzip_external ( const char *const   filename  )  const [inline]

Save a file in TIFF format.

Save an image list as a gzipped file, using external tool 'gzip'.

Definition at line 38841 of file CImg.h.

template<typename T>
const CImgList<T>& cimg_library::CImgList< T >::save_yuv ( std::FILE *const   file,
const bool  rgb2yuv = true 
) const [inline]

Save an image sequence into a YUV file.

Definition at line 38570 of file CImg.h.

template<typename T>
const CImgList<T>& cimg_library::CImgList< T >::save_yuv ( const char *const   filename = 0,
const bool  rgb2yuv = true 
) const [inline]

Save an image sequence into a YUV file.

Definition at line 38565 of file CImg.h.

template<typename T>
unsigned int cimg_library::CImgList< T >::size (  )  const [inline]

Return the size of the list.

Definition at line 36145 of file CImg.h.

template<typename T>
CImgList<T>& cimg_library::CImgList< T >::swap ( CImgList< T > &  list  )  [inline]

Swap all fields of two CImgList instances (use with care !).

Definition at line 36013 of file CImg.h.

template<typename T>
CImg<charT> cimg_library::CImgList< T >::value_string ( const char  separator = ',',
const unsigned int  max_size = 0 
) const [inline]

Return a C-string containing the values of all images in the instance list.

Definition at line 36409 of file CImg.h.

template<typename T>
int cimg_library::CImgList< T >::width (  )  const [inline]

Return the size of the list.

Definition at line 36140 of file CImg.h.


Member Data Documentation

template<typename T>
unsigned int cimg_library::CImgList< T >::_allocated_width

Allocation size of the list.

Definition at line 35570 of file CImg.h.

Referenced by cimg_library::CImgList< charT >::swap().

template<typename T>
CImg<T>* cimg_library::CImgList< T >::_data

Pointer to the first list element.

Definition at line 35573 of file CImg.h.

Referenced by cimg_library::CImgList< charT >::swap().

template<typename T>
unsigned int cimg_library::CImgList< T >::_width

The documentation for this struct was generated from the following file:
Generated on Sun May 8 08:28:45 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3