how to recombine 4x4 nonoverlapping blocks into original matrix
조회 수: 1 (최근 30일)
이전 댓글 표시
the program for dividing the matrix is
clc;
close all;
clear all;
I=imread('C:\Users\user\Pictures\lenna.jpg');
I=rgb2gray(I);
A=imresize(I,[128,128]);
% disp(A);
% imshow(A);
[r c]=size(A);
b=4;
k=0;
for i=1:(r/b)
for j=1:(c/b)
Block(:,:,k+j)=A((b*(i-1)+1:b*(i-1)+b),(b*(j-1)+1:b*(j-1)+b));
end
size(Block(:,:,k+j))
k=k+(r/b);
end
pls send the code to recombine these 4x4matrix
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!