0

I'm trying to do histogram matching on two matrixes.But result is not similar with input matrixes.I think it must similar with histogram of "log_ort_esitlenmis".

%Image enhancement'ta butun imge icin sag sutun
esitlenmis=histeq(a);
ort_esitlenmis=fft2(esitlenmis);
log_ort_esitlenmis=log(1+abs(ort_esitlenmis));

%Image enhancement'ta butun imge icin sol sutun 
ort=fft2(a);
angle_ort_1=angle(ort);% 1.ortogonal(fft) icin faz bilgisi tutma.
log_ort=log(1+abs(ort));

matched=imhistmatch(uint8(log_ort),uint8(log_ort_esitlenmis));

This is the algorithm that I'm trying to do

Histograms of log_ort,log_ort_esitlenmis and mathced

  • It looks like the `uint8` cast looses most of the data. It's hard to follow without the input image. Can you add image `a` to your post? – Rotem Dec 17 '19 at 23:05
  • Thanks for attention.I've solved the problem.The image `a` is a grey levet 8bit image.I've solved the problem by using `matched=imhistmatch(uint8(log_ort),uint8(log_ort_esitlenmis),256);` – cinargursoy Dec 18 '19 at 14:24

0 Answers0