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 visualizzazione (ultimi 30 giorni)
shuf_data=I1;
[M,indi,indj] = randblock(shuf_data,32);
figure;
J = im2uint8(M);
imshow(J,[])
  1 Commento
Geoff Hayes
Geoff Hayes il 4 Lug 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.)

Accedi per commentare.

Risposte (1)

Jan
Jan il 4 Lug 2018
Modificato: Jan il 4 Lug 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.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by