-
Notifications
You must be signed in to change notification settings - Fork 0
/
create.m
68 lines (55 loc) · 1.21 KB
/
create.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
function [test,v] = create(c1,c2,c3,c4,c5,c6,c7,c8,c9,c10)
test=zeros(192,10);
t=3;s=8;
img=imread('n0.bmp');
% img=im2bw(img);
c=crop(img);
c=~c;
test(:,1)=chain(c,t,s);
img=imread('n1.bmp');
img=im2bw(img);
c=crop(img);
c=~c;
test(:,2)=chain(c,t,s);
img=imread('n2.bmp');
% img=im2bw(img);
c=crop(img);
c=~c;
test(:,3)=chain(c,t,s);
img=imread('n3.bmp');
% img=im2bw(img);
c=crop(img);
c=~c;
test(:,4)=chain(c,t,s);
img=imread('n4.bmp');
% img=im2bw(img);
c=crop(img);
c=~c;
test(:,5)=chain(c,t,s);
img=imread('n5.bmp');
% img=im2bw(img);
c=crop(img);
c=~c;
test(:,6)=chain(c,t,s);
img=imread('n6.bmp');
img=im2bw(img);
c=crop(img);
c=~c;
test(:,7)=chain(c,t,s);
img=imread('n7.bmp');
% img=im2bw(img);
c=crop(img);
c=~c;
test(:,8)=chain(c,t,s);
img=imread('n8.bmp');
% img=im2bw(img);
c=crop(img);
c=~c;
test(:,9)=chain(c,t,s);
img=imread('n9.bmp');
% img=im2bw(img);
c=crop(img);
c=~c;
test(:,10)=chain(c,t,s);
v=[c1,c2,c3,c4,c5,c6,c7,c8,c9,c10];
end