Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JPEG 2000 satellite imagery #1

Open
prof-pguth opened this issue Apr 15, 2024 · 2 comments
Open

JPEG 2000 satellite imagery #1

prof-pguth opened this issue Apr 15, 2024 · 2 comments

Comments

@prof-pguth
Copy link

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

  • procedure TJpeg2000Bitmap.LoadFromStream(Stream: TStream);
  • image := opj_decode(dinfo, cio);
  • function malloc(size: Cardinal): Pointer; cdecl; external MSCRuntimeLib;

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
Copy link
Owner

galfar commented Apr 24, 2024

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
Copy link
Author

prof-pguth commented Apr 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants