Base class for symmetry plane computation command line tools. More...
#include <cmtkImageSymmetryPlaneCommandLineBase.h>


Public Member Functions | |
| ImageSymmetryPlaneCommandLineBase () | |
| Default constructor. | |
| int | Run (const int argc, const char *argv[]) |
| Run the symmetry plane computation based on provided command line arguments. | |
| CommandLine & | GetCommandLine () |
| Get reference to command line parser object. | |
Protected Member Functions | |
| virtual ImageSymmetryPlaneFunctionalBase::SmartPtr | CreateFunctional (UniformVolume::SmartPtr &volume)=0 |
| Create functional for volume. | |
| virtual ImageSymmetryPlaneFunctionalBase::SmartPtr | CreateFunctional (UniformVolume::SmartPtr &volume, const Types::DataItemRange &range)=0 |
| Create functional for volume and value range. | |
Private Types | |
| enum | InitialPlaneEnum { SYMPL_INIT_XY, SYMPL_INIT_XZ, SYMPL_INIT_YZ } |
Constants for initial plane orientation. More... | |
Private Member Functions | |
| bool | ParseCommandLine (const int argc, const char *argv[]) |
| Parse the given command line. | |
| void | WriteDifference (UniformVolume::SmartConstPtr &originalVolume) const |
| Write difference image between original and mirrored image. | |
| void | WriteMirror (UniformVolume::SmartConstPtr &originalVolume) const |
| Write mirrored image. | |
| void | WriteMarkPlane (UniformVolume::SmartConstPtr &originalVolume) const |
| Write original image with marked symmetry plane. | |
| void | WriteAligned (UniformVolume::SmartConstPtr &originalVolume) const |
| Write image aligned w.r.t. the symmetry plane. | |
Private Attributes | |
| ParametricPlane | m_SymmetryPlane |
| The symmetry plane object. | |
| bool | m_Verbose |
| Verbosity flag. | |
| float | m_MinValue |
| Minimum data value (lower threshold). | |
| bool | m_MinValueSet |
| Flag for valid (user-set) minimum data value. | |
| float | m_MaxValue |
| Minimum data value (lower threshold). | |
| bool | m_MaxValueSet |
| Flag for valid (user-set) maximum data value. | |
| Types::Coordinate | m_Sampling |
| Image sampling (highest resampled resolution). | |
| Types::Coordinate | m_Accuracy |
| Optimization "accuracy" (really, precision) | |
| Interpolators::InterpolationEnum | m_Interpolation |
| Interpolation method for reformatted image generation. | |
| int | m_Levels |
| Number of multi-resolution levels. | |
| bool | m_DisableOptimization |
| Flag to disable optimization. | |
| Types::Coordinate | m_Rho |
| Symmetry plane "Rho" parameter (offset). | |
| Units::Degrees | m_Theta |
| Symmetry plane "Theta" angle parameter. | |
| Units::Degrees | m_Phi |
| Symmetry plane "Phi" angle parameter. | |
| bool | m_FixOffset |
| Flag to fix symmetry plane offset parameter (i.e., do not optimize "Rho") | |
| const char * | m_MirrorOutFile |
| Optional output path for mirrored file. | |
| const char * | m_AlignedOutFile |
| Optional output path for aligned file. | |
| bool | m_MarkPlaneAligned |
| Flag for marking the symmetry plane in the aligned file. | |
| const char * | m_MarkedOutFile |
| Optional output path for file with marked symmetry plane. | |
| const char * | m_DifferenceOutFile |
| Optional output path for file with subtraction between input and mirrored input. | |
| const char * | m_WriteXformPath |
| Optional output path for the alignment transformation. | |
| Types::DataItem | m_MarkPlaneValue |
| Data value used for marking the symmetry plane in output images. | |
| bool | m_PadOutValueSet |
| Flag for user-provided padding value. | |
| Types::DataItem | m_PadOutValue |
| User-provided padding value. | |
| const char * | m_SymmetryOutFileName |
| Optional output path for symmetry plane. | |
| const char * | m_SymmetryParameters |
| Optional output path for symmetry plane parameters. | |
| const char * | m_SymmetryParametersFile |
| Optional input path for previously computed symmetry plane parameters. | |
| const char * | m_InFileName |
| Input image file path. | |
| InitialPlaneEnum | m_InitialPlane |
| Initial plane orientation: default to sagittal for human images. | |
| CommandLine | m_CommandLine |
Base class for symmetry plane computation command line tools.
Definition at line 52 of file cmtkImageSymmetryPlaneCommandLineBase.h.
| cmtk::ImageSymmetryPlaneCommandLineBase::ImageSymmetryPlaneCommandLineBase | ( | ) |
Default constructor.
Definition at line 46 of file cmtkImageSymmetryPlaneCommandLineBase.cxx.
References cmtk::CommandLine::AddEnum(), cmtk::CommandLine::AddOption(), cmtk::CommandLine::AddParameter(), cmtk::CommandLine::AddSwitch(), cmtk::CommandLine::BeginGroup(), cmtk::Interpolators::COSINE_SINC, cmtk::Interpolators::CUBIC, cmtk::CommandLine::EndGroup(), cmtk::Interpolators::LINEAR, m_Accuracy, m_AlignedOutFile, m_CommandLine, m_DifferenceOutFile, m_DisableOptimization, m_FixOffset, m_InFileName, m_InitialPlane, m_Interpolation, m_Levels, m_MarkedOutFile, m_MarkPlaneAligned, m_MarkPlaneValue, m_MaxValue, m_MaxValueSet, m_MinValue, m_MinValueSet, m_MirrorOutFile, m_PadOutValue, m_PadOutValueSet, m_Sampling, m_SymmetryOutFileName, m_SymmetryParameters, m_SymmetryParametersFile, m_Verbose, m_WriteXformPath, cmtk::CommandLine::PRG_CATEG, cmtk::CommandLine::PRG_DESCR, cmtk::CommandLine::PRG_TITLE, cmtk::CommandLine::PROPS_ADVANCED, cmtk::CommandLine::PROPS_FILENAME, cmtk::CommandLine::PROPS_IMAGE, cmtk::CommandLine::PROPS_NOXML, cmtk::CommandLine::PROPS_OUTPUT, cmtk::CommandLine::PROPS_XFORM, cmtk::CommandLine::SetProgramInfo(), SYMPL_INIT_XY, SYMPL_INIT_XZ, and SYMPL_INIT_YZ.
1.7.2