[Insight-users] Multiply an Image by Constant
Sergio Andres
sergio at unizar.es
Tue, 17 Feb 2004 15:34:11 +0100
Hi all,
I think is a little stupid question, but
could anyone tell me how can multiply a given image by a constant??
I am using filters like AddImageFilter, or MultiplyImageFilter.. for
doing things like:
Image3 = Image1 + Image2
Image4 = Image1 * Image2
But I did not found a filter or function to do:
Image2 = Image1 * K
I thought about iterate over pixels and multiply each pixel by K.
But I don't know if there is a better solution....
Thanks for your possible answers..
Sergio.