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
095b0d32
Commit
095b0d32
authored
Sep 12, 2018
by
Mark Harfouche
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix BayerXX2RGBA when blue is on the first line.
parent
796795ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
demosaicing.cpp
modules/imgproc/src/demosaicing.cpp
+4
-2
No files found.
modules/imgproc/src/demosaicing.cpp
View file @
095b0d32
...
...
@@ -923,8 +923,10 @@ static void Bayer2RGB_( const Mat& srcmat, Mat& dstmat, int code )
{
int
dst_step
=
(
int
)(
dstmat
.
step
/
sizeof
(
T
));
Size
size
=
srcmat
.
size
();
int
blue
=
code
==
CV_BayerBG2BGR
||
code
==
CV_BayerGB2BGR
?
-
1
:
1
;
int
start_with_green
=
code
==
CV_BayerGB2BGR
||
code
==
CV_BayerGR2BGR
;
int
blue
=
(
code
==
CV_BayerBG2BGR
||
code
==
CV_BayerGB2BGR
||
code
==
CV_BayerBG2BGRA
||
code
==
CV_BayerGB2BGRA
)
?
-
1
:
1
;
int
start_with_green
=
(
code
==
CV_BayerGB2BGR
||
code
==
CV_BayerGR2BGR
||
code
==
CV_BayerGB2BGRA
||
code
==
CV_BayerGR2BGRA
);
int
dcn
=
dstmat
.
channels
();
size
.
height
-=
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