# Got the runtime error, Did not get requested region!

**URL:** <https://discourse.itk.org/t/got-the-runtime-error-did-not-get-requested-region/6226>\
**Category:** Beginner Questions\
**Created:** [September 24, 2023, 1:12pm UTC](https://discourse.itk.org/t/got-the-runtime-error-did-not-get-requested-region/6226 "2023-09-24T13:12:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pratibha](https://discourse.itk.org/user_avatar/discourse.itk.org/pratibha/32/3706_2.png) [@pratibha](https://discourse.itk.org/u/pratibha)\
**Post date:** [September 24, 2023, 1:12pm UTC](https://discourse.itk.org/t/got-the-runtime-error-did-not-get-requested-region/6226/1 "2023-09-24T13:12:49Z")

</div>

Hello, I am new to itk-elastix and the registration process. I am doing the rigid registration, the data type for both moving and fixed is float and I have used the already defined parameter file for registration. The parameter file works fine for rigid when I do it using the SimpleElastix. I previously did for affine using the parameter file that is defined in similar manner as for rigid and It worked fine.  
I am getting an error:  
RuntimeError: C:\P\IPP\ITK-source\ITK\Modules\IO\ImageBase\include\itkImageFileWriter.hxx:366:  
Did not get requested region!  
Requested:  
ImageRegion (000000E4215EECD0)  
Dimension: 3  
Index: [0, 0, 0]  
Size: [256, 256, 35]  
Actual:  
ImageRegion (000000E4215EED08)  
Dimension: 3  
Index: [0, 0, 0]  
Size: [0, 0, 0]  
Much appreciated for the help, with this issue, Thanks!

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [September 25, 2023, 1:21pm UTC](https://discourse.itk.org/t/got-the-runtime-error-did-not-get-requested-region/6226/2 "2023-09-25T13:21:17Z")

</div>

If you share your code (and maybe the parameter file), someone might be able to help.

@kaspermarstal is the contact person for [SimpleElastix](https://simpleelastix.github.io/), maybe he has some advice?

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [September 25, 2023, 4:10pm UTC](https://discourse.itk.org/t/got-the-runtime-error-did-not-get-requested-region/6226/4 "2023-09-25T16:10:00Z")

</div>

`SimpleElastix` and `ITKElastix` might be using different versions of underlying `elastix`.

@Niels_Dekker and/or @ntatsisk might be able to help.
