how to interchange the blocks randomly

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

 採用された回答

Walter Roberson
Walter Roberson 2014 年 3 月 11 日

0 投票

See cell2mat() and randperm() and reshape()

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeEncryption / Cryptography についてさらに検索

質問済み:

2014 年 3 月 11 日

回答済み:

2014 年 3 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by