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
d06c7386
Commit
d06c7386
authored
Aug 25, 2014
by
Ariel Elkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc: update video processing tutorial code for OpenCV v2.4.9 and v3a
parent
2211cfe7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
video_processing.rst
doc/tutorials/ios/video_processing/video_processing.rst
+7
-2
No files found.
doc/tutorials/ios/video_processing/video_processing.rst
View file @
d06c7386
...
...
@@ -199,11 +199,16 @@ From here you can start processing video frames. For example the following snipp
{
// Do some OpenCV stuff with the image
Mat image_copy;
cvtColor(image, image_copy, C
V_BGRA2BGR
);
cvtColor(image, image_copy, C
OLOR_BGR2GRAY
);
// invert image
bitwise_not(image_copy, image_copy);
cvtColor(image_copy, image, CV_BGR2BGRA);
//Convert BGR to BGRA (three channel to four channel)
Mat bgr;
cvtColor(image_copy, bgr, COLOR_GRAY2BGR);
cvtColor(bgr, image, COLOR_BGR2BGRA);
}
...
...
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