WebCam with wxEuphoria

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu