Screwy OpenCV Manipulations

March 2, 2008

I’ve been playing more with OpenCV and I think I’m missing something. I can’t do any manipulations on the image data without really screwing it up. The only thing that doesn’t seem to wash out the data out is moving pixels around without changing them. Not sure what I’m missing. Here’s the few different manipulations and what they look like when they wash out.

Monochrome


Memory
This one just keeps five frames and then adds them in to create a faded composite, should be simple.

I just can’t figure out what I’m doing wrong here.

Comments

  1. giulio says:

    try using cvSet2D and cvGet2D, or using img->widthstep instead of (img->width)*3.. often it’s not the same

  2. john says:

    Works like a charm! Here’s the code I ended up with for it.

  3. […] That’s all over now thanks to the OpenCV mailing list, you can see the fix in the comments of this post. Since I can now manipulate colors and pixels with ease I’ve been writing a few more neat […]

Leave A Comment

Your email will not be published.