<div>Hi XiongXiang, </div><div><br></div>Did you set the sigmas ?: <div><br></div><div><pre class="de1" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-top-color:white;border-right-color:white;border-bottom-color:white;border-left-color:white;background-color:rgb(255,255,255);line-height:1.2em;font-size:10px;margin-top:0px;margin-bottom:0px;background-image:none;vertical-align:top;text-align:left">
bilateralFilter<span class="sy2" style="color:rgb(0,0,64)">-</span><span class="sy1" style="color:rgb(0,0,128)">></span>SetDomainSigma<span class="br0" style="color:rgb(0,128,0)">(</span>domainSigma<span class="br0" style="color:rgb(0,128,0)">)</span><span class="sy4" style="color:rgb(0,128,128)">;</span>
bilateralFilter<span class="sy2" style="color:rgb(0,0,64)">-</span><span class="sy1" style="color:rgb(0,0,128)">></span>SetRangeSigma<span class="br0" style="color:rgb(0,128,0)">(</span>rangeSigma<span class="br0" style="color:rgb(0,128,0)">)</span><span class="sy4" style="color:rgb(0,128,128)">;</span></pre>
<div><br></div><div>Here is an example of using BilateralImageFilter:</div><div> <a href="http://www.itk.org/Doxygen/html/classitk_1_1BilateralImageFilter.html">http://www.itk.org/Doxygen/html/classitk_1_1BilateralImageFilter.html</a></div>
<div><br></div><div><br></div><div>It's better to post your full section of code and the corresponding testing image for others to give a full diagnosis.</div><div><br></div><div><br></div><div>-Xiaoxiao</div><div><br>
</div><br><div class="gmail_quote">On Mon, Oct 8, 2012 at 8:46 AM, XiongXiang Zhang <span dir="ltr"><<a href="mailto:zhangxx110@126.com" target="_blank">zhangxx110@126.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="line-height:1.7;font-size:14px;font-family:arial"><div style="line-height:1.7;font-size:14px;font-family:arial">
<div>Hi,</div>
<div>We filter an image (noised.tif 606*601) with BilateralImageFilter like this:</div>
<div> </div>
<div>//instance reader</div>
<div> ReaderType::Pointer reader = ReaderType::New();<br> reader->SetFileName( argv[1] );</div>
<div> </div>
<div>//instance filter</div>
<div> typedef itk::BilateralImageFilter<InputImageType, OutputImageType > FilterType;<br> FilterType::Pointer filter = FilterType::New();</div>
<div>filter->SetInput( reader->GetOutput() );</div>
<div> </div>
<div> ...........</div>
<div>//instance writer</div>
<div> typedef itk::ImageFileWriter< WriteImageType > WriterType;<br> WriterType::Pointer writer = WriterType::New();<br> writer->SetFileName( argv[2] );</div>
<div><br> writer->SetInput( filter->GetOutput() );</div>
<div> </div>
<div>//update<br> writer->Update();</div>
<div> </div>
<div>Run the program, <strong>CPU </strong>utilization last for 100% . It takes several quarters to filter the TIF image. IS there some </div>
<div>efficient method to filter the TIF iamge?</div>
<div>Thanks.</div><span class="HOEnZb"><font color="#888888">
<div>XiongXiang Zhang</div></font></span></div></div><br><br><span title="neteasefooter"><span></span></span><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><div><br></div>---------------------------------------------<br><b>Xiaoxiao Liu</b>, Ph.D.<div><div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">R & D Engineer</span></font></div>
<div><div><a href="http://www.kitware.com/" target="_blank">Kitware Inc</a>.</div></div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">Clifton Park, NY</span><div><div>Phone: (518) 881-4924 or <span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px">(518) 371-3971 x124</span></div>
<div><font face="Verdana, Arial, Helvetica, sans-serif"><span style="line-height:31px;font-size:x-small"><br></span></font></div></div></div></div></div><br>
</div>