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

Method total

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

Source from the content-addressed store, hash-verified

1224}
1225
1226size_t _InputArray::total(int i) const
1227{
1228 int k = kind();
1229
1230 if( k == MAT )
1231 {
1232 CV_Assert( i < 0 );
1233 return ((const Mat*)obj)->total();
1234 }
1235
1236 if( k == STD_VECTOR_MAT )
1237 {
1238 const vector<Mat>& vv = *(const vector<Mat>*)obj;
1239 if( i < 0 )
1240 return vv.size();
1241
1242 CV_Assert( i < (int)vv.size() );
1243 return vv[i].total();
1244 }
1245
1246 return size(i).area();
1247}
1248
1249int _InputArray::type(int i) const
1250{

Callers 15

mixChannelsMethod · 0.45
convert.cppFile · 0.45
fillPolyMethod · 0.45
polylinesMethod · 0.45
findNearestMethod · 0.45
findOrthoRangeMethod · 0.45
getPointsMethod · 0.45
fillMethod · 0.45
push_backMethod · 0.45
sumMethod · 0.45
meanMethod · 0.45
meanStdDevMethod · 0.45

Calls 3

sizeFunction · 0.50
sizeMethod · 0.45
areaMethod · 0.45

Tested by

no test coverage detected