bonej-org / bonej

BoneJ 1.x releases. For up-to-date code see https://github.com/bonej-org/BoneJ2
6 stars 7 forks source link

Unexpectedly large mass in Moments of Inertia #33

Closed rimadoma closed 6 years ago

rimadoma commented 8 years ago

An uncalibrated image produces weird results when run through _Moments of Inertia: "mass" becomes unexpectedly large.

Steps to reproduce
  1. Open bone sample image (File > Open Samples > Bat Cochlea Volume)
  2. Run Moments of Inertia (Plugins > BoneJ > Moments of Inertia)
  3. Press OK on the Setup dialog
  4. "Mass" column shows "173970 g"
mdoube commented 6 years ago

There isn't an obvious way to deal with this. The problem is that the code operates as though you have 1cm / pixel, which is not very intuitive. It makes more sense for most of our images to assume 1 mm pixel spacing. Fixed by https://github.com/mdoube/BoneJ/commit/e8136c9102ec8f2295fc0c88adfd2fd3f38dfec1