Skip to content
Snippets Groups Projects
Commit f053b934 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

vtkTesting: handle SSIM's [-1,1] range


When SSIM returns a negative value, the histogram bucketing ends up
writing to out-of-bounds memory. Don't do that and instead shift the
buckets to account for the full range of values that are possible.

Finally, add commentary on the code.

See commit cd75f4b9 which applied this
to `master` and `release`.

Co-authored-by: default avatarSpiros Tsalikis <spiros.tsalikis@kitware.com>
parent 7a07dd33
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment