-
Notifications
You must be signed in to change notification settings - Fork 598
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
[feat]IBA:demosaic add white balancing #4499
base: main
Are you sure you want to change the base?
Changes from all commits
0c28c9e
e6b0a88
97dca6e
056459e
b6c38b7
cc858f8
fcd5e96
3eceff5
a5ebd7a
bf1dd42
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2163,6 +2163,9 @@ bool OIIO_API repremult (ImageBuf &dst, const ImageBuf &src, | |
/// | ||
/// The order the color filter array elements are arranged in, pattern-specific. | ||
/// | ||
/// - "white-balance" : float[3] or float[4] (default: {1.0, 1.0, 1.0, 1.0}) | ||
/// | ||
/// Optional white-balancing weights. Can contain either three (RGB), or four (RGGB) values. | ||
Comment on lines
+2166
to
+2168
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a use case for specifying two green values? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I have seen some images recently with the greens in red and blue rows having distinctly different levels. Sony A99, I think. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
RAW_PENTAX_K200D.PEF in the test suite has 2 different weights for the green sub-channels |
||
|
||
ImageBuf OIIO_API demosaic (const ImageBuf& src, KWArgs options = {}, | ||
ROI roi = {}, int nthreads = 0); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not requesting this as part of this PR, but just noting that at some point, we should do the thing where we move these actual code snippets to the appropriate parts of testsuite/docs-examples-cpp and testsuite/docs-examples-python, and then just include them by reference in the docs, so that it is confirmed that they compile and work correct with every CI run.