<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi David,<br>
<br>
You need to generate the kernel image before passing it to the operator
with:<br>
extractFilter->Update();<br>
and you must generate the kernel with:<br>
UnsignedCharImageType::SizeType radius;<br>
radius[0] = 10;<br>
radius[1] = 10;<br>
kernelOperator.CreateToRadius(radius);<br>
Then it should work.<br>
NOTE: The radius should match your extracted image, here it is chosen
to be 10 as an example.<br>
<br>
Attached is a working example where the VTK stuff was stripped.<br>
<br>
Cheers, Markus<br>
<br>
On 21.10.2010 17:56, David Doria wrote:
<blockquote
cite="mid:AANLkTik=TZhnT2MpRjqhdQ5Zq1Fu6tdV3YqSPzqhrPgr@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Yes. It uses an AnnulusOperator rather than a piece of an
image.</div>
<div><br>
<font color="#888888">David</font></div>
</blockquote>
</div>
<br>
<div>After some poking around, it looks like ImageKernelOperator is
what should be used.</div>
<div><br>
</div>
<div>However, the output of the correlation (after being rescaled to
0-255) is all black:</div>
<div><a moz-do-not-send="true"
href="http://www.vtk.org/Wiki/ITK/Examples/Images/NormalizedCorrelationImageFilter">http://www.vtk.org/Wiki/ITK/Examples/Images/NormalizedCorrelationImageFilter</a></div>
<div><br>
</div>
<div>Any thoughts?</div>
<div><br>
David</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_____________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Kitware offers ITK Training Courses, for more information visit:
<a class="moz-txt-link-freetext" href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a>
Please keep messages on-topic and check the ITK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
</blockquote>
</body>
</html>