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

Function NormalizeRect

MatchTool/CvvImage.cpp:7–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5//////////////////////////////////////////////////////////////////////
6CV_INLINE RECT NormalizeRect( RECT r );
7CV_INLINE RECT NormalizeRect( RECT r )
8{
9 int t;
10 if( r.left > r.right )
11 {
12 t = r.left;
13 r.left = r.right;
14 r.right = t;
15 }
16 if( r.top > r.bottom )
17 {
18 t = r.top;
19 r.top = r.bottom;
20 r.bottom = t;
21 }
22
23 return r;
24}
25CV_INLINE CvRect RectToCvRect( RECT sr );
26CV_INLINE CvRect RectToCvRect( RECT sr )
27{

Callers 2

RectToCvRectFunction · 0.85
RectToROIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected