Ticket #638 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

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 9 years ago by bdezonia

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

fixed in bacefbc82c65592c3fd87ca3aa22e0687d446c31

Note: See TracTickets for help on using tickets.