Ticket #844 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

IJ1 Show Info command looks bad for pure IJ2 datasets

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b1-initial
Component: Data Model Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

If you use File New Image to create an image and then run the Show Info plugin on it you get a mess of NaNs displayed in the window. IJ2 defaults calibration values to NaN which is the problem.

Change History

comment:1 Changed 8 years ago by bdezonia

  • Status changed from new to closed
  • Resolution set to fixed

A fix put in 3163148da2d608a1c9baeaee8e9edc93c86f6009.

When IJ2 calibration values are NaN they initialize an ImagePlus' calib values to IJ1 defaults. Note that as a consequence after running a legacy plugin harmonization back will set these IJ2 NaNs to IJ1 defaults.

Could check that if IJ2 initially NaN and IJ1 value is default to not set IJ2's calib values. But that has the effect of not setting any IJ2 calib value when a user may have specifically set a calib value that happens to match a default (1.0 x, 1.0 y, 1.0 z, 0.0 t).

comment:2 Changed 8 years ago by bdezonia

Final fix in 4b60cc8978aa19bdc5f4c24fffd48d6c43e76479.

Decided to modify Imglib to default calibration values to 1.0 rather than NaN. Changed IJ2 to reflect this change.

Note: See TracTickets for help on using tickets.