#include <image.h>
Inheritance diagram for pandore::Imx1d< T >:
A Imx1d < /code> is a multispectral 1D image. A 1D multispectral image is implemented as n 1D arrays of pixels, where a pixel is of T type and n is the number of bands.
For the use of Imx1d images see The Images.
Public Types | |
typedef T | ValueType |
Public Member Functions | |
Typobj | Type () const |
std::string | Name () const |
Dimension1d | Size () const |
Imx1d () | |
Imx1d (Long b, Long w, T *data=0, bool isOwner=false) | |
Imx1d (Long b, const Dimension1d &d, T *data=0, bool isOwner=false) | |
Imx1d (const PobjectProps &p, T *data=0, bool isOwner=false) | |
void | New (Long b, Long w, T *data=0, bool isOwner=false) |
void | New (Long b, const Dimension1d &d, T *data=0, bool isOwner=false) |
void | New (const PobjectProps &p, T *data=0, bool isOwner=false) |
Pobject * | Clone () const |
Imx1d< T > & | operator= (const T val) |
template<typename U> | |
Imx1d< T > & | operator= (const Imx1d< U > &src) |
Imx1d< T > & | operator= (const Imx1d< T > &src) |
T * | Vector (Long band=0) const |
Imx3d< T >::Band1d | operator[] (Long band) |
const Imx3d< T >::Band1d | operator[] (Long band) const |
T & | operator() (Long b, Long x) |
const T & | operator() (Long b, Long x) const |
T & | operator() (Long b, Point1d &p) |
const T & | operator() (Long b, Point1d &p) const |
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 x) const |
bool | Hold (const Point1d &pt) const |
Errc | Frame (ValueType val, Long l) |
template<typename U> | |
Errc | Frame (const Imx1d< U > &ims, Long l) |
Imx1d (const Imx1d &ims) |
|
The type of the data (Uchar, Long or Float). Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Img1d< T >, pandore::Reg1d, and pandore::Img1d< 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.
|
|
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::Imx3d< T >. Reimplemented in pandore::Img1d< T >, pandore::Reg1d, and pandore::Img1d< 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 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).
|
|
Loads attribute values from the given file. Allocates therefrom the related data.
Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Reg1d. |
|
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::Reg1d. |
|
Returns the type name (for instance Imx1duc or Imx1dsl or Imx1dsf). Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Img1d< T >, pandore::Reg1d, and pandore::Img1d< 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::Img1d< T >, and pandore::Img1d< 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.
|
|
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.
|
|
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::Img1d< T >, and pandore::Img1d< Long >. |
|
Returns the specified band of the image data as a unique vector.
Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Img1d< T >, pandore::Reg1d, and pandore::Img1d< Long >. |
|
Returns the specified band of the image data as a unique vector.
Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Img1d< T >, pandore::Reg1d, and pandore::Img1d< Long >. |
|
Saves the current attribute values in the specified file.
Reimplemented from pandore::Imx3d< T >. Reimplemented in pandore::Reg1d. |
|
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::Img1d< T >, pandore::Reg1d, and pandore::Img1d< 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::Reg1d. |
|
Returns the specified band of the image data as a unique vector.
Reimplemented from pandore::Imx3d< T >. |