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

JP2 File incorrectly decompressed to noise #1447

Closed
M-DeRosier opened this issue Oct 18, 2022 · 0 comments · Fixed by #1448
Closed

JP2 File incorrectly decompressed to noise #1447

M-DeRosier opened this issue Oct 18, 2022 · 0 comments · Fixed by #1448

Comments

@M-DeRosier
Copy link

I have a .jp2 file that is incorrectly decompressed with OpenJPEG, resulting in an image containing "chunky" noise. The ERDAS ECW and grok jpeg2000 libraries are able to decompress it into something that makes sense. opj_dump is able to read the file's metadata and the only interesting thing there is that there are a curiously high number of resolutions per component that I cannot recreate using opj_compress. When I try with a similarly sized image, it outputs the message [ERROR] Number of resolutions is too high in comparison to the size of tiles - unsure if this is related to the incorrect decompression or not.

Expected behavior

The attached image should decompress to an image containing a satellite view with clearly defined buildings, terrain, roads, etc.

Actual behavior

File is decompressed to different frequencies of mostly white/black noise, some coloured pixels.

Steps to reproduce the problem.

Run problemFile.zip though opj_decompress to any output format (I used BMP and PNG, the results are the same).

Operating system

Windows 10 (untested on Linux, suspect similar output)

openjpeg version

2.5

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

Successfully merging a pull request may close this issue.

2 participants