function findmin = find_min(Sum)
%------------------------------输入参数-----------------------------
% 区域搜索找到可以搜索的中心
% sum =1*num 矩阵
% 返回 findmin = num1,像素和和最小值
ss = size(Sum);
num = ss(2);
i=1;
while Sum(i+5) > Sum(i)
i = i+1 ;
if i > num
end
end
num_max1 = i;
j = num;
while Sum(j-5) > Sum(j)
j = j-1;
if j<1
end
end
num_max2 = j;
sum1 = num_max1;
num_min = num_max1 ;
for k = num_max1:num_max2
if Sum(k) < Sum(sum1)
sum1 = k;
num_min = k;