Re: Generating a random matrix through a natural image
- From: Edward Rosten <Edward.Rosten@xxxxxxxxx>
- Date: Tue, 19 Aug 2008 20:32:52 -0700 (PDT)
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);
try
im1 = zeros(size(image_file));
im1(:) = randperm(image_file(:));
-Ed
--
(You can't go wrong with psycho-rats.)(http://mi.eng.cam.ac.uk/~er258)
/d{def}def/f{/Times s selectfont}d/s{11}d/r{roll}d f 2/m{moveto}d -1
r 230 350 m 0 1 179{ 1 index show 88 rotate 4 mul 0 rmoveto}for/s 12
d f pop 235 420 translate 0 0 moveto 1 2 scale show showpage
.
- References:
- Prev by Date: Change detection
- Next by Date: Re: Generating a random matrix through a natural image
- Previous by thread: Re: Generating a random matrix through a natural image
- Next by thread: Re: Generating a random matrix through a natural image
- Index(es):
Loading