资源简介

MATLAB 实现的物体自动检测、自动分割、自动识别,可以运行,实现一些简单物体的提取!!

资源截图

代码片段和文件信息

%..................实现物体自动分割与识别.................%
%   作者:     Dang Changying
%   单位:     Xi‘an Jiaotong University
%   日期:     2013-09-12       
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

clc;clear all;close all;
I=imread(‘20130522164509084.jpg‘);

%rgb转灰度
if isrgb(I)==1
    I_gray=rgb2gray(I);
else
    I_gray=I;
end

figureimshow(I);
BW=edge(I_gray‘sobel‘(grayt

评论

共有 条评论