openMVS icon indicating copy to clipboard operation
openMVS copied to clipboard

error: unknown image format

Open 945540968 opened this issue 7 years ago • 6 comments

We used openMVG to run SFM, and transformed its output into openMVS. But we have met a problem as following: pic I saw there are some similar problems in the "issues",but i still can't find a way to solve it. Can anybody help me? I will be very grateful.

945540968 avatar Nov 21 '17 11:11 945540968

It seems like OpenMVS was not compiled with JPEG support. Make sure you point CMake to the JPEG library during OpenMVS configuration.

cdcseacave avatar Nov 21 '17 14:11 cdcseacave

Thanks,i will try.

945540968 avatar Nov 22 '17 05:11 945540968

Thanks for your solution, but why i can't find the "JPEG" choice in cmake? How to point cmake to the JPEG library?

945540968 avatar Nov 22 '17 07:11 945540968

In fact,I can't find the jpeg library during OpenMVS configuration,either.So I have trapped by this problem for a week.I will be very grateful if you can offer a more detailed answer!!

Jessicayanyan avatar Nov 23 '17 10:11 Jessicayanyan

Is JPEG_INCLUDE_DIR and JPEG_LIBRARY defined in your CMakeCache?

NextDesign1 avatar Dec 31 '17 18:12 NextDesign1

This may not be the exact issue raised my the OP but there is a problem with the code only recognising .jpg and not.jpeg extensions which was the reason i was getting a bunch of different errors. libs/IO/Image.cpp just needs a small change to recognise both file extensions.

I cross posted a similar response to one of the other open issues related to similar errors which may have been caused by this specific problem.

antonyscerri avatar Nov 23 '21 03:11 antonyscerri