<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">David,<div><br></div><div>This certainly sounds like a bug.</div><div><br></div><div>Do you have a patch?</div><div><br></div><div>If the patch is not invasive and gets approved today, it may... just may be able to make it into the RC4.</div><div><br></div><div>Brad</div><div><br><div><div>On Jun 26, 2012, at 8:17 AM, David Doria wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">The function&nbsp;NormalizedCorrelationImageFilter::SetTemplate accepts a OutputNeighborhoodType&amp; .<div><br></div><div><a href="http://www.itk.org/Doxygen/html/classitk_1_1NormalizedCorrelationImageFilter.html#a162b8d1f6412e4466fb39ffb85a4fa74">http://www.itk.org/Doxygen/html/classitk_1_1NormalizedCorrelationImageFilter.html#a162b8d1f6412e4466fb39ffb85a4fa74</a></div>
<div><br></div><div>That type doesn't make sense, as this is an input argument. Shouldn't it be an InputNeighborhoodType (though that type doesn't seem to be defined).<br><br>I ran into this problem when doing:</div>
<div><br></div><div><div>&nbsp; typedef itk::CovariantVector&lt;float, 3&gt; FloatVectorType;</div><div>&nbsp; typedef itk::Image&lt;FloatVectorType, 2&gt; FloatVectorImageType;</div><div><br></div><div><div>&nbsp; itk::ImageKernelOperator&lt;FloatVectorType&gt; kernelOperator;</div>
<div>&nbsp; kernelOperator.SetImageKernel(extractFilter-&gt;GetOutput());</div><div>&nbsp; kernelOperator.CreateToRadius(radius);</div></div><div><br></div><div>&nbsp; typedef itk::NormalizedCorrelationImageFilter&lt;FloatVectorImageType, MaskType,</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FloatImageType&gt; CorrelationFilterType;</div><div>&nbsp; CorrelationFilterType::Pointer correlationFilter = CorrelationFilterType::New();</div><div>&nbsp; correlationFilter-&gt;SetInput(reader-&gt;GetOutput());</div>
<div>&nbsp; correlationFilter-&gt;SetTemplate(kernelOperator); // Compiler error: no matching function call to&nbsp;SetTemplate(itk::ImageKernelOperator&lt;itk::CovariantVector&lt;float, 3u&gt; &gt;&amp;)</div><div>&nbsp; correlationFilter-&gt;Update();</div>
<div><br></div><div>The compiler thinks&nbsp;OutputNeighborhoodType = itk::Neighborhood&lt;float, 2u, itk::NeighborhoodAllocator&lt;float&gt; &gt;] because 'float' is the output pixel type.</div><div><br></div><div>Can someone confirm that this seems like a bug?</div>
<div><br></div>David</div>
_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-developers<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">========================================================</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Bradley Lowekamp<span class="Apple-converted-space">&nbsp;</span><span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medical Science and Computing for</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office of High Performance Computing and Communications</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">National Library of Medicine<span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p><br class="Apple-interchange-newline"></span></div></span></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>