I am trying to use a mask (on both fixed and moving images) to help guide the registration process. I've created individual masks for my images. These masks are of exactly the same dimension size and have exactly the same origin as their associated image. However, I am getting a strange error while I running the following code.
elastix -f HE007.tif -fMask HE007_mask.tif -m Cu007.tif -mMask Cu007_mask.tif -out output -p affine.txt -p nonlinear.txtthis is the error:
Description: itk::ERROR: itk::ERROR: ImageGridSampler(0000024EF95C0460): ERROR: the bounding box of the mask lies entirely out of the InputImageRegion!
You can see my images and their corresponding masks in the following link. Any advice on why I am getting this error?
Best wishes,
Javad