-
Notifications
You must be signed in to change notification settings - Fork 48
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
Question : what format to be used to decompress the color HTJ2K compressed imaging data #108
Comments
Why do you want to decompress to raw? JPEG2000 usually converts RGB to YUV, and stores the Y, U, and V components. Most implementations, including OpenJPH, do that, The difficulty I face is when we save to raw or yuv, do we save RGB or the internal YUV? Note that U and V can be signed components -- I need to check about signedness. For your case, I would recommend saving to ppm. It is a very simple format. Hope this helps. |
Ok, couple of questions.
|
It is always RGB. Forgot to say nobody uses ASCII format, AFAIK, because it is not efficient. So don't worry about it. |
ok, I wrote simple Here is the use case where I need to pixel data to be updated in the DICOM file |
Excellent! |
I am closing this due to no activity. |
Hi
I have color imaging data compressed using HTJ2K format , I was trying to decompress to a raw format (yuv), I am getting below error.
ojph error 0x20000005 at ojph_expand.cpp:310: The current implementation of yuv file object does not support saving file when conversion from yuv to rgb is needed; in any case, this is not the normal usage of yuvfile.
Any idea how to decompress it to raw ?
Note , image data is in RGB
The text was updated successfully, but these errors were encountered: