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

Function updateContinuityFlag

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

Source from the content-addressed store, hash-verified

137}
138
139static void updateContinuityFlag(Mat& m)
140{
141 int i, j;
142 for( i = 0; i < m.dims; i++ )
143 {
144 if( m.size[i] > 1 )
145 break;
146 }
147
148 for( j = m.dims-1; j > i; j-- )
149 {
150 if( m.step[j]*m.size[j] < m.step[j-1] )
151 break;
152 }
153
154 uint64 t = (uint64)m.step[0]*m.size[0];
155 if( j <= i && t == (size_t)t )
156 m.flags |= Mat::CONTINUOUS_FLAG;
157 else
158 m.flags &= ~Mat::CONTINUOUS_FLAG;
159}
160
161static void finalizeHdr(Mat& m)
162{

Callers 2

finalizeHdrFunction · 0.85
MatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected