Lines Matching refs:rect
162 if( m_comp.rect.width == 0 || m_comp.rect.height == 0 ||
173 cvSetImageROI( m_color_planes[i], m_comp.rect );
174 cvSetImageROI( m_mask, m_comp.rect );
180 cvSetImageROI( m_color_planes[i], m_comp.rect );
204 CvRect rect;
213 if( m_comp.rect.width == 0 || m_comp.rect.height == 0 ||
224 rect = m_comp.rect;
226 if( rect.x < 0 )
227 rect.x = 0;
228 if( rect.x + rect.width > bp_size.width )
229 rect.width = bp_size.width - rect.x;
230 if( rect.y < 0 )
231 rect.y = 0;
232 if( rect.y + rect.height > bp_size.height )
233 rect.height = bp_size.height - rect.y;
235 cvCamShift( m_back_project, rect,
239 if( m_comp.rect.width == 0 || m_comp.rect.height == 0 )
240 m_comp.rect = rect; // do not allow tracker to loose the object
242 return m_comp.rect.width != 0 && m_comp.rect.height != 0;