#include <image.h>
Inheritance diagram for pandore::Img1d< T >:
A Img1d < /code> is a gray level 1D image. A 1D gray level image is implemented as one 1D array of pixels, where a pixel is of T type.
For the use of Img1d images see The Images.
Public Types | |
typedef T | ValueType |
Public Member Functions | |
Typobj | Type () const |
std::string | Name () const |
Img1d () | |
Img1d (Long w, T *data=0, bool isOwner=false) | |
Img1d (const Dimension1d &d, T *data=0, bool isOwner=false) | |
Img1d (const PobjectProps &p, T *data=0, bool isOwner=false) | |
void | New (Long w, T *data=0, bool isOwner=false) |
void | New (const Dimension1d &d, T *data=0, bool isOwner=false) |
void | New (const PobjectProps &p, T *data=0, bool isOwner=false) |
Pobject * | Clone () const |
Img1d< T > & | operator= (const T val) |
template<typename U> | |
Img1d< T > & | operator= (const Img1d< U > &src) |
Img1d< T > & | operator= (const Img1d< T > &src) |
ValueType * | Vector () const |
ValueType & | operator[] (Long col) |
const ValueType & | operator[] (Long col) const |
ValueType & | operator() (Long x) |
ValueType & | operator[] (const Point1d &p) |
const ValueType & | operator[] (const Point1d &p) const |
ValueType & | operator() (const Point1d &p) |
const ValueType & | operator() (const Point1d &p) const |
Img1d (const Img1d &ims) |
|
The type of the data (Uchar, Long or Float). Reimplemented from pandore::Imx1d< T >. Reimplemented in pandore::Reg1d. |
|
Creates a new image with no size and no data. |
|
Creates a new image with the specified width, and sets the specified vector as 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 sets the specified vector as 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::Imx1d< T >. Reimplemented in pandore::Reg1d. |
|
Returns the type name (for instance Img1duc or Img1dsl or Img1dsf). Reimplemented from pandore::Imx1d< T >. Reimplemented in pandore::Reg1d. |
|
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::Imx1d< 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 value at the specified coordinates.
Reimplemented in pandore::Reg1d. |
|
Sets the pixel values with the pixel values of the given image. This supposes that images have the same dimension.
|
|
Sets the pixel values with the pixel values of the given image. This supposes that images have the same dimension.
|
|
Sets all pixels with the given value.
Reimplemented from pandore::Imx1d< T >. |
|
Returns the pixel at the specified coordinates.
Reimplemented in pandore::Reg1d. |
|
Returns the pixel at the specified coordinates.
Reimplemented in pandore::Reg1d. |
|
Returns the pixel at the specified column.
Reimplemented from pandore::Imx1d< T >. Reimplemented in pandore::Reg1d. |
|
Returns the pixel at the specified column.
Reimplemented from pandore::Imx1d< T >. Reimplemented in pandore::Reg1d. |
|
Returns the identifier of the object (ie. the magic number). Reimplemented from pandore::Imx1d< T >. Reimplemented in pandore::Reg1d. |
|
Returns the image data as a unique vector. Reimplemented in pandore::Reg1d. |