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
40686415
Commit
40686415
authored
May 31, 2016
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6593 from bramton:documentation-update
parents
904cfa57
dfd5191e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
core.hpp
modules/core/include/opencv2/core.hpp
+12
-6
No files found.
modules/core/include/opencv2/core.hpp
View file @
40686415
...
@@ -889,7 +889,7 @@ output arrays.
...
@@ -889,7 +889,7 @@ output arrays.
The function cv::mixChannels provides an advanced mechanism for shuffling image channels.
The function cv::mixChannels provides an advanced mechanism for shuffling image channels.
cv::split
and cv::merge and some forms of cv::cvtColor are partial cases of cv::mixChannels
.
cv::split
,cv::merge,cv::extractChannel,cv::insertChannel and some forms of cv::cvtColor are partial cases of cv::mixChannels
.
In the example below, the code splits a 4-channel BGRA image into a 3-channel BGR (with B and R
In the example below, the code splits a 4-channel BGRA image into a 3-channel BGR (with B and R
channels swapped) and a separate alpha-channel image:
channels swapped) and a separate alpha-channel image:
...
@@ -923,7 +923,7 @@ src[0].channels() + src[1].channels()-1, and so on, the same scheme is used for
...
@@ -923,7 +923,7 @@ src[0].channels() + src[1].channels()-1, and so on, the same scheme is used for
channels; as a special case, when fromTo[k\*2] is negative, the corresponding output channel is
channels; as a special case, when fromTo[k\*2] is negative, the corresponding output channel is
filled with zero .
filled with zero .
@param npairs number of index pairs in `fromTo`.
@param npairs number of index pairs in `fromTo`.
@sa
cv::split, cv::merge, cv::
cvtColor
@sa
split, merge, extractChannel, insertChannel,
cvtColor
*/
*/
CV_EXPORTS
void
mixChannels
(
const
Mat
*
src
,
size_t
nsrcs
,
Mat
*
dst
,
size_t
ndsts
,
CV_EXPORTS
void
mixChannels
(
const
Mat
*
src
,
size_t
nsrcs
,
Mat
*
dst
,
size_t
ndsts
,
const
int
*
fromTo
,
size_t
npairs
);
const
int
*
fromTo
,
size_t
npairs
);
...
@@ -961,13 +961,19 @@ filled with zero .
...
@@ -961,13 +961,19 @@ filled with zero .
CV_EXPORTS_W
void
mixChannels
(
InputArrayOfArrays
src
,
InputOutputArrayOfArrays
dst
,
CV_EXPORTS_W
void
mixChannels
(
InputArrayOfArrays
src
,
InputOutputArrayOfArrays
dst
,
const
std
::
vector
<
int
>&
fromTo
);
const
std
::
vector
<
int
>&
fromTo
);
/** @brief extracts a single channel from src (coi is 0-based index)
/** @brief Extracts a single channel from src (coi is 0-based index)
@todo document
@param src input array
@param dst output array
@param coi index of channel to extract
@sa mixChannels, split
*/
*/
CV_EXPORTS_W
void
extractChannel
(
InputArray
src
,
OutputArray
dst
,
int
coi
);
CV_EXPORTS_W
void
extractChannel
(
InputArray
src
,
OutputArray
dst
,
int
coi
);
/** @brief inserts a single channel to dst (coi is 0-based index)
/** @brief Inserts a single channel to dst (coi is 0-based index)
@todo document
@param src input array
@param dst output array
@param coi index of channel for insertion
@sa mixChannels, merge
*/
*/
CV_EXPORTS_W
void
insertChannel
(
InputArray
src
,
InputOutputArray
dst
,
int
coi
);
CV_EXPORTS_W
void
insertChannel
(
InputArray
src
,
InputOutputArray
dst
,
int
coi
);
...
...
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