-
Notifications
You must be signed in to change notification settings - Fork 44
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
Error decode PPM #70
Comments
Hi Lucas, This images has two downsampled components. The only way to save them to ppm is if you interpolate these two components. Then, if you were to interpolate, where do these component sit relative to the first component (the one that is not downsampled); possible answers are: 0,0 or 1,1 or 0.5, 0.5 and many other locations. We cannot expect a decoder to be able to do all possible imagined tasks. For these tasks, you have to write your own code. Kind regards, |
Hi Aous Edit: I used your latest grok codecs. Previously, jp2 exif files had blotches. Now I have a mistake, but I will not upset the grok. regards [2021-09-15 09:16:31.156] [error] Error in HT block coder |
You setting is correct. -downsamp {1,1},{2,1},{2,1}. I do not know what happens in OpenJPEG; when you save to ppm, II think the result would still be in YUV, not in RGB. |
OK. And it generally keeps some subsamling data. For RGB24/yuv444 I have red photos when decoding. |
It keeps the sub-sampling data. Like you discovered, it does not perform color transform. |
OK. Right. There is no info. I should only decode to PPM. |
If you encode ppm, decode to ppm. If you encode yuv, decode to yuv. |
67fda0c
ojph error 0x20000003 at ojph_expand.cpp:235: To save an image to ppm, all the components must have the downsampling ratio
[INFO] Start to read j2k main header (0).
[INFO] Main header has been correctly decoded.
[INFO] No decoded area parameters, set the decoded area to the whole image
[INFO] Header of tile 1 / 1 has been read.
[INFO] Generated Outfile xxx.ppm
decode time: 136 ms
The text was updated successfully, but these errors were encountered: