Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
3dd1afe4
Commit
3dd1afe4
authored
Nov 24, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3433 from StevenPuttemans:fix_whitebalance_naming
parents
047b1ca4
f151b1d2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
13 deletions
+21
-13
reading_and_writing_images_and_video.rst
modules/highgui/doc/reading_and_writing_images_and_video.rst
+10
-2
highgui_c.h
modules/highgui/include/opencv2/highgui/highgui_c.h
+2
-2
cap_dc1394_v2.cpp
modules/highgui/src/cap_dc1394_v2.cpp
+4
-4
cap_dshow.cpp
modules/highgui/src/cap_dshow.cpp
+3
-3
gen_java.py
modules/java/generator/gen_java.py
+2
-2
No files found.
modules/highgui/doc/reading_and_writing_images_and_video.rst
View file @
3dd1afe4
...
@@ -406,10 +406,14 @@ Returns the specified ``VideoCapture`` property
...
@@ -406,10 +406,14 @@ Returns the specified ``VideoCapture`` property
* **CV_CAP_PROP_CONVERT_RGB** Boolean flags indicating whether images should be converted to RGB.
* **CV_CAP_PROP_CONVERT_RGB** Boolean flags indicating whether images should be converted to RGB.
* **CV_CAP_PROP_WHITE_BALANCE** Currently not supported
* **CV_CAP_PROP_WHITE_BALANCE_U** The U value of the whitebalance setting (note: only supported by DC1394 v 2.x backend currently)
* **CV_CAP_PROP_WHITE_BALANCE_V** The V value of the whitebalance setting (note: only supported by DC1394 v 2.x backend currently)
* **CV_CAP_PROP_RECTIFICATION** Rectification flag for stereo cameras (note: only supported by DC1394 v 2.x backend currently)
* **CV_CAP_PROP_RECTIFICATION** Rectification flag for stereo cameras (note: only supported by DC1394 v 2.x backend currently)
* **CV_CAP_PROP_ISO_SPEED** The ISO speed of the camera (note: only supported by DC1394 v 2.x backend currently)
* **CV_CAP_PROP_BUFFERSIZE** Amount of frames stored in internal buffer memory (note: only supported by DC1394 v 2.x backend currently)
* **CV_CAP_PROP_BUFFERSIZE** Amount of frames stored in internal buffer memory (note: only supported by DC1394 v 2.x backend currently)
...
@@ -463,10 +467,14 @@ Sets a property in the ``VideoCapture``.
...
@@ -463,10 +467,14 @@ Sets a property in the ``VideoCapture``.
* **CV_CAP_PROP_CONVERT_RGB** Boolean flags indicating whether images should be converted to RGB.
* **CV_CAP_PROP_CONVERT_RGB** Boolean flags indicating whether images should be converted to RGB.
* **CV_CAP_PROP_WHITE_BALANCE** Currently unsupported
* **CV_CAP_PROP_WHITE_BALANCE_U** The U value of the whitebalance setting (note: only supported by DC1394 v 2.x backend currently)
* **CV_CAP_PROP_WHITE_BALANCE_V** The V value of the whitebalance setting (note: only supported by DC1394 v 2.x backend currently)
* **CV_CAP_PROP_RECTIFICATION** Rectification flag for stereo cameras (note: only supported by DC1394 v 2.x backend currently)
* **CV_CAP_PROP_RECTIFICATION** Rectification flag for stereo cameras (note: only supported by DC1394 v 2.x backend currently)
* **CV_CAP_PROP_ISO_SPEED** The ISO speed of the camera (note: only supported by DC1394 v 2.x backend currently)
* **CV_CAP_PROP_BUFFERSIZE** Amount of frames stored in internal buffer memory (note: only supported by DC1394 v 2.x backend currently)
* **CV_CAP_PROP_BUFFERSIZE** Amount of frames stored in internal buffer memory (note: only supported by DC1394 v 2.x backend currently)
:param value: Value of the property.
:param value: Value of the property.
...
...
modules/highgui/include/opencv2/highgui/highgui_c.h
View file @
3dd1afe4
...
@@ -362,7 +362,7 @@ enum
...
@@ -362,7 +362,7 @@ enum
CV_CAP_PROP_GAIN
=
14
,
CV_CAP_PROP_GAIN
=
14
,
CV_CAP_PROP_EXPOSURE
=
15
,
CV_CAP_PROP_EXPOSURE
=
15
,
CV_CAP_PROP_CONVERT_RGB
=
16
,
CV_CAP_PROP_CONVERT_RGB
=
16
,
CV_CAP_PROP_WHITE_BALANCE_
BLUE_
U
=
17
,
CV_CAP_PROP_WHITE_BALANCE_U
=
17
,
CV_CAP_PROP_RECTIFICATION
=
18
,
CV_CAP_PROP_RECTIFICATION
=
18
,
CV_CAP_PROP_MONOCROME
=
19
,
CV_CAP_PROP_MONOCROME
=
19
,
CV_CAP_PROP_SHARPNESS
=
20
,
CV_CAP_PROP_SHARPNESS
=
20
,
...
@@ -373,7 +373,7 @@ enum
...
@@ -373,7 +373,7 @@ enum
CV_CAP_PROP_TEMPERATURE
=
23
,
CV_CAP_PROP_TEMPERATURE
=
23
,
CV_CAP_PROP_TRIGGER
=
24
,
CV_CAP_PROP_TRIGGER
=
24
,
CV_CAP_PROP_TRIGGER_DELAY
=
25
,
CV_CAP_PROP_TRIGGER_DELAY
=
25
,
CV_CAP_PROP_WHITE_BALANCE_
RED_
V
=
26
,
CV_CAP_PROP_WHITE_BALANCE_V
=
26
,
CV_CAP_PROP_ZOOM
=
27
,
CV_CAP_PROP_ZOOM
=
27
,
CV_CAP_PROP_FOCUS
=
28
,
CV_CAP_PROP_FOCUS
=
28
,
CV_CAP_PROP_GUID
=
29
,
CV_CAP_PROP_GUID
=
29
,
...
...
modules/highgui/src/cap_dc1394_v2.cpp
View file @
3dd1afe4
...
@@ -665,13 +665,13 @@ double CvCaptureCAM_DC1394_v2_CPP::getProperty(int propId)
...
@@ -665,13 +665,13 @@ double CvCaptureCAM_DC1394_v2_CPP::getProperty(int propId)
return
fps
;
return
fps
;
case
CV_CAP_PROP_RECTIFICATION
:
case
CV_CAP_PROP_RECTIFICATION
:
return
rectify
?
1
:
0
;
return
rectify
?
1
:
0
;
case
CV_CAP_PROP_WHITE_BALANCE_
BLUE_
U
:
case
CV_CAP_PROP_WHITE_BALANCE_U
:
if
(
dc1394_feature_whitebalance_get_value
(
dcCam
,
if
(
dc1394_feature_whitebalance_get_value
(
dcCam
,
&
feature_set
.
feature
[
DC1394_FEATURE_WHITE_BALANCE
-
DC1394_FEATURE_MIN
].
BU_value
,
&
feature_set
.
feature
[
DC1394_FEATURE_WHITE_BALANCE
-
DC1394_FEATURE_MIN
].
BU_value
,
&
feature_set
.
feature
[
DC1394_FEATURE_WHITE_BALANCE
-
DC1394_FEATURE_MIN
].
RV_value
)
==
DC1394_SUCCESS
)
&
feature_set
.
feature
[
DC1394_FEATURE_WHITE_BALANCE
-
DC1394_FEATURE_MIN
].
RV_value
)
==
DC1394_SUCCESS
)
return
feature_set
.
feature
[
DC1394_FEATURE_WHITE_BALANCE
-
DC1394_FEATURE_MIN
].
BU_value
;
return
feature_set
.
feature
[
DC1394_FEATURE_WHITE_BALANCE
-
DC1394_FEATURE_MIN
].
BU_value
;
break
;
break
;
case
CV_CAP_PROP_WHITE_BALANCE_
RED_
V
:
case
CV_CAP_PROP_WHITE_BALANCE_V
:
if
(
dc1394_feature_whitebalance_get_value
(
dcCam
,
if
(
dc1394_feature_whitebalance_get_value
(
dcCam
,
&
feature_set
.
feature
[
DC1394_FEATURE_WHITE_BALANCE
-
DC1394_FEATURE_MIN
].
BU_value
,
&
feature_set
.
feature
[
DC1394_FEATURE_WHITE_BALANCE
-
DC1394_FEATURE_MIN
].
BU_value
,
&
feature_set
.
feature
[
DC1394_FEATURE_WHITE_BALANCE
-
DC1394_FEATURE_MIN
].
RV_value
)
==
DC1394_SUCCESS
)
&
feature_set
.
feature
[
DC1394_FEATURE_WHITE_BALANCE
-
DC1394_FEATURE_MIN
].
RV_value
)
==
DC1394_SUCCESS
)
...
@@ -795,7 +795,7 @@ bool CvCaptureCAM_DC1394_v2_CPP::setProperty(int propId, double value)
...
@@ -795,7 +795,7 @@ bool CvCaptureCAM_DC1394_v2_CPP::setProperty(int propId, double value)
else
else
act_feature
->
current_mode
=
DC1394_FEATURE_MODE_MANUAL
;
act_feature
->
current_mode
=
DC1394_FEATURE_MODE_MANUAL
;
// if property is one of the white balance features treat it in different way
// if property is one of the white balance features treat it in different way
if
(
propId
==
CV_CAP_PROP_WHITE_BALANCE_
BLUE_
U
)
if
(
propId
==
CV_CAP_PROP_WHITE_BALANCE_U
)
{
{
if
(
dc1394_feature_whitebalance_set_value
(
dcCam
,
cvRound
(
value
),
act_feature
->
RV_value
)
!=
DC1394_SUCCESS
)
if
(
dc1394_feature_whitebalance_set_value
(
dcCam
,
cvRound
(
value
),
act_feature
->
RV_value
)
!=
DC1394_SUCCESS
)
return
false
;
return
false
;
...
@@ -805,7 +805,7 @@ bool CvCaptureCAM_DC1394_v2_CPP::setProperty(int propId, double value)
...
@@ -805,7 +805,7 @@ bool CvCaptureCAM_DC1394_v2_CPP::setProperty(int propId, double value)
return
true
;
return
true
;
}
}
}
}
if
(
propId
==
CV_CAP_PROP_WHITE_BALANCE_
RED_
V
)
if
(
propId
==
CV_CAP_PROP_WHITE_BALANCE_V
)
{
{
if
(
dc1394_feature_whitebalance_set_value
(
dcCam
,
act_feature
->
BU_value
,
cvRound
(
value
))
!=
DC1394_SUCCESS
)
if
(
dc1394_feature_whitebalance_set_value
(
dcCam
,
act_feature
->
BU_value
,
cvRound
(
value
))
!=
DC1394_SUCCESS
)
return
false
;
return
false
;
...
...
modules/highgui/src/cap_dshow.cpp
View file @
3dd1afe4
...
@@ -2249,7 +2249,7 @@ int videoInput::getVideoPropertyFromCV(int cv_property){
...
@@ -2249,7 +2249,7 @@ int videoInput::getVideoPropertyFromCV(int cv_property){
case
CV_CAP_PROP_MONOCROME
:
case
CV_CAP_PROP_MONOCROME
:
return
VideoProcAmp_ColorEnable
;
return
VideoProcAmp_ColorEnable
;
case
CV_CAP_PROP_WHITE_BALANCE_
BLUE_
U
:
case
CV_CAP_PROP_WHITE_BALANCE_U
:
return
VideoProcAmp_WhiteBalance
;
return
VideoProcAmp_WhiteBalance
;
case
CV_CAP_PROP_BACKLIGHT
:
case
CV_CAP_PROP_BACKLIGHT
:
...
@@ -3246,7 +3246,7 @@ double CvCaptureCAM_DShow::getProperty( int property_id )
...
@@ -3246,7 +3246,7 @@ double CvCaptureCAM_DShow::getProperty( int property_id )
case
CV_CAP_PROP_SHARPNESS
:
case
CV_CAP_PROP_SHARPNESS
:
case
CV_CAP_PROP_GAMMA
:
case
CV_CAP_PROP_GAMMA
:
case
CV_CAP_PROP_MONOCROME
:
case
CV_CAP_PROP_MONOCROME
:
case
CV_CAP_PROP_WHITE_BALANCE_
BLUE_
U
:
case
CV_CAP_PROP_WHITE_BALANCE_U
:
case
CV_CAP_PROP_BACKLIGHT
:
case
CV_CAP_PROP_BACKLIGHT
:
case
CV_CAP_PROP_GAIN
:
case
CV_CAP_PROP_GAIN
:
if
(
VI
.
getVideoSettingFilter
(
index
,
VI
.
getVideoPropertyFromCV
(
property_id
),
min_value
,
max_value
,
stepping_delta
,
current_value
,
flags
,
defaultValue
)
)
return
(
double
)
current_value
;
if
(
VI
.
getVideoSettingFilter
(
index
,
VI
.
getVideoPropertyFromCV
(
property_id
),
min_value
,
max_value
,
stepping_delta
,
current_value
,
flags
,
defaultValue
)
)
return
(
double
)
current_value
;
...
@@ -3350,7 +3350,7 @@ bool CvCaptureCAM_DShow::setProperty( int property_id, double value )
...
@@ -3350,7 +3350,7 @@ bool CvCaptureCAM_DShow::setProperty( int property_id, double value )
case
CV_CAP_PROP_SHARPNESS
:
case
CV_CAP_PROP_SHARPNESS
:
case
CV_CAP_PROP_GAMMA
:
case
CV_CAP_PROP_GAMMA
:
case
CV_CAP_PROP_MONOCROME
:
case
CV_CAP_PROP_MONOCROME
:
case
CV_CAP_PROP_WHITE_BALANCE_
BLUE_
U
:
case
CV_CAP_PROP_WHITE_BALANCE_U
:
case
CV_CAP_PROP_BACKLIGHT
:
case
CV_CAP_PROP_BACKLIGHT
:
case
CV_CAP_PROP_GAIN
:
case
CV_CAP_PROP_GAIN
:
return
VI
.
setVideoSettingFilter
(
index
,
VI
.
getVideoPropertyFromCV
(
property_id
),(
long
)
value
);
return
VI
.
setVideoSettingFilter
(
index
,
VI
.
getVideoPropertyFromCV
(
property_id
),(
long
)
value
);
...
...
modules/java/generator/gen_java.py
View file @
3dd1afe4
...
@@ -71,7 +71,7 @@ const_ignore_list = (
...
@@ -71,7 +71,7 @@ const_ignore_list = (
"CV_CAP_PROP_GAIN"
,
"CV_CAP_PROP_GAIN"
,
"CV_CAP_PROP_EXPOSURE"
,
"CV_CAP_PROP_EXPOSURE"
,
"CV_CAP_PROP_CONVERT_RGB"
,
"CV_CAP_PROP_CONVERT_RGB"
,
"CV_CAP_PROP_WHITE_BALANCE_
BLUE_
U"
,
"CV_CAP_PROP_WHITE_BALANCE_U"
,
"CV_CAP_PROP_RECTIFICATION"
,
"CV_CAP_PROP_RECTIFICATION"
,
"CV_CAP_PROP_MONOCROME"
,
"CV_CAP_PROP_MONOCROME"
,
"CV_CAP_PROP_SHARPNESS"
,
"CV_CAP_PROP_SHARPNESS"
,
...
@@ -80,7 +80,7 @@ const_ignore_list = (
...
@@ -80,7 +80,7 @@ const_ignore_list = (
"CV_CAP_PROP_TEMPERATURE"
,
"CV_CAP_PROP_TEMPERATURE"
,
"CV_CAP_PROP_TRIGGER"
,
"CV_CAP_PROP_TRIGGER"
,
"CV_CAP_PROP_TRIGGER_DELAY"
,
"CV_CAP_PROP_TRIGGER_DELAY"
,
"CV_CAP_PROP_WHITE_BALANCE_
RED_
V"
,
"CV_CAP_PROP_WHITE_BALANCE_V"
,
"CV_CAP_PROP_MAX_DC1394"
,
"CV_CAP_PROP_MAX_DC1394"
,
"CV_CAP_GSTREAMER_QUEUE_LENGTH"
,
"CV_CAP_GSTREAMER_QUEUE_LENGTH"
,
"CV_CAP_PROP_PVAPI_MULTICASTIP"
,
"CV_CAP_PROP_PVAPI_MULTICASTIP"
,
...
...
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