galfar / PasJpeg2000

JPEG 2000 for Pascal is a free library for Object Pascal developers that want to use JPEG 2000 images in their applications.
http://galfar.vevb.net/pasjpeg2000
6 stars 4 forks source link

JPEG 2000 satellite imagery #1

Open prof-pguth opened 6 months ago

prof-pguth commented 6 months ago

Hi,

I am trying to read Sentinel-2 satellite imagery from the European Space Agency. A sample is zipped and attached.

The reads fail with an access violation with the following call stack when I trace it in the debugger

The files work in the QGIS open source software. I am using the brand new Delphi 12.1 Athens. The sample image supplied with the program do work.

This project looks promising, but I don't see much activity so I don't know if it is still active.

T44SNH_20231227T052229_B8A_60m.zip

galfar commented 5 months ago

Hi,

I'll see if I can compile latest version of OpenJPEG library (one included in PasJpeg is very very old now) for recent Delphi.

The image in attached file looks to be split to 100 tiles internally, maybe that's what causing the trouble. The sample decoder included in latest OpenJPEG release can decode it now, so there's hope.

prof-pguth commented 5 months ago

Thanks for looking at this. If you can't get it to work with the updated library, your analysis gives me an idea. My code does not deal with tiled imagery, I can revert to just using GDAL to convert to untiled Tiffs. The drawback is doing that conversion when I have lots of satellite images and they are big, which is what attracted me to your code. On Tuesday, April 23, 2024 at 09:36:59 PM EDT, Marek Mauder @.***> wrote:

Hi,

I'll see if I can compile latest version of OpenJPEG library (one included in PasJpeg is very very old now) for recent Delphi.

The image in attached file looks to be split to 100 tiles internally, maybe that's what causing the trouble. The sample decoder included in latest OpenJPEG release can decode it now, so there's hope.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>