Bug in istereo with vshift

17 views
Skip to first unread message

Julian Bell

unread,
Feb 24, 2022, 4:17:53 PM2/24/22
to Robotics & Machine Vision Toolboxes
Hi Peter,

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

I've created an issue on Github as well, but wanted to post this here in case helpful to others in the meantime.
Reply all
Reply to author
Forward
0 new messages