I have a 384*256 gray scale image which I partitioned into 24 equal size block. Now from these 24 blocks I want to reconstruct an image which is of same size as of input image but in which sequence of the blocks are different from the original block.
1 view (last 30 days)
Show older comments
I have a 384*256 gray scale image which I partitioned into 24 equal size block. Now from these 24 blocks I want to reconstruct an image which is of same size as of input image but in which sequence of the blocks are different from the original block sequence i.e. for original block sequence are 1,2,3....24 but that sequence will not be same as this.
2 Comments
Answers (1)
Jan
on 22 Mar 2017
x = rand(64, 64, 24); % Example data
y = x(:, :, randperm(24));
Now the blocks are shuffled. How did you split the image into blocks? The reverse method creates an image again.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!