图像处理——图像边缘检测
生活随笔
收集整理的這篇文章主要介紹了
图像处理——图像边缘检测
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
?
目錄
?一,基本原理
二、相關(guān)實(shí)現(xiàn)程序
三、效果
?一,基本原理
?
?
二、相關(guān)實(shí)現(xiàn)程序
clear; close all; clc I = imread('rice.tif');%讀取圖像 I=myreb2gray(I);%調(diào)用函數(shù),處理圖像使之灰度化 sob=edge(I,'sobel'); pre=edge(I,'prewitt'); rob=edge(I,'roberts'); log=edge(I,'log'); can=edge(I,'canny'); figure,%建立圖像 subplot(2,3,1),imshow(I); title('原圖像'); subplot(2,3,2),imshow(sob); title('sobel'); subplot(2,3,3),imshow(pre); title('prewitt'); subplot(2,3,4),imshow(rob); title('roberts'); subplot(2,3,5),imshow(log); title('log'); subplot(2,3,6),imshow(can); title('canny');三、仿真效果
?
總結(jié)
以上是生活随笔為你收集整理的图像处理——图像边缘检测的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 互联网分享知识(一)
- 下一篇: 兴业银行信用卡积分怎么兑换现金,不能直接