MCPcopy Create free account
hub / github.com/DennisLiu1993/Fastest_Image_Pattern_Matching / RectToROI

Function RectToROI

MatchTool/CvvImage.cpp:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42CV_INLINE IplROI RectToROI( RECT r );
43CV_INLINE IplROI RectToROI( RECT r )
44{
45 IplROI roi;
46 r = NormalizeRect( r );
47 roi.xOffset = r.left;
48 roi.yOffset = r.top;
49 roi.width = r.right - r.left;
50 roi.height = r.bottom - r.top;
51 roi.coi = 0;
52
53 return roi;
54}
55void FillBitmapInfo( BITMAPINFO* bmi, int width, int height, int bpp, int origin )
56{
57 assert( bmi && width >= 0 && height >= 0 && (bpp == 8 || bpp == 24 || bpp == 32));

Callers

nothing calls this directly

Calls 1

NormalizeRectFunction · 0.85

Tested by

no test coverage detected