SuperElastix / SimpleElastix

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

Register image with different size and initial tranformation #401

Closed orange676 closed 3 years ago

orange676 commented 3 years ago

I would like to register two images of different size. I get the error that too many samples are outside. This is understandable since the two images are different size. one way is to padding the smaller image. I am thinking, if I can use mask to solve this problem. If I add an mask, will it change the sampler so that only take the samples within the mask? or it won't change the sampler, only change affect the metric?

One additional question I have is that, does elastix using the origin and spacing of the dicom image? the two images that i have are taken with different origin. I have already are good intialization. This transformation take the origin of the two images into account already. Should I just put it as initial transformation? I see in the parameter file, there is origin, spacing and normal direction, this is only for fixed image. is my understanding right?

orange676 commented 3 years ago

No need to answer