WebCam with wxEuphoria
- Posted by Jerome Mar 25, 2011
- 1377 views
I've just started on a project to do image acquisition with OpenCV, EU4, and wxEuphoria. OpenCV allows me to grab images from my webcam, and it returns a pointer to the memory location of the RGB values for each pixel. I would like to be able to display these images with wxEuphoria using something like wxImage or wxBitmap, but I'm not sure how to organize the pixel data. Do I need to make a 2D sequence where each entry is a sequence of 3 characters representing the RGB values? Something like this:
image = {{{R,G,B},{R,G,B},{R,G,B},{R,G,B}}, {{R,G,B},{R,G,B},{R,G,B},{R,G,B}}, {{R,G,B},{R,G,B},{R,G,B},{R,G,B}}}
If so, then what is the appropriate function to pass this info to display these images?
Thanks in advance,
Ira