Local class for preprocessing image data, e.g., by histogram operations, thresholding, and cropping. More...
#include <cmtkVoxelRegistration.h>
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. | |
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") |
Local class for preprocessing image data, e.g., by histogram operations, thresholding, and cropping.
Definition at line 129 of file cmtkVoxelRegistration.h.
cmtk::VoxelRegistration::ImagePreprocessor::ImagePreprocessor | ( | const char * | name, |
const char * | key | ||
) |
Constructor.
name | There are two preprocessors, for reference and floating image: this parameter names a parameter group for this instance. |
key | This 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 44 of file cmtkVoxelRegistrationImagePreprocessor.cxx.
void cmtk::VoxelRegistration::ImagePreprocessor::AttachToCommandLine | ( | CommandLine & | cl ) |
Attach this preprocessor to a command line parse.
cl | The command line object to add our options to. |
Definition at line 68 of file cmtkVoxelRegistrationImagePreprocessor.cxx.
References cmtk::CommandLine::AddOption(), cmtk::CommandLine::AddSwitch(), cmtk::CommandLine::BeginGroup(), cmtk::CommandLine::EndGroup(), and cmtk::CommandLine::PROPS_NOXML.
UniformVolume::SmartPtr cmtk::VoxelRegistration::ImagePreprocessor::GetProcessedImage | ( | const UniformVolume * | original ) |
Get pre-processed image from original image.
Definition at line 90 of file cmtkVoxelRegistrationImagePreprocessor.cxx.
References cmtk::UniformVolume::Clone(), cmtk::StdErr, and cmtk::StringToDataClass().
void cmtk::VoxelRegistration::ImagePreprocessor::WriteSettings | ( | ClassStream & | stream ) | const |
Write settings of this object to class stream for archiving.
Definition at line 180 of file cmtkVoxelRegistrationImagePreprocessor.cxx.
References cmtk::TypedStream::Begin(), cmtk::DATACLASS_GREY, cmtk::DATACLASS_LABEL, cmtk::TypedStream::End(), cmtk::TypedStream::WriteBool(), cmtk::TypedStream::WriteDouble(), cmtk::TypedStream::WriteInt(), and cmtk::TypedStream::WriteString().
Referenced by cmtk::AffineRegistrationCommandLine::OutputResultList().
Flag for auto cropping.
Definition at line 175 of file cmtkVoxelRegistration.h.
Auto cropping level.
Definition at line 178 of file cmtkVoxelRegistration.h.
Crop region in index coordinates.
Definition at line 169 of file cmtkVoxelRegistration.h.
Crop region in world coordinates.
Definition at line 172 of file cmtkVoxelRegistration.h.
Data class ID.
Definition at line 136 of file cmtkVoxelRegistration.h.
Data class string ("grey", "labels", or "binary")
Definition at line 133 of file cmtkVoxelRegistration.h.
Flag for histogram equalization.
Definition at line 163 of file cmtkVoxelRegistration.h.
const char* cmtk::VoxelRegistration::ImagePreprocessor::m_Key [private] |
Store the key that identifies this instance ("ref" or "flt")
Definition at line 200 of file cmtkVoxelRegistration.h.
Lower threshold flag.
Definition at line 145 of file cmtkVoxelRegistration.h.
Lower threshold value.
Definition at line 148 of file cmtkVoxelRegistration.h.
const char* cmtk::VoxelRegistration::ImagePreprocessor::m_Name [private] |
Store the name that identifies this instance ("Reference" or "Floating")
Definition at line 197 of file cmtkVoxelRegistration.h.
Flag for pixel padding.
Definition at line 139 of file cmtkVoxelRegistration.h.
Padding value.
Definition at line 142 of file cmtkVoxelRegistration.h.
Prune histogram for image: number of target bins.
Definition at line 160 of file cmtkVoxelRegistration.h.
Flag for application of Sobel edge detection filter.
Definition at line 166 of file cmtkVoxelRegistration.h.
Upper threshold flag.
Definition at line 151 of file cmtkVoxelRegistration.h.
Upper threshold value.
Definition at line 154 of file cmtkVoxelRegistration.h.
Flag for image histogram pruning.
Definition at line 157 of file cmtkVoxelRegistration.h.