Home | History | Annotate | Download | only in src

Lines Matching full:max_rect

114 static void icvMaxRoi( _CvRect16u *max_rect, _CvRect16u* cur_rect );
115 static void icvMaxRoi1( _CvRect16u *max_rect, int x, int y );
1762 icvMaxRoi( _CvRect16u * max_rect, _CvRect16u * cur_rect )
1764 if( max_rect->x2 == 0 )
1765 *max_rect = *cur_rect;
1768 if( max_rect->x1 > cur_rect->x1 )
1769 max_rect->x1 = cur_rect->x1;
1770 if( max_rect->y1 > cur_rect->y1 )
1771 max_rect->y1 = cur_rect->y1;
1773 if( max_rect->x2 < cur_rect->x2 )
1774 max_rect->x2 = cur_rect->x2;
1775 if( max_rect->y2 < cur_rect->y2 )
1776 max_rect->y2 = cur_rect->y2;
1781 icvMaxRoi1( _CvRect16u * max_rect, int x, int y )
1783 if( max_rect->x2 == 0 )
1785 max_rect->x1 = (ushort) x;
1786 max_rect->y1 = (ushort) y;
1791 max_rect->x2 = (ushort) x;
1792 max_rect->y2 = (ushort) y;
1796 if( max_rect->x1 > x )
1797 max_rect->x1 = (ushort) x;
1798 if( max_rect->y1 > y )
1799 max_rect->y1 = (ushort) y;
1804 if( max_rect->x2 < x )
1805 max_rect->x2 = (ushort) x;
1806 if( max_rect->y2 < y )
1807 max_rect->y2 = (ushort) y;