You can use the GDALRasterBand::SetScale() and GDALRasterBand::SetOffset()
methods[1]. There are methods to retrieve them too.
[1]: http://www.gdal.org/classGDALRasterBand.html
On Tue, Jul 26, 2011 at 2:53 PM, el_inca wrote:
> Thank you for your answer.
>
> In gdal-translate.exe there is an opt
Thank you for your answer.
In gdal-translate.exe there is an option of -scale pixel range.
How can i set this parameters from code (visual c++) ?
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Saving-16-bit-image-tp6606613p6621525.html
Sent from the GDAL - Dev mailing l
Selon el_inca :
> I just mean..Is it necessary to do manipulations with scanline (byte array
> corresponding to 8 bit image) to save it with RasterIO to 16 bit depth ?
You *can* use a byte array to write the scanline of a 16-bit image, but of
course in that case, the values written in the 16-bit
I just mean..Is it neŃessary to do manipulations with scanline (byte array
corresponding to 8 bit image) to save it with RasterIO to 16 bit depth ?
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Saving-16-bit-image-tp6606613p6606792.html
Sent from the GDAL - Dev mailing