Opened 11 years ago

Closed 11 years ago

#2334 closed defect (fixed)

Non eight bit data not being strected correctly by the ossimScalarRemapper.

Reported by: dburken Owned by: dburken
Priority: normal Milestone: OMAR Dec 2012
Component: Algorithms/Functionality Version: ossim/OMAR 1.8.14-3
Severity: blocker Keywords: stretch
Cc:

Description

Found ossimScalarRemapper::getTile calling "stretchMinMax" on the input tile prior to "copyTileToNormalizedBuffer". The ossimImageData::stretchMinMax call was not resetting the input tiles min max data members; hence, the subsequent call to copyTileToNormalizedBuffer was stretching between the old min, max values causing a squashed range.

Change History (1)

comment:1 by dburken, 11 years ago

Resolution: fixed
Status: newclosed

1) Took stretch to min max out of scalar remapper.

2) Added set of min, max from input in image data factory.

3) Added reset of min, max, null in stretchToMinMax method.

Files:

      ossim/src/ossim/imaging/ossimImageData.cpp
      ossim/src/ossim/imaging/ossimImageDataFactory.cpp
      ossim/src/ossim/imaging/ossimScalarRemapper.cpp

Note: See TracTickets for help on using tickets.