matlab을 이용한 영상신호처리
- 최초 등록일
- 2010.07.06
- 최종 저작일
- 2010.05
- 11페이지/ MS 워드
- 가격 1,500원
소개글
matlab을 이용하여 동전의 갯수를 찾아내는 source코드와 결과입니다
matlab을 이용한 영상신호처리 응용입니다
목차
1.Source Code
2.Figure and Result
본문내용
% Digital Image Processing Project1
% coinsegment
% Used codes : circse, imopen, imclose, bwdist, watershed, imextendedmin, imiposemin
% Electronics engineering, 200520224, Han Seung Hwan
% Submit date: 2010.05.02
close all; clc; clear all;
fcc = imread(`coins-4.jpg`);
fc = imresize(fcc, 0.5);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Segment of the oldest 10 won coins %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
f1 = fc(:,:,1);
f2 = fc(:,:,2);
f3 = fc(:,:,3);
figure(1); imshow(fc); title(`Origin Image of coins`)
g = cat(3, f2, f1, f3); %Concatenate arrays along specified dimension
H = rgb2hsi(g); %Converters an RGB image to HSI.
h = H(:,:,1);
figure(2); imhist(h); title(`Histogram of Hue component`); %Display histogram of image data
T = h < 0.19;
H = fspecial(`disk`, 5); %reate predefined 2-D filter
b = imfilter(T, H); %N-D filtering of multidimensional images
se = circse(7); % Circle structuring element of radius 10
ho = imopen(b,se); %Morphologically open image
se = circse(3);
ho = imopen(ho,se);
참고 자료
없음