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

Encoding the following file with 32x32 tiling produces jp2 image with artifact #737

Closed
boxerab opened this issue Apr 13, 2016 · 2 comments
Closed
Labels

Comments

@boxerab
Copy link
Contributor

boxerab commented Apr 13, 2016

Encode the following TIF with the encoder settings

-i b2_mono.tif -o b2_mono.jp2 -OutFor jp2 -t 32,32

and the resulting jp2 image has an artifact on the right hand side of the image, about 15 pixels wide,
which corresponds to the width of the right-most tiles.

I also observed that the artifact is present for the default n=6 resolution levels, but not present
for n < 6. So, it looks like a tile of width 15 with 6 resolutions levels is not being encoded properly, probably due to LL0 having zero width.

I also observed that if I tried to do a single tile encode of a 303x179 image with n = 9,
encode fails, complaining that the number of resolutions is too high. So, in the 32x32 tile
case, it looks like the code can't handle n=6 for the boundary tiles, of width 15.

So, to be consistent, encoder should reject these settings, just like it rejects single tile encodings when n is too large.

b2_mono.zip

@mayeut mayeut added the bug label Apr 23, 2016
@boxerab boxerab closed this as completed Dec 28, 2016
@boxerab
Copy link
Contributor Author

boxerab commented Dec 29, 2016

Happy Holidays

@rouault
Copy link
Collaborator

rouault commented Jul 29, 2017

Can no longer reproduce. Likely fixed per 73d1510

@rouault rouault closed this as completed Jul 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants