Hello everyone!
I am new to ITK and I am trying to create a custom registration filter, but I keep running into following error message:
what(): /home/stefan/itk/Modules/Core/Common/src/itkDataObject.cxx:393:
Requested region is (at least partially) outside the largest possible region.
Aborted (core dumped)
Basically, code fails right after I call Update() method. I’ve tried to search for similar issues but nothing seems to be working. I’ve tried using UpdateLargestPossibleRegion() as well, and results (i.e. error) are still the same.
Whats funny is that for some cases my filter DOES work, and for some it DOES NOT. For example, here are baseline, baseline segmentation, follow-up and follow-up segmentation image information respectively, for which filter DOES work:
Image #1: dim = [71, 71, 68]; bb = {[-34.5 34.5 -128.5], [36.5 105.5 -60.5]}; vox = [1, 1, 1]; range = [-291.155, 7036.16]; orient = RPI
Image #1: dim = [71, 71, 68]; bb = {[-34.5 34.5 -128.5], [36.5 105.5 -60.5]}; vox = [1, 1, 1]; range = [0, 1]; orient = RPI
Image #1: dim = [71, 71, 68]; bb = {[-34.5 34.5 -128.5], [36.5 105.5 -60.5]}; vox = [1, 1, 1]; range = [-94.5187, 4305.86]; orient = RPI
Image #1: dim = [71, 71, 68]; bb = {[-34.5 34.5 -128.5], [36.5 105.5 -60.5]}; vox = [1, 1, 1]; range = [0, 1]; orient = RPI
Here are now baseline, baseline segmentation, follow-up and follow-up segmentation image information respectively, for which filter DOES NOT work and where produces error mentioned above:
Image #1: dim = [71, 71, 75]; bb = {[-34.5 34.5 -133.5], [36.5 105.5 -58.5]}; vox = [1, 1, 1]; range = [-113.235, 6368.84]; orient = RPI
Image #1: dim = [71, 71, 75]; bb = {[-34.5 34.5 -133.5], [36.5 105.5 -58.5]}; vox = [1, 1, 1]; range = [0, 1]; orient = RPI
Image #1: dim = [71, 71, 74]; bb = {[-34.5 34.5 -131.5], [36.5 105.5 -57.5]}; vox = [1, 1, 1]; range = [-125.684, 6891.19]; orient = RPI
Image #1: dim = [71, 71, 74]; bb = {[-34.5 34.5 -131.5], [36.5 105.5 -57.5]}; vox = [1, 1, 1]; range = [0, 1]; orient = RPI
To me image information seems pretty similar. What could be causing this issue? What am I missing?
Appreciate the help! Thanks!