Hi What is the method of inverse Shuffle or unshuffle of Rand Blocks I used for Image Please any one help me in this regard Thank you

1 回表示 (過去 30 日間)
shuf_data=I1;
[M,indi,indj] = randblock(shuf_data,32);
figure;
J = im2uint8(M);
imshow(J,[])
  1 件のコメント
Geoff Hayes
Geoff Hayes 2018 年 7 月 4 日
Fawad - is randblock a function that you have found from the MATLAB FEX? If so, please include the link to the file. (Or attach it as an m-file rather than a zip binary.)

サインインしてコメントする。

回答 (1 件)

Jan
Jan 2018 年 7 月 4 日
編集済み: Jan 2018 年 7 月 4 日
According to the documentation of randblock:
[R,I,J] = RANDBLOCK(A) also returns indices I and J, so that R equals A(I)
and R(J) equals A.
So J(indj) or M(indj) is the inverse of the random permutation in your case.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by