Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
Face recognition
no vote
IMG = imread ('d: \ my document \, 'linewidth', 3,... 'edgecolor','r '); imshow (BW); title ('binary image'); [N1, N2] = size (BW); r = floor (N1 / 10);% divided into 10 blocks, row C = floor (N2 / 10);% divided into 10 blocks, column X1 = 1; x2 = R;% corresponding to row initialization s = R * C;% block area for I = 1:10y1 = 1; y2 = C;% corresponding to column initialization for J = 1:10if (Y2 & lt; = C | Y2 & gt; =9 * c) | (x1 = = 1 | x2 = = R * 10)% if it is in the surrounding area, LOC = find (BW (x1: X2, Y1: Y2) = = 0); [P, q] = size (LOC); PR = P / s * 100;% proportion of black pixels, if PR & lt; = 100bw (x1: X2, Y1: Y2) = 0; endy1 = Y1 + C;% column jump, y2 = Y2 + C;% column jump, endx1 = X1 + R;% row jump
黄金金
2017-12-20
0
1
No more~