Skip to content
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

Bug in istereo with vshift #21

Open
JulianLelandBell opened this issue Feb 24, 2022 · 0 comments
Open

Bug in istereo with vshift #21

JulianLelandBell opened this issue Feb 24, 2022 · 0 comments

Comments

@JulianLelandBell
Copy link

Two bugfixes (I think) in istereo:

  1. 108: variable was given as vshift instead of opt.vshift in 2 locations
  2. 109 and 110: zero-indexing-related error produces inconsistent image sizes --> stereo_match doesn't work. My solution:
    if opt.vshift ~= 0
        if opt.vshift > 0
            L = L(1:end-opt.vshift+1,:);
            R = R(opt.vshift:end,:);
        else
            opt.vshift = -opt.vshift;
            L = L(opt.vshift:end,:);
            R = R(1:end-opt.vshift+1,:);
        end
    end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant