SuperElastix / SimpleElastix

Multi-lingual medical image registration library
http://simpleelastix.github.io
Apache License 2.0
509 stars 149 forks source link

Using fixed masks with different geometry than the fixed Image #449

Open PatrikBrynolfsson opened 2 years ago

PatrikBrynolfsson commented 2 years ago

Hello,

I have used Elastix for quite a long time, but am now trying out SimpleElastix. I noticed that if I try to use a fixed mask with a different geometry (e.g. different position or spacing) than the fixed image, I get an error complaining about this. This was not a problem in Elastix, where I can used different spacing or position in my mask and my image.

I was always under the impression that Elastix sampled coordinates in the fixed mask, and extracted corresponding voxel values in the same coordinates of the fixed image. In SimpleElastix I now get the impression that the sampler works on voxel indices rather than coordinates. Is this functionality in SimpleElastix intended? Will the same restrictions be applied to masks in Elastix in coming releases?

Regards Patrik