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 "image kernel" and produces a convolved output image. The tricky part, at least for me, was doing exactly as you pointed out---how to convert an image to neighborhood operator. The result was the ImageKernelOperator which is used by the itkConvolutionImageFilter. I'll send both classes to you in a private email. 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 <<a href="mailto:kannan.madhusudan@gmail.com" target="_blank">kannan.madhusudan@gmail.com</a>> 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> 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 operator refers to the kernel which is convolved with the image. What i need to know is how to set an image as an operator.
</div>
<div>Thanks in advance,<font size="2"></font> <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>