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

Function icvDecodeSimpleFormat

deps/opencv/modules/core/src/persistence.cpp:3109–3122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3107
3108
3109static int
3110icvDecodeSimpleFormat( const char* dt )
3111{
3112 int elem_type = -1;
3113 int fmt_pairs[CV_FS_MAX_FMT_PAIRS], fmt_pair_count;
3114
3115 fmt_pair_count = icvDecodeFormat( dt, fmt_pairs, CV_FS_MAX_FMT_PAIRS );
3116 if( fmt_pair_count != 1 || fmt_pairs[0] > 4 )
3117 CV_Error( CV_StsError, "Too complex format for the matrix" );
3118
3119 elem_type = CV_MAKETYPE( fmt_pairs[1], fmt_pairs[0] );
3120
3121 return elem_type;
3122}
3123
3124
3125CV_IMPL void

Callers 5

icvReadMatFunction · 0.85
icvReadMatNDFunction · 0.85
icvReadSparseMatFunction · 0.85
icvReadImageFunction · 0.85
icvReadSeqFunction · 0.85

Calls 1

icvDecodeFormatFunction · 0.85

Tested by

no test coverage detected