Scale all images to a given value range
DigitalMicrograph Script
This script normalizes the intensity values of all open images to a defined range [0 - max].
Preview
number range = 256
number nImg = CountImages()
for ( number i = 0 ; i < nImg ; i ++ )
{
image img := FindImageByIndex(i)
result( "Scaling image values in <" + GetLabel( img ) + ":" + GetName( img ) + ">.\n" )
img -= min(img)
img /= max(img)
img *= range
}