Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^6: Randomly biased, random numbers. (A working solution)

by BrowserUk (Pope)
on Dec 10, 2013 at 14:32 UTC ( #1066437=note: print w/replies, xml ) Need Help??


in reply to Re^5: Randomly biased, random numbers. (A working solution)
in thread Randomly biased, random numbers.

That's nice. I'll have to try it on a a random selection of images, but it is definitely interesting.

(I'm a bit confused why you are writing back the current pixel with the same color you just read, and then setting the color of the adjacent pixel one row down to the newly calculated color? Which means you'll be re-reading your new values when processing the next row.

And why x => $w + $i</x> rather than <c>y => $j + 1?)


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^7: Randomly biased, random numbers. (A working solution)
by salva (Abbot) on Dec 10, 2013 at 14:37 UTC
    The output file contains three images side by side:
    • the original image at the left
    • the weights image in the middle
    • and the image with the random points at the right

      Ah! Makes sense now :) Thanks.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1066437]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2018-07-21 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (444 votes). Check out past polls.

    Notices?