#include <image.h>
Inheritance diagram for pandore::Imx2d< T >:
A Imx2d < /code> is a multispectral 2D image. A 2D multispectral image is implemented as n 2D arrays of pixels, where a pixel is of T type and n is the number of bands.
For the use of Imx2d images see The Images.
Public Types | |
typedef T | ValueType |
Public Member Functions | |
Typobj | Type () const |
std::string | Name () const |
Dimension2d | Size () const |
Imx2d () | |
Imx2d (Long b, Long h, Long w, T *data=0, bool isOwner=false) | |
Imx2d (Long b, const Dimension2d &d, T *data=0, bool isOwner=false) | |
Imx2d (const PobjectProps &p, T *data=0, bool isOwner=false) | |
void | New (Long b, Long h, Long w, T *data=0, bool isOwner=false) |
void | New (Long b, const Dimension2d &d, T *data=0, bool isOwner=false) |
void | New (const PobjectProps &p, T *data=0, bool isOwner=false) |
Pobject * | Clone () const |
Imx2d< T > & | operator= (const T val) |
template<typename U> | |
Imx2d< T > & | operator= (const Imx2d< U > &src) |
Imx2d< T > & | operator= (const Imx2d< T > &src) |
T * | Vector (Long band=0) const |
Imx3d< T >::Band2d | operator[] (Long band) |
const Imx3d< T >::Band2d | operator[] (Long band) const |
T & | operator() (Long b, Long y, Long x) |
const T & | operator() (Long b, Long y, Long x) const |
const T & | operator() (Long b, Point2d &p) const |
T & | operator() (Long b, Point2d &p) |
Errc | LoadAttributes (FILE *file) |
Errc | SaveAttributes (FILE *file) const |
Pobject * | Mask (const Pobject *mask) |
Pobject * | UnMask (const Pobject *mask, const Pobject *reference) |
bool | Hold (Long y, Long x) const |
bool | Hold (const Point2d &pt) const |
Errc | Frame (ValueType val, Long h) |
Errc | Frame (ValueType val, Long h, Long l) |
template<typename U> | |
Errc | Frame (const Imx2d< U > &ims, Long h) |
template<typename U> | |
Errc | Frame (const Imx2d< U > &ims, Long h, Long l) |
Imx2d (const Imx2d &ims) |
|
The type of the data (Uchar, Long or Float). Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Img2d< T >, pandore::Imc2d< T >, pandore::Reg2d, and pandore::Img2d< Long >. |
|
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.
|
|
Allocates the image data from the specified properties. 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::Imx3d< T >. Reimplemented in pandore::Img2d< T >, pandore::Imc2d< T >, pandore::Reg2d, and pandore::Img2d< Long >. |
|
Fills the specified border of the image with the related value of the specified image.
|
|
Fills the specified border of the image with the related value of the specified image.
|
|
Fills the specified border of the image with the specified value.
|
|
Fills the specified border of the image with the specified value.
Reimplemented from pandore::Imx3d< T >. |
|
Checks if the image contains the point.
|
|
Checks if the image contains the point at the specified location (x, y).
|
|
Loads attribute values from the given file. Allocates therefrom the related data.
Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Imc2d< T >, and pandore::Reg2d. |
|
Masks the data from the given mask. It means that pixels are set to 0 when the related label in the mask is 0.
Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Reg2d. |
|
Returns the type name (for instance Imx2duc or Imx2dsl or Imx2dsf). Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Img2d< T >, pandore::Imc2d< T >, pandore::Reg2d, and pandore::Img2d< Long >. |
|
Allocates the image data from the specified properties. If data=0 then data are allocated and freed by the image else data are allocated and freed externally.
Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Img2d< T >, pandore::Imc2d< T >, and pandore::Img2d< Long >. |
|
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 in pandore::Imc2d< 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.
Reimplemented in pandore::Imc2d< T >. |
|
Returns the pixel value at the specified coordinates.
|
|
Returns the pixel value at the specified coordinates.
|
|
Returns the pixel value at the specified coordinates.
|
|
Returns the pixel value at the specified coordinates.
|
|
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::Imx3d< T >. Reimplemented in pandore::Img2d< T >, pandore::Imc2d< T >, and pandore::Img2d< Long >. |
|
Returns the specified band of the image data as a unique vector.
Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Img2d< T >, pandore::Reg2d, and pandore::Img2d< Long >. |
|
Returns the specified band of the image data as a unique vector.
Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Img2d< T >, pandore::Reg2d, and pandore::Img2d< Long >. |
|
Saves the current attribute values in the specified file.
Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Imc2d< T >, and pandore::Reg2d. |
|
Returns the dimension of the image. Reimplemented from pandore::Imx3d< T >. |
|
Returns the identifier of the object (ie. the magic number). Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Img2d< T >, pandore::Imc2d< T >, pandore::Reg2d, and pandore::Img2d< Long >. |
|
Unmasks the data from the given mask. It means that pixels are set to the pixel value of the reference image when the related label in the mask is 0.
Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Reg2d. |
|
Returns the specified band of the image data as a unique vector.
Reimplemented from pandore::Imx3d< T >. |