Ticket #1421 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

Signed 8-bit test images don't survive IJ2->IJ1->IJ2 roundtrip

Reported by: aivar Owned by: bdezonia
Priority: minor Milestone: imagej2-b4-plugins
Component: Core Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1420

Description

Create a test ramp image (File\New\Image) with signed 8-bit, the image looks fine with a grayscale ramp, but if you apply a LUT (Image/Lookup Tables/Fire) the LUT range is distorted.

(This is the first screen capture in luts.png, attached to parent ticket 1420.)

The initial range of values for the ramp image is -128 to 127, from top left to lower right corner. After you apply a LUT the range becomes 0 to 127. With the probe tool you can see values in the white area on the left are all 127. Values at the diagonal black line are 0, going to 127 in the lower right corner.

Change History

comment:1 Changed 7 years ago by bdezonia

  • Milestone changed from imagej-2.0.0-beta5 to imagej-2.0.0-beta4

comment:2 Changed 7 years ago by bdezonia

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

Fixed with commit f4fec78f8e4431dea10afd9c0cf2a8349a3f128d

Note: See TracTickets for help on using tickets.