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

Wrong encoding of small tiles with high level number #239

Closed
gcode-importer opened this issue Sep 10, 2013 · 4 comments
Closed

Wrong encoding of small tiles with high level number #239

gcode-importer opened this issue Sep 10, 2013 · 4 comments
Assignees
Milestone

Comments

@gcode-importer
Copy link

Originally reported on Google Code with ID 239

What steps will reproduce the problem?
1. Take a large image (say 3840x2160) and define the tile size a bit smaller to make
one large tile and three smaller (say -t 3810,2130) and opj_compress with -n 6 or higher.
2. When DWT division comes to input width=1 (OPJ_INT32 rw in dwt.c, line 390) or  the
output for the tile is visibly incorrect.
3. There is a similar problem when tile height comes to 1 and then there is another
DWT level so it repeats the computation with height 1 (it should break in that case).


What is the expected output? What do you see instead?
The output j2k image is visibly malformed on the small tiles. 

What version of the product are you using? On what operating system?
r2345, Ubuntu Linux, 3.2.0-48-generic, x86_64

Please provide any additional information below.


Reported by The.Bobas on 2013-09-10 08:00:50

@gcode-importer
Copy link
Author

Reported by malaterre on 2014-02-25 15:48:49

  • Labels added: Milestone-Release2.1

@gcode-importer
Copy link
Author

Seems like I can reproduce it over here:

$ ./bin/opj_compress -i ../../data/input/nonregression/ElephantDream_4K.tif -o issue239.jp2
-n 7 -t 4046,2130

[INFO] tile number 1 / 4
[INFO] tile number 2 / 4
WARNING: No incltree created.
WARNING: No imsbtree created.
WARNING: No incltree created.
WARNING: No imsbtree created.
WARNING: No incltree created.
WARNING: No imsbtree created.
[INFO] tile number 3 / 4
[INFO] tile number 4 / 4
WARNING: No incltree created.
WARNING: No imsbtree created.
WARNING: No incltree created.
WARNING: No imsbtree created.
WARNING: No incltree created.
WARNING: No imsbtree created.
Generated outfile issue239.jp2

Reported by malaterre on 2014-03-04 10:07:57

  • Status changed: Accepted

@gcode-importer
Copy link
Author

Reported by malaterre on 2014-03-12 10:36:12

  • Labels added: Priority-Low
  • Labels removed: Priority-Medium

@rouault
Copy link
Collaborator

rouault commented Jul 29, 2017

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
Projects
None yet
Development

No branches or pull requests

4 participants