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