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

Function icvCreateROI

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

Source from the content-addressed store, hash-verified

2815\****************************************************************************************/
2816
2817static IplROI* icvCreateROI( int coi, int xOffset, int yOffset, int width, int height )
2818{
2819 IplROI *roi = 0;
2820 if( !CvIPL.createROI )
2821 {
2822 roi = (IplROI*)cvAlloc( sizeof(*roi));
2823
2824 roi->coi = coi;
2825 roi->xOffset = xOffset;
2826 roi->yOffset = yOffset;
2827 roi->width = width;
2828 roi->height = height;
2829 }
2830 else
2831 {
2832 roi = CvIPL.createROI( coi, xOffset, yOffset, width, height );
2833 }
2834
2835 return roi;
2836}
2837
2838static void
2839icvGetColorModel( int nchannels, const char** colorModel, const char** channelSeq )

Callers 3

cvSetImageROIFunction · 0.85
cvSetImageCOIFunction · 0.85
cvCloneImageFunction · 0.85

Calls 1

cvAllocFunction · 0.85

Tested by

no test coverage detected