<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=414194619-24092004><FONT face=Verdana color=#0000ff size=2>You
can use ShiftScaleImageFilter. This filter maps intensity values
via</FONT></SPAN></DIV>
<DIV><SPAN class=414194619-24092004><FONT face=Verdana color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=414194619-24092004> <FONT face=Verdana
color=#0000ff size=2>output = (input + shift) * scale</FONT></SPAN></DIV>
<DIV><SPAN class=414194619-24092004><FONT face=Verdana color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=414194619-24092004><FONT face=Verdana color=#0000ff size=2>Set
the shift to zero and set the scale to one over your
constant.</FONT></SPAN></DIV>
<DIV><SPAN class=414194619-24092004><FONT face=Verdana color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=414194619-24092004><FONT face=Verdana color=#0000ff
size=2>Jim</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Andy Eow
[mailto:vtkitk@hotmail.com]<BR><B>Sent:</B> Friday, September 24, 2004 3:42
PM<BR><B>To:</B> Insight-users@itk.org; Luis Ibanez<BR><B>Subject:</B>
[Insight-users] Dividing Image by Constant<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Hi Luis,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is there an image filter that allows me to divide
every pixel by a constant? I was hoping that's a clean way of doing this
without going through pixel iterators. Thanks.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2>Andy</FONT></DIV></BLOCKQUOTE></BODY></HTML>