資源簡介
運用各種算子,對圖像進行分割,包括roberts算子,prewitt算子,sobel算子,canny算子,log算子等
代碼片段和文件信息
clear?all;close?all;clc
P?=?imread(‘1.jpg‘);
I?=?rgb2gray(P);
BW1?=?edge(I‘roberts‘);
BW2?=?edge(I‘prewitt‘);
BW3?=?edge(I‘sobel‘);
BW4?=?edge(I‘canny‘);
BW5?=?edge(I‘log‘[]);
subplot(231)imshow(I)
title(‘the?grayscale?image‘)
subplot(232)imshow
- 上一篇:單點定位MATLAB程序源碼
- 下一篇:matlab牛拉法潮流計算程序
評論
共有 條評論