cdcseacave / openMVS

open Multi-View Stereo reconstruction library
http://cdcseacave.github.io
GNU Affero General Public License v3.0
3.21k stars 895 forks source link

Image load failed, want to know why this happen. #763

Open FavorMylikes opened 2 years ago

FavorMylikes commented 2 years ago
12:47:00 [App     ] error: failed reloading image 'image.jpg'

After debug step by step, here's the code running. (bLoadPixels = true)

https://github.com/cdcseacave/openMVS/blob/c658b72298019544a5b0522d303fc158f226857e/libs/MVS/Image.cpp#L111-L127

And you can download image at fail_image

And I have use python 3.9 cv2 to read this image again, seems everything is ok, except for some gray data.

pierotofy commented 2 years ago

Are you sure the error is in the image and not in the path that loads the image? Did you try with other images?

FavorMylikes commented 2 years ago

@pierotofy

I'm sure, every other images loads ok, except this one.