[Insight-developers] ImageRegion bounds caching

Williams, Norman K norman-k-williams at uiowa.edu
Tue Mar 1 16:46:41 EST 2011


2 things:

1. Turning on numerical exceptions would have caught this.
2. I don't know if there's a safe way to test for NaN and inf values with
numeric exceptions turned on. If you're testing for them, it could make it
so nothing would work with floating point exceptions turned on.

On 3/1/11 2:27 PM, "M Stauffer (V)" <mstauff at verizon.net> wrote:
>I will however add to ImageRegionTest to make sure that IsInside(
>ContinuousIndex ) returns false for NaN and Inf values, as I did
>recently for ImageFunction::IsInsideBuffer. Currently
>ImageRegion::IsInside ContinousIndex ) does return false for NaN, but
>only because NaN is cast to integer which yields a massive negative
>number that is out of bounds. The test will make sure this works on all
>platforms and remains this way in the future.



________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________


More information about the Insight-developers mailing list