Chaste
Build::
|
#include <ImageReader.hpp>
Public Member Functions | |
ImageReader () | |
~ImageReader () | |
vtkSmartPointer< vtkImageData > | GetImage () |
void | SetFilename (const std::string &rFilename) |
void | SetImageResizeFactors (double factorX, double factorY=1.0, double factorZ=1.0) |
void | Read () |
Static Public Member Functions | |
static boost::shared_ptr< ImageReader > | Create () |
Private Attributes | |
vtkSmartPointer< vtkImageData > | mpVtkImage |
std::string | mFilepath |
double | mResizeX |
double | mResizeY |
double | mResizeZ |
This class reads images in VTK compatible formats. The image can be optionally resized, which often needs to be the first operation in the workflow for memory reasons.
Definition at line 48 of file ImageReader.hpp.
ImageReader::ImageReader | ( | ) |
Constructor
Definition at line 47 of file ImageReader.cpp.
ImageReader::~ImageReader | ( | ) |
Destructor
Definition at line 63 of file ImageReader.cpp.
|
static |
Factory constructor method
Definition at line 57 of file ImageReader.cpp.
vtkSmartPointer< vtkImageData > ImageReader::GetImage | ( | ) |
void ImageReader::Read | ( | ) |
Do the read operation
Definition at line 93 of file ImageReader.cpp.
References mFilepath, mpVtkImage, mResizeX, mResizeY, and mResizeZ.
void ImageReader::SetFilename | ( | const std::string & | rFilename | ) |
Set the filename for the readers and writers
rFilename | the file name |
Definition at line 81 of file ImageReader.cpp.
References mFilepath.
void ImageReader::SetImageResizeFactors | ( | double | factorX, |
double | factorY = 1.0 , |
||
double | factorZ = 1.0 |
||
) |
Set the resize factors for the image
factorX | the fraction of pixels to retain in x |
factorY | the fraction of pixels to retain in y |
factorZ | the fraction of pixels to retain in z |
Definition at line 86 of file ImageReader.cpp.
|
private |
Path to the image
Definition at line 61 of file ImageReader.hpp.
Referenced by Read(), and SetFilename().
|
private |
The image in vtk format
Definition at line 56 of file ImageReader.hpp.
Referenced by GetImage(), and Read().
|
private |
The fraction of pixels to retain in X after reading
Definition at line 66 of file ImageReader.hpp.
Referenced by Read(), and SetImageResizeFactors().
|
private |
The fraction of pixels to retain in Y after reading
Definition at line 71 of file ImageReader.hpp.
Referenced by Read(), and SetImageResizeFactors().
|
private |
The fraction of pixels to retain in Z after reading
Definition at line 76 of file ImageReader.hpp.
Referenced by Read(), and SetImageResizeFactors().