Top Banner

Click here to load reader

of 19

第七週Histogram Equalization.pptx

Nov 15, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript

Point Processing(2)

Histogram Equalization: :Histogram Equalizationhisteq() : pixel: img= imread(); img1=histeq(img);

imhist (2/1)imhist pixel : img = imread(); TABLE = imhist(img);

3Imhist(2/2)imhist show(Histogram) : img= imread(); h=histeq(img); imhist(h);

stemstem : h=imhist(img); stem(h, 'r','*'), stem(h,,), : k; r; b); : * ; + ; . .. ;

bar

,

x =[2 3 4 5 7; 4 2 3 2 1];bar(x);

Matlab Function

functionfunctionfunctionMatlab Functionfunction2

average.m

Matlab Functionaverage.m

p=3;

q=7;

r=average(p,q);

p=p+r;

q=q+r;

2015/4/710

Nearest Neighbor Interpolation(NNI) ()2015/4/7112.5aaaaabbbbb Nearest Neighbor Interpolation(NNI) ()2015/4/712

Bilinear Interpolation ()2015/4/713

Bilinear Interpolation ()

Bicubic Interpolation ()

2015/4/715

2015/4/716 Bicubic Interpolation()

Bilinear Interpolation2015/4/717

128*128

2015/4/718NNI BILINEARNNINNIBICUBIC:,,function

2015/4/719Matlab imresize

B=imresize(A, 4() ,nearest); [pixel] bilinear