how to interchange the blocks randomly

1 Ansicht (letzte 30 Tage)
sonam s
sonam s am 11 Mär. 2014
Beantwortet: Walter Roberson am 11 Mär. 2014
clear all;
im=imread(uigetfile('*.*'));
im=imresize(im,[200 200]);
[x y z]=size(im);
im=mat2cell(im,[50 50 50 50],[50 50 50 50],3);
in the above code the uint8 image is divided into 16 blocks and i want to interchange the blocks and display the image after interchanging.sir can u help how to implement it

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 11 Mär. 2014
See cell2mat() and randperm() and reshape()

Weitere Antworten (0)

Kategorien

Mehr zu Encryption / Cryptography finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by