Menu
- Signals to itkImageProcessor to change metric and optimizer
This commit is contained in:
@ -1137,6 +1137,27 @@ itkImageProcessor::GetFinalR23Parameters(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void itkImageProcessor::SetOptimizer(tOptimizerTypeEnum eOpti){
|
||||||
|
if(eOpti != tOptimizerTypeEnum::AMOEBA &&
|
||||||
|
eOpti != tOptimizerTypeEnum::POWELL){
|
||||||
|
itkExceptionMacro(<< "Unkown optimzer : " << eOpti);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
std::cout<<"Setting Optimizer: "<<eOpti<<std::endl;
|
||||||
|
m_r23MetaInfo->SetOptimizerType(eOpti);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void itkImageProcessor::SetMetric(tMetricTypeEnum eMetric){
|
||||||
|
if(eMetric != tMetricTypeEnum::NCC &&
|
||||||
|
eMetric != tMetricTypeEnum::MI){
|
||||||
|
itkExceptionMacro(<< "Unkown metric string : " << eMetric);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
std::cout<<"Setting Metric: "<<eMetric<<std::endl;
|
||||||
|
m_r23MetaInfo->SetMetricType(eMetric);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void itkImageProcessor::SetOptimizer(std::string optimizer)
|
void itkImageProcessor::SetOptimizer(std::string optimizer)
|
||||||
{
|
{
|
||||||
|
@ -97,8 +97,11 @@ public:
|
|||||||
|
|
||||||
/** Set Optimizer type */
|
/** Set Optimizer type */
|
||||||
void SetOptimizer(std::string);
|
void SetOptimizer(std::string);
|
||||||
|
void SetOptimizer(tOptimizerTypeEnum);
|
||||||
|
|
||||||
/** Set Metric type */
|
/** Set Metric type */
|
||||||
void SetMetric(std::string);
|
void SetMetric(std::string);
|
||||||
|
void SetMetric(tMetricTypeEnum);
|
||||||
|
|
||||||
/** Set number of logic CPU to be made available to interpolators*/
|
/** Set number of logic CPU to be made available to interpolators*/
|
||||||
void SetNumberOfWorkingUnits(int iN);
|
void SetNumberOfWorkingUnits(int iN);
|
||||||
|
Reference in New Issue
Block a user