How to get metric value for a given set of transform parameters in ITK V4?

(Jian Wu) #1

I’m trying to plot a profile of cost function (or metric) values for a 3D image registration study. This can be done easily in ITK V3 with the itk::ImageToImageMetric::GetValue(const ParametersType &parameters) function. So I can change the parameters in the argument to probe the cost function in the parametric space. However in ITK V4, only the function itk::ImageToImageMetricv4::GetValue() exists with no argument taken. I’m wondering how to get it done in the new registration frame. Any hints or examples? I’ll appreciate it very much if anyone could help!

(Dženan Zukić) #2

ImageToImageMetricv4 inherits SetParameters(). You should call that prior to calling GetValue().

1 Like