Experiment 3:Edge Detection
Class: 电子1203班 Student ID: 1210910322 Name: 王影
Ⅰ. Aim
The aim of this laboratory session is to learn to deal with image data by Matlab. By the end of this session, you should be able to perform image preprocessing of edge detection in spatial domain and frequency 勿做商业用途
Ⅱ. Knowledge required in the Experiment个人收集整理 勿做商业用途
ⅰ.You are supposed to have learned the basic skills of using Matlab;文档收集自网络,仅用于个人学习
ⅱ.You need to review Matlab programming language and M-file
ⅲ. You should have studied edge detection ,勿做商业用途
Ⅲ. Experiment Contents文档来自于网络搜索
Demand: Please show the figure on the left and list the codes on the right respectively bellow each question.(请将运行结果(图片)和程序代码贴在每题下方)资料个人收集整理,勿做商业用途
ⅰ.Read “” file (to do this by imread function), convert the color image into grayscale image, and then perform edge detection using Roterts, Prewitt, Sobel operator separately in spatial domain and display the results in a Matlab 勿做商业用途
程序:
clear;
im=imread(''); 文档来自于网络搜索
I=rgb2gray(im);资料个人收集整理,勿做商业用途
subplot(3,2,1);imshow(I); 文档收集自网络,仅用于个人学习
title('Gray image');个人收集整理 勿做商业用途
[Y,X]=size(I);资料个人收集整理,勿做商业用途
im_edge=zeros(Y,X);文档来自于网络搜索
T=30;
for k=2:Y-1资料个人收集整理,勿做商业用途
for kk=2:X-1资料个人收集整理,勿做商业用途
im_edge(k,kk)=abs(I(k+1,kk+1)-I(k,
计算机视觉实验报告Experiment3 来自淘豆网m.daumloan.com转载请标明出处.