[ITK Community] [Insight-users] Generate gaussian noise image

Brian Helba brian.helba at kitware.com
Thu Mar 6 20:54:49 EST 2014


On Thu, Mar 6, 2014 at 5:05 PM, Bradley Lowekamp <blowekamp at mail.nih.gov>wrote:

> I think it is desirable for the same output to result of 1 thread is used
> or is 80 is used. To do this you need to re-initalize the generator at
> every scanline, plus a single settable seed for the class.
>
> Brad
>
>
Also a strong +1 to this.

Just to restate what I believe Brad is saying: Ensure that the smallest
unit of work is the scanline (or some equivalent), reinitialize the
thread-local PRNG at the start of each scanline (or the equivalent), with
the seed value as a function of only the scanline number and some constant
with a fixed default value. If a user wants different or non-deterministic
output, then they may initialize the constant to their own value before
generating the data.

-- 
Brian Helba
Medical Imaging
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140306/438c7402/attachment-0002.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users


More information about the Community mailing list