predict_area.asv

来自「目标跟踪的扩展卡尔曼滤波算法主函数的文件是:kal_demo.m 近似网格」· ASV 代码 · 共 36 行

ASV
36
字号
function [ Ppre ] = predict_area(loc1, loc2)

Ppre = ones(1,25);

if loc2(1,1) - loc1(1,1) >= 0
    up = 1;
else
    up = -1;
end

if loc2(2,1) - loc1(2,1) >= 0
    right = 1;
else
    right = -1;
end



switch up
    case 1
        Ppre(11:25) = Ppre(11:25) + 1;
    case -1
        Ppre(1:15) = Ppre(1:15) + 1;
    otherwise   
        Ppre = ones(1,25);
end

switch right
    case 1
        for i = 1:5
            
        end
    case -1
    otherwise
        Ppre = ones(1,25);
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?