BoneJ2
BoneJ2 copied to clipboard
Surface Area complains that axis calibrations are different when they are the same
Describe the bug Surface Area always complains that axis calibration is different even when it is the same, then returns an uncalibrated surface area.
To Reproduce Steps to reproduce the behavior:
- Open a 3D binary image with isotropic pixel spacing
- Run Plugins > BoneJ > Surface Area
- Note the warning message and uncalibrated result
Expected behavior Surface Area runs without a warning and returns a calibrated result
Context Seems to be in this method. All its tests pass, but there isn't a test for "axis calibrations are the same and no warning is shown" https://github.com/bonej-org/BoneJ2/blob/2de395e1c13d3a4bc3de75facc190eba9277514a/Modern/wrapperPlugins/src/main/java/org/bonej/wrapperPlugins/SurfaceAreaWrapper.java#L176