diff --git a/README.md b/README.md index a0f79de..6bcebea 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Fast ROI ======================= -The FAST ROI library is useful for quickly extracting the coordinates of a rotating rectangular ROI +The FAST ROI library is useful for quickly extracting the coordinates of a rotating rectangular ROI and donut ROI Development Environment ======================= @@ -15,22 +15,24 @@ vcpkg integrate install ``` Performance ======================= -### Baseline = Searching gap : 1 +### fastRect baseline = searching gap : 1 + |Name|fps| |------|---| |fast::fastRect ***(500x500 roi size)***|2100 fps| |fast::fastRect ***(1000x1000 roi size)***|550 fps| |fast::fastRect ***(2000x2000 roi size)***|35 fps| +### fastDonut baseline = start_ratio : 1.3, end_ratio : 0.7, angle_step=1 + +|Name|fps| +|------|---| +|fast::fastDonut ***(800 radius)***|3560 fps| +|fast::fastDonut ***(1500 radius)***|666 fps| How to use? ======================= -#### fastRect - -
- -
- +### fastRect ```cpp #include- - + //iteration of point in vertical line + for (auto calPoint : vertical_line) { + + //Check current position is in image + if (calPoint.x < 0 || calPoint.x >= 4000 || calPoint.y < 0 || calPoint.y >= 4000) + continue; + + //Do whatever you want here + + } +} + + +``` + +#### DEMO +