# Zero-valued spacing is not supported and may result in undefined behavior.

**URL:** https://discourse.itk.org/t/zero-valued-spacing-is-not-supported-and-may-result-in-undefined-behavior/5382
**Category:** Beginner Questions
**Tags:** registration, python, simpleitk
**Created:** [September 30, 2022, 6:26am UTC](https://discourse.itk.org/t/zero-valued-spacing-is-not-supported-and-may-result-in-undefined-behavior/5382 "2022-09-30T06:26:57Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![orena1](https://discourse.itk.org/user_avatar/discourse.itk.org/orena1/32/2959_2.png) [@orena1](https://discourse.itk.org/u/orena1)
#### Post date: [October 1, 2022, 9:16pm UTC](https://discourse.itk.org/t/zero-valued-spacing-is-not-supported-and-may-result-in-undefined-behavior/5382/5 "2022-10-01T21:16:52Z")

</div>

Thanks for your reply, @zivy

I know the image is all zeros, it is a top left subtile of a larger image for registration, it is all zeros as it is out of the FoV of the moving image:

 ![image](https://discourse.itk.org/uploads/default/original/2X/0/05a349f160afef2aa8911247986ecb1f9c017a6f.jpeg)

I would expect that in this case it would just return a zero of inf or something like that? no?  
I assume if I just add some very small noise to these ares it will be ok?  
Any thoughts?

Thanks

---

_[View the full topic](https://discourse.itk.org/t/zero-valued-spacing-is-not-supported-and-may-result-in-undefined-behavior/5382)._
