ok got it in the buffer now how to input it in a function for example

opencv::opticalFlowCalc(image(the image in the buffer));



On Wed, Aug 4, 2010 at 11:38 PM, Christian Van Brussel <
[email protected]> wrote:

> >> csRef<iImage> img (csPtr<iImage> (G2D->ScreenShot ()));
> >>
> >> This means the current frame! right?
>
> It depends when you call it as it will return the current content of the
> buffer. You may call it for example after the call to view->Draw () at the
> end of csApplicationFramework::Frame().
>
>
> >> if this gets me the current screen shot then how can i convert this
> >> iImage
> >> into a usable image for example an 8bit 3 channel image.
> >> Help PLS!!!!!!!!!!!!!!!!!!!
>
> iImage::GetImageData() should do the trick. Something like:
>
> unsigned char *buffer = (unsigned char *) img->GetImageData();
>
>
>
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Crystal-main mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/crystal-main
> Unsubscribe: mailto:[email protected]
> ?subject=unsubscribe
>
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: 
mailto:[email protected]?subject=unsubscribe

Reply via email to