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

Function cvSetZero

deps/opencv/modules/core/src/copy.cpp:592–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592CV_IMPL void
593cvSetZero( CvArr* arr )
594{
595 if( CV_IS_SPARSE_MAT(arr) )
596 {
597 CvSparseMat* mat1 = (CvSparseMat*)arr;
598 cvClearSet( mat1->heap );
599 if( mat1->hashtable )
600 memset( mat1->hashtable, 0, mat1->hashsize*sizeof(mat1->hashtable[0]));
601 return;
602 }
603 cv::Mat m = cv::cvarrToMat(arr);
604 m = cv::Scalar(0);
605}
606
607CV_IMPL void
608cvFlip( const CvArr* srcarr, CvArr* dstarr, int flip_mode )

Callers 2

SetZeroMethod · 0.85
core_c.hFile · 0.85

Calls 2

cvClearSetFunction · 0.85
cvarrToMatFunction · 0.85

Tested by

no test coverage detected