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
dd262b70
Commit
dd262b70
authored
Mar 04, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13960 from nglee:dev_FixWindowsBuildIssue
parents
c0d41f05
65e76ade
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
27 deletions
+27
-27
color_detail.hpp
...es/core/include/opencv2/core/cuda/detail/color_detail.hpp
+27
-27
No files found.
modules/core/include/opencv2/core/cuda/detail/color_detail.hpp
View file @
dd262b70
...
...
@@ -93,38 +93,38 @@ namespace cv { namespace cuda { namespace device
}
//constants for conversion from/to RGB and Gray, YUV, YCrCb according to BT.601
const
float
B2YF
=
0.114
f
;
const
float
G2YF
=
0.587
f
;
const
float
R2YF
=
0.299
f
;
const
expr
float
B2YF
=
0.114
f
;
const
expr
float
G2YF
=
0.587
f
;
const
expr
float
R2YF
=
0.299
f
;
//to YCbCr
const
float
YCBF
=
0.564
f
;
// == 1/2/(1-B2YF)
const
float
YCRF
=
0.713
f
;
// == 1/2/(1-R2YF)
const
int
YCBI
=
9241
;
// == YCBF*16384
const
int
YCRI
=
11682
;
// == YCRF*16384
const
expr
float
YCBF
=
0.564
f
;
// == 1/2/(1-B2YF)
const
expr
float
YCRF
=
0.713
f
;
// == 1/2/(1-R2YF)
const
int
YCBI
=
9241
;
// == YCBF*16384
const
int
YCRI
=
11682
;
// == YCRF*16384
//to YUV
const
float
B2UF
=
0.492
f
;
const
float
R2VF
=
0.877
f
;
const
int
B2UI
=
8061
;
// == B2UF*16384
const
int
R2VI
=
14369
;
// == R2VF*16384
const
expr
float
B2UF
=
0.492
f
;
const
expr
float
R2VF
=
0.877
f
;
const
int
B2UI
=
8061
;
// == B2UF*16384
const
int
R2VI
=
14369
;
// == R2VF*16384
//from YUV
const
float
U2BF
=
2.032
f
;
const
float
U2GF
=
-
0.395
f
;
const
float
V2GF
=
-
0.581
f
;
const
float
V2RF
=
1.140
f
;
const
int
U2BI
=
33292
;
const
int
U2GI
=
-
6472
;
const
int
V2GI
=
-
9519
;
const
int
V2RI
=
18678
;
const
expr
float
U2BF
=
2.032
f
;
const
expr
float
U2GF
=
-
0.395
f
;
const
expr
float
V2GF
=
-
0.581
f
;
const
expr
float
V2RF
=
1.140
f
;
const
int
U2BI
=
33292
;
const
int
U2GI
=
-
6472
;
const
int
V2GI
=
-
9519
;
const
int
V2RI
=
18678
;
//from YCrCb
const
float
CB2BF
=
1.773
f
;
const
float
CB2GF
=
-
0.344
f
;
const
float
CR2GF
=
-
0.714
f
;
const
float
CR2RF
=
1.403
f
;
const
int
CB2BI
=
29049
;
const
int
CB2GI
=
-
5636
;
const
int
CR2GI
=
-
11698
;
const
int
CR2RI
=
22987
;
const
expr
float
CB2BF
=
1.773
f
;
const
expr
float
CB2GF
=
-
0.344
f
;
const
expr
float
CR2GF
=
-
0.714
f
;
const
expr
float
CR2RF
=
1.403
f
;
const
int
CB2BI
=
29049
;
const
int
CB2GI
=
-
5636
;
const
int
CR2GI
=
-
11698
;
const
int
CR2RI
=
22987
;
enum
{
...
...
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