<div dir="ltr">Hi all, I am having trouble using GPUdiscretegaussian. It works for me on CPU but GPU version gives output 0. I tried running the test code but no help. I do run GPUMean filter. My card is AMDw7000 and using opencl 1.2, itk 4.6<div>
<br></div><div>Here is the code and the output. The images are vtk files of 320x320x231, ushort.</div><div><br></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">/*=========================================================================</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">Copyright</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Insight</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Software</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Consortium</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">Licensed</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">under</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Apache</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">License,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Version</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">2.0</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">(the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"License");</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">you</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">may</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">not</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">use</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">this</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">file</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">except</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">in</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">compliance</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">with</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">License.</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">You</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">may</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">obtain</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">a</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">copy</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">of</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">License</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">at</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span><span style="color:rgb(192,192,192)">         </span><span style="color:rgb(0,128,0)"><a href="http://www.apache.org/licenses/LICENSE-2.0.txt">http://www.apache.org/licenses/LICENSE-2.0.txt</a></span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">Unless</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">required</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">by</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">applicable</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">law</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">or</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">agreed</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">to</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">in</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">writing,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">software</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">distributed</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">under</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">License</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">is</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">distributed</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">on</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">an</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"AS</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">IS"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">BASIS,</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">WITHOUT</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">WARRANTIES</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">OR</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">CONDITIONS</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">OF</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">ANY</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">KIND,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">either</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">express</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">or</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">implied.</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">See</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">License</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">for</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">specific</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">language</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">governing</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">permissions</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">and</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">limitations</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">under</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">License.</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">*=========================================================================*/</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"itkImageFileReader.h"</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"itkImageFileWriter.h"</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"itkGPUImage.h"</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"itkGPUKernelManager.h"</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"itkGPUContextManager.h"</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"itkGPUImageToImageFilter.h"</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"itkGPUNeighborhoodOperatorImageFilter.h"</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"itkTimeProbe.h"</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"itkGaussianOperator.h"</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"itkDiscreteGaussianImageFilter.h"</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"itkGPUDiscreteGaussianImageFilter.h"</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"itkMeanImageFilter.h"</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"itkGPUMeanImageFilter.h"</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">typedef</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">float</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">InputPixelType;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">typedef</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">float</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">OutputPixelType;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">typedef</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">short</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">InputPixelType</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">typedef</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">short</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">OutputPixelType</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">typedef</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">itk</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">GPUImage</span><span style="color:rgb(0,0,0)"><</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">InputPixelType</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,0,128)">3</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">></span><span style="color:rgb(192,192,192)">   </span><span style="color:rgb(128,0,128)">InputImageType</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">typedef</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">itk</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">GPUImage</span><span style="color:rgb(0,0,0)"><</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">OutputPixelType</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">3</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">></span><span style="color:rgb(192,192,192)">   </span><span style="color:rgb(128,0,128)">OutputImageType</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">typedef</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">itk</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">ImageFileReader</span><span style="color:rgb(0,0,0)"><</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">InputImageType</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,0,0)">></span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">ReaderType</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">typedef</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">itk</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">ImageFileWriter</span><span style="color:rgb(0,0,0)"><</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">OutputImageType</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">></span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,0,128)">WriterType</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">int</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">main</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(128,128,0)">int</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">argc</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">char</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">*</span><span style="color:rgb(0,0,0)">argv</span><span style="color:rgb(0,0,0)">[])</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)">{</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">if</span><span style="color:rgb(0,0,0)">(!</span><span style="color:rgb(128,0,128)">itk</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(0,0,0)">IsGPUAvailable</span><span style="color:rgb(0,0,0)">())</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">{</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>cerr<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"OpenCL-enabled</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">GPU</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">is</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">not</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">present."</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>endl<span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">return</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">EXIT_FAILURE</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">}</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">if</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">argc</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,0,128)">3</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">)</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">{</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>cerr<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"Error:</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">missing</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">arguments"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>endl<span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>cerr<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"inputfile</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">outputfile</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">[num_dimensions]"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>endl<span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">return</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">EXIT_FAILURE</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">}</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">string</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">inFile</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">argv</span><span style="color:rgb(0,0,0)">[</span><span style="color:rgb(0,0,128)">1</span><span style="color:rgb(0,0,0)">]</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">string</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">outFile</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">argv</span><span style="color:rgb(0,0,0)">[</span><span style="color:rgb(0,0,128)">2</span><span style="color:rgb(0,0,0)">]</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">unsigned</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">int</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">dim</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">3</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,0,128)">ReaderType</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">Pointer</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">reader</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,0,128)">WriterType</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">Pointer</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">writer</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">reader</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">ReaderType</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(0,0,0)">New</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">writer</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">WriterType</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(0,0,0)">New</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">reader</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">SetFileName</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">inFile</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">writer</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">SetFileName</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">outFile</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">float</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">variance</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">4.0</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">test</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">1~8</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">threads</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">for</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">CPU</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">int</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">nThreads</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">8</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">typedef</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">itk</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">DiscreteGaussianImageFilter</span><span style="color:rgb(0,0,0)"><</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">InputImageType</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">OutputImageType</span><span style="color:rgb(0,0,0)">></span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">CPUFilterType</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,0,128)">CPUFilterType</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">Pointer</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">CPUFilter</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">CPUFilterType</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,0)">New</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,0,128)">itk</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">TimeProbe</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">cputimer</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">cputimer</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(0,0,0)">Start</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">CPUFilter</span><span style="color:rgb(0,0,0)">-></span>SetNumberOfThreads<span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">nThreads</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">CPUFilter</span><span style="color:rgb(0,0,0)">-></span>SetInput<span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">reader</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">GetOutput</span><span style="color:rgb(0,0,0)">()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">CPUFilter</span><span style="color:rgb(0,0,0)">-></span>SetMaximumKernelWidth<span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,128)">10</span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">CPUFilter</span><span style="color:rgb(0,0,0)">-></span>SetUseImageSpacingOff<span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">CPUFilter</span><span style="color:rgb(0,0,0)">-></span>SetVariance<span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">variance</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">CPUFilter</span><span style="color:rgb(0,0,0)">-></span>Update<span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">cputimer</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(0,0,0)">Stop</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">typedef</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">itk::MeanImageFilter<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">InputImageType,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">OutputImageType></span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">CPUFilterType;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">CPUFilterType::Pointer</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">CPUFilter</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">CPUFilterType::New();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">itk::TimeProbe</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">cputimer;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">cputimer.Start();</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">CPUFilter->SetNumberOfThreads(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">nThreads</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">CPUFilter->SetInput(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">reader->GetOutput()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">////</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,128)">CPUFilter->SetMaximumKernelWidth(10);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">////</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,128)">CPUFilter->SetUseImageSpacingOff();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">CPUFilter->SetRadius(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">variance</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">CPUFilter->Update();</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">cputimer.Stop();</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>cout<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"CPU</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Gaussian</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Filter</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">took</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">cputimer</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(0,0,0)">GetMean</span><span style="color:rgb(0,0,0)">()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">seconds</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">with</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">              </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">CPUFilter</span><span style="color:rgb(0,0,0)">-></span>GetNumberOfThreads<span style="color:rgb(0,0,0)">()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">threads.\n"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>endl<span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">-------</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">typedef</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">itk</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">GPUDiscreteGaussianImageFilter</span><span style="color:rgb(0,0,0)"><</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">InputImageType</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">OutputImageType</span><span style="color:rgb(0,0,0)">></span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">GPUFilterType</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,0,128)">GPUFilterType</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">Pointer</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">GPUFilter</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">GPUFilterType</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,0)">New</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,0,128)">itk</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">TimeProbe</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">gputimer</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">gputimer</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(0,0,0)">Start</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">GPUFilter</span><span style="color:rgb(0,0,0)">-></span>SetInput<span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">reader</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">GetOutput</span><span style="color:rgb(0,0,0)">()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">GPUFilter</span><span style="color:rgb(0,0,0)">-></span>SetVariance<span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">variance</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">GPUFilter</span><span style="color:rgb(0,0,0)">-></span>SetMaximumKernelWidth<span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,128)">10</span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">GPUFilter</span><span style="color:rgb(0,0,0)">-></span>SetUseImageSpacingOff<span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">GPUFilter->DebugOn();</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">GPUFilter->GPUEnabledOff();</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">GPUFilter</span><span style="color:rgb(0,0,0)">-></span>Print<span style="color:rgb(0,0,0)">(</span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>cout<span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">GPUFilter</span><span style="color:rgb(0,0,0)">-></span>Update<span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">GPUFilter</span><span style="color:rgb(0,0,0)">-></span>GetOutput<span style="color:rgb(0,0,0)">()-></span>UpdateBuffers<span style="color:rgb(0,0,0)">();</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">synchronization</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">point</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">(GPU->CPU</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">memcpy)</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">gputimer</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(0,0,0)">Stop</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>cout<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"GPU</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Gaussian</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Filter</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">took</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">gputimer</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(0,0,0)">GetMean</span><span style="color:rgb(0,0,0)">()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">seconds.\n"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>endl<span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">typedef</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">itk::GPUMeanImageFilter<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">InputImageType,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">OutputImageType></span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">GPUFilterType;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">GPUFilterType::Pointer</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">GPUFilter</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">GPUFilterType::New();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">itk::TimeProbe</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">gputimer;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">gputimer.Start();</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">GPUFilter->SetInput(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">reader->GetOutput()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">////</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,128)">GPUFilter->SetVariance(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">variance</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">////</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,128)">GPUFilter->SetMaximumKernelWidth(10);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">////</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,128)">GPUFilter->SetUseImageSpacingOff();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">////</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,128)">GPUFilter->DebugOn();</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,128)">////</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,128)">GPUFilter->Print(std::cout);</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">GPUFilter->SetRadius(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">variance</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">GPUFilter->Update();</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">GPUFilter->GetOutput()->UpdateBuffers();</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">synchronization</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">point</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">(GPU->CPU</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">memcpy)</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">gputimer.Stop();</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">std::cout</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"GPU</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Gaussian</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Filter</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">took</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">gputimer.GetMean()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">seconds.\n"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">std::endl;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">---------------</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">RMS</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Error</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">check</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">---------------</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">double</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">diff</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">0</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">unsigned</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">int</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">nPix</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">0</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,0,128)">itk</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">ImageRegionIterator</span><span style="color:rgb(0,0,0)"><</span><span style="color:rgb(128,0,128)">OutputImageType</span><span style="color:rgb(0,0,0)">></span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">cit</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">CPUFilter</span><span style="color:rgb(0,0,0)">-></span>GetOutput<span style="color:rgb(0,0,0)">(),</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">CPUFilter</span><span style="color:rgb(0,0,0)">-></span>GetOutput<span style="color:rgb(0,0,0)">()-></span>GetLargestPossibleRegion<span style="color:rgb(0,0,0)">());</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,0,128)">itk</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">ImageRegionIterator</span><span style="color:rgb(0,0,0)"><</span><span style="color:rgb(128,0,128)">OutputImageType</span><span style="color:rgb(0,0,0)">></span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">git</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">GPUFilter</span><span style="color:rgb(0,0,0)">-></span>GetOutput<span style="color:rgb(0,0,0)">(),</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">GPUFilter</span><span style="color:rgb(0,0,0)">-></span>GetOutput<span style="color:rgb(0,0,0)">()-></span>GetLargestPossibleRegion<span style="color:rgb(0,0,0)">());</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">for</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">cit</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(0,0,0)">GoToBegin</span><span style="color:rgb(0,0,0)">(),</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">git</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(0,0,0)">GoToBegin</span><span style="color:rgb(0,0,0)">();</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">!</span><span style="color:rgb(0,0,0)">cit</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(0,0,0)">IsAtEnd</span><span style="color:rgb(0,0,0)">();</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">++</span><span style="color:rgb(0,0,0)">cit</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">++</span><span style="color:rgb(0,0,0)">git</span><span style="color:rgb(0,0,0)">)</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">{</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">double</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">err</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(128,128,0)">double</span><span style="color:rgb(0,0,0)">)(</span><span style="color:rgb(0,0,0)">cit</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(0,0,0)">Get</span><span style="color:rgb(0,0,0)">())</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">-</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(128,128,0)">double</span><span style="color:rgb(0,0,0)">)(</span><span style="color:rgb(0,0,0)">git</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(0,0,0)">Get</span><span style="color:rgb(0,0,0)">());</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">         </span><span style="color:rgb(0,128,0)">if(err</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">></span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">0.1</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">||</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">(double)cit.Get()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)"><</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">0.1)</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">std::cout</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"CPU</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">:</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">(double)(cit.Get())</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">",</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">GPU</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">:</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">(double)(git.Get())</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">std::endl;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,0,0)">diff</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">+=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">err</span><span style="color:rgb(0,0,0)">*</span><span style="color:rgb(0,0,0)">err</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,0,0)">nPix</span><span style="color:rgb(0,0,0)">++;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">}</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">writer</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">SetInput</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">GPUFilter</span><span style="color:rgb(0,0,0)">-></span>GetOutput<span style="color:rgb(0,0,0)">()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,128,0)">writer->SetInput(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">CPUFilter->GetOutput()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">writer</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">Update</span><span style="color:rgb(0,0,0)">();</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">if</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">nPix</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">></span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">0</span><span style="color:rgb(0,0,0)">)</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">{</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">double</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">RMSError</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">sqrt</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">diff</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">/</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(128,128,0)">double</span><span style="color:rgb(0,0,0)">)</span><span style="color:rgb(0,0,0)">nPix</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>cout<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"RMS</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Error</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">:</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">RMSError</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>endl<span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">CPU</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">filter</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">operator</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">has</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">type</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">double</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">but</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">double</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">precision</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">is</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">not</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">well-supported</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">on</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">most</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">GPUs</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">and</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">by</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">most</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">drivers</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">at</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">this</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">time.</span><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">Therefore,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">GPU</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">filter</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">operator</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">has</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">type</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">float</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">relax</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">RMS</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">threshold</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">here</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">to</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">allow</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">for</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">errors</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">due</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">to</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">differences</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">in</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">precision</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">NOTE:</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">   </span><span style="color:rgb(0,128,0)">a</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">threshold</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">of</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">1.2e-5</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">worked</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">on</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">linux</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">and</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Mac,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">but</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">not</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Windows</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)">   </span><span style="color:rgb(0,128,0)">why?</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">double</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">RMSThreshold</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">1.7e-5</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">if</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">vnl_math_isnan</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">RMSError</span><span style="color:rgb(0,0,0)">))</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,0,0)">{</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">            </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>cout<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"RMS</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Error</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">is</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">NaN!</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">nPix:</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">nPix</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>endl<span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">            </span><span style="color:rgb(128,128,0)">return</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">EXIT_FAILURE</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,0,0)">}</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">if</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">RMSError</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">></span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">RMSThreshold</span><span style="color:rgb(0,0,0)">)</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,0,0)">{</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">            </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>cout<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"RMS</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Error</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">exceeds</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">threshold</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">("</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">RMSThreshold</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">")"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>endl<span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">            </span><span style="color:rgb(128,128,0)">return</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">EXIT_FAILURE</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(0,0,0)">}</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">}</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">else</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">{</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>cout<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"No</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">pixels</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">in</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">output!"</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)"><<</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">std</span><span style="color:rgb(0,0,0)">::</span>endl<span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">return</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">EXIT_FAILURE</span><span style="color:rgb(0,0,0)">;</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">}</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)">}</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre></div><div><br></div><div>OUTPUT</div><div><br></div><div><p style="margin:0px"><br></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;font-weight:600;color:rgb(0,0,170)">Starting C:\DocsMaracuya\Build\Ejemplos\Gpu\GPUTest.exe...</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">Platform  : AMD Accelerated Parallel Processing</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">Platform  : AMD Accelerated Parallel Processing</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">Pitcairn</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">Maximum Work Item Sizes : { 256, 256, 256 }</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">Maximum Work Group Size : 256</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">Alignment in bits of the base address : 2048</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">Smallest alignment in bytes for any data type : 128</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_atomic_counters_32 cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d10_sharing cl_amd_bus_addressable_memory cl_amd_c1x_atomics </span></p>

