drawing a single pixel using a cv::Mat image (cvSet2D?)

asked 2014-02-25 06:02:35 -0500

Markus Bader gravatar image

updated 2014-02-25 06:09:27 -0500

Hi

I like to draw a single pixel using a cv::Scalar and cv::Mat. In the old days I used a IplImage and the cvSet2D function but now?

Currently I am using

img.at<cv::Vec3b>(10,10) = cv::Vec3b(125,0,255);

but I like to independent to the image format and to use a cv::Scalar as colour

Greetings Markus

PS.: I don't want to use cv::circle or line, ...

edit retag flag offensive close merge delete