Lines Matching refs:patch_rect0
424 CvRect patch_rect0 = { INT_MAX, INT_MAX, INT_MIN, INT_MIN }, patch_rect, sr_patch_rect; in cvExtractSURF() local
435 x = cvFloor(xf); patch_rect0.x = MIN(patch_rect0.x, x); in cvExtractSURF()
436 y = cvFloor(yf); patch_rect0.y = MIN(patch_rect0.y, y); in cvExtractSURF()
437 x = cvCeil(xf)+1; patch_rect0.width = MAX(patch_rect0.width, x); in cvExtractSURF()
438 y = cvCeil(yf)+1; patch_rect0.height = MAX(patch_rect0.height, y); in cvExtractSURF()
441 patch_rect = patch_rect0; in cvExtractSURF()
446 patch_rect0.width -= patch_rect0.x; in cvExtractSURF()
447 patch_rect0.height -= patch_rect0.y; in cvExtractSURF()
450 float scale = MIN(1.f,MIN((float)RS_PATCH_SZ/patch_rect0.width, in cvExtractSURF()
451 (float)RS_PATCH_SZ/patch_rect0.height)); in cvExtractSURF()
458 center.x = RS_PATCH_SZ*0.5f - (patch_rect.x - patch_rect0.x)*scale; in cvExtractSURF()
459 center.y = RS_PATCH_SZ*0.5f - (patch_rect.y - patch_rect0.y)*scale; in cvExtractSURF()