[gdal-dev] Support of KOLOR KRO raw file
Pierre CARREAUD
pierre.carreaud at sites.fr
Thu Dec 12 05:48:09 PST 2013
Hi List,
Do you know if GDAL can read .kro files ? Its KOLOR Raw format. This type
of file is exported by Kolor Autopano Giga. If not, is it hard to implement?
The format is following: (http://www.autopano.net/wiki-en/Format_KRO )
Header is 20 bytes long :
3 bytes : "KRO" signature in hex 0x4B 0x52 0x4F
1 byte : 0x01 version
unsigned long : Width
unsigned long : Height
unsigned long : depth = > 8 bits, 16 bits, 32 bits unsigned long : ncomp
=> number of compoment, 4 by default, RGB + Alpha Data * : the data
uncompressed
- Everything is stored in big endian form ( header and datas )
- the data is stored RGBA, RGBA ( or RGB, RGB if you have 3 component only )
- It's row major order, meaning, you store first row, then second row
- top row is the first row
- Within a row, are columns stored left-to-right
- 16bits format is a 16bits integer (0..65535), not floating point ( it's
not like half floating point in openEXR )
- 32bits format is pure 'c' float stored binary in big endian format ( IEEE
754 binary floating point )
- no color space specification nor metadata stored
- file size limit is ruled by file system
Regards,
Pierre CARREAUD
Responsable daffaire en topographie et lasergrammétrie
LINGÉNIERIE DE LA DURABILITÉ
SITES Entité Île-de-France
Pôle MIR (Métrologie - Instrumentations - Relevés)
2 bis avenue du Centre
92500 Rueil-Malmaison, France
Tel : 01 41 39 02 00 / Fax : 01 41 39 02 01 www.sites.fr
EXPERTISE INSTRUMENTATION / MESURES INGENIERIE
More information about the gdal-dev
mailing list