Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#5692 closed defect (fixed)

GetMaskBand() doesn't work on UInt16 RGBA

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.11.2
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: overview uint16 alpha
Cc:

Description

GDALRasterBand::GetMaskBand() returns ALL_VALID on a UInt16 RGBA dataset because it checks that the alpha band is of type Byte (since according to https://trac.osgeo.org/gdal/wiki/rfc15_nodatabitmask "The masks are represented as GDT_Byte bands with a value of zero indicating nodata and non-zero values indicating valid data. Normally the value 255 will be used for valid data pixels") So average overview computation on such a dataset will average everything including the transparent areas whose value is 0

Change History (2)

comment:1 by Even Rouault, 10 years ago

Milestone: 1.11.2
Resolution: fixed
Status: newclosed

trunk r27857, branches/1.11 r27858 "Make GetMaskBand() work with GDT_UInt16 alpha bands (#5692)"

comment:2 by Even Rouault, 10 years ago

trunk r27873, branches/1.11 r27874 "Remove unused member variable from GDALRescaledAlphaBand (#5692)"

Note: See TracTickets for help on using tickets.