#include <image.h>
Inheritance diagram for pandore::Img2d< T >:
A Img2d < /code> is a gray level 2D image. A 2D gray level image is implemented as one 2D array of pixels, where a pixel is of T type.
For the use of Img2d images see The Images.
Public Types | |
typedef T | ValueType |
Public Member Functions | |
Typobj | Type () const |
std::string | Name () const |
Img2d () | |
Img2d (Long h, Long w, T *data=0, bool isOwner=false) | |
Img2d (const Dimension2d &d, T *data=0, bool isOwner=false) | |
Img2d (const PobjectProps &p, T *data=0, bool isOwner=false) | |
void | New (Long h, Long w, T *data=0, bool isOwner=false) |
void | New (const Dimension2d &d, T *data=0, bool isOwner=false) |
void | New (const PobjectProps &p, T *data=0, bool isOwner=false) |
Pobject * | Clone () const |
Img2d< T > & | operator= (const T val) |
template<typename U> | |
Img2d< T > & | operator= (const Img2d< U > &src) |
Img2d< T > & | operator= (const Img2d< T > &src) |
ValueType * | Vector () const |
Imx3d< T >::Band1d | operator[] (Long row) |
const Imx3d< T >::Band1d | operator[] (Long row) const |
ValueType & | operator() (Long y, Long x) |
const ValueType & | operator() (Long y, Long x) const |
ValueType & | operator[] (const Point2d &p) |
const ValueType & | operator[] (const Point2d &p) const |
ValueType & | operator() (int, const Point2d &p) |
const ValueType & | operator() (int, const Point2d &p) const |
ValueType & | operator() (const Point2d &p) |
const ValueType & | operator() (const Point2d &p) const |
Img2d (const Img2d &ims) |
|
The type of the data (Uchar, Long or Float). Reimplemented from pandore::Imx2d< T >. Reimplemented in pandore::Reg2d. |
|
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 dimension, 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 >. Reimplemented in pandore::Reg2d. |
|
Returns the type name (for instance Img2duc or Img2dsl or Img2dsf). Reimplemented from pandore::Imx2d< T >. Reimplemented in pandore::Reg2d. |
|
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::Imx2d< T >. |
|
Sets the image data with the specified vector of data If data = 0 then data are allocated and freed by the image else data are allocated and freed externally.
|
|
Sets the image data with the specified vector of data If data = 0 then data are allocated and freed by the image else data are allocated and freed externally.
|
|
Returns the pixel at the specified coordinates.
|
|
Returns the pixel at the specified coordinates.
|
|
Returns the pixel at the specified coordinates.
|
|
Returns the pixel at the specified coordinates.
|
|
Returns the pixel value at the specified coordinates.
Reimplemented in pandore::Reg2d. |
|
Returns the pixel value at the specified coordinates.
Reimplemented in pandore::Reg2d. |
|
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 >. |
|
Returns the pixel at the specified coordinates.
Reimplemented in pandore::Reg2d. |
|
Returns the pixel at the specified coordinates.
Reimplemented in pandore::Reg2d. |
|
Returns the line at the specified row.
Reimplemented from pandore::Imx2d< T >. Reimplemented in pandore::Reg2d. |
|
Returns the line at the specified row.
Reimplemented from pandore::Imx2d< T >. Reimplemented in pandore::Reg2d. |
|
Returns the identifier of the object (ie. the magic number). Reimplemented from pandore::Imx2d< T >. Reimplemented in pandore::Reg2d. |
|
Returns the image data as a unique vector. Reimplemented in pandore::Reg2d. |