[Insight-users] Dividing Image by Constant

Miller, James V (Research) millerjv at crd.ge.com
Fri Sep 24 15:47:22 EDT 2004


You can use ShiftScaleImageFilter.  This filter maps intensity values via
 
    output = (input + shift) * scale
 
Set the shift to zero and set the scale to one over your constant.
 
Jim

-----Original Message-----
From: Andy Eow [mailto:vtkitk at hotmail.com]
Sent: Friday, September 24, 2004 3:42 PM
To: Insight-users at itk.org; Luis Ibanez
Subject: [Insight-users] Dividing Image by Constant


Hi Luis,
 
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.
 
Cheers,
Andy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20040924/20cd62d1/attachment.htm


More information about the Insight-users mailing list