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 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Jan
le 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.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!