期刊:Pattern Recognition
Impact factor:3.399
引用:Wei Y, You X, Li H. Multiscale patch-based contrast measure for small infrared target detection[J]. Pattern Recognition, 2016, 58(C):216-226.
实现:
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
imtool(im_gray);
%N=3
f1=im_gray;
f33=ordfilt2(f1,5,ones(3));
% figure;
% imshow(f);
% imtool(f);
F=zeros(9);
F(5,5)=1;
F1=F;
F1(2,2)=-1;
F2=F;
F2(2,5)=-1;
F3=F;
F3(2,8)=-1;
F4=F;
F4(5,8)=-1;
F5=F;
F5(8,8)=-1;
F6=F;
F6(8,5)=-1;
F7=F;
F7(8,2)=-1;
F8=F;
F8(5,2)=-1;
%N=5
f55=ordfilt2(f1,13,ones(5));
EF=zeros(15);
EF(8,8)=1;
EF1&