19 #ifndef ____itkPSMCommandLineClass__h 20 #define ____itkPSMCommandLineClass__h 26 #include "itkPSMProcrustesRegistration.h" 27 #include "itkImageFileReader.h" 28 #include "itkPSMEntropyModelFilter.h" 29 #include "itkPSMProject.h" 30 #include "itkPSMProjectReader.h" 31 #include "itkPSMParticleSystem.h" 32 #include "itkCommand.h" 46 template <
unsigned int VDimension>
52 typedef DataObject Superclass;
53 typedef SmartPointer<Self> Pointer;
54 typedef SmartPointer<const Self> ConstPointer;
63 typedef typename itk::Image<float, VDimension>
ImageType;
81 void ReadProjectFile(
const char *fn);
85 void ReadDistanceTransforms(std::string input_path_prefix);
91 void ReadCuttingPlanes();
94 void ReadModelPointFiles();
98 void SetPSMFilterParameters();
101 void WriteOutputs(std::string output_path);
104 void Run(
const char *fname, std::string input_path_prefix, std::string output_path);
115 itkGetMacro(ReportInterval,
unsigned int);
116 itkSetMacro(ReportInterval,
unsigned int);
121 void IterateCallback(itk::Object *,
const itk::EventObject &);
125 void operator=(
const Self&);
129 std::string m_ProjectFileName;
132 typename EntropyModelFilterType::Pointer m_PSMFilter;
135 typename ProcrustesRegistrationType::Pointer m_ProcrustesRegistration;
138 typename ProjectReaderType::Pointer m_ProjectReader;
141 typename ProjectType::Pointer m_Project;
145 int m_ProcrustesCounter;
148 std::vector<unsigned int> m_ProcrustesInterval;
153 typename itk::MemberCommand<PSMCommandLineClass>::Pointer m_IterateCmd;
157 unsigned int m_ReportInterval;
161 #ifndef ITK_MANUAL_INSTANTIATION 162 #include "itkPSMCommandLineClass.hxx"
This class is a reader for PSMProjects.
PSMProjectReader ProjectReaderType
PSMProcrustesRegistration< VDimension > ProcrustesRegistrationType
This class is a data object that holds information about a Particle Shape Modeling project...
itk::Image< float, VDimension > ImageType
This class interfaces with the PSMProcrustesFunction class to register a list of point sets...
This the most basic of all PSM model optimization filters. This filter assembles all of the necessary...
PSMEntropyModelFilter< typename PSMCommandLineClass::ImageType > EntropyModelFilterType
This class provides a command line tool to run the Particle Shape Modeling. It runs the optimization ...