Ask Your Question

sasa's profile - activity

2014-05-02 17:07:08 -0600 commented question setting pixels function?

I'm suggesting that, for symmetry, there should be an equivalent to cv_rectangle that sets a single pixel.

2014-05-02 09:06:47 -0600 commented question setting pixels function?

Notwithstanding the fact I want to use C not C++ the original point of the question was that there are a multitude of untidy methods for setting pixels and a lack of equivalence cf cvRectangle etc.

The point is that for symmetry with the other drawing function (like cvRectangle) it would appear logical that something like cvPixel existed. I'd rather not punctuate my code with a lot of mess just to paint one dot.

My example is what I am using in my C code where .at() is of no use to me.

What I want is a simple, symmetric and logical code base that includes this functionality and I want to code in C.

2014-05-02 04:59:31 -0600 commented question setting pixels function?

I suppose it depend on whether I want a c or c++ interface?

2014-05-01 08:05:21 -0600 asked a question setting pixels function?

There appears to be no simple function for setting pixels values. I can see loads of different ways of doing this but for symmetry sake what about something like this alongside rectangles, lines and circles?

void cvPixel(CvArr*, CvPoint, CvScalar);

void cvPixel(CvArr* img, CvPoint pt, CvScalar color){ cvSet2D(img,pt.y,pt.x,color); };