Re: Generating a random matrix through a natural image



On Aug 19, 10:29 am, aruzinsky <aruzin...@xxxxxxxxxxxxxxxxxxxx> wrote:
On Aug 19, 3:05 am, Dev <gun...@xxxxxxxxx> wrote:





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

Sort a vector representation of the image with respect to another
vector of floating point random numbers with a practically continuous
distribution.

Here, I did it for you:

http://www.general-cathexis.com/images/lenarandom.png- Hide quoted text -

- Show quoted text -

BTW, I used the standard Lena image which is 512x512.
.


Quantcast