MCPcopy Create free account
hub / github.com/creatale/node-dv / insertChannel

Method insertChannel

deps/opencv/modules/core/src/convert.cpp:573–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573void cv::insertChannel(InputArray _src, InputOutputArray _dst, int coi)
574{
575 Mat src = _src.getMat(), dst = _dst.getMat();
576 CV_Assert( src.size == dst.size && src.depth() == dst.depth() );
577 CV_Assert( 0 <= coi && coi < dst.channels() && src.channels() == 1 );
578 int ch[] = { 0, coi };
579 mixChannels(&src, 1, &dst, 1, ch, 1);
580}
581
582/****************************************************************************************\
583* convertScale[Abs] *

Callers

nothing calls this directly

Calls 3

getMatMethod · 0.45
depthMethod · 0.45
channelsMethod · 0.45

Tested by

no test coverage detected