1 | initial version |
Use cv::circle()
to draw a point. Simply set the radius to 3
and thickness
to -1
to ge a filled dot at the specified coordinate.
There is no function drawPoint()
or similar as a point itself has no size. If you want to change the color of a single pixel you could simply set the pixel in your image by accessing the corresponding row/column in your cv::Mat
object.
2 | No.2 Revision |
Use cv::circle()
to draw a point. point onto an image. Simply set the radius to 3
and thickness
to -1
to ge a filled dot at the specified coordinate.
There is no function drawPoint()
or similar as a point itself has no size. If you want to change the color of a single pixel you could simply set the pixel in your image by accessing the corresponding row/column in your cv::Mat
object.