Error: Bounding box of the mask lies entirely out of the Input Image Region!

65 views
Skip to first unread message

Mohammad Javad Shojaei

unread,
Dec 15, 2022, 12:30:12 PM12/15/22
to elastix-imageregistration
Hello everyone

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.txt

this 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

Mohammad Javad Shojaei

unread,
Dec 16, 2022, 6:02:20 AM12/16/22
to elastix-imageregistration
Hello everyone, 

I fixed it. Those masks were generated by VGG, but I generated them again with FIJI, and it works now. However, the results are wired. I put them in the above dropbox folder (result.0.tif, and result.1.tif) for your review. Any advice on how to get reasonable results?

Best wishes,
Javad

Reply all
Reply to author
Forward
0 new messages