I have a program where a microscope image is shuffled using randperm, but I have images at two different wavelengths at the same time and want to shuffle both in the same way. If I use randperm on a, say, 300×400 image and then rerun the program on another 300×400 image, does randperm do the same operation and shuffle both in the same way, or does it change? If it does change, how might I be sure both were shuffled the same?
MATLAB: If you run a randperm on an array, then a second time on a second array of the same dimensions, will both be shuffled in the same way
image analysisimage processingMATLABrandom permutationrandpermshuffle
Best Answer