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

Laurent Chauvin lchauvin at bwh.harvard.edu
Thu Mar 6 15:56:18 EST 2014


I tried to use the itkAdditiveGaussianNoiseFilter, but on the output image
I obtain, the noise seems really patterned.

I compiled the code from the article, and run exactly the same example with
same parameters and I don't have the same results as on the article.
As I mentionned, the noise I obtain seems really patterned.

I enclosed the picture I obtain after running the 'gauss' example with the
same parameters as the article.

Is it possible that the 'NormalVariateGenerator' used in the
AdditiveGaussianNoiseFilter changed since the article has been written ?
I noticed that the gaussian filter does not call Initialize of the
NormalVariateGenerator, but I tried to add it, and it doesn't make any
difference.

Thank you.
-Laurent


On Thu, Mar 6, 2014 at 1:19 PM, Laurent Chauvin <lchauvin at bwh.harvard.edu>wrote:

> I didn't look in the article for now.
>
> I was first trying to compile the code. There is a minor modification to
> do to be compatible with ITKv4, but otherwise it's pretty straight forward.
> So far I only tested itkAdditiveGaussianNoiseFilter.
>
> Thank you.
> -Laurent
>
>
> On Thu, Mar 6, 2014 at 1:11 PM, Bradley Lowekamp <blowekamp at mail.nih.gov>wrote:
>
>> It would be great if you could to a brief review of the IJ article to
>> facilitate integrating it into ITK.
>>
>> Brad
>>
>> On Mar 6, 2014, at 12:17 PM, Laurent Chauvin <lchauvin at bwh.harvard.edu>
>> wrote:
>>
>> Thank you Bradley.
>>
>> Indeed I saw this article, but as it is from 2010, I thought maybe now it
>> would have been integrated into ITK.
>> I will look into that.
>>
>> Thank you.
>> -Laurent
>>
>>
>> On Thu, Mar 6, 2014 at 11:59 AM, Bradley Lowekamp <blowekamp at mail.nih.gov
>> > wrote:
>>
>>> Have a look at this insight journal article:
>>>
>>> http://www.insight-journal.org/browse/publication/721
>>>
>>> I would also find this quite useful, and have been thinking about adding
>>> it to ITK.
>>> Brad
>>> On Mar 6, 2014, at 11:55 AM, Laurent Chauvin <lchauvin at bwh.harvard.edu>
>>> wrote:
>>>
>>> Hello,
>>>
>>> I'm trying to develop a filter, but in order to test it, I need to add
>>> some gaussian noise to my image.
>>> I looked for it but I couldn't find a ITK filter to generate noise.
>>>
>>> Is there a way to do this ?
>>>
>>> Thank you very much.
>>> -Laurent
>>>
>>> --
>>> Laurent Chauvin, MS
>>> Surgical Navigation and Robotics Laboratory, Radiology Department
>>> Brigham And Women's Hospital, Harvard Medical School
>>> http://wiki.ncigt.org/index.php/User:Lchauvin
>>>  _____________________________________
>>> 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
>>>
>>>
>>>
>>> The information in this e-mail is intended only for the person to whom
>>> it is
>>> addressed. If you believe this e-mail was sent to you in error and the
>>> e-mail
>>> contains patient information, please contact the Partners Compliance
>>> HelpLine at
>>> http://www.partners.org/complianceline . If the e-mail was sent to you
>>> in error
>>> but does not contain patient information, please contact the sender and
>>> properly
>>> dispose of the e-mail.
>>>
>>
>>
>>
>> --
>> Laurent Chauvin, MS
>> Surgical Navigation and Robotics Laboratory, Radiology Department
>> Brigham And Women's Hospital, Harvard Medical School
>> http://wiki.ncigt.org/index.php/User:Lchauvin
>>
>>
>>
>
>
> --
> Laurent Chauvin, MS
> Surgical Navigation and Robotics Laboratory, Radiology Department
> Brigham And Women's Hospital, Harvard Medical School
> http://wiki.ncigt.org/index.php/User:Lchauvin
>



-- 
Laurent Chauvin, MS
Surgical Navigation and Robotics Laboratory, Radiology Department
Brigham And Women's Hospital, Harvard Medical School
http://wiki.ncigt.org/index.php/User:Lchauvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140306/8308b3f8/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gauss.png
Type: image/png
Size: 48886 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20140306/8308b3f8/attachment-0002.png>
-------------- 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