# ROI fit to volume not working with big coordinates

**URL:** <https://discourse.slicer.org/t/roi-fit-to-volume-not-working-with-big-coordinates/9857>\
**Category:** Development\
**Created:** [January 17, 2020, 7:40pm UTC](https://discourse.slicer.org/t/roi-fit-to-volume-not-working-with-big-coordinates/9857 "2020-01-17T19:40:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbordignon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fbordignon/32/5269_2.png) [@fbordignon](https://discourse.slicer.org/u/fbordignon)\
**Post date:** [January 17, 2020, 7:40pm UTC](https://discourse.slicer.org/t/roi-fit-to-volume-not-working-with-big-coordinates/9857/1 "2020-01-17T19:40:11Z")

</div>

If I set the S origin coordinate of my volume to -5 000 000, when I click fit to volume, the ROI does not fit. It stays at -1 000 000  
I’ve tried to change the settings of length at the unit options window, but I cannot de/increase the min/max below/above -10 000 and 10 000

Funny thing is that if I save a volume as nrrd and load it with the origin coordinates set, when I show it at the volume viewer, a ROI is created with the correct coordinates surrounding my volume. As soon as I click fit to volume, the ROI is screwed.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [January 18, 2020, 2:32pm UTC](https://discourse.slicer.org/t/roi-fit-to-volume-not-working-with-big-coordinates/9857/2 "2020-01-18T14:32:33Z")

</div>

Thanks for reporting this, I’ve fixed the problem in revision 28736. It’ll be available in the next nightly build.

---

<div class="post-metadata">

**Author:** ![fbordignon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fbordignon/32/5269_2.png) [@fbordignon](https://discourse.slicer.org/u/fbordignon)\
**Post date:** [January 20, 2020, 2:20pm UTC](https://discourse.slicer.org/t/roi-fit-to-volume-not-working-with-big-coordinates/9857/3 "2020-01-20T14:20:46Z")

</div>

Thanks Andras. I will test and report back.

---

<div class="post-metadata">

**Author:** ![fbordignon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fbordignon/32/5269_2.png) [@fbordignon](https://discourse.slicer.org/u/fbordignon)\
**Post date:** [January 21, 2020, 8:41pm UTC](https://discourse.slicer.org/t/roi-fit-to-volume-not-working-with-big-coordinates/9857/4 "2020-01-21T20:41:20Z")

</div>

It is working as expected. Great job, thank you Andras.
