matlab - Histogram equalization function -



matlab - Histogram equalization function -

i'm trying implement histogram equalization using code:

clc a=input('please come in image adress','s'); iimg=imread(a); iimg1=double(iimg); histi=imhist(iimg); mmax=max(iimg1(:)); h=histi/numel(iimg1) cdf=cumsum(h) cdf=cdf*double(mmax); c=uint8(cdf); subplot(1,3,1) bar(c) subplot(1,3,2) imhist(iimg) subplot(1,3,3) imhist(histeq(iimg))

is code wrong? don't expected results.

i code:

what wrong? unless image rgb, code works (i used cameraman).

matlab image-processing histogram

Comments

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -