imagej / imagej-ops

ImageJ Ops: "Write once, run anywhere" image processing
https://imagej.net/libs/imagej-ops
BSD 2-Clause "Simplified" License
88 stars 42 forks source link

Fix floating point numbers comparison in CreateKernelDiffractionTest #588

Closed igorpisarev closed 5 years ago

igorpisarev commented 5 years ago

CreateKernelDiffractionTest was failing on my machine when building imagej-ops using Oracle JDK 10 due to floating point imprecision. Fixed by using a reasonable threshold value for comparison.