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?
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?