Generating a random matrix through a natural image



Hi All,

I want to create a random valued matrix from a natural image matrix.
For example, if we take the lena image 256x256, the pixel values in
the matrix 256x256 should be arranged in such a way that the values
are not related to each other. Basically, I should have the same
histogram from the two matrices, but I want to remove dependencies
between pixels in a natural image. I used the algintrlv method in
matlab,

image_file = imread('E:\TestData\lena.jpg');
im1 = algintrlv(image_file,128,'takeshita-costello',125,126);

but this doesn't take away all the correlations. Any help is greatly
appreciated.

Thanks,

Dev
.


Loading