[ITK-users] MutualInformationImageToImageMetric without transformation

carlos chernando at telespazio.es
Mon Aug 25 05:20:45 EDT 2014


Dear Jan,

I think that you can use the metric without optimizer, but that you need a
transformation and an interpolator. You can use the translation transform
(and the interpolator you prefer, although it will not influence):
typedef itk::MutualInformationImageToImageMetric<ImageType, ImageType>
MIMetricType;
MIMetricType::Pointer MImetric;
typedef itk::TranslationTransform< double, ImageDimension > TransformType;
TransformType::Pointer transform = TransformType::New();
MImetric->SetTransform(transform);

and then call GetValue with the translation parameters [0,0]
MIMetricType::TransformParametersType
displacementMI(transform->ParametersDimension);
displacementMI[0] = 0;
displacementMI[1] = 0;
MImetric->GetValue(displacementMI);


Best regards
Carlos



--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/MutualInformationImageToImageMetric-without-transformation-tp7586081p7586112.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list