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
939ea4ba
Commit
939ea4ba
authored
Feb 27, 2019
by
smirnov-alexey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove incorrect asserts in NV12 to RGB/BGR kernels
parent
c3cf35ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
imgproc.hpp
modules/gapi/include/opencv2/gapi/imgproc.hpp
+2
-4
No files found.
modules/gapi/include/opencv2/gapi/imgproc.hpp
View file @
939ea4ba
...
@@ -120,8 +120,7 @@ namespace imgproc {
...
@@ -120,8 +120,7 @@ namespace imgproc {
GAPI_Assert
(
in_uv
.
chan
==
2
);
GAPI_Assert
(
in_uv
.
chan
==
2
);
GAPI_Assert
(
in_y
.
depth
==
CV_8U
);
GAPI_Assert
(
in_y
.
depth
==
CV_8U
);
GAPI_Assert
(
in_uv
.
depth
==
CV_8U
);
GAPI_Assert
(
in_uv
.
depth
==
CV_8U
);
GAPI_Assert
(
in_uv
.
size
.
width
%
2
==
0
);
// UV size should be aligned with Y
GAPI_Assert
(
in_uv
.
size
.
height
%
2
==
0
);
GAPI_Assert
(
in_y
.
size
.
width
==
2
*
in_uv
.
size
.
width
);
GAPI_Assert
(
in_y
.
size
.
width
==
2
*
in_uv
.
size
.
width
);
GAPI_Assert
(
in_y
.
size
.
height
==
2
*
in_uv
.
size
.
height
);
GAPI_Assert
(
in_y
.
size
.
height
==
2
*
in_uv
.
size
.
height
);
return
in_y
.
withType
(
CV_8U
,
3
);
// type will be CV_8UC3;
return
in_y
.
withType
(
CV_8U
,
3
);
// type will be CV_8UC3;
...
@@ -134,8 +133,7 @@ namespace imgproc {
...
@@ -134,8 +133,7 @@ namespace imgproc {
GAPI_Assert
(
in_uv
.
chan
==
2
);
GAPI_Assert
(
in_uv
.
chan
==
2
);
GAPI_Assert
(
in_y
.
depth
==
CV_8U
);
GAPI_Assert
(
in_y
.
depth
==
CV_8U
);
GAPI_Assert
(
in_uv
.
depth
==
CV_8U
);
GAPI_Assert
(
in_uv
.
depth
==
CV_8U
);
GAPI_Assert
(
in_uv
.
size
.
width
%
2
==
0
);
// UV size should be aligned with Y
GAPI_Assert
(
in_uv
.
size
.
height
%
2
==
0
);
GAPI_Assert
(
in_y
.
size
.
width
==
2
*
in_uv
.
size
.
width
);
GAPI_Assert
(
in_y
.
size
.
width
==
2
*
in_uv
.
size
.
width
);
GAPI_Assert
(
in_y
.
size
.
height
==
2
*
in_uv
.
size
.
height
);
GAPI_Assert
(
in_y
.
size
.
height
==
2
*
in_uv
.
size
.
height
);
return
in_y
.
withType
(
CV_8U
,
3
);
// type will be CV_8UC3;
return
in_y
.
withType
(
CV_8U
,
3
);
// type will be CV_8UC3;
...
...
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