-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to input png or jpg stereo images for disparity map calculation #1
Comments
Read following lines: Lines 37 to 38 in 862ee4e
Maybe there are two choices for you.
Good luck! 😉 |
Hi @kou1okada I got the same error but I did convert all rectified images to for imgid in os.listdir(img_path_0_new):
commandLine = str(dirpath) + "/libelas/elas " + img_path_0_new + imgid + " " + img_path_1_new + imgid
os.system(commandLine) |
To write code in the Markdown, use triple back quotes (```).
And, your python script has no abilities to convert the image format. |
Sorry I didn't make my question clear. I converted the images manually before the code. Those lines aim to call LIBELAS. And the error is same as ahsan856jalal has said. |
Maybe my post on issue #2 will be helpful. |
When I try to input .png stereo images pair instead of .pgm, it gave me this error:
"/elas img/left_1.png img/right_1.png
Processing: img/left_1.png, img/right_1.png
ERROR: Could not read file img/left_1.png
terminate called after throwing an instance of 'pnm_error'
Aborted"
Can you help me in this regard
The text was updated successfully, but these errors were encountered: