<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Nachricht</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=929374508-22062006><FONT face=Arial color=#0000ff size=2>Hi, 
</FONT></SPAN></DIV>
<DIV><SPAN class=929374508-22062006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=929374508-22062006><FONT face=Arial color=#0000ff size=2>I 
think you should take a look at vtkImageConvolve.&nbsp;This filter 
should&nbsp;do what you want.</FONT></SPAN></DIV>
<DIV><SPAN class=929374508-22062006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=929374508-22062006><FONT face=Arial color=#0000ff 
size=2>Markus</FONT></SPAN></DIV>
<DIV><SPAN class=929374508-22062006></SPAN>&nbsp;</DIV>
<DIV></DIV>
<DIV><FONT face=Tahoma size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B> 
vtkusers-bounces+markus.erbacher=med.uni-heidelberg.de@vtk.org 
[mailto:vtkusers-bounces+markus.erbacher=med.uni-heidelberg.de@vtk.org] <B>Im 
Auftrag von </B>marium ahmed<BR><B>Gesendet:</B> Donnerstag, 22. Juni 2006 
10:42<BR><B>An:</B> vtkusers@vtk.org<BR><B>Betreff:</B> [vtkusers] Using masks 
in vtk<BR><BR></DIV></FONT>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV>Dear all,</DIV>
  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I want 
  to make a mask, say 5*5, and apply it to an image (vtkImageData). The thing is 
  that I don't know how to make such a mask and put in it for example some zeros 
  and ones (just like what I do in matlab by constructing a matrix and filling 
  it with whatever I want). I tried to use vtkImageMask and vtkImageMaskBits, 
  but I didn't know how to use it correctly, i.e. I didn't know how to construct 
  my mask of interest.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Can anyone help??</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>thanks in advance,</DIV>
  <DIV>marium</DIV>
  <P>
  <HR SIZE=1>
  Ring'em or ping'em. Make <A 
  href="http://us.rd.yahoo.com/mail_us/taglines/postman11/*http://us.rd.yahoo.com/evt=39666/*http://voice.yahoo.com">PC-to-phone 
  calls as low as 1˘/min</A> with Yahoo! Messenger with 
Voice.</BLOCKQUOTE></BODY></HTML>