-
Notifications
You must be signed in to change notification settings - Fork 418
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
Feature request: 16-bit support for Bayer demosaicing #177
Comments
Hi! |
Hi. For my use case, it would be more like 16-bit per channel Also, the camera SDK allows retrieving 10-bit and 12-bit Bayer images. |
Could you give any reference to description of these (10-bit and 12-bit Bayer) image format? |
As to description of algorithm used in Simd unfortunately I can't remember original paper or reference code which I used to implement it. I remember that the algorithm is smarter than simple bilinear interpolation - it uses information from farer pixels for correction of corners coloring. |
What I am getting is txt files with header description. Something like mode (10 bits per pixel or 12 per pixel), width/height (2048), etc. I don't have much more information. I don't have access to the camera / software anymore. Something like Too bad for the reference. |
Looks like I am not the only one interested into Bayer conversion 😃 |
There are fast and slow ways to implement 16-bit Bayer to BGR conversion: 1) I use current algorithm for 8-bit and update it to 16-bit. 2) I try to implement algorithms from your paper - it may take much more time. |
There is third way: you implement Base (scalar) desired algorithm of 16-bit Bayer to RGB and then I will perform it optimization for different SIMD. |
Thanks. |
@ermig1979 There is this paper that could be interesting: Efficient, High-Quality Bayer Demosaic Filtering on GPUs Just found also this paper: Malvar-He-Cutler Linear Image Demosaicking |
Hello! But this will be a great amount of work. So I have to be shure that it is exactly that you need. In other words: is the quality of these demosaic algorithms is enough to you? |
To summarize for my use case, ideally:
|
I found a small project which implements many debayering algorithms: |
I think it could be useful to have Bayer demosaicing support for 16-bit datatype.
If other people agree, please add a +1 to this post.
Also, what is the demosaicing method? I believe it is bilinear demosaicing. Could the doc be updated with some details/reference about the algorithm used?
The text was updated successfully, but these errors were encountered: