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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -