We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
getting the pixels in an opencv blob (Read 657 times)
getting the pixels in an opencv blob
Apr 26th, 2010, 11:43pm
 
In the documentation for OpenCV it lists the following as a field for the Blob class:

pixels - A list of color int, containing the image pixels created by loadPixels()

I'm having trouble parsing that sentence. When I check the length of the array pixels returns it is always zero. I've tried calling loadPixels() on the blob object first with the same result. I know that my blob detection code is working fine; I just can't get access to the pixel array.

If anyone can tell me how this field is intended to be used I'd really appreciate it! - Charlie
Page Index Toggle Pages: 1