Post date: Apr 23, 2012 8:20:46 AM
I'm having some trouble with my color detection code.
First off is WTH am I getting from SubMat.get(kY,kX,kPixelData);
get returns the pixel value from the co-ordinates you give it. But the problem is the way it returns it.
If I grab Gimp or some other image manipulation thing and take a look at RGB color I get 3 numbers values 0-255.
If I look at what I get from OpenCV I seem to get three numbers values -128 to +128.
Also I get BGR not RGB but I can work with that.
I started cruising around Teh interwebs looking for how to get color data. I found this article. Which I'm too tired to understand.
http://myopencv.wordpress.com/2008/12/20/red-blob-detection-from-video/
and will have to go back to.