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

Method insertImageCOI

deps/opencv/modules/core/src/matrix.cpp:768–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766}
767
768void cv::insertImageCOI(InputArray _ch, CvArr* arr, int coi)
769{
770 Mat ch = _ch.getMat(), mat = cvarrToMat(arr, false, true, 1);
771 if(coi < 0)
772 {
773 CV_Assert( CV_IS_IMAGE(arr) );
774 coi = cvGetImageCOI((const IplImage*)arr)-1;
775 }
776 CV_Assert(ch.size == mat.size && ch.depth() == mat.depth() && 0 <= coi && coi < mat.channels());
777 int _pairs[] = { 0, coi };
778 mixChannels( &ch, 1, &mat, 1, _pairs, 1 );
779}
780
781namespace cv
782{

Callers

nothing calls this directly

Calls 5

cvarrToMatFunction · 0.85
cvGetImageCOIFunction · 0.85
getMatMethod · 0.45
depthMethod · 0.45
channelsMethod · 0.45

Tested by

no test coverage detected