digikam
cimg_library::CImg< T > Struct Template Reference
#include <CImg.h>

Detailed Description
template<typename T>
struct cimg_library::CImg< T >
Class representing an image (up to 4 dimensions wide), each pixel being of type T.
This is the main class of the CImg Library. It declares and constructs an image, allows access to its pixel values, and is able to perform various image operations.
- Image representation
T>, which contains a regular grid of pixels, each pixel value being of type T. The image grid can have up to 4 dimensions : width, height, depth and number of channels. Usually, the three first dimensions are used to describe spatial coordinates (x,y,z), while the number of channels is rather used as a vector-valued dimension (it may describe the R,G,B color channels for instance). If you need a fifth dimension, you can use image lists CImgList<T> rather than simple images CImg<T>.
Thus, the CImg<T> class is able to represent volumetric images of vector-valued pixels, as well as images with less dimensions (1D scalar signal, 2D color images, ...). Most member functions of the class CImg<T> are designed to handle this maximum case of (3+1) dimensions.
Concerning the pixel value type T : fully supported template types are the basic C++ types : unsigned char, char, short, unsigned int, int, unsigned long, long, float, double, ... . Typically, fast image display can be done using CImg<unsigned char> images, while complex image processing algorithms may be rather coded using CImg<float> or CImg<double> images that have floating-point pixel values. The default value for the template T is float. Using your own template types may be possible. However, you will certainly have to define the complete set of arithmetic and logical operators for your class.
- Image structure
T> structure contains six fields :- width defines the number of columns of the image (size along the X-axis).
- height defines the number of rows of the image (size along the Y-axis).
- depth defines the number of slices of the image (size along the Z-axis).
- dim defines the number of channels of the image (size along the V-axis).
- data defines a pointer to the pixel data (of type
T). - is_shared is a boolean that tells if the memory buffer data is shared with another image.
You can access these fields publicly although it is recommended to use the dedicated functions dimx(), dimy(), dimz(), dimv() and ptr() to do so. Image dimensions are not limited to a specific range (as long as you got enough available memory). A value of 1 usually means that the corresponding dimension is flat. If one of the dimensions is 0, or if the data pointer is null, the image is considered as empty. Empty images should not contain any pixel data and thus, will not be processed by CImg member functions (a CImgInstanceException will be thrown instead). Pixel data are stored in memory, in a non interlaced mode (See cimg_storage).
- Image declaration and construction
- Construct images from arbitrary dimensions :
CImg<char> img;declares an empty image.CImg<unsigned char> img(128,128);declares a 128x128 greyscale image withunsignedcharpixel values.CImg<double> img(3,3);declares a 3x3 matrix withdoublecoefficients.CImg<unsigned char> img(256,256,1,3);declares a 256x256x1x3 (color) image (colors are stored as an image with three channels).CImg<double> img(128,128,128);declares a 128x128x128 volumetric and greyscale image (withdoublepixel values).CImg<> img(128,128,128,3);declares a 128x128x128 volumetric color image (withfloatpixels, which is the default value of the template parameterT).- Note : images pixels are not automatically initialized to 0. You may use the function fill() to do it, or use the specific constructor taking 5 parameters like this :
CImg<> img(128,128,128,3,0);declares a 128x128x128 volumetric color image with all pixel values to 0.
- Construct images from filenames :
CImg<unsigned char> img("image.jpg");reads a JPEG color image from the file "image.jpg".CImg<float> img("analyze.hdr");reads a volumetric image (ANALYZE7.5 format) from the file "analyze.hdr".- Note : You need to install ImageMagick to be able to read common compressed image formats (JPG,PNG, ...) (See cimg_files_io).
- Construct images from C-style arrays :
CImg<int> img(data_buffer,256,256);constructs a 256x256 greyscale image from aint*bufferdata_buffer(of size 256x256=65536).CImg<unsigned char> img(data_buffer,256,256,1,3,false);constructs a 256x256 color image from aunsignedchar*bufferdata_buffer(where R,G,B channels follow each others).CImg<unsigned char> img(data_buffer,256,256,1,3,true);constructs a 256x256 color image from aunsignedchar*bufferdata_buffer(where R,G,B channels are multiplexed).
The complete list of constructors can be found here.
- Most useful functions
T> class contains a lot of functions that operates on images. Some of the most useful are :
- operator()(), operator[]() : allows to access or write pixel values.
- display() : displays the image in a new window.
Definition at line 10529 of file CImg.h.
Usual Image Transformations | |
| template<int N, typename t> | |
| CImg< T > & | _fill (const t val0, va_list &ap) |
| CImg< T > & | append (const CImg< T > &img, const char axis='x', const char align='c') |
| CImg< T > & | channel (const unsigned int v0) |
| CImg< T > & | channels (const unsigned int v0, const unsigned int v1) |
| CImg< T > & | column (const unsigned int x0) |
| CImg< T > & | columns (const unsigned int x0, const unsigned int x1) |
| CImg< T > & | crop (const int x0, const int x1, const bool border_condition=false) |
| CImg< T > & | crop (const int x0, const int y0, const int x1, const int y1, const bool border_condition=false) |
| CImg< T > & | crop (const int x0, const int y0, const int z0, const int x1, const int y1, const int z1, const bool border_condition=false) |
| CImg< T > & | crop (const int x0, const int y0, const int z0, const int v0, const int x1, const int y1, const int z1, const int v1, const bool border_condition=false) |
| CImg< T > & | cut (const T a, const T b) |
| CImg< T > & | dijkstra (const unsigned int starting_node, const unsigned int ending_node=~0U) |
| template<typename t> | |
| CImg< T > & | dijkstra (const unsigned int starting_node, const unsigned int ending_node, CImg< t > &previous) |
| CImg< T > & | distance_function (const unsigned int nb_iter=100, const float band_size=0.0f, const float precision=0.5f) |
| CImg< T > & | equalize_histogram (const unsigned int nblevels=256, const T val_min=(T) 0, const T val_max=(T) 0) |
| CImg< T > & | fill (const char *const values, const bool repeat_pattern) |
| template<int N> | |
| CImg< T > & | fill (const double val0,...) |
| template<int N> | |
| CImg< T > & | fill (const int val0,...) |
| CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12, const T val13, const T val14, const T val15) |
| CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12, const T val13, const T val14) |
| CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12, const T val13) |
| CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12) |
| CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11) |
| CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10) |
| CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9) |
| CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8) |
| CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7) |
| CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6) |
| CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5) |
| CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3, const T val4) |
| CImg< T > & | fill (const T val0, const T val1, const T val2, const T val3) |
| CImg< T > & | fill (const T val0, const T val1, const T val2) |
| CImg< T > & | fill (const T val0, const T val1) |
| CImg< T > & | fill (const T val) |
| CImg< T > & | fillV (const unsigned int x, const unsigned int y, const unsigned int z, const double a0,...) |
| CImg< T > & | fillV (const unsigned int x, const unsigned int y, const unsigned int z, const int a0,...) |
| CImg< T > & | fillYZV (const unsigned int x, const double a0,...) |
| CImg< T > & | fillYZV (const unsigned int x, const int a0,...) |
| CImg< T > & | fillZV (const unsigned int x, const unsigned int y, const double a0,...) |
| CImg< T > & | fillZV (const unsigned int x, const unsigned int y, const int a0,...) |
| CImg< T > | get_append (const CImg< T > &img, const char axis='x', const char align='c') const |
| CImg< T > | get_channel (const unsigned int v0) const |
| CImg< T > | get_channels (const unsigned int v0, const unsigned int v1) const |
| CImg< T > | get_column (const unsigned int x0) const |
| CImg< T > | get_columns (const unsigned int x0, const unsigned int x1) const |
| CImg< T > | get_crop (const int x0, const int x1, const bool border_condition=false) const |
| CImg< T > | get_crop (const int x0, const int y0, const int x1, const int y1, const bool border_condition=false) const |
| CImg< T > | get_crop (const int x0, const int y0, const int z0, const int x1, const int y1, const int z1, const bool border_condition=false) const |
| CImg< T > | get_crop (const int x0, const int y0, const int z0, const int v0, const int x1, const int y1, const int z1, const int v1, const bool border_condition=false) const |
| CImg< T > | get_cut (const T a, const T b) const |
| CImg< Tfloat > | get_dijkstra (const unsigned int starting_node, const unsigned int ending_node=~0U) const |
| template<typename t> | |
| CImg< T > | get_dijkstra (const unsigned int starting_node, const unsigned int ending_node, CImg< t > &previous) const |
| CImg< Tfloat > | get_distance_function (const unsigned int nb_iter=100, const float band_size=0.0f, const float precision=0.5f) const |
| CImg< T > | get_equalize_histogram (const unsigned int nblevels=256, const T val_min=(T) 0, const T val_max=(T) 0) const |
| CImg< T > | get_fill (const char *const values, const bool repeat_pattern) const |
| template<int N> | |
| CImg< T > | get_fill (const double val0,...) const |
| template<int N> | |
| CImg< T > | get_fill (const int val0,...) const |
| CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12, const T val13, const T val14, const T val15) const |
| CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12, const T val13, const T val14) const |
| CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12, const T val13) const |
| CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11, const T val12) const |
| CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10, const T val11) const |
| CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9, const T val10) const |
| CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8, const T val9) const |
| CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7, const T val8) const |
| CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6, const T val7) const |
| CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5, const T val6) const |
| CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4, const T val5) const |
| CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3, const T val4) const |
| CImg< T > | get_fill (const T val0, const T val1, const T val2, const T val3) const |
| CImg< T > | get_fill (const T val0, const T val1, const T val2) const |
| CImg< T > | get_fill (const T val0, const T val1) const |
| CImg< T > | get_fill (const T val) const |
| CImgList< Tfloat > | get_gradientXY (const int scheme=0) const |
| CImgList< Tfloat > | get_gradientXYZ (const int scheme=0) const |
| CImgList< Tfloat > | get_hessianXY () |
| CImgList< Tfloat > | get_hessianXYZ () |
| CImg< typename cimg::last< T, float >::type > | get_histogram (const unsigned int nblevels=256, const T val_min=(T) 0, const T val_max=(T) 0) const |
| CImg< typename cimg::last< T, unsigned int >::type > | get_label_regions () const |
| CImg< T > | get_line (const unsigned int y0) const |
| CImg< T > | get_lines (const unsigned int y0, const unsigned int y1) const |
| CImg< T > | get_mirror (const char axe='x') const |
| CImg< Tfloat > | get_norm_pointwise (int norm_type=2) const |
| CImg< T > | get_normalize (const T a, const T b) const |
| CImg< Tfloat > | get_orientation_pointwise () const |
| CImg< T > | get_permute_axes (const char *permut="vxyz") const |
| template<typename t> | |
| CImg< t > | get_permute_axes (const char *permut, const t &) const |
| CImg< T > | get_projections2d (const unsigned int x0, const unsigned int y0, const unsigned int z0, const int dx=-100, const int dy=-100, const int dz=-100) const |
| CImg< T > | get_quantize (const unsigned int n=256, const bool keep_range=true) const |
| CImg< T > | get_resize (const CImgDisplay &disp, const int interpolation_type=1, const int border_condition=-1, const bool center=false) const |
| template<typename t> | |
| CImg< T > | get_resize (const CImg< t > &src, const int interpolation_type=1, const int border_condition=-1, const bool center=false) const |
| CImg< T > | get_resize (const int pdx=-100, const int pdy=-100, const int pdz=-100, const int pdv=-100, const int interpolation_type=1, const int border_condition=-1, const bool center=false) const |
| CImg< T > | get_resize_doubleXY () const |
| CImg< T > | get_resize_halfXY () const |
| CImg< T > | get_resize_tripleXY () const |
| CImg< T > | get_rotate (const float angle, const float cx, const float cy, const float zoom=1, const unsigned int cond=3) const |
| CImg< T > | get_rotate (const float angle, const unsigned int cond=3) const |
| const CImg< T > | get_shared () const |
| CImg< T > | get_shared () |
| const CImg< T > | get_shared_channel (const unsigned int v0) const |
| CImg< T > | get_shared_channel (const unsigned int v0) |
| const CImg< T > | get_shared_channels (const unsigned int v0, const unsigned int v1) const |
| CImg< T > | get_shared_channels (const unsigned int v0, const unsigned int v1) |
| const CImg< T > | get_shared_line (const unsigned int y0, const unsigned int z0=0, const unsigned int v0=0) const |
| CImg< T > | get_shared_line (const unsigned int y0, const unsigned int z0=0, const unsigned int v0=0) |
| const CImg< T > | get_shared_lines (const unsigned int y0, const unsigned int y1, const unsigned int z0=0, const unsigned int v0=0) const |
| CImg< T > | get_shared_lines (const unsigned int y0, const unsigned int y1, const unsigned int z0=0, const unsigned int v0=0) |
| const CImg< T > | get_shared_plane (const unsigned int z0, const unsigned int v0=0) const |
| CImg< T > | get_shared_plane (const unsigned int z0, const unsigned int v0=0) |
| const CImg< T > | get_shared_planes (const unsigned int z0, const unsigned int z1, const unsigned int v0=0) const |
| CImg< T > | get_shared_planes (const unsigned int z0, const unsigned int z1, const unsigned int v0=0) |
| const CImg< T > | get_shared_points (const unsigned int x0, const unsigned int x1, const unsigned int y0=0, const unsigned int z0=0, const unsigned int v0=0) const |
| CImg< T > | get_shared_points (const unsigned int x0, const unsigned int x1, const unsigned int y0=0, const unsigned int z0=0, const unsigned int v0=0) |
| CImg< T > | get_slice (const unsigned int z0) const |
| CImg< T > | get_slices (const unsigned int z0, const unsigned int z1) const |
| CImgList< T > | get_split (const char axe='x', const unsigned int nb=0) const |
| CImg< Tfloat > | get_structure_tensorXY (const int scheme=1) const |
| CImg< Tfloat > | get_structure_tensorXYZ (const int scheme=1) const |
| CImg< typename cimg::last< T, bool >::type > | get_threshold (const T thres, const bool strict=false) const |
| CImg< T > | get_translate (const int deltax, const int deltay=0, const int deltaz=0, const int deltav=0, const int border_condition=0) const |
| CImg< T > & | histogram (const unsigned int nblevels=256, const T val_min=(T) 0, const T val_max=(T) 0) |
| CImg< T > & | label_regions () |
| CImg< T > & | line (const unsigned int y0) |
| CImg< T > & | lines (const unsigned int y0, const unsigned int y1) |
| CImg< T > & | mirror (const char axe='x') |
| CImg< T > & | norm_pointwise (int norm_type=2) |
| CImg< T > & | normalize (const T a, const T b) |
| CImg< T > & | orientation_pointwise () |
| CImg< T > & | permute_axes (const char *order="vxyz") |
| CImg< T > & | projections2d (const unsigned int x0, const unsigned int y0, const unsigned int z0, const int dx=-100, const int dy=-100, const int dz=-100) |
| CImg< T > & | quantize (const unsigned int n=256, const bool keep_range=true) |
| CImg< T > & | resize (const CImgDisplay &disp, const int interpolation_type=1, const int border_condition=-1, const bool center=false) |
| template<typename t> | |
| CImg< T > & | resize (const CImg< t > &src, const int interpolation_type=1, const int border_condition=-1, const bool center=false) |
| CImg< T > & | resize (const int pdx=-100, const int pdy=-100, const int pdz=-100, const int pdv=-100, const int interpolation_type=1, const int border_condition=-1, const bool center=false) |
| CImg< T > & | resize_doubleXY () |
| CImg< T > & | resize_halfXY () |
| CImg< T > & | resize_tripleXY () |
| CImg< T > & | rotate (const float angle, const float cx, const float cy, const float zoom=1, const unsigned int cond=3) |
| CImg< T > & | rotate (const float angle, const unsigned int cond=3) |
| CImg< T > & | slice (const unsigned int z0) |
| CImg< T > & | slices (const unsigned int z0, const unsigned int z1) |
| CImg< T > & | structure_tensorXY (const int scheme=1) |
| CImg< T > & | structure_tensorXYZ (const int scheme=1) |
| CImg< T > & | threshold (const T thres, const bool strict=false) |
| CImg< T > & | translate (const int deltax, const int deltay=0, const int deltaz=0, const int deltav=0, const int border_condition=0) |
| template<typename tf, typename t> | |
| static CImg< T > | get_dijkstra (const tf &distance, const unsigned int nb_nodes, const unsigned int starting_node, const unsigned int ending_node=~0U) |
| template<typename tf, typename t> | |
| static CImg< T > | get_dijkstra (const tf &distance, const unsigned int nb_nodes, const unsigned int starting_node, const unsigned int ending_node, CImg< t > &previous) |
Image File Loading | |
| CImg< T > & | _load_ascii (std::FILE *const file, const char *const filename) |
| CImg< T > & | _load_bmp (std::FILE *const file, const char *const filename) |
| CImg< T > & | _load_dlm (std::FILE *const file, const char *const filename) |
| CImg< T > & | _load_inr (std::FILE *const file, const char *const filename, float *const voxsize) |
| CImg< T > & | _load_jpeg (std::FILE *const file, const char *const filename) |
| template<typename tf, typename tc> | |
| CImg< T > & | _load_off (std::FILE *const file, const char *const filename, CImgList< tf > &primitives, CImgList< tc > &colors, const bool invert_faces) |
| CImg< T > & | _load_pandore (std::FILE *const file, const char *const filename) |
| CImg< T > & | _load_png (std::FILE *const file, const char *const filename) |
| CImg< T > & | _load_pnm (std::FILE *const file, const char *const filename) |
| CImg< T > & | _load_raw (std::FILE *const file, const char *const filename, const unsigned int sizex, const unsigned int sizey, const unsigned int sizez, const unsigned int sizev, const bool multiplexed, const bool invert_endianness) |
| CImg< T > & | _load_rgb (std::FILE *const file, const char *const filename, const unsigned int dimw, const unsigned int dimh) |
| CImg< T > & | _load_rgba (std::FILE *const file, const char *const filename, const unsigned int dimw, const unsigned int dimh) |
| CImg< T > & | load (const char *const filename) |
| CImg< T > & | load_analyze (const char *const filename, float *const voxsize=0) |
| CImg< T > & | load_ascii (std::FILE *const file) |
| CImg< T > & | load_ascii (const char *const filename) |
| CImg< T > & | load_bmp (std::FILE *const file) |
| CImg< T > & | load_bmp (const char *const filename) |
| CImg< T > & | load_cimg (std::FILE *const file, const unsigned int n0, const unsigned int n1, const unsigned int x0, const unsigned int y0, const unsigned int z0, const unsigned int v0, const unsigned int x1, const unsigned int y1, const unsigned int z1, const unsigned int v1, const char axis='z', const char align='p') |
| CImg< T > & | load_cimg (const char *const filename, const unsigned int n0, const unsigned int n1, const unsigned int x0, const unsigned int y0, const unsigned int z0, const unsigned int v0, const unsigned int x1, const unsigned int y1, const unsigned int z1, const unsigned int v1, const char axis='z', const char align='p') |
| CImg< T > & | load_cimg (std::FILE *const file, const char axis='z', const char align='p') |
| CImg< T > & | load_cimg (const char *const filename, const char axis='z', const char align='p') |
| CImg< T > & | load_dlm (std::FILE *const file) |
| CImg< T > & | load_dlm (const char *const filename) |
| CImg< T > & | load_ffmpeg (const char *const filename, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool pixel_format=true, const bool resume=false, const char axis='z', const char align='p') |
| CImg< T > & | load_ffmpeg_external (const char *const filename, const char axis='z', const char align='p') |
| CImg< T > & | load_graphicsmagick_external (const char *const filename) |
| CImg< T > & | load_gzip_external (const char *const filename) |
| CImg< T > & | load_imagemagick_external (const char *const filename) |
| CImg< T > & | load_inr (std::FILE *const file, float *const voxsize=0) |
| CImg< T > & | load_inr (const char *const filename, float *const voxsize=0) |
| CImg< T > & | load_jpeg (std::FILE *const file) |
| CImg< T > & | load_jpeg (const char *const filename) |
| CImg< T > & | load_magick (const char *const filename) |
| CImg< T > & | load_medcon_external (const char *const filename) |
| template<typename tf, typename tc> | |
| CImg< T > & | load_off (std::FILE *const file, CImgList< tf > &primitives, CImgList< tc > &colors, const bool invert_faces=false) |
| template<typename tf, typename tc> | |
| CImg< T > & | load_off (const char *const filename, CImgList< tf > &primitives, CImgList< tc > &colors, const bool invert_faces=false) |
| CImg< T > & | load_other (const char *const filename) |
| CImg< T > & | load_pandore (std::FILE *const file) |
| CImg< T > & | load_pandore (const char *const filename) |
| CImg< T > & | load_parrec (const char *const filename, const char axis='v', const char align='p') |
| CImg< T > & | load_png (std::FILE *const file) |
| CImg< T > & | load_png (const char *const filename) |
| CImg< T > & | load_pnm (std::FILE *const file) |
| CImg< T > & | load_pnm (const char *const filename) |
| CImg< T > & | load_raw (std::FILE *const file, const unsigned int sizex, const unsigned int sizey=1, const unsigned int sizez=1, const unsigned int sizev=1, const bool multiplexed=false, const bool invert_endianness=false) |
| CImg< T > & | load_raw (const char *const filename, const unsigned int sizex, const unsigned int sizey=1, const unsigned int sizez=1, const unsigned int sizev=1, const bool multiplexed=false, const bool invert_endianness=false) |
| CImg< T > & | load_rgb (std::FILE *const file, const unsigned int dimw, const unsigned int dimh=1) |
| CImg< T > & | load_rgb (const char *const filename, const unsigned int dimw, const unsigned int dimh=1) |
| CImg< T > & | load_rgba (std::FILE *const file, const unsigned int dimw, const unsigned int dimh=1) |
| CImg< T > & | load_rgba (const char *const filename, const unsigned int dimw, const unsigned int dimh=1) |
| CImg< T > & | load_tiff (const char *const filename, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1) |
| CImg< T > & | load_yuv (std::FILE *const file, const unsigned int sizex, const unsigned int sizey=1, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool yuv2rgb=true, const char axis='z', const char align='p') |
| CImg< T > & | load_yuv (const char *const filename, const unsigned int sizex, const unsigned int sizey=1, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool yuv2rgb=true, const char axis='z', const char align='p') |
| static void | _load_inr_header (std::FILE *file, int out[8], float *const voxsize) |
| static CImg< T > | get_load (const char *const filename) |
| static CImg< T > | get_load_analyze (const char *const filename, float *const voxsize=0) |
| static CImg< T > | get_load_ascii (std::FILE *const file) |
| static CImg< T > | get_load_ascii (const char *const filename) |
| static CImg< T > | get_load_bmp (std::FILE *const file) |
| static CImg< T > | get_load_bmp (const char *const filename) |
| static CImg< T > | get_load_cimg (std::FILE *const file, const unsigned int n0, const unsigned int n1, const unsigned int x0, const unsigned int y0, const unsigned int z0, const unsigned int v0, const unsigned int x1, const unsigned int y1, const unsigned int z1, const unsigned int v1, const char axis='z', const char align='p') |
| static CImg< T > | get_load_cimg (const char *const filename, const unsigned int n0, const unsigned int n1, const unsigned int x0, const unsigned int y0, const unsigned int z0, const unsigned int v0, const unsigned int x1, const unsigned int y1, const unsigned int z1, const unsigned int v1, const char axis='z', const char align='p') |
| static CImg< T > | get_load_cimg (std::FILE *const file, const char axis='z', const char align='p') |
| static CImg< T > | get_load_cimg (const char *const filename, const char axis='z', const char align='p') |
| static CImg< T > | get_load_dlm (std::FILE *const file) |
| static CImg< T > | get_load_dlm (const char *const filename) |
| static CImg< T > | get_load_ffmpeg (const char *const filename, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool pixel_format=true, const bool resume=false, const char axis='z', const char align='p') |
| static CImg< T > | get_load_ffmpeg_external (const char *const filename, const char axis='z', const char align='p') |
| static CImg< T > | get_load_graphicsmagick_external (const char *const filename) |
| static CImg< T > | get_load_gzip_external (const char *const filename) |
| static CImg< T > | get_load_imagemagick_external (const char *const filename) |
| static CImg< T > | get_load_inr (std::FILE *const file, float *voxsize=0) |
| static CImg< T > | get_load_inr (const char *const filename, float *const voxsize=0) |
| static CImg< T > | get_load_jpeg (std::FILE *const file) |
| static CImg< T > | get_load_jpeg (const char *const filename) |
| static CImg< T > | get_load_magick (const char *const filename) |
| static CImg< T > | get_load_medcon_external (const char *const filename) |
| template<typename tf, typename tc> | |
| static CImg< T > | get_load_off (std::FILE *const file, CImgList< tf > &primitives, CImgList< tc > &colors, const bool invert_faces=false) |
| template<typename tf, typename tc> | |
| static CImg< T > | get_load_off (const char *const filename, CImgList< tf > &primitives, CImgList< tc > &colors, const bool invert_faces=false) |
| static CImg< T > | get_load_other (const char *const filename) |
| static CImg< T > | get_load_pandore (std::FILE *const file) |
| static CImg< T > | get_load_pandore (const char *const filename) |
| static CImg< T > | get_load_parrec (const char *const filename, const char axis='v', const char align='p') |
| static CImg< T > | get_load_png (std::FILE *const file) |
| static CImg< T > | get_load_png (const char *const filename) |
| static CImg< T > | get_load_pnm (std::FILE *const file) |
| static CImg< T > | get_load_pnm (const char *const filename) |
| static CImg< T > | get_load_raw (std::FILE *const file, const unsigned int sizex, const unsigned int sizey=1, const unsigned int sizez=1, const unsigned int sizev=1, const bool multiplexed=false, const bool invert_endianness=false) |
| static CImg< T > | get_load_raw (const char *const filename, const unsigned int sizex, const unsigned int sizey=1, const unsigned int sizez=1, const unsigned int sizev=1, const bool multiplexed=false, const bool invert_endianness=false) |
| static CImg< T > | get_load_rgb (std::FILE *const file, const unsigned int dimw, const unsigned int dimh=1) |
| static CImg< T > | get_load_rgb (const char *const filename, const unsigned int dimw, const unsigned int dimh=1) |
| static CImg< T > | get_load_rgba (std::FILE *const file, const unsigned int dimw, const unsigned int dimh=1) |
| static CImg< T > | get_load_rgba (const char *const filename, const unsigned int dimw, const unsigned int dimh=1) |
| static CImg< T > | get_load_tiff (const char *const filename, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1) |
| static CImg< T > | get_load_yuv (std::FILE *const file, const unsigned int sizex, const unsigned int sizey=1, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool yuv2rgb=true, const char axis='z', const char align='p') |
| static CImg< T > | get_load_yuv (const char *const filename, const unsigned int sizex, const unsigned int sizey=1, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, const bool yuv2rgb=true, const char axis='z', const char align='p') |
Matrix and Vectors | |
| template<typename t> | |
| CImg< T > & | _LU (CImg< t > &indx, bool &d) |
| template<typename t> | |
| CImg< T > & | _quicksort (const int min, const int max, CImg< t > &permutations, const bool increasing) |
| template<typename t, typename ti> | |
| CImg< T > & | _solve (const CImg< t > &A, const CImg< ti > &indx) |
| template<typename t> | |
| CImg< T > & | cross (const CImg< t > &img) |
| CImg< T > & | diagonal () |
| template<typename t> | |
| const CImg< T > & | eigen (CImg< t > &val, CImg< t > &vec) const |
| template<typename t> | |
| CImg< typename cimg::superset < T, t >::type > | get_cross (const CImg< t > &img) const |
| CImg< T > | get_diagonal () const |
| CImgList< Tfloat > | get_eigen () const |
| CImg< T > | get_identity_matrix () const |
| CImg< Tfloat > | get_invert (const bool use_LU=true) const |
| CImg< T > | get_matrix () const |
| CImg< T > | get_matrix_at (const unsigned int x=0, const unsigned int y=0, const unsigned int z=0) const |
| template<typename t> | |
| CImg< T > | get_permute (const CImg< t > &permutation) const |
| CImg< Tfloat > | get_pseudoinvert () const |
| CImg< T > | get_sequence (const T a0, const T a1) const |
| template<typename t> | |
| CImg< typename cimg::superset2 < T, t, float >::type > | get_solve (const CImg< t > &A) const |
| CImg< T > | get_sort (const bool increasing=true) const |
| template<typename t> | |
| CImg< T > | get_sort (CImg< t > &permutations, const bool increasing=true) const |
| CImgList< Tfloat > | get_SVD (const bool sorting=true) const |
| CImgList< Tfloat > | get_symmetric_eigen () const |
| CImg< T > | get_tensor () const |
| CImg< T > | get_tensor_at (const unsigned int x=0, const unsigned int y=0, const unsigned int z=0) const |
| CImg< T > | get_transpose () const |
| CImg< T > | get_unroll (const char axe='x') const |
| CImg< T > | get_vector () const |
| CImg< T > | get_vector_at (const unsigned int x=0, const unsigned int y=0, const unsigned int z=0) const |
| CImg< T > & | identity_matrix () |
| CImg< T > & | invert (const bool use_LU=true) |
| CImg< T > & | matrix () |
| template<typename t> | |
| CImg< T > & | permute (const CImg< t > &permutation) |
| CImg< T > & | pseudoinvert () |
| CImg< T > & | sequence (const T a0, const T a1) |
| template<typename t> | |
| CImg< T > & | set_matrix_at (const CImg< t > &mat, const unsigned int x=0, const unsigned int y=0, const unsigned int z=0) |
| template<typename t> | |
| CImg< T > & | set_tensor_at (const CImg< t > &ten, const unsigned int x=0, const unsigned int y=0, const unsigned int z=0) |
| template<typename t> | |
| CImg< T > & | set_vector_at (const CImg< t > &vec, const unsigned int x=0, const unsigned int y=0, const unsigned int z=0) |
| template<typename t> | |
| CImg< T > & | solve (const CImg< t > &A) |
| CImg< T > & | sort (const bool increasing=true) |
| template<typename t> | |
| CImg< T > & | sort (CImg< t > &permutations, const bool increasing=true) |
| template<typename t> | |
| const CImg< T > & | SVD (CImgList< t > &USV) const |
| template<typename t> | |
| const CImg< T > & | SVD (CImg< t > &U, CImg< t > &S, CImg< t > &V, const bool sorting=true, const unsigned int max_iter=40, const float lambda=0) const |
| template<typename t> | |
| const CImg< T > & | symmetric_eigen (CImg< t > &val, CImg< t > &vec) const |
KDE 4.2 API Reference