ERROR: Exception loading image

16 views
Skip to first unread message

Matthew

unread,
Oct 25, 2009, 2:52:14 AM10/25/09
to FIRE - Flexible Image Retrieval Engine
Hi, all:

I just installed FIRE (in /home/matthew/fire-2.2) today and Apache
(in /home/matthew/apache2) to my Linux server. I have some sample
images in the folder "/home/matthew/imgs". Here how it looks like:
------------------------------------------------------------------------------------------------
[matthew@HXB imgs]$ pwd
/home/matthew/imgs
[matthew@HXB imgs]$ ls
image10.jpeg image2.jpeg image4.jpeg image6.jpeg image8.jpeg
image1.jpeg image3.jpeg image5.jpeg image7.jpeg image9.jpeg
[matthew@HXB imgs]$
------------------------------------------------------------------------------------------------
I then run the below command:

/home/matthew/fire-2.2/bin/extractcolorhistogram --color --images
$IMGDIR/*.jpeg

I received the below exception messages:

-------------------------------------------------------------------------------------------------
[matthew@HXB imgs]$ /home/matthew/fire-2.2/bin/extractcolorhistogram --
color --images $IMGDIR/*.jpeg
(10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
'/home/matthew/imgs/image10.jpeg' (1/10).
[Features/imagefeature.cpp:121:load] ERROR: Exception loading image: /
home/matthew/imgs/image10.jpeg
(10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
'/home/matthew/imgs/image1.jpeg' (2/10).
[Features/imagefeature.cpp:121:load] ERROR: Exception loading image: /
home/matthew/imgs/image1.jpeg
(10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
'/home/matthew/imgs/image2.jpeg' (3/10).
[Features/imagefeature.cpp:121:load] ERROR: Exception loading image: /
home/matthew/imgs/image2.jpeg
(10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
'/home/matthew/imgs/image3.jpeg' (4/10).
[Features/imagefeature.cpp:121:load] ERROR: Exception loading image: /
home/matthew/imgs/image3.jpeg
(10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
'/home/matthew/imgs/image4.jpeg' (5/10).
[Features/imagefeature.cpp:121:load] ERROR: Exception loading image: /
home/matthew/imgs/image4.jpeg
(10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
'/home/matthew/imgs/image5.jpeg' (6/10).
[Features/imagefeature.cpp:121:load] ERROR: Exception loading image: /
home/matthew/imgs/image5.jpeg
(10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
'/home/matthew/imgs/image6.jpeg' (7/10).
[Features/imagefeature.cpp:121:load] ERROR: Exception loading image: /
home/matthew/imgs/image6.jpeg
(10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
'/home/matthew/imgs/image7.jpeg' (8/10).
[Features/imagefeature.cpp:121:load] ERROR: Exception loading image: /
home/matthew/imgs/image7.jpeg
(10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
'/home/matthew/imgs/image8.jpeg' (9/10).
[Features/imagefeature.cpp:121:load] ERROR: Exception loading image: /
home/matthew/imgs/image8.jpeg
(10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
'/home/matthew/imgs/image9.jpeg' (10/10).
[Features/imagefeature.cpp:121:load] ERROR: Exception loading image: /
home/matthew/imgs/image9.jpeg
(10) [FeatureExtractors/extractcolorhistogram.cpp:130:main] cmdline
was: /home/matthew/fire-2.2/bin/extractcolorhistogram --color --
images /home/matthew/imgs/image10.jpeg /home/matthew/imgs/image1.jpeg /
home/matthew/imgs/image2.jpeg /home/matthew/imgs/image3.jpeg /home/
matthew/imgs/image4.jpeg /home/matthew/imgs/image5.jpeg /home/matthew/
imgs/image6.jpeg /home/matthew/imgs/image7.jpeg /home/matthew/imgs/
image8.jpeg /home/matthew/imgs/image9.jpeg
----------------------------------------------------------------------------------------------------------------------

Can anyone help me on why the images cannot be loaded?

Thanks,

Thomas Deselaers

unread,
Oct 25, 2009, 3:20:12 PM10/25/09
to fire...@googlegroups.com
Hi,

can you check whether your imagemagick installation is OK?
Maybe you have imagemagick without libjpeg.

Cheers,
thomas
--
http://thomas.deselaers.de

Matthew

unread,
Oct 25, 2009, 8:07:54 PM10/25/09
to FIRE - Flexible Image Retrieval Engine
Hi, Thomas:

I just checked my installation. Seems ok. But I reinstalled it
anyway with the option of ----with-jpeg=yes and --with-jp2=yes in ./
configure. After installation,
I ran from command line

convert -negative image1.jpeg output.jpeg

and received the correct negated image. This means ImageMagick can
handle jpeg images, right?

The only thing I noticed is that I installed ImageMagick based on the
this link:

http://wiki.valeuf.org/wiki.cgi/FIRE/Installation

where I specified:

./configure --prefix=/home/matthew/usr/local --without-perl

Then I checked my ImageMagick in the /home/matthew/usr/local/lib
folder I didn't see any libjpeg files there. I instead found the lib
files by running:

[matthew@HXB timgs]$ ls -l /usr/lib |grep libjpeg
lrwxrwxrwx. 1 root root 17 10-25 07:10 libjpeg.so -> libjpeg.so.
62.0.0
lrwxrwxrwx. 1 root root 17 06-04 12:05 libjpeg.so.62 ->
libjpeg.so.62.0.0
-rwxr-xr-x. 1 root root 139052 2009-02-25 libjpeg.so.62.0.0

Anyway, I still received the same exception messages.

Any ideas?

Thanks,
> > [Features/imagefeature.cpp:121:load]ERROR:Exceptionloadingimage: /
> > home/matthew/imgs/image10.jpeg
> > (10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
> > '/home/matthew/imgs/image1.jpeg' (2/10).
> > [Features/imagefeature.cpp:121:load]ERROR:Exceptionloadingimage: /
> > home/matthew/imgs/image1.jpeg
> > (10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
> > '/home/matthew/imgs/image2.jpeg' (3/10).
> > [Features/imagefeature.cpp:121:load]ERROR:Exceptionloadingimage: /
> > home/matthew/imgs/image2.jpeg
> > (10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
> > '/home/matthew/imgs/image3.jpeg' (4/10).
> > [Features/imagefeature.cpp:121:load]ERROR:Exceptionloadingimage: /
> > home/matthew/imgs/image3.jpeg
> > (10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
> > '/home/matthew/imgs/image4.jpeg' (5/10).
> > [Features/imagefeature.cpp:121:load]ERROR:Exceptionloadingimage: /
> > home/matthew/imgs/image4.jpeg
> > (10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
> > '/home/matthew/imgs/image5.jpeg' (6/10).
> > [Features/imagefeature.cpp:121:load]ERROR:Exceptionloadingimage: /
> > home/matthew/imgs/image5.jpeg
> > (10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
> > '/home/matthew/imgs/image6.jpeg' (7/10).
> > [Features/imagefeature.cpp:121:load]ERROR:Exceptionloadingimage: /
> > home/matthew/imgs/image6.jpeg
> > (10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
> > '/home/matthew/imgs/image7.jpeg' (8/10).
> > [Features/imagefeature.cpp:121:load]ERROR:Exceptionloadingimage: /
> > home/matthew/imgs/image7.jpeg
> > (10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
> > '/home/matthew/imgs/image8.jpeg' (9/10).
> > [Features/imagefeature.cpp:121:load]ERROR:Exceptionloadingimage: /
> > home/matthew/imgs/image8.jpeg
> > (10) [FeatureExtractors/extractcolorhistogram.cpp:93:main] Processing
> > '/home/matthew/imgs/image9.jpeg' (10/10).
> > [Features/imagefeature.cpp:121:load]ERROR:Exceptionloadingimage: /

Thomas Deselaers

unread,
Oct 26, 2009, 4:03:10 AM10/26/09
to fire...@googlegroups.com
Mmh.
Difficult to say.

I just had one other idea. Since back then, I hard coded the image
suffices in FIRE, it might help if you rename to .jpg instead of
.jpeg.

Otherwise you will have to look into the source of

Features/imagefeature.cpp

and might find the solution to your problem slightly above line 121.
(This linenumber and file are taken from your error messages)

Cheers,
thomas
--
http://thomas.deselaers.de
Reply all
Reply to author
Forward
0 new messages