[gdal-dev] GDAL and Kakadu library - Problem with float images

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] GDAL and Kakadu library - Problem with float images

Alberto Monescillo
Hi all,

I am trying to use gdal with kakadu library to write JPEG2000 images.
I need to write the output images as float images (GDT_Float32), but I am not able.
I have tried different options, but the image is always generated as Byte type.

I have reviewed the file 'jp2kakdataset.cpp', and in principle everything seems to be correct according to kakadu documentation.

Is there anyone who knows how to do it?

I am using the CreateCopy method from the GDALDataset object previously created.

Thanks in advance.

Regards,
  Alberto.

Este mensaje va dirigido exclusivamente a la(s) persona(s) indicada(s) y puede contener información/documentación confidencial de carácter legal o personal del Grupo Deimos. La transmisión errónea del presente mensaje en ningún momento supone renuncia a su confidencialidad. Si el lector del mensaje no es el destinatario indicado cualquier copia o distribución de esta comunicación queda estrictamente prohibida. En este caso, rogamos que nos lo notifiquen inmediatamente por teléfono y que remitan el mensaje original a la dirección de correo electrónico indicada más arriba.

En cumplimiento de lo dispuesto en el Reglamento 2016/679, del Parlamento Europeo y del Consejo y/o en cualquier otra ley o normativa aplicable en materia de protección de datos personales, le informamos que los datos personales serán tratados con la debida confidencialidad y las medidas de seguridad exigidas de acuerdo con nuestra Política de Privacidad.

 

This message is exclusively addressed to the mentioned person(s) and it may contain confidential, proprietary or legally privileged information/documentation of Deimos Group. No confidentiality or privilege is waived or lost by any mistransmission. If the reader of this message is not the intended recipient then any distribution or copying of this communication is strictly prohibited. In this case please notify us immediately by telephone and mail the original message to us at the address noted above.

In compliance with the provisions of the Regulation (EU) 2016/679 of the European Parliament and of the Council and/or any other legislation and regulation that may be applicable on the protection of personal data, we hereby inform you that the personal data will be treated with the due confidentiality and security measures required in accordance with our Privacy Policy.


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: GDAL and Kakadu library - Problem with float images

Even Rouault-2
On lundi 15 juillet 2019 13:41:25 CEST Alberto Monescillo wrote:
> Hi all,
>
> I am trying to use gdal with kakadu library to write JPEG2000 images.
> I need to write the output images as float images (GDT_Float32), but I am
> not able.
> I have tried different options, but the image is always generated as Byte
> type.

The JPEG2000 baseline standard only supports integer images... So your best
option is to apply a scale / offset to convert your floating point values to
integer ones.

The JP2LURA driver ( https://gdal.org/drivers/raster/jp2lura.html ) has an
experimental & non-standard feature to support Float32 values. See the
SPLIT_IEEE754=YES creation option. Could potentially be transposed to other
JPEG2000 capable drivers (provided they support 23 bit channels).

Even

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev