<div class="gmail_quote">Hi,<div>I am trying to use itk::NormalizedCorrelationImageFilter , with template as another image.</div><div><br></div><div>To set up another image as as templete, I use itk::ImageKernelOperator</div>
<div>
<br></div><div><div> itk::ImageKernelOperator<float, Dimension> kernelOperator;</div><div> kernelOperator.SetImageKernel(readerTemplate->GetOutput());</div><div> kernelOperator.CreateToRadius(radius);</div>
</div><div><br></div><div><br></div><div><div>typedef itk::NormalizedCorrelationImageFilter<InputImageType, InputImageType, InputImageType> NCCFilterType;</div><div><br></div><div> NCCFilterType::Pointer filter = NCCFilterType::New();</div>
<div><br></div><div> filter->SetInput(reader->GetOutput());</div><div> filter->SetTemplate(kernelOperator);</div></div><div><br></div><div><br></div><div>However, ther output of NCC is all infinity. I found all the coefficients of itk::ImageKernelOperator were zero.</div>
<div>Is there any step I am missing ? My test code and inputs are attached.</div><div>Usage:</div><div>NCC main.png templete.png out.nii</div><div><br></div><div><br></div><div>Thanks,</div><div>Somi</div>
</div><br>