Transcript Document

Image Processing
with Matlab
AI 김준영, CVPR 한현민
영상 처리의 개요
 영상과 Matlab
 영상의 점 처리
 영상의 영역 처리

영상 처리의 개요

영상의 성질을 변화시키는 것
1. 인간의 인식을 위해 그림 정보를 개선
ex) sharpening, noise 제거, blurring 제거
2. 자동화 기계의 인식을 위해 정보를 적절하게 표현
ex) edge detect, blur
영상 처리의 개요

디지털 영상의 형태
1. Binary
영상 처리의 개요

디지털 영상의 형태
1. Gray
영상 처리의 개요

디지털 영상의 형태
1. RGB Color
영상과 Matlab
imread(‘image_name.format’)
 imshow(‘image_name.format’)
or imshow(variable)
 rgb2gray(variable)
 Matrix로 저장된다.

Ex) color = imread(‘koala.jpg’);
gray = rgb2gray(color);
imshow(gray)
color(100, 200, : ), impixel(color, 100, 200)
영상의 점 처리



한 화소의 값을 변환하되 주위 값을 이용
하지 않고 변환하는 방법
단순한 방법이지만 강력하며 이 방법은
영상처리 본래의 목적을 시도하기 전에
전처리 과정에서 주로 사용된다.
EX) imadd(변수, 값), imsubtract(변수, 값),
immultiply(변수, 값), imdivide(변수, 값)
imcomplement(변수)
a = imcomplement(imadd(immultiply(gray, 0.5), 100));
figure, imshow(gray), figure, imshow(a)
영상의 점 처리

Histogram
영상에서 각 값이 존재하는 수를 나타내는 그래프
(누적 분포)
imhist(variable)
영상의 점 처리

Histogram Equalization
histogram을 균일하게 변화시킴으로 더 좋은 대비
영상을 얻는다.
histeq(variable)
영상의 영역 처리
공간회선
 저역 통과 필터

◦ 평균
◦ Gaussian

고역 통과 필터
◦ Laplacian
◦ Laplacian of Gaussian(LoG)
영상의 영역 처리

공간 회선
영상의 영역 처리 - 평균 필터
영상의 에지를 흐리게 만든다.
 c = imread(‘image_name.format’)
f = fspecial(‘average’);
cf = filter2(f, c);
imshow(cf/100)

영상의 영역 처리 - Gaussian 필
터

c = imread(‘image_name.format’)
f = fspecial(‘gaussian’);
cf = filter2(f, c);
imshow(cf/255)
영상의 영역 처리 - Laplacian 필
터
에지를 검출하는 데 사용한다.
 c = imread(‘image_name.format’)
f = fspecial(‘laplacian’);
cf = filter2(f, c);
imshow(cf/100)

영상의 영역 처리 - LoG 필터
Laplacian과 Gaussian을 결합하여 만든
필터이다.
 c = imread(‘image_name.format’)
f = fspecial(‘log’);
cf = filter2(f, c);
imshow(cf/100)
