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

Function isZeroElem

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

Source from the content-addressed store, hash-verified

3582}
3583
3584static inline bool isZeroElem(const uchar* data, size_t elemSize)
3585{
3586 size_t i;
3587 for( i = 0; i + sizeof(int) <= elemSize; i += sizeof(int) )
3588 if( *(int*)(data + i) != 0 )
3589 return false;
3590 for( ; i < elemSize; i++ )
3591 if( data[i] != 0 )
3592 return false;
3593 return true;
3594}
3595
3596SparseMat::Hdr::Hdr( int _dims, const int* _sizes, int _type )
3597{

Callers 1

SparseMatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected