#include <image.h>
Inheritance diagram for pandore::Imc2d< T >:

A Imc2d < /code> is a color 2D image. A 2D color image is implemented with three 2D arrays of pixels, where a pixel is of T type.
For the use of Imc2d image see The Images.
Public Types | |
| typedef T | ValueType |
Public Member Functions | |
| Typobj | Type () const |
| std::string | Name () const |
| Imc2d () | |
| Imc2d (Long h, Long w, T *data=0, bool isOwner=false) | |
| Imc2d (const Dimension2d &d, T *data=0, bool isOwner=false) | |
| Imc2d (Long b, const Dimension2d &d, T *data=0, bool isOwner=false) | |
| Imc2d (Long b, Long h, Long w, T *data=0, bool isOwner=false) | |
| Imc2d (const PobjectProps &p, T *data=0, bool isOwner=false) | |
| void | New (Long h, Long w, T *data=0, bool isOwner=false) |
| void | New (Long, Long h, Long w, T *data=0, bool isOwner=false) |
| void | New (const Dimension2d &d, T *data=0, bool isOwner=false) |
| void | New (Long, const Dimension2d &d, T *data=0, bool isOwner=false) |
| void | New (const PobjectProps &p, T *data=0, bool isOwner=false) |
| Pobject * | Clone () const |
| Imc2d< T > & | operator= (const T val) |
| template<typename U> | |
| Imc2d< T > & | operator= (const Imc2d< U > &src) |
| Imc2d< T > & | operator= (const Imc2d< T > &src) |
| ValueType * | VectorX () const |
| ValueType * | VectorY () const |
| ValueType * | VectorZ () const |
| Errc | LoadAttributes (FILE *file) |
| Errc | SaveAttributes (FILE *file) const |
| Imc2d (const Imc2d &ims) | |
Public Attributes | |
| Imx3d< T >::Band2d | X |
| Imx3d< T >::Band2d | Y |
| Imx3d< T >::Band2d | Z |
|
|||||
|
The type of the data (Uchar, Long or Float). Reimplemented from pandore::Imx2d< T >. |
|
|||||||||
|
Creates a new image with no size and no data. |
|
||||||||||||||||||||||||
|
Creates a new image with the specified dimensions, and the specified data. If data = 0 then data are allocated and freed by the image else data are allocated and freed externally.
|
|
||||||||||||||||||||
|
Creates a new image with the specified dimensions, and the specified data. If data = 0 then data are allocated and freed by the image else data are allocated and freed externally.
|
|
||||||||||||||||||||||||
|
Creates a new image with the specified dimensions, and the specified data. If data = 0 then data are allocated and freed by the image else data are allocated and freed externally.
|
|
||||||||||||||||||||||||||||
|
Creates a new image with the specified dimensions, and the specified data. If data = 0 then data are allocated and freed by the image else data are allocated and freed externally.
|
|
||||||||||||||||||||
|
Creates a new image with the specified properties. Allocates therefrom the related data. If data = 0 then data are allocated and freed by the image else data are allocated and freed externally.
|
|
||||||||||
|
Creates the image content by copy. Allocates the related data and sets the values with the ims values. If needed casts the values by using the C casting.
|
|
|||||||||
|
Creates and returns a distinct copy of this object.
Reimplemented from pandore::Imx2d< T >. |
|
||||||||||
|
Loads attribute values from the given file. Allocates therefrom the related data.
Reimplemented from pandore::Imx2d< T >. |
|
|||||||||
|
Returns the type name (for instance Imc2duc or Imc2dsl or Imc2dsf). Reimplemented from pandore::Imx2d< T >. |
|
||||||||||||||||||||
|
Allocates the image data from the specified properties.
Reimplemented from pandore::Imx2d< T >. |
|
||||||||||||||||||||||||
|
Allocates the image data from the specified band number and dimensions and the specified data. If data = 0 then data are allocated and freed by the image else data are allocated and freed externally.
Reimplemented from pandore::Imx2d< T >. |
|
||||||||||||||||||||
|
Allocates the image data from the specified band number and dimensions and the specified data. If data = 0 then data are allocated and freed by the image else data are allocated and freed externally.
|
|
||||||||||||||||||||||||||||
|
Allocates the image data from the specified band number, depth, height and width values and the specified data. If data = 0 then data are allocated and freed by the image else data are allocated and freed externally.
Reimplemented from pandore::Imx2d< T >. |
|
||||||||||||||||||||||||
|
Allocates the image data from the specified band number, depth, height and width values and the specified data. If data = 0 then data are allocated and freed by the image else data are allocated and freed externally.
|
|
||||||||||
|
Sets the pixel values with the pixel values of the given image. This supposes that images have the same dimensions.
|
|
||||||||||||||
|
Sets the pixel values with the pixel values of the given image. This supposes that images have the same dimensions.
|
|
||||||||||
|
Sets all pixels with the given value.
Reimplemented from pandore::Imx2d< T >. |
|
||||||||||
|
Saves the current attribute values in the specified file.
Reimplemented from pandore::Imx2d< T >. |
|
|||||||||
|
Returns the identifier of the object (ie. the magic number). Reimplemented from pandore::Imx2d< T >. |
|
|||||||||
|
Returns the X band of the image data as a unique vector (eg. Red for RGB color image). |
|
|||||||||
|
Returns the Y band of the image data as a unique vector (eg. Green for RGB color image). |
|
|||||||||
|
Returns the Z band of the image data as a unique vector (eg. Blue for RGB color image). |
|
|||||
|
The X band ( eg. Red for RGB color image) of the color image. |
|
|||||
|
The Y band (eg. Green for RGB color image) of the color image. |
|
|||||
|
The Z band (eg. Blue for RGB color image) of the color image. |