Hi Kannan,<div><br></div><div>Perhaps there is a better way to do this but I needed to do the exact same thing so I created an itkConvolutionImageFilter class which takes two images, one as input and the other as an &quot;image kernel&quot; and produces a convolved output image. &nbsp; The tricky part, at least for me, was doing exactly as you pointed out---how to convert an image to neighborhood operator. &nbsp;The result was the ImageKernelOperator which is used by the itkConvolutionImageFilter. &nbsp;I&#39;ll send both classes to you in a private email. &nbsp;Hopefully it fulfills your needs.
</div><div><br class="webkit-block-placeholder"></div><div>Good luck,</div><div>Nick Tustison<br><br><div class="gmail_quote">
On Dec 21, 2007 1:13 AM, kannan madhusudan &lt;<a href="mailto:kannan.madhusudan@gmail.com" target="_blank">kannan.madhusudan@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>Hi all,</div>
<div>&nbsp;&nbsp; I am trying to convolve an image with another image. From what I understand, we need to use the NeighborhoodOperatorImageFilter fro this purpose. I guess the&nbsp;operator refers&nbsp;to the kernel which is convolved with the image.&nbsp;What i need to know is how to set an image as an operator.&nbsp;
</div>
<div>Thanks in advance,<font size="2"></font>&nbsp;&nbsp;&nbsp; <br>-- <br>Madhusudan<br>BioImagene IDC<br>+919373137387 </div>
<br>_______________________________________________<br>Insight-users mailing list<br><a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">

http://www.itk.org/mailman/listinfo/insight-users</a><br><br></blockquote></div><br></div>