You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a better way to do this which is to multiply the x, y, z coordinates of the surface mesh vertices by pixel width, height and depth just prior to calculating the cross product. The area produced will be calibrated and can handle any anisotropy.
It would still be helpful to know whether the units of each axis are different, (e.g. pixels in z but mm in xy), although that is not possible in ImagePlusCalibration, it might be in ImageJ2-land. If units are indeed different then that would be a user thing to fix - too hard to do all the possible conversions.
Hi @ctrueden, could you please point to where meshes are actually made in the Ops? I get stuck in Interfaces when F3-ing through method calls in Eclipse, and never seem to get to the meat of the code where the work is done. Ideally the mesh would be calibrated using the input image's calibration (so that the vertex positions are in real units), so that no further calibration is required.
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:
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"
BoneJ2/Modern/wrapperPlugins/src/main/java/org/bonej/wrapperPlugins/SurfaceAreaWrapper.java
Line 176 in 2de395e
The text was updated successfully, but these errors were encountered: