BoneJ2 icon indicating copy to clipboard operation
BoneJ2 copied to clipboard

Surface Area complains that axis calibrations are different when they are the same

Open mdoube opened this issue 4 years ago • 3 comments

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:

  1. Open a 3D binary image with isotropic pixel spacing
  2. Run Plugins > BoneJ > Surface Area
  3. 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

mdoube avatar Jun 11 '20 07:06 mdoube