Re: [CsMain] registration and help

Usman Johri <[email protected]>
Newsgroups gmane.comp.graphics.crystalspace.general
Message-ID <[email protected]>
waiting for your help guys, working on my final project, working with opencv
i want the images of the rendered frame after every movement for the image
processing.........

HELP!!!!!!!!!

On Thu, Aug 5, 2010 at 12:23 AM, Usman Johri <[email protected]> wrote:

> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.