Ticket #1703 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

Automatic binary image conversion can be unexpected

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b7-ndim-data
Component: Legacy Compatibility Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1563


Create a new 8-bit unsigned image filling with either White or Black only. Now run Image > Properties command and hit OK (no changes to fields necessary). Now Save Image As: it fails with an error message about unsupported pixel type.

Debugging one can see that the underlying data type of the Img is BitType. After the Properties command runs the Harmonizer determines that the image is a binary image in IJ1's terms (8-bit with all pixels 0 or 255). So the image is converted to 1-bit. In this case the user probably doesn't want this.

Determine whether to do this kind of conversion in the harmonization step. We made a point of adding it but perhaps we were hasty in our decision.

Change History

comment:1 Changed 7 years ago by bdezonia

  • Blocking 1563 added

comment:2 Changed 7 years ago by bdezonia

  • Priority changed from major to minor

comment:3 Changed 7 years ago by bdezonia

  • Priority changed from minor to major

comment:4 Changed 7 years ago by bdezonia

Automatic conversion to 1-bit ImageJ2 data is no longer in place on the scifiocells branch. Once that code is merged this ticket can be considered fixed.

comment:5 Changed 7 years ago by bdezonia

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

Code merged. Closing.

Note: See TracTickets for help on using tickets.