算法實現Alg4-Infrared small target detection via multi-direction line reconstruction ···

Infrared small target detection via multi-direction line reconstruction and information entropy-induced suppression 》

Infrared physics & technology 

impact factor:1.713

引用:Shang K, Sun X, Tian J, et al. Infrared small target detection via line-based reconstruction and entropy-induced suppression[J]. Infrared Physics & Technology, 2016, 76:75-81.

適合簡單圖像,複雜雲層不ok~

clear all;
close all;
clc;

img=imread('E:\A 研究生學習\我的論文~\image\6.jpg');
n=size(size(img));
if n(1,2)==2;
    im_gray=img;
else im_gray=rgb2gray(img);
end
figure;
imshow(im_gray,'Colormap',jet(255));



f=im_gray;
[m,n]=size(f);
lm=2;
D=f;
  for p=1:12;
      seta=p*pi/6;
    for l=2:2:lm
     for j=lm+1:n-lm
        for i=lm+1:m-lm 
          D(i,j,l,p)=f(floor(i+lm*cos(seta)),floor(j+lm*sin(seta)));
        end
     end
     D(:,:,p)=min(D(:,:,2,p),D(:,:,l,p));
    end
    maxD=max(D(:,:,1),D(:,:,p));
  end
  final=f-maxD;
  figure;
  final=imcrop(final,[lm+1,lm+1,n-2*lm-1,m-2*lm-1]);
  imshow(final,[]);

  figure; %final
img_1=imresize(final,1); %圖像放縮
[m3,n3]=size(img_1);
[x,y]=meshgrid(1:1:n3,1:1:m3);
for i=1:m3
    for j=1:n3
        R(i,j)=img_1(i,j);
    end
end
mesh(double(x),double(y),double(R));
xlabel('x');
ylabel('y');


原圖:

僞色彩圖像:

線性殘差:



沒有做熵,沒有算最後用熵加權的final result。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章