<div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">stefano serviddio</b> <span dir="ltr"><<a href="mailto:s.serviddio@gmail.com">s.serviddio@gmail.com</a>></span><br>Date: 2015-09-24 14:46 GMT+02:00<br>Subject: Re: [ITK] [ITK-users] itk vector Image pixel value<br>To: Timothee Evain <<a href="mailto:tevain@telecom-paristech.fr">tevain@telecom-paristech.fr</a>><br><br><br><div dir="ltr">Hi Tim,<div>First of all thank you for you time,</div><div>Secondly I try to execute a deformation registration between PET and TC image.</div><div>I have seen DeformableRegistration2.cxx where Warp Filter execute a particular trasnformation that modifie the space of movingImage.</div><div>In this case what is the role of vector pixel type???</div><div><br></div><div><br></div><div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"><span style="color:rgb(128,96,32)">#include "<a href="http://www.itk.org/Doxygen/html/itkDemonsRegistrationFilter_8h.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itkDemonsRegistrationFilter.h</a>"</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"><span style="color:rgb(128,96,32)">#include "<a href="http://www.itk.org/Doxygen/html/itkHistogramMatchingImageFilter_8h.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itkHistogramMatchingImageFilter.h</a>"</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"><span style="color:rgb(128,96,32)">#include "<a href="http://www.itk.org/Doxygen/html/itkCastImageFilter_8h.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itkCastImageFilter.h</a>"</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"><span style="color:rgb(128,96,32)">#include "<a href="http://www.itk.org/Doxygen/html/itkWarpImageFilter_8h.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itkWarpImageFilter.h</a>"</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"><br><br></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"><span style="color:rgb(96,64,32)">int</span> main( <span style="color:rgb(96,64,32)">int</span> argc, <span style="color:rgb(96,64,32)">char</span> *argv[] )</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">{</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(224,128,0)">if</span>( argc < 4 )</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> {</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> std::cerr << <span style="color:rgb(0,32,128)">"Missing Parameters "</span> << std::endl;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> std::cerr << <span style="color:rgb(0,32,128)">"Usage: "</span> << argv[0];</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> std::cerr << <span style="color:rgb(0,32,128)">" fixedImageFile movingImageFile "</span>;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> std::cerr << <span style="color:rgb(0,32,128)">" outputImageFile "</span> << std::endl;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> std::cerr << <span style="color:rgb(0,32,128)">" [outputDisplacementFieldFile] "</span> << std::endl;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(224,128,0)">return</span> EXIT_FAILURE;</div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> }</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Second, we declare the types of the images.</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginCodeSnippet</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">const</span> <span style="color:rgb(96,64,32)">unsigned</span> <span style="color:rgb(96,64,32)">int</span> Dimension = 2;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <span style="color:rgb(96,64,32)">unsigned</span> <span style="color:rgb(96,64,32)">short</span> PixelType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a href="http://www.itk.org/Doxygen/html/classitk_1_1Image.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::Image< PixelType, Dimension ></a> FixedImageType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a href="http://www.itk.org/Doxygen/html/classitk_1_1Image.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::Image< PixelType, Dimension ></a> MovingImageType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndCodeSnippet</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Set up the file readers</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a name="14fff63a76c27905__a11" style="color:rgb(61,87,140)"></a><a href="http://www.itk.org/Doxygen/html/classitk_1_1ImageFileReader.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::ImageFileReader< FixedImageType ></a> FixedImageReaderType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a href="http://www.itk.org/Doxygen/html/classitk_1_1ImageFileReader.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::ImageFileReader< MovingImageType ></a> MovingImageReaderType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> FixedImageReaderType::Pointer fixedImageReader = FixedImageReaderType::New();</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> MovingImageReaderType::Pointer movingImageReader = MovingImageReaderType::New();</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> fixedImageReader->SetFileName( argv[1] );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> movingImageReader->SetFileName( argv[2] );</div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Image file readers are set up in a similar fashion to previous examples.</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// To support the re-mapping of the moving image intensity, we declare an</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// internal image type with a floating point pixel type and cast the input</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// images to the internal image type.</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginCodeSnippet</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <span style="color:rgb(96,64,32)">float</span> InternalPixelType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a href="http://www.itk.org/Doxygen/html/classitk_1_1Image.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::Image< InternalPixelType, Dimension ></a> InternalImageType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a name="14fff63a76c27905__a12" style="color:rgb(61,87,140)"></a><a href="http://www.itk.org/Doxygen/html/classitk_1_1CastImageFilter.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::CastImageFilter</a>< FixedImageType,</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> InternalImageType > FixedImageCasterType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a href="http://www.itk.org/Doxygen/html/classitk_1_1CastImageFilter.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::CastImageFilter</a>< MovingImageType,</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> InternalImageType > MovingImageCasterType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> FixedImageCasterType::Pointer fixedImageCaster = FixedImageCasterType::New();</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> MovingImageCasterType::Pointer movingImageCaster</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> = MovingImageCasterType::New();</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> fixedImageCaster->SetInput( fixedImageReader->GetOutput() );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> movingImageCaster->SetInput( movingImageReader->GetOutput() );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndCodeSnippet</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// The demons algorithm relies on the assumption that pixels representing the</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// same homologous point on an object have the same intensity on both the</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// fixed and moving images to be registered. In this example, we will</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// preprocess the moving image to match the intensity between the images</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// using the \doxygen{HistogramMatchingImageFilter}.</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::HistogramMatchingImageFilter}</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// The basic idea is to match the histograms of the two images at a</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// user-specified number of quantile values. For robustness, the histograms</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// are matched so that the background pixels are excluded from both</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// histograms. For MR images, a simple procedure is to exclude all gray</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// values that are smaller than the mean gray value of the image.</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginCodeSnippet</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a name="14fff63a76c27905__a13" style="color:rgb(61,87,140)"></a><a href="http://www.itk.org/Doxygen/html/classitk_1_1HistogramMatchingImageFilter.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::HistogramMatchingImageFilter</a><</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> InternalImageType,</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> InternalImageType > MatchingFilterType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> MatchingFilterType::Pointer matcher = MatchingFilterType::New();</div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndCodeSnippet</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// For this example, we set the moving image as the source or input image and</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// the fixed image as the reference image.</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::HistogramMatchingImageFilter!SetInput()}</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::HistogramMatchingImageFilter!SetSourceImage()}</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::HistogramMatchingImageFilter!SetReferenceImage()}</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginCodeSnippet</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> matcher->SetInput( movingImageCaster->GetOutput() );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> matcher->SetReferenceImage( fixedImageCaster->GetOutput() );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndCodeSnippet</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// We then select the number of bins to represent the histograms and the</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// number of points or quantile values where the histogram is to be</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// matched.</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::HistogramMatchingImageFilter!SetNumberOfHistogramLevels()}</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::HistogramMatchingImageFilter!SetNumberOfMatchPoints()}</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginCodeSnippet</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> matcher->SetNumberOfHistogramLevels( 1024 );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> matcher->SetNumberOfMatchPoints( 7 );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndCodeSnippet</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Simple background extraction is done by thresholding at the mean</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// intensity.</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::HistogramMatchingImageFilter!ThresholdAtMeanIntensityOn()}</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginCodeSnippet</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> matcher->ThresholdAtMeanIntensityOn();</div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndCodeSnippet</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// In the \doxygen{DemonsRegistrationFilter}, the deformation field is</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// represented as an image whose pixels are floating point vectors.</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::DemonsRegistrationFilter}</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginCodeSnippet</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a href="http://www.itk.org/Doxygen/html/classitk_1_1Vector.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::Vector< float, Dimension ></a> VectorPixelType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a href="http://www.itk.org/Doxygen/html/classitk_1_1Image.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::Image< VectorPixelType, Dimension ></a> DisplacementFieldType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a href="http://www.itk.org/Doxygen/html/classitk_1_1DemonsRegistrationFilter.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::DemonsRegistrationFilter</a><</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> InternalImageType,</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> InternalImageType,</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> DisplacementFieldType> RegistrationFilterType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> RegistrationFilterType::Pointer filter = RegistrationFilterType::New();</div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndCodeSnippet</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> </div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// The input fixed image is simply the output of the fixed image casting</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// filter. The input moving image is the output of the histogram matching</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// filter.</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::DemonsRegistrationFilter!SetFixedImage()}</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::DemonsRegistrationFilter!SetMovingImage()}</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginCodeSnippet</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> filter->SetFixedImage( fixedImageCaster->GetOutput() );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> filter->SetMovingImage( matcher->GetOutput() );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndCodeSnippet</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// The demons registration filter has two parameters: the number of</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// iterations to be performed and the standard deviation of the Gaussian</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// smoothing kernel to be applied to the deformation field after each</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// iteration.</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::DemonsRegistrationFilter!SetNumberOfIterations()}</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::DemonsRegistrationFilter!SetStandardDeviations()}</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginCodeSnippet</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> filter->SetNumberOfIterations( 50 );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> filter->SetStandardDeviations( 1.0 );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndCodeSnippet</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// The registration algorithm is triggered by updating the filter. The</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// filter output is the computed deformation field.</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginCodeSnippet</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> filter->Update();</div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndCodeSnippet</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// The \doxygen{WarpImageFilter} can be used to warp the moving image with</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// the output deformation field. Like the \doxygen{ResampleImageFilter},</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// the WarpImageFilter requires the specification of the input image to be</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// resampled, an input image interpolator, and the output image spacing and</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// origin.</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::WarpImageFilter}</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::WarpImageFilter!SetInput()}</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::WarpImageFilter!SetInterpolator()}</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::WarpImageFilter!SetOutputSpacing()}</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::WarpImageFilter!SetOutputOrigin()}</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginCodeSnippet</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a name="14fff63a76c27905__a14" style="color:rgb(61,87,140)"></a><a href="http://www.itk.org/Doxygen/html/classitk_1_1WarpImageFilter.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::WarpImageFilter</a><</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> MovingImageType,</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> MovingImageType,</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> DisplacementFieldType > WarperType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a name="14fff63a76c27905__a15" style="color:rgb(61,87,140)"></a><a href="http://www.itk.org/Doxygen/html/classitk_1_1LinearInterpolateImageFunction.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::LinearInterpolateImageFunction</a><</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> MovingImageType,</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(96,64,32)">double</span> > InterpolatorType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> WarperType::Pointer warper = WarperType::New();</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> InterpolatorType::Pointer interpolator = InterpolatorType::New();</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> FixedImageType::Pointer fixedImage = fixedImageReader->GetOutput();</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> warper->SetInput( movingImageReader->GetOutput() );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> warper->SetInterpolator( interpolator );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> warper->SetOutputSpacing( fixedImage->GetSpacing() );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> warper->SetOutputOrigin( fixedImage->GetOrigin() );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> warper->SetOutputDirection( fixedImage->GetDirection() );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndCodeSnippet</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Unlike the ResampleImageFilter, the WarpImageFilter</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// warps or transform the input image with respect to the deformation field</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// represented by an image of vectors. The resulting warped or resampled</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// image is written to file as per previous examples.</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// \index{itk::WarpImageFilter!SetDisplacementField()}</span></div><span class=""><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">//</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndLatex</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : BeginCodeSnippet</span></div></span><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> warper->SetDisplacementField( filter->GetOutput() );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Software Guide : EndCodeSnippet</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(128,0,0)">// Write warped image out to file</span></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <span style="color:rgb(96,64,32)">unsigned</span> <span style="color:rgb(96,64,32)">char</span> OutputPixelType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a href="http://www.itk.org/Doxygen/html/classitk_1_1Image.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::Image< OutputPixelType, Dimension ></a> OutputImageType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a href="http://www.itk.org/Doxygen/html/classitk_1_1CastImageFilter.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::CastImageFilter</a><</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> MovingImageType,</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> OutputImageType > CastFilterType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> <span style="color:rgb(0,128,0)">typedef</span> <a name="14fff63a76c27905__a16" style="color:rgb(61,87,140)"></a><a href="http://www.itk.org/Doxygen/html/classitk_1_1ImageFileWriter.html" style="color:rgb(70,101,162);text-decoration:none" target="_blank">itk::ImageFileWriter< OutputImageType ></a> WriterType;</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> WriterType::Pointer writer = WriterType::New();</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> CastFilterType::Pointer caster = CastFilterType::New();</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> writer->SetFileName( argv[3] );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> caster->SetInput( warper->GetOutput() );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> writer->SetInput( caster->GetOutput() );</div><div style="font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;word-wrap:break-word;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"> writer->Update();</div></div><div>}</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-09-24 14:12 GMT+02:00 Timothee Evain <span dir="ltr"><<a href="mailto:tevain@telecom-paristech.fr" target="_blank">tevain@telecom-paristech.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Stefano<br>
<br>
In this case, each pixel have multiples values, not only one, so to represent this, each pixel have for value a vector with multiples components.<br>
Each component of the vector is an individual value.<br>
<br>
Maybe an example is easier to understand. Think of a RGB image. You have three colors to represent, namely Red/Green/Blue.<br>
You could represent it with 3 differents images, each with the value of Red, Green or Blue channel, or you could do it with only one image, where each pixel contain a vector. In this vector you will set the value of the Red/Green/Blue channel for the pixel. So you will have the "Red" component, the "Green" one, and the "Blue" at last.<br>
<br>
A vector image is just the generalization of this.<br>
<br>
HTH<br>
<br>
Tim<br>
<br>
----- Mail original -----<br>
De: "stefano serviddio" <<a href="mailto:s.serviddio@gmail.com" target="_blank">s.serviddio@gmail.com</a>><br>
À: <a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br>
Envoyé: Jeudi 24 Septembre 2015 13:36:27<br>
Objet: [ITK] [ITK-users] itk vector Image pixel value<br>
<div><div><br>
I have found this itk vector image example, I don't understand the meaning of each component of Vector Pixel type.<br>
For example the code line pixelValue[0] = 1.345; component X refers to a grayscale value or distance from next pixel inside the matrix of Image???<br>
<br>
<br>
#include "itkVector.h"<br>
// Software Guide : EndCodeSnippet<br>
#include "itkImage.h"<br>
int main(int, char *[])<br>
{<br>
// Software Guide : BeginLatex<br>
//<br>
// The Vector class is templated over the type used to represent<br>
// the coordinate in space and over the dimension of the space. In this example,<br>
// we want the vector dimension to match the image dimension, but this is by<br>
// no means a requirement. We could have defined a four-dimensional image<br>
// with three-dimensional vectors as pixels.<br>
//<br>
// \index{itk::Vector!Instantiation}<br>
// \index{itk::Vector!itk::Image}<br>
// \index{itk::Image!Vector pixel}<br>
//<br>
// Software Guide : EndLatex<br>
// Software Guide : BeginCodeSnippet<br>
typedef itk::Vector< float, 3 > PixelType;<br>
typedef itk::Image< PixelType, 3 > ImageType;<br>
// Software Guide : EndCodeSnippet<br>
// Then the image object can be created<br>
ImageType::Pointer image = ImageType::New();<br>
// The image region should be initialized<br>
const ImageType::IndexType start = {{0,0,0}}; //First index at {X,Y,Z}<br>
const ImageType::SizeType size = {{200,200,200}}; //Size of {X,Y,Z}<br>
ImageType::RegionType region;<br>
region.SetSize( size );<br>
region.SetIndex( start );<br>
// Pixel data is allocated<br>
image->SetRegions( region );<br>
image->Allocate();<br>
// The image buffer is initialized to a particular value<br>
ImageType::PixelType initialValue;<br>
// A vector can initialize all its components to the<br>
// same value by using the Fill() method.<br>
initialValue.Fill( 0.0 );<br>
// Now the image buffer can be initialized with this<br>
// vector value.<br>
image->FillBuffer( initialValue );<br>
const ImageType::IndexType pixelIndex = {{27,29,37}}; //Position {X,Y,Z}<br>
// Software Guide : BeginLatex<br>
//<br>
// The Vector class inherits the operator \code{[]} from the<br>
// \doxygen{FixedArray} class. This makes it possible to access the<br>
// Vector's components using index notation.<br>
//<br>
// Software Guide : EndLatex<br>
// Software Guide : BeginCodeSnippet<br>
ImageType::PixelType pixelValue;<br>
pixelValue[0] = 1.345; // x component<br>
pixelValue[1] = 6.841; // y component<br>
pixelValue[2] = 3.295; // x component<br>
// Software Guide : EndCodeSnippet<br>
// Software Guide : BeginLatex<br>
//<br>
// We can now store this vector in one of the image pixels by defining an<br>
// index and invoking the \code{SetPixel()} method.<br>
//<br>
// Software Guide : EndLatex<br>
// Software Guide : BeginCodeSnippet<br>
image->SetPixel( pixelIndex, pixelValue );<br>
// Software Guide : EndCodeSnippet<br>
// The GetPixel method can also be used to read Vectors<br>
// pixels from the image<br>
ImageType::PixelType value = image->GetPixel( pixelIndex );<br>
std::cout << value << std::endl;<br>
// Lets repeat that both \code{SetPixel()} and \code{GetPixel()} are<br>
// inefficient and should only be used for debugging purposes or for<br>
// implementing interactions with a graphical user interface such as<br>
// querying pixel value by clicking with the mouse.<br>
return EXIT_SUCCESS;<br>
}<br>
<br>
</div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" 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://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br>
</blockquote></div><br></div>
</div></div></div><br></div>