Ask Your Question

Revision history [back]

click to hide/show revision 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.

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.