uclouvain/openjpeg

JP2 File incorrectly decompressed to noise

M-DeRosier opened this issue · 0 comments

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