A contrast enhancement of images by histogram equalization (HE) is very popular image processing technique widely used as preprocessing steps for medical and many other image and video processing applications. HE performs its operation by remapping the gray levels of the image based on the cumulative probability distribution of the input gray levels Test image 1 : butterfly Algorithm steps Histogram Equalization set maxI=255, minI=0 set nbins =255 Read Input-Image, im hc <- histogram-count (im,nbins) prob <- (hc) / sum(hc) cprob <- cumlative-sum(prob) Tf <- minI + (maxI -minI) x cprob Eim = Tf(im) maxI - maximum intensity level , minI - maximum intensity level nbins - number of bins(level) for histograms count Tf - Intensity mapping transfer function im - Input Image Eim - Enhanced output Image Matlab code for...
Comments
Post a Comment