Lines Matching refs:height
223 if( r.width < 0 || r.height < 0 || r.y < 0 ||
227 (r.x < 0 || r.y + r.height > orig_window_size.height))
229 (tilted && (r.x - r.height < 0 ||
230 r.y + r.width + r.height > orig_window_size.height)))
306 feature->rect[2].r.height == 0 )
331 (orig_window_size.height-icv_object_win_border*2)));
359 //ipp_features[k].y = orig_window_size.height - ipp_features[k].y - ipp_features[k].height;
499 pt.y + _cascade->real_window_size.heightheight-2 )
690 _cascade->real_window_size.height = cvRound( _cascade->orig_window_size.height * scale );
697 equ_rect.height = cvRound((_cascade->orig_window_size.height-2)*scale);
698 weight_scale = 1./(equ_rect.width*equ_rect.height);
703 cascade->p2 = sum_elem_ptr(*sum, equ_rect.y + equ_rect.height, equ_rect.x );
704 cascade->p3 = sum_elem_ptr(*sum, equ_rect.y + equ_rect.height,
709 cascade->pq2 = sqsum_elem_ptr(*sqsum, equ_rect.y + equ_rect.height, equ_rect.x );
710 cascade->pq3 = sqsum_elem_ptr(*sqsum, equ_rect.y + equ_rect.height,
753 base_h = (int)CV_IMIN( (unsigned)base_h, (unsigned)(r[k].height-1) );
764 ky = r[0].height / base_h;
776 new_base_h = cvRound( r[0].height * scale ) / ky;
805 tr.height = r[k].height * new_base_h / base_h;
811 tr.height = cvRound( r[k].height * scale );
817 const float orig_feature_size = (float)(feature->rect[k].r.width)*feature->rect[k].r.height;
818 const float orig_norm_size = (float)(_cascade->orig_window_size.width)*(_cascade->orig_window_size.height);
819 const float feature_size = float(tr.width*tr.height);
820 //const float normSize = float(equ_rect.width*equ_rect.height);
835 hidfeature->rect[k].p2 = sum_elem_ptr(*sum, tr.y + tr.height, tr.x);
836 hidfeature->rect[k].p3 = sum_elem_ptr(*sum, tr.y + tr.height, tr.x + tr.width);
841 hidfeature->rect[k].p3 = sum_elem_ptr(*tilted, tr.y + tr.width + tr.height,
842 tr.x + tr.width - tr.height);
844 hidfeature->rect[k].p1 = sum_elem_ptr(*tilted, tr.y + tr.height, tr.x - tr.height);
851 area0 = tr.width * tr.height;
853 // sum0 += hidfeature->rect[k].weight * tr.width * tr.height;
854 sum0 += tmpweight[k] * tr.width * tr.height;
978 // cvRound(win_size0.height*factor) };
980 // CvSize sz1 = { sz.width - win_size0.width, sz.height - win_size0.height };
983 // win_size0.height - icv_object_win_border*2 };*/
987 // if( sz1.width <= 0 || sz1.height <= 0 )
989 // if( win_size.width < min_size.width || win_size.height < min_size.height )
992 // img1 = cvMat( sz.height, sz.width, CV_8UC1, img_small->data.ptr );
993 // sum1 = cvMat( sz.height+1, sz.width+1, CV_32SC1, sum->data.ptr );
994 // sqsum1 = cvMat( sz.height+1, sz.width+1, CV_64FC1, sqsum->data.ptr );
997 // tilted1 = cvMat( sz.height+1, sz.width+1, CV_32SC1, tilted->data.ptr );
1000 // norm1 = cvMat( sz1.height, sz1.width, CV_32FC1, norm_img ? norm_img->data.ptr : 0 );
1001 // mask1 = cvMat( sz1.height, sz1.width, CV_8UC1, temp->data.ptr );
1008 // strip_count = MAX(MIN(sz1.height/ystep, max_threads*3), 1);
1009 // strip_size = (sz1.height + strip_count - 1)/strip_count;
1015 // strip_size = sz1.height;
1022 // for( i = 0; i <= sz.height; i++ )
1043 // if( i == strip_count - 1 || y2 > sz1.height )
1044 // y2 = sz1.height;
1054 // positive = (ssz.width/ystep)*((ssz.height + ystep-1)/ystep);
1055 // memset( mask1.data.ptr + y1*mask1.step, ystep == 1, mask1.height*mask1.step);
1098 // win_size.width, win_size.height };
1144 factor*cascade->orig_window_size.height < img->rows - 10;
1161 cvRound( cascade->orig_window_size.height * factor )};
1168 int end_y = cvRound((img->rows - win_size.height) / ystep);
1170 if( win_size.width < min_size.width || win_size.height < min_size.height )
1183 // equ_rect.y = cvRound(win_size.height*0.15);
1185 // equ_rect.height = cvRound(win_size.height*0.7);
1190 // p2 = (int*)(sumcanny->data.ptr + (equ_rect.y + equ_rect.height)*sumcanny->step) + equ_rect.x;
1191 // p3 = (int*)(sumcanny->data.ptr + (equ_rect.y + equ_rect.height)*sumcanny->step)
1197 // pq2 = (int*)(sum->data.ptr + (equ_rect.y + equ_rect.height)*sum->step) + equ_rect.x;
1198 // pq3 = (int*)(sum->data.ptr + (equ_rect.y + equ_rect.height)*sum->step)
1206 end_y = cvRound((scan_roi_rect.y + scan_roi_rect.height - win_size.height) / ystep);
1254 CvRect rect = cvRect(ix,iy,win_size.width,win_size.height);
1269 CvRect rect = cvRect(ix,iy,win_size.width,win_size.height);
1317 comps[idx].rect.height += r1.height;
1330 comp.rect.height = (comps[i].rect.height*2 + n)/(2*n);
1351 // rect.width and rect.height will store coordinate of right-bottom corner
1355 comps[idx].rect.height = MAX(comps[idx].rect.height, r1.y+r1.height-1);
1370 comp.rect.height = comps[i].rect.height - comps[i].rect.y + 1;
1376 t = cvRound( comp.rect.height*min_scale );
1377 min_size.height = MAX( min_size.height, t );
1384 int bottom = MIN( img->rows-1, comp.rect.y+comp.rect.height-1 + offset);
1388 comp.rect.height = bottom - comp.rect.y + 1;
1407 int area = comp->rect.width * comp->rect.height;
1480 comps[idx].rect.height += r1.height;
1493 comp.rect.height = (comps[i].rect.height*2 + n)/(2*n);
1517 r1.rect.y + r1.rect.height <= r2.rect.y + r2.rect.height + distance &&
1535 int area = comp->rect.width * comp->rect.height;