Skip to content

Bug in istereo with vshift #21

@JulianLelandBell

Description

@JulianLelandBell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions