Thanks.
I think its complicated to use one jpeg with all other libs.

Please tell me how can I make data for Fl_Shared_Image.
what I need is something like this.

1) unsigned char* imgdata1 = new unsigned char[Oimg1->width*Oimg1->height*3];

2) GetImageDataFromOpenCV(Oimg1, imgdata1);

3) Fl_Shared_Image *sImgs = (Fl_Shared_Image *)(imgdata1);

No. 3) could be like sImgs.set(imgdata1)

I read your suggested link but, there I couldn't find a way in order to set 
array of image data into Fl_Shared_Image.

How can I achieve this?
thanks.






> On 29 Dec 2012, at 21:11, Furqan wrote:
>
> > The issue is, there is a library I have to link called fltkjpeg.lib in =
> order to read *.jpg format.
> > But my application also need to link with OpenCV libjpeg.lib library.
> > When I link fltkjpeg library then OpenCV jpeg library doesn't work.
> > and when I link OpenCV jpeg , then FLTK jpeg doesn't read jpeg images.
> >=20
> > How can I remove this conflict ?
>
> The only time I've seen something similar (not with OpenCV) on a WinXX =
> machine I resorted to building my own libjpeg on the system, then made =
> fltk and the other lib both use that libjepg.
>
> Then it all just worked fine.
>
> But is sounds like you have maybe tried that and it did not work?
>
> In which case, I have no idea what else to suggest.
>
>
> > By the way, how can I set OpenCV image data into FLTK image data ? =
> currently I using like this Fl_Shared_Image::get(filepath);
>
> What format is the OpenCV image data in?
>
> If it can be stored to RAM as [8:8:8] RGB data then loading it into a =
> fltk image is trivial...
>
> http://www.fltk.org/articles.php?L468
>
>
>
>
>

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to