Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Writer class for ToF nrrd images. More...
#include <mitkToFNrrdImageWriter.h>
Public Member Functions | |
mitkClassMacro (ToFNrrdImageWriter, ToFImageWriter) | |
Pointer | Clone () const |
void | Open () override |
Open file(s) for writing. More... | |
void | Close () override |
Close file(s) add .pic header and write. More... | |
void | Add (float *distanceFloatData, float *amplitudeFloatData, float *intensityFloatData, unsigned char *rgbData=0) override |
Add new data to file. More... | |
Public Member Functions inherited from mitk::ToFImageWriter | |
ToFImageWriter () | |
~ToFImageWriter () | |
mitkClassMacroItkParent (ToFImageWriter, itk::Object) | |
Pointer | Clone () const |
virtual std::string | GetDistanceImageFileName () |
virtual std::string | GetAmplitudeImageFileName () |
virtual std::string | GetIntensityImageFileName () |
virtual std::string | GetRGBImageFileName () |
virtual std::string | GetExtension () |
virtual int | GetToFCaptureWidth () |
virtual int | GetToFCaptureHeight () |
virtual int | GetRGBCaptureWidth () |
virtual int | GetRGBCaptureHeight () |
virtual bool | GetDistanceImageSelected () |
virtual bool | GetAmplitudeImageSelected () |
virtual bool | GetIntensityImageSelected () |
virtual bool | GetRGBImageSelected () |
virtual void | SetDistanceImageFileName (std::string _arg) |
virtual void | SetAmplitudeImageFileName (std::string _arg) |
virtual void | SetIntensityImageFileName (std::string _arg) |
virtual void | SetRGBImageFileName (std::string _arg) |
virtual void | SetExtension (std::string _arg) |
virtual void | SetToFCaptureWidth (int _arg) |
virtual void | SetToFCaptureHeight (int _arg) |
virtual void | SetRGBCaptureWidth (int _arg) |
virtual void | SetRGBCaptureHeight (int _arg) |
virtual void | SetDistanceImageSelected (bool _arg) |
virtual void | SetAmplitudeImageSelected (bool _arg) |
virtual void | SetIntensityImageSelected (bool _arg) |
virtual void | SetRGBImageSelected (bool _arg) |
ToFImageWriter::ToFImageType | GetToFImageType () |
Get the type of image to be written. More... | |
void | SetToFImageType (ToFImageWriter::ToFImageType toFImageType) |
Set the type of image to be written. More... | |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from mitk::ToFImageWriter | |
static Pointer | New () |
Protected Attributes | |
std::ofstream | m_DistanceOutfile |
file for distance image More... | |
std::ofstream | m_AmplitudeOutfile |
file for amplitude image More... | |
std::ofstream | m_IntensityOutfile |
file for intensity image More... | |
std::ofstream | m_RGBOutfile |
file for intensity image More... | |
Protected Attributes inherited from mitk::ToFImageWriter | |
std::string | m_DistanceImageFileName |
file name for saving the distance image More... | |
std::string | m_AmplitudeImageFileName |
file name for saving the amplitude image More... | |
std::string | m_IntensityImageFileName |
file name for saving the intensity image More... | |
std::string | m_RGBImageFileName |
file name for saving the RGB image More... | |
std::string | m_Extension |
file extension used for saving images More... | |
int | m_ToFCaptureWidth |
width (x-dimension) of the images to record. More... | |
int | m_ToFCaptureHeight |
height (y-dimension) of the images to record. More... | |
int | m_ToFPixelNumber |
number of pixels (widht*height) of the images to record More... | |
int | m_ToFImageSizeInBytes |
size of the image to save in bytes More... | |
int | m_RGBCaptureWidth |
width (x-dimension) of the images to record. More... | |
int | m_RGBCaptureHeight |
height (y-dimension) of the images to record. More... | |
int | m_RGBPixelNumber |
number of pixels (widht*height) of the images to record More... | |
int | m_RGBImageSizeInBytes |
size of the image to save in bytes More... | |
int | m_NumOfFrames |
number of frames written to the image. Used for pic header. More... | |
ToFImageWriter::ToFImageType | m_ToFImageType |
type of image to be recorded: ToFImageType3D (0) or ToFImageType2DPlusT (1) More... | |
bool | m_DistanceImageSelected |
flag indicating if distance image should be recorded More... | |
bool | m_AmplitudeImageSelected |
flag indicating if amplitude image should be recorded More... | |
bool | m_IntensityImageSelected |
flag indicating if intensity image should be recorded More... | |
bool | m_RGBImageSelected |
flag indicating if RGB image should be recorded More... | |
Additional Inherited Members | |
Public Types inherited from mitk::ToFImageWriter | |
enum | ToFImageType { ToFImageType3D, ToFImageType2DPlusT } |
Protected Member Functions inherited from mitk::ToFImageWriter | |
void | CheckForFileExtension (std::string &fileName) |
Checks file name if file extension exists. If not an error message is returned. More... | |
Writer class for ToF nrrd images.
This writer class allows streaming of ToF data into a nrrd file. This class uses the itkNrrdImageIO class Writer can simultaneously save "distance", "intensity" and "amplitude" image. Images can be written as 3D volume (ToFImageType::ToFImageType3D) or temporal image stack (ToFImageType::ToFImageType2DPlusT)
Definition at line 35 of file mitkToFNrrdImageWriter.h.
|
overridevirtual |
Add new data to file.
Reimplemented from mitk::ToFImageWriter.
Definition at line 87 of file mitkToFNrrdImageWriter.cpp.
References mitk::ToFImageWriter::m_AmplitudeImageSelected, m_AmplitudeOutfile, mitk::ToFImageWriter::m_DistanceImageSelected, m_DistanceOutfile, mitk::ToFImageWriter::m_IntensityImageSelected, m_IntensityOutfile, mitk::ToFImageWriter::m_NumOfFrames, mitk::ToFImageWriter::m_RGBImageSelected, mitk::ToFImageWriter::m_RGBImageSizeInBytes, m_RGBOutfile, and mitk::ToFImageWriter::m_ToFImageSizeInBytes.
Pointer mitk::ToFNrrdImageWriter::Clone | ( | ) | const |
|
overridevirtual |
Close file(s) add .pic header and write.
Reimplemented from mitk::ToFImageWriter.
Definition at line 67 of file mitkToFNrrdImageWriter.cpp.
References mitk::ToFImageWriter::m_AmplitudeImageFileName, mitk::ToFImageWriter::m_AmplitudeImageSelected, m_AmplitudeOutfile, mitk::ToFImageWriter::m_DistanceImageFileName, mitk::ToFImageWriter::m_DistanceImageSelected, m_DistanceOutfile, mitk::ToFImageWriter::m_IntensityImageFileName, mitk::ToFImageWriter::m_IntensityImageSelected, m_IntensityOutfile, mitk::ToFImageWriter::m_RGBImageFileName, mitk::ToFImageWriter::m_RGBImageSelected, and m_RGBOutfile.
mitk::ToFNrrdImageWriter::mitkClassMacro | ( | ToFNrrdImageWriter | , |
ToFImageWriter | |||
) |
|
static |
Referenced by mitk::ToFImageRecorderFilter::SetFileName(), and mitk::ToFImageRecorder::StartRecording().
|
overridevirtual |
Open file(s) for writing.
Reimplemented from mitk::ToFImageWriter.
Definition at line 35 of file mitkToFNrrdImageWriter.cpp.
References mitk::ToFImageWriter::CheckForFileExtension(), mitk::ToFImageWriter::m_AmplitudeImageFileName, mitk::ToFImageWriter::m_AmplitudeImageSelected, m_AmplitudeOutfile, mitk::ToFImageWriter::m_DistanceImageFileName, mitk::ToFImageWriter::m_DistanceImageSelected, m_DistanceOutfile, mitk::ToFImageWriter::m_IntensityImageFileName, mitk::ToFImageWriter::m_IntensityImageSelected, m_IntensityOutfile, mitk::ToFImageWriter::m_NumOfFrames, mitk::ToFImageWriter::m_RGBCaptureHeight, mitk::ToFImageWriter::m_RGBCaptureWidth, mitk::ToFImageWriter::m_RGBImageFileName, mitk::ToFImageWriter::m_RGBImageSelected, mitk::ToFImageWriter::m_RGBImageSizeInBytes, m_RGBOutfile, mitk::ToFImageWriter::m_RGBPixelNumber, mitk::ToFImageWriter::m_ToFCaptureHeight, mitk::ToFImageWriter::m_ToFCaptureWidth, mitk::ToFImageWriter::m_ToFImageSizeInBytes, and mitk::ToFImageWriter::m_ToFPixelNumber.
|
protected |
file for amplitude image
Definition at line 58 of file mitkToFNrrdImageWriter.h.
|
protected |
file for distance image
Definition at line 57 of file mitkToFNrrdImageWriter.h.
|
protected |
file for intensity image
Definition at line 59 of file mitkToFNrrdImageWriter.h.
|
protected |
file for intensity image
Definition at line 60 of file mitkToFNrrdImageWriter.h.