Ticket #1703 (closed defect: fixed)
Opened 2013-03-19T14:31:03-05:00
Last modified 2013-06-04T11:40:44-05:00
Automatic binary image conversion can be unexpected
Reported by: | bdezonia | Owned by: | bdezonia |
---|---|---|---|
Priority: | major | Milestone: |
|
Component: | Legacy Compatibility | Version: | |
Severity: | serious | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1563 |
Description
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:4 Changed 2013-05-17T15:02:56-05:00 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 2013-06-04T11:40:44-05:00 by bdezonia
- Status changed from new to closed
- Resolution set to fixed
Code merged. Closing.