资源简介
利用Matlab处理图像,使用几种方法进行边缘分割
代码片段和文件信息
clc;
clear;
x=imread(‘zx.bmp‘);
gray=rgb2gray(x);
figure;
imshow(x);
axis on;
xlabel(‘x/像素‘);
ylabel(‘y/像素‘);
figure;
imshow(gray[]);
axis on;
xlabel(‘x/像素‘);
ylabel(‘y/像素‘);
set(findall(gcf‘type‘‘surface‘)‘facealpha‘0.4)
uimenufcn(gcf‘EditCopyFigure‘)
set(gcf‘unit‘‘centimeters‘‘position‘[3 5 8 6])
set(gca‘Position‘[.2 .2 .7 .65]);
gray_x=gray;
BW_sobel=edge(gray_x‘sobel‘0.07);
figure;
imshow(BW_sobel);
title(‘sobel‘);
axis on;
xlabel(‘x/像素‘);
ylabel(‘y/像素‘);
set(findall(gcf‘type‘‘surface‘)‘facealpha‘0.4)
uimenufcn(gcf‘EditCopyFigure‘)
set(gcf‘unit‘‘centimeters‘‘position‘[3 5 8 6])
set(gca‘Position‘[.2 .2 .7 .65]);
BW_sobel=edge(gray_x‘sobel‘0.05);
figure;
imshow(BW_sobel);
title(‘sobel‘);
axis on;
xlabel(‘x/像素‘);
ylabel(‘y/像素‘);
set(findall(gcf‘type‘‘surface‘)‘facealpha‘0.4)
uimenufcn(gcf‘EditCopyFigure‘)
set(gcf‘unit‘‘centimeters‘‘position‘[3 5 8 6])
set(gca‘Position‘[.2 .2 .7 .65]);
BW_sobel=edge(gray_x‘sobel‘0.03);
figure;
imshow(BW_sobel);
title(‘sobel‘);
axis on;
xlabel(‘x/像素‘);
ylabel(‘y/像素‘);
set(findall(gcf‘type‘‘surface‘)‘facealpha‘0.4)
uimenufcn(gcf‘EditCopyFigure‘)
set(gcf‘unit‘‘centimeters‘‘position‘[3 5 8 6])
set(gca‘Position‘[.2 .2 .7 .65]);
BW_sobel=edge(gray_x‘sobel‘0);
figure;
imshow(BW_sobel);
title(‘sobel‘);
axis on;
xlabel(‘x/像素‘);
ylabel(‘y/像素‘);
set(findall(gcf‘type‘‘surface‘)‘facealpha‘0.4)
uimenufcn(gcf‘EditCopyFigure‘)
set(gcf‘unit‘‘centimeters‘‘position‘[3 5 8 6])
set(gca‘Position‘[.2 .2 .7 .65]);
BW_prewitt=edge(gray_x‘prewitt‘);
BW_roberts=edge(gray_x‘roberts‘);
figure;
imshow(BW_sobel);
title(‘sobel‘);
axis on;
xlabel(‘x/像素‘);
ylabel(‘y/像素‘);
set(findall(gcf‘type‘‘surface‘)‘facealpha‘0.4)
uimenufcn(gcf‘EditCopyFigure‘)
set(gcf‘unit‘‘centimeters‘‘position‘[3 5 8 6])
set(gca‘Position‘[.2 .2 .7 .65]);
figure;
imshow(BW_prewitt);
title(‘prewitt‘);
axis on;
xlabel(‘x/像素‘);
ylabel(‘y/像素‘);
set(findall(gcf‘type‘‘surface‘)‘facealpha‘0.4)
uimenufcn(gcf‘EditCopyFigure‘)
set(gcf‘unit‘‘centimeters‘‘position‘[3 5 8 6])
set(gca‘Position‘[.2 .2 .7 .65]);
figure;
imshow(BW_roberts);
title(‘roberts‘);
axis on;
xlabel(‘x/像素‘);
ylabel(‘y/像素‘);
set(findall(gcf‘type‘‘surface‘)‘facealpha‘0.4)
uimenufcn(gcf‘EditCopyFigure‘)
set(gcf‘unit‘‘centimeters‘‘position‘[3 5 8 6])
set(gca‘Position‘[.2 .2 .7 .65]);
BW_log_0=edge(gray_x‘log‘);
figure;
imshow(BW_log_0);
title(‘log []‘);
axis on;
xlabel(‘x/像素‘);
ylabel(‘y/像素‘);
set(findall(gcf‘type‘‘surface‘)‘facealpha‘0.4)
uimenufcn(gcf‘EditCopyFigure‘)
set(gcf‘unit‘‘centimeters‘‘position‘[3 5 8 6])
set(gca‘Position‘[.2 .2 .7 .65]);
BW_log_0=edge
- 上一篇:蚁群算法的特征选取 matlab实现
- 下一篇:matlab 2015a许可文件
相关资源
- 基于matlab的图像处理源程序
- 冈萨雷斯数字图像处理matlab版(第三
- 基于matlab 的图像处理100实例
- 8领域边界跟踪 图像处理 matlab
- matlab-图像处理算法
- p文件,MATLAB的
- 数字图像处理radon matlab变换算法代码
- 图像降噪Matlab代码
- 传统关联成像、计算鬼成像matlab
- MATLAB7.x图像处理
- 基于matlab的车牌识别系统论文
- matlab2019运动目标检测--数字图像处理
- 计算图像Spatial Frequence的Matlab程序SF
- 尾灯识别matlab代码
- MATLAB大脑腔体图像分割
- 基于MATLAB人民币识别系统.zip
- 数字图像处理作业canny边缘检测坎尼边
- 数字图像处理 MATLAB 大作业 代码及其
- 遥感影像融合_数字图像处理的matlab程
- MATLAB图像与视频处理实用案例详解代
- MATLAB 图像处理识别程序
- 数字图像处理使用matlab进行采样量化
- 傅里叶变化频谱图及频域滤波
- MATLAB实现k-svd和mod信号处理
- 图像处理---matlab
- Matlab在图像处理与目标识别方面的应
- matlab数字图像处理之几何变换将图像
- matlab数字图像处理之图像几何变换
- 图像超分辨重建MATLAB源代码迭代步长
- mri去偏场代码
评论
共有 条评论