Open hjh4638 opened 9 years ago
//이미지 입력 f = imread('C:\Users\Juni\Desktop\graduation\oriImg.PNG'); grayF = rgb2gray(f); figure, imhist(grayF); figure, imshow(f);
//히스토그램 평활화 g = histeq(grayF,256); figure, imhist(g); figure, imshow(g);
변환함수를 구하려면 히스토그램을 정규화 하고 이를 누적하면 된다. hnorm = imhist(f)./numel(f); cdf = cumsum(hnorm);
//이미지 입력 f = imread('C:\Users\Juni\Desktop\graduation\oriImg.PNG'); grayF = rgb2gray(f); figure, imhist(grayF); figure, imshow(f);
//히스토그램 평활화 g = histeq(grayF,256); figure, imhist(g); figure, imshow(g);