-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadnum.m
More file actions
executable file
·13 lines (11 loc) · 954 Bytes
/
readnum.m
File metadata and controls
executable file
·13 lines (11 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
function num=numread(s0,s1,s2,s3,s4,s5,s6,s7,s8,s9)
num(:,:,1) =imresize(im2bw(rgb2gray(s0),graythresh(rgb2gray(s0))),[110 55],'bilinear');
num(:,:,2) =imresize(im2bw(rgb2gray(s1),graythresh(rgb2gray(s1))),[110 55],'bilinear');
num(:,:,3) =imresize(im2bw(rgb2gray(s2),graythresh(rgb2gray(s2))),[110 55],'bilinear');
num(:,:,4) =imresize(im2bw(rgb2gray(s3),graythresh(rgb2gray(s3))),[110 55],'bilinear');
num(:,:,5) =imresize(im2bw(rgb2gray(s4),graythresh(rgb2gray(s4))),[110 55],'bilinear');
num(:,:,6) =imresize(im2bw(rgb2gray(s5),graythresh(rgb2gray(s5))),[110 55],'bilinear');
num(:,:,7) =imresize(im2bw(rgb2gray(s6),graythresh(rgb2gray(s6))),[110 55],'bilinear');
num(:,:,8) =imresize(im2bw(rgb2gray(s7),graythresh(rgb2gray(s7))),[110 55],'bilinear');
num(:,:,9) =imresize(im2bw(rgb2gray(s8),graythresh(rgb2gray(s8))),[110 55],'bilinear');
num(:,:,10) =imresize(im2bw(rgb2gray(s9),graythresh(rgb2gray(s9))),[110 55],'bilinear');