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
58cecb8c
Commit
58cecb8c
authored
Jun 12, 2015
by
Seon-Wook Park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use cvRound to suppress Windows warnings
parent
964cb360
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
grayworld_white_balance.cpp
modules/xphoto/src/grayworld_white_balance.cpp
+1
-1
test_grayworld.cpp
modules/xphoto/test/test_grayworld.cpp
+1
-1
No files found.
modules/xphoto/src/grayworld_white_balance.cpp
View file @
58cecb8c
...
...
@@ -67,7 +67,7 @@ namespace cv { namespace xphoto {
// Calculate sum of pixel values of each channel
const
uchar
*
src_data
=
src
.
ptr
<
uchar
>
(
0
);
unsigned
long
sum1
=
0
,
sum2
=
0
,
sum3
=
0
;
unsigned
int
thresh255
=
r
ound
(
thresh
*
255
);
unsigned
int
thresh255
=
cvR
ound
(
thresh
*
255
);
int
i
=
0
;
#if CV_SIMD128
v_uint8x16
v_inB
,
v_inG
,
v_inR
;
...
...
modules/xphoto/test/test_grayworld.cpp
View file @
58cecb8c
...
...
@@ -20,7 +20,7 @@ namespace cvtest {
const
uchar
*
src_data
=
src
.
ptr
<
uchar
>
(
0
);
unsigned
long
sum1
=
0
,
sum2
=
0
,
sum3
=
0
;
int
i
=
0
;
unsigned
int
minRGB
,
maxRGB
,
thresh255
=
r
ound
(
thresh
*
255
);
unsigned
int
minRGB
,
maxRGB
,
thresh255
=
cvR
ound
(
thresh
*
255
);
for
(
;
i
<
N3
;
i
+=
3
)
{
minRGB
=
std
::
min
(
src_data
[
i
],
std
::
min
(
src_data
[
i
+
1
],
src_data
[
i
+
2
]));
...
...
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