[ITK] [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.
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list