标签:io ar os sp for on cti bs ad
function [ canny ] = canny( rgb )
temp=rgb2gray(rgb);
canny=edge(temp,‘canny‘);
end
temp=rgb2gray(rgb);
clear all
source = VideoReader(‘d:\v\\bus\1.avi‘);
myObj = VideoWriter(‘bus1.avi‘);
open(myObj);
c= source.numberOfFrames;
for i=1:c
f= read(source,i);
f=rgb2gray(f);
f=edge(f,‘canny‘);
writeVideo(myObj,uint8(f));
imshow(f);
if(i>20)
break;
end
end
close(myObj);
r1=int16(r1);
R=im2bw(rs,0.5);
figure(2);
imshow(R);
rs=255-rs;
rs=imabsdiff(rs,r2);
Imread
A=imrotate(A,angle,‘ 旋转实现的方法‘,‘BBox‘)
标签:io ar os sp for on cti bs ad
原文地址:http://www.cnblogs.com/ahuo/p/4089067.html