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

Method checkVector

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

Source from the content-addressed store, hash-verified

838
839
840int Mat::checkVector(int _elemChannels, int _depth, bool _requireContinuous) const
841{
842 return (depth() == _depth || _depth <= 0) &&
843 (isContinuous() || !_requireContinuous) &&
844 ((dims == 2 && (((rows == 1 || cols == 1) && channels() == _elemChannels) ||
845 (cols == _elemChannels && channels() == 1))) ||
846 (dims == 3 && channels() == 1 && size.p[2] == _elemChannels && (size.p[0] == 1 || size.p[1] == 1) &&
847 (isContinuous() || step.p[1] == step.p[2]*size.p[2])))
848 ? (int)(total()*channels()/_elemChannels) : -1;
849}
850
851
852void scalarToRawData(const Scalar& s, void* _buf, int type, int unroll_to)

Callers 15

fillConvexPolyMethod · 0.80
fillPolyMethod · 0.80
polylinesMethod · 0.80
buildMethod · 0.80
intersectConvexConvexMethod · 0.80
getAffineTransformMethod · 0.80
cornerSubPixMethod · 0.80
drawContoursMethod · 0.80
approxPolyDPMethod · 0.80
arcLengthMethod · 0.80
boundingRectMethod · 0.80

Calls 2

depthFunction · 0.50
channelsFunction · 0.50

Tested by

no test coverage detected