<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 NormalizedCorrelationImageFilter::SetTemplate accepts a OutputNeighborhoodType& .<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> typedef itk::CovariantVector<float, 3> FloatVectorType;</div><div> typedef itk::Image<FloatVectorType, 2> FloatVectorImageType;</div><div><br></div><div><div> itk::ImageKernelOperator<FloatVectorType> kernelOperator;</div>
<div> kernelOperator.SetImageKernel(extractFilter->GetOutput());</div><div> kernelOperator.CreateToRadius(radius);</div></div><div><br></div><div> typedef itk::NormalizedCorrelationImageFilter<FloatVectorImageType, MaskType,</div>
<div> FloatImageType> CorrelationFilterType;</div><div> CorrelationFilterType::Pointer correlationFilter = CorrelationFilterType::New();</div><div> correlationFilter->SetInput(reader->GetOutput());</div>
<div> correlationFilter->SetTemplate(kernelOperator); // Compiler error: no matching function call to SetTemplate(itk::ImageKernelOperator<itk::CovariantVector<float, 3u> >&)</div><div> correlationFilter->Update();</div>
<div><br></div><div>The compiler thinks OutputNeighborhoodType = itk::Neighborhood<float, 2u, itk::NeighborhoodAllocator<float> >] 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"> </span><span class="Apple-converted-space"> </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"> </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>