Class for 2D image data. More...
#include <cmtkImage.h>
Public Member Functions | |
igsClassParameter (ScalarDataType, DataType) | |
Scalar data type. | |
TypedArray::SmartPtr | GetData () |
Return a pointer to the object holding the image data. | |
void | SetData (TypedArray::SmartPtr &data) |
Replace existing data array by new one. | |
void | SetFromScalarImage (ScalarImage *const scalarImage, const bool copyPixelData) |
Copy non-pipelined scalar image. | |
void | SetFromScalarImage (const ScalarImage *scalarImage) |
Copy non-pipelined scalar image. | |
ScalarImage * | GetScalarImage () const |
Create copy as non-pipelined scalar image. | |
double | GetDataAt (const int x, const int y, const double def=0) |
Return data at a certain grid location (pixel). | |
void | SetDataAt (const int x, const int y, const double value=0) |
Set data at a certain grid location (pixel). | |
double | GetDataAt (const int index, const double def=0) |
Return data at a certain grid location (index). | |
void | SetDataAt (const int index, const double value=0) |
Set data at a certain grid location (index). | |
double | GetDataAt (const double x, const double y, const double def=0) |
Return data at a certain grid location (in world coordinates). | |
Static Public Member Functions | |
static Image * | New () |
Create new object. | |
Protected Member Functions | |
Image () | |
Default constructor. | |
virtual | ~Image () |
Destructor. | |
Protected Attributes | |
TypedArray::SmartPtr | Data |
The actual image data. |
Class for 2D image data.
Definition at line 54 of file cmtkImage.h.
virtual cmtk::Image::~Image | ( | ) | [inline, protected, virtual] |
Destructor.
Definition at line 137 of file cmtkImage.h.
cmtk::Image::igsClassParameter | ( | ScalarDataType | , |
DataType | |||
) |
Scalar data type.
static Image* cmtk::Image::New | ( | ) | [inline, static] |
Create new object.
Reimplemented from cmtk::Plane.
Definition at line 60 of file cmtkImage.h.
Referenced by cmtk::QtTriplanarWindow::QtTriplanarWindow().
TypedArray::SmartPtr cmtk::Image::Data [protected] |
The actual image data.
Definition at line 137 of file cmtkImage.h.
Referenced by GetData(), GetScalarImage(), and SetData().