Public Member Functions | Public Attributes | Private Attributes

cmtk::ImagePairRegistration::ImagePreprocessor Class Reference

Local class for preprocessing image data, e.g., by histogram operations, thresholding, and cropping. More...

#include <cmtkImagePairRegistration.h>

List of all members.

Public Member Functions

 ImagePreprocessor (const char *name, const char *key)
 Constructor.
void AttachToCommandLine (CommandLine &cl)
 Attach this preprocessor to a command line parse.
UniformVolume::SmartPtr GetProcessedImage (const UniformVolume *original)
 Get pre-processed image from original image.
void WriteSettings (ClassStream &stream) const
 Write settings of this object to class stream for archiving.

Public Attributes

const char * m_DataClassString
 Data class string ("grey", "labels", or "binary")
DataClass m_DataClass
 Data class ID.
bool m_PaddingFlag
 Flag for pixel padding.
Types::DataItem m_PaddingValue
 Padding value.
bool m_LowerThresholdActive
 Lower threshold flag.
Types::DataItem m_LowerThresholdValue
 Lower threshold value.
bool m_UpperThresholdActive
 Upper threshold flag.
Types::DataItem m_UpperThresholdValue
 Upper threshold value.
bool m_UsePruneHistogramBins
 Flag for image histogram pruning.
unsigned int m_PruneHistogramBins
 Prune histogram for image: number of target bins.
bool m_HistogramEqualization
 Flag for histogram equalization.
int m_MedianFilterRadius
 Radius for median filter (0 - no filtering).
bool m_SobelFilter
 Flag for application of Sobel edge detection filter.
const char * m_CropIndex
 Crop region in index coordinates.
const char * m_CropWorld
 Crop region in world coordinates.
bool m_AutoCropFlag
 Flag for auto cropping.
Types::DataItem m_AutoCropLevel
 Auto cropping level.

Private Attributes

const char * m_Name
 Store the name that identifies this instance ("Reference" or "Floating")
const char * m_Key
 Store the key that identifies this instance ("ref" or "flt")

Detailed Description

Local class for preprocessing image data, e.g., by histogram operations, thresholding, and cropping.

Definition at line 159 of file cmtkImagePairRegistration.h.


Constructor & Destructor Documentation

cmtk::ImagePairRegistration::ImagePreprocessor::ImagePreprocessor ( const char *  name,
const char *  key 
)

Constructor.

Parameters:
nameThere are two preprocessors, for reference and floating image: this parameter names a parameter group for this instance.
keyThis parameter gives a string key that is appended to each command line option so that reference and floating preprocessors do not collide.

Definition at line 43 of file cmtkImagePairRegistrationImagePreprocessor.cxx.


Member Function Documentation

void cmtk::ImagePairRegistration::ImagePreprocessor::AttachToCommandLine ( CommandLine cl )

Attach this preprocessor to a command line parse.

Parameters:
clThe command line object to add our options to.

Definition at line 68 of file cmtkImagePairRegistrationImagePreprocessor.cxx.

References cmtk::CommandLine::AddOption(), cmtk::CommandLine::AddSwitch(), cmtk::CommandLine::BeginGroup(), cmtk::CommandLine::EndGroup(), and cmtk::CommandLine::PROPS_NOXML.

UniformVolume::SmartPtr cmtk::ImagePairRegistration::ImagePreprocessor::GetProcessedImage ( const UniformVolume original )

Get pre-processed image from original image.

Definition at line 92 of file cmtkImagePairRegistrationImagePreprocessor.cxx.

References cmtk::UniformVolume::Clone(), cmtk::StdErr, and cmtk::StringToDataClass().

void cmtk::ImagePairRegistration::ImagePreprocessor::WriteSettings ( ClassStream stream ) const

Member Data Documentation

Flag for auto cropping.

Definition at line 208 of file cmtkImagePairRegistration.h.

Auto cropping level.

Definition at line 211 of file cmtkImagePairRegistration.h.

Crop region in index coordinates.

Definition at line 202 of file cmtkImagePairRegistration.h.

Crop region in world coordinates.

Definition at line 205 of file cmtkImagePairRegistration.h.

Data class ID.

Definition at line 166 of file cmtkImagePairRegistration.h.

Data class string ("grey", "labels", or "binary")

Definition at line 163 of file cmtkImagePairRegistration.h.

Flag for histogram equalization.

Definition at line 193 of file cmtkImagePairRegistration.h.

Store the key that identifies this instance ("ref" or "flt")

Definition at line 233 of file cmtkImagePairRegistration.h.

Lower threshold flag.

Definition at line 175 of file cmtkImagePairRegistration.h.

Lower threshold value.

Definition at line 178 of file cmtkImagePairRegistration.h.

Radius for median filter (0 - no filtering).

Definition at line 196 of file cmtkImagePairRegistration.h.

Store the name that identifies this instance ("Reference" or "Floating")

Definition at line 230 of file cmtkImagePairRegistration.h.

Flag for pixel padding.

Definition at line 169 of file cmtkImagePairRegistration.h.

Padding value.

Definition at line 172 of file cmtkImagePairRegistration.h.

Prune histogram for image: number of target bins.

Definition at line 190 of file cmtkImagePairRegistration.h.

Flag for application of Sobel edge detection filter.

Definition at line 199 of file cmtkImagePairRegistration.h.

Upper threshold flag.

Definition at line 181 of file cmtkImagePairRegistration.h.

Upper threshold value.

Definition at line 184 of file cmtkImagePairRegistration.h.

Flag for image histogram pruning.

Definition at line 187 of file cmtkImagePairRegistration.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines