%搜索范围确定
baselinestart1= [139,1210];
baselineend1 = [77,589];
kbaseline1= (baselinestart1(1)-baselineend1(1))/(baselinestart1(2)-baselineend1(2));
intercepbaseline1=baselinestart1(1)-kbaseline1*baselinestart1(2);
baselinestart2= [145,1210];
baselineend2 = [83,589];
kbaseline2= (baselinestart2(1)-baselineend2(1))/(baselinestart2(2)-baselineend2(2));
intercepbaseline2=baselinestart2(1)-kbaseline2*baselinestart2(2);
x01=round(-intercepbaseline1/kbaseline1);
x02=round(-intercepbaseline2/kbaseline2);
大佬他是如何确定搜索范围的