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

Function cvReleaseMat

deps/opencv/modules/core/src/array.cpp:179–197  ·  view source on GitHub ↗

Deallocates the CvMat structure and underlying data

Source from the content-addressed store, hash-verified

177
178// Deallocates the CvMat structure and underlying data
179CV_IMPL void
180cvReleaseMat( CvMat** array )
181{
182 if( !array )
183 CV_Error( CV_HeaderIsNull, "" );
184
185 if( *array )
186 {
187 CvMat* arr = *array;
188
189 if( !CV_IS_MAT_HDR_Z(arr) && !CV_IS_MATND_HDR(arr) )
190 CV_Error( CV_StsBadFlag, "" );
191
192 *array = 0;
193
194 cvDecRefData( arr );
195 cvFree( &arr );
196 }
197}
198
199
200// Creates a copy of matrix

Callers 5

readFunction · 0.85
delete_objMethod · 0.85
core_c.hFile · 0.85
cvReleaseMatNDFunction · 0.85
cvReleasePyramidFunction · 0.85

Calls 1

cvDecRefDataFunction · 0.85

Tested by

no test coverage detected