-
Notifications
You must be signed in to change notification settings - Fork 61
Description
So today we have this fillcircle method
Line 31 in c20c76e
| void fillCircle(cv::Mat &m, double cx, double cy, double rad, void *color) { |
George is doing round masks #272
And in both case we do manual circles and radius.
The status is we cannot use [cv::circle](https://docs.opencv.org/4.x/d6/d6e/group__imgproc__draw.html#gaf10604b069374903dbd0f0488cb43670) because we use double coordinates for center and radius.
What I just discovered: the cv::circle method has
shift : Number of fractional bits in the coordinates of the center and in the radius value.
@dale can you confirm today coordinates and radius are only one half of a pixel?
This would mean we could use int coordinates with shift of 1. And not use double for this.
I don't want to change every coordinate system but I suspect we can use more opencv functions thanks to this and it will be easier to maintain + faster in some cases + bug free because do do not reinvent the wheel.