Hi Even,
Thanks for the help.
I was wondering if I could just get this byte range from the file, and save
it as jpeg2000 (with .j2c or something like that) and have a valid jpeg2000?
My goal is to be able to extract the jpeg2000 without using gdal_translate
in order to save time and resources
On Friday, 26 May 2023 8:09:50 PM AEST Even Rouault wrote:
> Hi,
>
> if you open such an image with debug traces (CPL_DEBUG=ON), you'll see
> something like
>
> GDAL: GDALOpen(/vsisubfile/907_565,byte.ntf, this=) succeeds as
> JP2OpenJPEG
>
> which means that the JPEG2000 file starts at
Hi,
if you open such an image with debug traces (CPL_DEBUG=ON), you'll see
something like
GDAL: GDALOpen(/vsisubfile/907_565,byte.ntf, this=) succeeds as
JP2OpenJPEG
which means that the JPEG2000 file starts at byte 907 with a length of
565 bytes.
Programatically from C/C++ , you
I don't know how to do that without significant code. What you can do, given the right gdal build, is to extract the image and recompress it as JPEG 2000. That would have the advantage of working with just about any NITF compression method, not just C8/M8. Obviously that does involve more CPU and
Hi,
For my understanding the nitf file is used as container, where compressed
jpeg2000 can be saved inside the nitf file.
I wonder if there is a way to use gdal to extract the jpeg2000 part and
save it separately (with extension of .j2c or other jpeg2000 extensions) ?
Thanks in advance,
Tobby