#include <Image.h>
Static Public Methods | |
| template<class T, class U> util::Matrix< T > | convolve (const util::Matrix< T > &mat, const ConvolutionMask< U > &mask, BorderAction borderAction=BORDER_CROP) throw (ImageException&) |
| Perform a two-dimensional convolution on the matrix using the given convolution mask. | |
| template<class T> util::List< util::Matrix< T > > | split (const util::Matrix< T > &mat, int width, int height, int startx=0, int starty=0) |
| Split an matrix into sub-matrices. | |
| template<class T, class U> util::List< util::Matrix< T > > | split (const util::Matrix< T > &mat, const util::Matrix< U > &mask, int width, int height, util::List< std::string > &coordinates, U value=-1) throw (ImageException&) |
| Split an matrix into sub-matrices. | |
| template<class T> util::Matrix< T > | scaleRange (const util::Matrix< T > &input, T max) |
| Scale the values in a matrix to the range [0,max]. | |
| template<class T> util::Matrix< T > | invert (const util::Matrix< T > &image) |
| Invert the values in an image. | |
| template<class T, class U> void | mask (util::Matrix< T > &mat, const util::Matrix< U > &mask) |
| Perform a mask operation on an image. | |
| template<class T, int comps> util::Matrix< T > | getChannel (int c, const util::Matrix< Color< T, comps > > &mat) |
| Get a color channel from a multi-channel image. | |
| template<class T, int comps> void | setChannel (int c, const util::Matrix< T > &chn, util::Matrix< Color< T, comps > > &mat) throw (ImageException&) |
| Set a color channel in a multi-channel image. | |
| template<class T, int comps> util::Matrix< Color< double, comps > > | normalize (const util::Matrix< Color< T, comps > > &mat) |
| Normalize a color image. | |
| template<class T, class U, int comps> util::Matrix< Color< double, comps > > | transform (const util::Matrix< Color< U, comps > > &mat, const util::Matrix< T > &tr) throw (util::MatrixException&) |
| Premultiply each color in a multi-channel color image by a matrix. | |
| template<class T, int comps> util::Matrix< T > | average (const util::Matrix< Color< T, comps > > &mat) |
| Get a one-channel average (intensity) image from a multi-channel color image. | |
| util::Matrix< Color< double, 3 > > | XYZToCIELAB (const util::Matrix< Color< double, 3 > > &mat, const Color< double, 3 > &whitePoint) |
| Convert a color image from the CIE XYZ color space to CIE LAB. | |
| template<class T> util::Matrix< Color< T, 3 > > | RGBToHSV (const util::Matrix< Color< T, 3 > > &mat) |
| Convert an image in the RGB color space to HSV. | |
| template<class T> util::Matrix< Color< T, 3 > > | HSVToRGB (const util::Matrix< Color< T, 3 > > &mat) |
| Convert an image in the HSV color space to RGB. | |
|
||||||||||
|
Get a one-channel average (intensity) image from a multi-channel color image. The returned image is of the same size as the input image, and contains the average of each color channel at each pixel. |
|
||||||||||||||||||||
|
Perform a two-dimensional convolution on the matrix using the given convolution mask.
|
|
||||||||||||||||
|
Get a color channel from a multi-channel image.
|
|
||||||||||
|
Convert an image in the HSV color space to RGB.
|
|
||||||||||
|
Invert the values in an image. The inversion is performed by finding the maximum value, and subtracting all pixel values from it. |
|
||||||||||||||||
|
Perform a mask operation on an image. Sets all pixels in mat to zero that have a corresponding zero in mask. Mat and mask must be of equal sizes.
|
|
||||||||||
|
Normalize a color image. Return an image where each color channel has been divided by the sum of all channels. |
|
||||||||||
|
Convert an image in the RGB color space to HSV.
|
|
||||||||||||||||||||
|
Set a color channel in a multi-channel image.
|
|
||||||||||||||||||||||||||||||||
|
Split an matrix into sub-matrices. The maximum number of sub-matrices is taken starting from the first possible left corner, which means first place where are 1 in the binary matrix. The sub-matrices are stored in a list in horizontal raster-scan order.
|
|
||||||||||||||||||||||||||||
|
Split an matrix into sub-matrices. The maximum number of sub-matrices is taken starting from the given upper left corner. The sub-matrices are stored in a list in horizontal raster-scan order.
|
|
||||||||||||||||
|
Premultiply each color in a multi-channel color image by a matrix. Return a new image with each color value transformed by the linear tranformation. |
|
||||||||||||
|
Convert a color image from the CIE XYZ color space to CIE LAB.
|