I have raw images that are in 1 byte/pixel format and I have a scale factor in a Perl variable say $sf. What is the best way read the image, multiply each pixel value by this scale factor, and write the file?
I have read some on PDL but not sure if this is the best approach. I write Perl maybe once/year so forgive me if I have overlooked the obvious.
Thank you.