NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #638 (closed defect: fixed)

Opened 2011-06-24T15:33:46-05:00

Last modified 2011-06-24T15:42:37-05:00

Improve consistency of type changing conversions

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: biweekly-2011: Jun-20 to Jul-01
Component: Core Version:
Severity: serious Keywords:
Cc: Blocked By:


The Image :: Type menu entries all fire methods in the TypeChanger class. Some of the translations are inconsistent. Do two things to improve this:

1) always clamp data values to the output image's type range

2) for 1-bit images, when promoting to a different type set all 0 values to 0 and all 1 values to the max of the output type

Change History

comment:1 Changed 2011-06-24T15:42:37-05:00 by bdezonia

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

fixed in bacefbc82c65592c3fd87ca3aa22e0687d446c31