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 view (last 30 days)
shuf_data=I1;
[M,indi,indj] = randblock(shuf_data,32);
figure;
J = im2uint8(M);
imshow(J,[])
  1 Comment
Geoff Hayes
Geoff Hayes on 4 Jul 2018
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.)

Sign in to comment.

Answers (1)

Jan
Jan on 4 Jul 2018
Edited: Jan on 4 Jul 2018
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.

Tags

Community Treasure Hunt

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

Start Hunting!