Extract features - error unable to save .png

646 views
Skip to first unread message

mende...@gmail.com

unread,
Aug 24, 2015, 5:50:36 AM8/24/15
to Theia Vision Library
Hello,

I'm trying too run the examples from the website with the features extraction and i'm having an error saying some errors about reading and writing .png files.

I ran the following command:
/home/pic/TheiaSfM-master/theia-build/bin/extract_features --input_imgs=/home/pic/Reconstruction/data/*.JPG --img_output_dir=/home/pic/Reconstruction/data/image_features --num_threads=4 --descriptor=SIFT

I have the images in the input_imgs folder, and img_output_dir is an empty folder. I receive the following error:

convert: unable to open image `/home/pic/Reconstruction/data/image_features/detected_image_0.png': No such file or directory @ error/blob.c/OpenBlob/2695.
convert: WriteBlob Failed `/home/pic/Reconstruction/data/image_features/detected_image_0.png' @ error/png.c/MagickPNGErrorHandler/1630.
sh: 1: gm: not found
terminate called after throwing an instance of 'cimg_library::CImgIOException'
what(): [instance(4272,2848,1,3,0x7ff569e49010,non-shared)] CImg<float>::save_other(): Failed to save file '/home/pic/Reconstruction/data/image_features/detected_image_0.png'. Format is not natively supported, and no external commands succeeded.

I hope someone can solve this.

Thanks,

Pedro

Chris Sweeney

unread,
Aug 24, 2015, 12:54:24 PM8/24/15
to mende...@gmail.com, Theia Vision Library
Hi Pedro,

I think this is an issue regarding which image libraries you have installed. Could you be sure to install libjpeg and libpng? And if that doesn't work then install imagemagick as well.

Chris

--
You received this message because you are subscribed to the Google Groups "Theia Vision Library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theia-vision-lib...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mende...@gmail.com

unread,
Aug 25, 2015, 5:24:41 AM8/25/15
to Theia Vision Library, mende...@gmail.com, sweeney...@gmail.com
Hello Chris

All the libs you asked are installed and I also have ImageMagick installed

Best,

Pedro

Chris Sweeney

unread,
Aug 25, 2015, 12:29:20 PM8/25/15
to mende...@gmail.com, Theia Vision Library
Hi Pedro,

This line states that your file does not exist. Can you verify with `ls` that it exists?

 `/home/pic/Reconstruction/data/image_features/detected_image_0.png': No such file or directory

mende...@gmail.com

unread,
Aug 27, 2015, 6:10:06 AM8/27/15
to Theia Vision Library, mende...@gmail.com, sweeney...@gmail.com
The image does not exist, but i think it's normal because that folder is the output folder. So it would only had images in the end

Chris Sweeney

unread,
Aug 27, 2015, 9:32:03 AM8/27/15
to mende...@gmail.com, Theia Vision Library

Ok. Is the directory writeable?

ping...@gmail.com

unread,
Sep 17, 2015, 6:38:05 AM9/17/15
to Theia Vision Library, mende...@gmail.com
mende...@gmail.com於 2015年8月24日星期一 UTC+8下午5時50分36秒寫道:
Hi Pedro,

Try

"sudo apt-get install graphicsmagick"

Ping
Reply all
Reply to author
Forward
0 new messages