Tugas Mata Kuliah Pengolahan Citra
Image Processing menggunakan MATLAB 7.6
Image Processing menggunakan MATLAB 7.6
Teknik Sobel Methods
>> A = imread('d:\tugas grafik\30.jpg');>> gray = rgb2gray(A);
>> BW1 = edge(gray,'sobel');
>> BW2 = edge(gray,'canny');
>> BW3 = edge(gray,'prewitt');
>> BW4 = edge(gray,'roberts');
>> imshow(BW1),title('Sobel Methods');
Teknik Canny Methods
>> figure, imshow(BW2), title('Canny Methods');Teknik Prewitt Methods
>> figure, imshow(BW3), title('Prewitt Methods');
Teknik Roberts Methods
>> figure, imshow(BW4), title('Roberts Methods');
Original Picture
>> i = imread('d:\tugas grafik\bay.jpg');
>> imshow(i), title('Original Picture');
Blurred Picture
>> PSF = fspecial('motion',55,90);
>> Blurred = imfilter(i,PSF,'circ','conv');
>> figure; imshow(Blurred); title('Blurred Picture');
Blurred an Noisy Image with Gaussian Methods
>> PSF = fspecial('gaussian', 20, 20);
>> Blurred = imfilter(i, PSF, 'symmetric', 'conv');
>> V = .002;
>> BlurredNoisy = imnoise(Blurred, 'gaussian', 0,V);
>> figure;imshow(BlurredNoisy); title('Blurred and Noisy Image');