Loading...
You are not logged-in Login/Register





  • Posts   Search Threads
  • tchaikovskyApril 18, 2007 10:38 PM PDT   
    cvLoadImage cvSaveImage in Linux

    Hi!

    I'm trying to implement a simple code to my program in linux, but having a strange behavior with opencv work. actuially i do almost nothing, but even it don't work.

     IplImage* img =0;

     img = cvLoadImage(filename,1);

    if (img == 0 ) return -1;

    cvSaveImage(filename2,img);

     So, after work of this code, the new image is created, but its contend seem to be taken from wrong place. i mean image is absolutely chaotic. this code works fine in windows, but why not in linux:(. can someone give me an advice, or simply show how to do it? thank you!

    Sorry,i forgot to say, that problem is with jpeg files. so perhaps i need to install something more to work with jpeg? i've seen the jpeg examples, but it seem all low-level encode routines are written. should it be so complecated to load jpeg from opencv?



    Vladimir Dudnik (Intel)April 19, 2007 10:05 AM PDT
    Rate
     
    Re: cvLoadImage cvSaveImage in Linux

    Did you try to build any of OpenCV samples to see if it work for you?

    Vladimir



    tchaikovskyApril 19, 2007 1:54 PM PDT
    Rate
     
    Re: cvLoadImage cvSaveImage in Linux

    yes, but it gives an error,

    (the function is not implemented

    rebuid library Windows, GTK+ 2.x or Carbon support),  in function cvNamedWindow

    as samples use it, i can't test properly.



    Vladimir Dudnik (Intel)April 30, 2007 3:50 PM PDT
    Rate
     
    Re: cvLoadImage cvSaveImage in Linux

    strange. Did you use the latest version of OpenCV (1.0)?

    Vladimir



    cyberhansrajMay 23, 2007 11:05 PM PDT
    Rate
     
    Re: cvLoadImage cvSaveImage in Linux

    hi

    I presume you compiled the library source on your linux platform. The problem is that when you configured using ./configure, the development lib for gtk2.0 wasn't detected(if it actually existed in your system). so when you ran the make command, it compiled the library without any UI support. You need to have not only gtk runtime on your system, but also gtk development lib to be able to successfully compile opencv with ui support.
    as of now, you should remove the current installation of opencv from your system; rebuild your opencv lib after installing gtk dev lib in the correct path; and reinstall the compiled opencv lib.
    Hope this works.


Forum jump:  

Intel Software Network Forums Statistics

16,362 users have contributed to 46,324 threads and 163,865 posts to date.

In the past 24 hours, we have 28 new thread(s) 156 new posts(s), and 89 new user(s).

In the past 3 days, the most popular thread for everyone has been Formula for the intersection of straight lines The most posts were made to Take a look at John Burkhard&# The post with the most views is \"-check none\" generates error

Please welcome our newest member dcrumb


For more complete information about compiler optimizations, see our Optimization Notice.