Hi Thanks for the reply.
With one file, it is working correctly. Now I get the following error messages which are different from earlier "file not found ones". (eog:8368): Gtk-CRITICAL **: gtk_tree_model_get_iter: assertion `path->depth > 0' failed (eog:8368): Gtk-CRITICAL **: gtk_list_store_get_value: assertion `VALID_ITER (iter, list_store)' failed (eog:8368): GLib-GObject-WARNING **: /build/buildd/glib2.0-2.20.1/gobject/gtype.c:3940: type id `0' is invalid (eog:8368): GLib-GObject-WARNING **: can't peek value table for type `<invalid>' which is not currently referenced Segmentation fault So any suggestions? my code: ----------------------------------------------------------------------------------------- #!/usr/bin/python print "Aum Amriteshwaryai Namaha" import Image imagePath = "/home/suresh/EE241/book_images_3ed/ch03/" im34 = Image.open(imagePath + "breast_digital_Xray.tif") im35 = Image.open(imagePath + "DFT_no_log.tif") im35.show() def neg(x): return 255-1-x import math def logtr(x): y = math.log(1+x,10) print y return y*100 im34x = im34.point(neg) im34x.show() im35x = im35.point(logtr) im35x.show() ----------------------------------------------end of code-------------------------------- suresh On Fri, Jan 8, 2010 at 5:29 AM, Bram Mertens <mertensb.ma...@gmail.com> wrote: > On Fri, Jan 8, 2010 at 1:14 AM, suresh.amritapuri > <suresh.amritap...@gmail.com> wrote: >> Hi >> >> I am using PIL for image processing in ubuntu 9.04. When i give two >> im.show() commands for two different images, the second image is not >> displayed (eye of gnome is the display program). It says no such file >> or directory. Any ideas? > > Have you verified that the path to the second image is correct and > that the image is readable by your script? > > e.g. try reversing the order of the images to identify whether or not > it is the image that can not be found or eog. > > Another approach might be to check the file using the os module or > something similar. > > Regards > > Bram > -- R Suresh Kumar, Phd Student, Vislab EE, Univ. of California Riverside, CA 92507 -- Even after all this time The sun never says to the earth, "You owe Me." Look what happens with A love like that, It lights the Whole Sky. - Hafiz e Shirazi _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig