Re: [CsMain] registration and help

Usman Johri <[email protected]>
Newsgroups gmane.comp.graphics.crystalspace.general
Message-ID <[email protected]>
wow i think im reaching somewhere

tried this code:

view->Draw();
  img = csPtr<iImage> (g22d->ScreenShot());
  unsigned char *buffer = (unsigned char *) img->GetImageData();
cvNamedWindow("Optical Flow", CV_WINDOW_AUTOSIZE);
IplImage* img=cvCreateImage(cvSize(320,280),IPL_DEPTH_8U,1);
cvSetData(img,buffer,img->widthStep);
cvShowImage("Optical Flow", img);

i get a distorted image in which i can roughly imagine the same frame as in
the CS.......?????????? im attaching the image..

On Thu, Aug 5, 2010 at 2:47 PM, Christian Van Brussel <
[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));
>
> Now you have to watch in the OpenCV library how to import images into it.
>
> Please refer for example to
>
> http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/opencv-intro.html#SECTION00053000000000000000
>
> You may for example create a new opencv image then use cvSetData to import
> the buffer from the CS iImage.
>
>
>
> ------------------------------------------------------------------------------
> 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
hey.jpg (image/jpeg, 188.4 KB) - not displayed
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.