Home | History | Annotate | Download | only in src

Lines Matching defs:tr

785 						CvRect tr;
791 tr.x = (r[k].x - r[0].x) * new_base_w / base_w + x0;
792 tr.width = r[k].width * new_base_w / base_w;
797 tr.x = cvRound( r[k].x * scale );
798 tr.width = cvRound( r[k].width * scale );
804 tr.y = (r[k].y - r[0].y) * new_base_h / base_h + y0;
805 tr.height = r[k].height * new_base_h / base_h;
810 tr.y = cvRound( r[k].y * scale );
811 tr.height = cvRound( r[k].height * scale );
819 const float feature_size = float(tr.width*tr.height);
833 hidfeature->rect[k].p0 = sum_elem_ptr(*sum, tr.y, tr.x);
834 hidfeature->rect[k].p1 = sum_elem_ptr(*sum, tr.y, tr.x + tr.width);
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);
840 hidfeature->rect[k].p2 = sum_elem_ptr(*tilted, tr.y + tr.width, 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);
843 hidfeature->rect[k].p0 = sum_elem_ptr(*tilted, tr.y, tr.x);
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;