Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
3b4d9801
Commit
3b4d9801
authored
Jun 09, 2015
by
Seon-Wook Park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more doxygen comments
parent
a8b1abcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
5 deletions
+26
-5
grayworld_white_balance.hpp
...xphoto/include/opencv2/xphoto/grayworld_white_balance.hpp
+26
-3
grayworld_white_balance.cpp
modules/xphoto/src/grayworld_white_balance.cpp
+0
-2
No files found.
modules/xphoto/include/opencv2/xphoto/grayworld_white_balance.hpp
View file @
3b4d9801
...
...
@@ -55,10 +55,33 @@ namespace cv { namespace xphoto {
//! @addtogroup xphoto
//! @{
/** @brief The function implements a simple grayworld white balance algorithm.
/** @brief Implements a simple grayworld white balance algorithm.
The function autowbGrayworld scales the values of pixels based on a
gray-world assumption which states that the average of all channels
should result in a gray image.
This function adds a modification which thresholds pixels based on their
saturation value and only uses pixels below the provided threshold in
finding average pixel values.
Saturation is calculated using the following for a 3-channel RGB image per
pixel I and is in the range [0, 1]:
\f[ \texttt{Saturation} [I] = \frac{\textrm{max}(R,G,B) - \textrm{min}(R,G,B)
}{\textrm{max}(R,G,B)} \f]
A threshold of 1 means that all pixels are used to white-balance, while a
threshold of 0 means no pixels are used. Lower thresholds are useful in
white-balancing saturated images.
Currently only works on images of type @ref CV_8UC3.
@param src Input array.
@param dst Output array of the same size and type as src.
@param thresh Maximum saturation for a pixel to be included in the
gray-world assumption.
@param src
@param dst
@sa balanceWhite
*/
CV_EXPORTS_W
void
autowbGrayworld
(
InputArray
src
,
OutputArray
dst
,
...
...
modules/xphoto/src/grayworld_white_balance.cpp
View file @
3b4d9801
...
...
@@ -44,8 +44,6 @@
namespace
cv
{
namespace
xphoto
{
/*!
*/
void
autowbGrayworld
(
InputArray
_src
,
OutputArray
_dst
,
const
float
thresh
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment