matlab 重叠分割图像块并重建
1.图像块的重叠分割
function [prow,pcol] = overlapCut2matrix(img,s,o)
[m,n] = size(img);
prow = (m-o)/(s-o);
pcol = (n-o)/(s-o);
%P = zeros(s,s,prow*pcol);
blocks=1;
for i = 1:prow
for j = 1:pcol
a=img((i-1)*(s-o)+1:(i-1)*(s-o)+s, (j-1)*(s-o)+1:(j-1)*(s-o
原创
2021-04-08 15:22:09 ·
851 阅读 ·
0 评论