Я использую функцию imhistmatch
, но в результате получается двухмерная матрица. Я ожидал другого результата.
a=imread('dalgic.png');
a=rgb2gray(a);
[r,c]=size(a);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
esitlenmis=histeq(a);
ort_esitlenmis=fft2(esitlenmis);%orthogonal transform is fft.
log_ort_esitlenmis=log(1+abs(ort_esitlenmis));
ort=fft2(a);
ort=fft2(ort);%2nd fft
log_ort=log(1+abs(ort));
matched=imhistmatch(log_ort,log_ort_esitlenmis);