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 cd75f4b9618cb62e623c4adf88c5da0b346e2a83 which applied this
to `master` and `release`.

Co-authored-by: default avatarSpiros Tsalikis <spiros.tsalikis@kitware.com>
parent 7a07dd33
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment