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

Function cvSetImageCOI

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

Source from the content-addressed store, hash-verified

3067
3068
3069CV_IMPL void
3070cvSetImageCOI( IplImage* image, int coi )
3071{
3072 if( !image )
3073 CV_Error( CV_HeaderIsNull, "" );
3074
3075 if( (unsigned)coi > (unsigned)(image->nChannels) )
3076 CV_Error( CV_BadCOI, "" );
3077
3078 if( image->roi || coi != 0 )
3079 {
3080 if( image->roi )
3081 {
3082 image->roi->coi = coi;
3083 }
3084 else
3085 {
3086 image->roi = icvCreateROI( coi, 0, 0, image->width, image->height );
3087 }
3088 }
3089}
3090
3091
3092CV_IMPL int

Callers 1

icvReadImageFunction · 0.85

Calls 1

icvCreateROIFunction · 0.85

Tested by

no test coverage detected