Icy-imaging / Icy-Kernel

Icy kernel module
http://icy.bioimageanalysis.com/
55 stars 16 forks source link

Fixed round-off issue in ROI3DStack.contains() #613

Closed DrDaleks closed 10 years ago

DrDaleks commented 10 years ago

writing (int) z poses issues when checking lower bounds. For instance, let us assume the ROI3D starts at z=0. Here a call to contains(anyX, anyY, -0.1) will return true because -0.1 is rounded off to 0, while it should return false.