开发者

What do I put for a ParameterType value in an ITK function call in Python?

I'm trying to do this using the ITK Python bindings:

mi_metric = it开发者_Python百科k.MutualInformationImageToImageMetric[itk.Image.F3, itk.Image.F3].New()
mi_metric.SetFixedImage(i1)
mi_metric.SetMovingImage(i2)
v = mi_metric.GetValue( ? )

The GetValue function requires a ParameterType value to be passed to it, but I can't find any information about how to construct this type of object in the Python bindings. Anyone know how I can get the mutual information value between these two images?


It appears to be an Array of double, so I'd assume that you need to create an itk.Array of type double.

But this class is meant to be used with an optimizer, and not really meant to be used alone. So, I'd normally create an Optimizer, and use it with that.


This behavior is very well defined new application libary interface for ITK called SimpleITK.

You can learn more about that interface, and it's capabilities at www.simpleitk.org or by retrieving the software package from github.com/SimpleITK

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