利用边缘检测算子检测出二直掌纹图像的轮廓线
clear;clc; close all; I=imread('G:1.jpg'); I=rgb2gray(I); imshow(I,[]); title('原图');
sobelBW=edge(I,'sobel'); figure; imshow(sobelBW); title('Sobel Edge');
robertsBW=edge(I,'roberts'); figure; imshow(robertsBW); title('Roberts Edge');
prewittBW=edge(I,'prewitt'); figure; imshow(prewittBW); title('Prewitt Edge');
logBW=edge(I,'log'); figure; imshow(logBW); title('Laplasian of Gaussian Edge');
cannyBW=edge(I,'canny'); figure; imshow(cannyBW); title('Canny Edge'); 由于文件太大传不上来 文件已分享百度网盘
游客,本帖隐藏的内容需要积分高于 1 才可浏览,您当前积分为 0
|