Hello Sebastian,

[EMAIL PROTECTED] wrote:
[...]
> This sounds good.
> I have one problem with the whole GrabForeground thing. I am trying to use
> OpenCV for my image-processing tasks which works well as long as i write
> out the image using FileGrabForeground (as *.tiff) and reading it with
> openCV. This of course isn't realy what i want to do.
> Storing the image in an array-structure would be nice. But i dont get it
> how i can get an image-array from GrabForeground which i am able to pass
> to openCV (char[], std::string, ...).
> If there is a hint i would be glad to get it - then i could try out the
> 2-times GrabForeground thing really.

the GrabForeground stores the data in an OSG::Image, from which you can 
then get a pointer to the actual image data like this:

GrabForegroundPtr gf;
const UInt8 *data = gf->getImage()->getData();

        Hope it helps,
                Carsten

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to