<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">CPU Gaussian Filter took 1.70355 seconds with 8 threads.</span></p>
<p style="margin:0px;font-family:Courier;font-size:10pt;color:rgb(0,0,0)"><br></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">Defines: #define DIM_3</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">#define INTYPE short</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">#define OUTTYPE short</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">#define OPTYPE short</span></p>
<p style="margin:0px;font-family:Courier;font-size:10pt;color:rgb(0,0,0)"><br></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">Defines: #define DIM_3</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">#define INTYPE short</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">#define OUTTYPE short</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">#define OPTYPE short</span></p>
<p style="margin:0px;font-family:Courier;font-size:10pt;color:rgb(0,0,0)"><br></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">Defines: #define DIM_3</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">#define INTYPE short</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">#define OUTTYPE short</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">#define OPTYPE short</span></p>
<p style="margin:0px;font-family:Courier;font-size:10pt;color:rgb(0,0,0)"><br></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">GPUDiscreteGaussianImageFilter (0000000002205DF0)</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  RTTI typeinfo:   class itk::GPUDiscreteGaussianImageFilter<class itk::GPUImage<short,3>,class itk::GPUImage<short,3> ></span></p>

<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  Reference Count: 1</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  Modified Time: 560</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  Debug: Off</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  Object Name: </span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  Observers: </span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">    none</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  Inputs: </span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">    Primary: (000000000216E560) *</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  Indexed Inputs: </span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">    0: Primary (000000000216E560)</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  Required Input Names: Primary</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  NumberOfRequiredInputs: 1</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  Outputs: </span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">    Primary: (000000000218A070)</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  Indexed Outputs: </span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">    0: Primary (000000000218A070)</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  NumberOfRequiredOutputs: 1</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  Number Of Threads: 8</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  ReleaseDataFlag: Off</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  ReleaseDataBeforeUpdateFlag: Off</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  AbortGenerateData: Off</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  Progress: 0</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  Multithreader: </span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">    RTTI typeinfo:   class itk::MultiThreader</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">    Reference Count: 1</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">    Modified Time: 499</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">    Debug: Off</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">    Object Name: </span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">    Observers: </span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">      none</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">    Thread Count: 8</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">    Global Maximum Number Of Threads: 128</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">    Global Default Number Of Threads: 8</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  CoordinateTolerance: 1e-006</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  DirectionTolerance: 1e-006</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  Variance: [4, 4, 4]</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  MaximumError: [0.01, 0.01, 0.01]</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  MaximumKernelWidth: 10</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  FilterDimensionality: 3</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  UseImageSpacing: 0</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  InternalNumberOfStreamDivisions: 9</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">  GPU: Enabled</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">GPU Gaussian Filter took 0.111351 seconds.</span></p>
<p style="margin:0px;font-family:Courier;font-size:10pt;color:rgb(0,0,0)"><br></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">RMS Error : 26.4279</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;color:rgb(0,0,0)">RMS Error exceeds threshold (1.7e-005)</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:10pt;font-weight:600;color:rgb(0,0,170)">C:\DocsMaracuya\Build\Ejemplos\Gpu\GPUTest.exe exited with code 1</span></p></div><div><br></div><div><br>-- <br>José Ignacio Prieto<br>
celular(nuevo): 94348182
</div></div>