CImCombine:SetNormMethod
The SetNormMethod method sets the method used to normalize the images to match the reference image. The options are "scale", "offset", and "none".
CImCombine:SetNormMethod( sMethod ) where |
CImageSet contains the collection of images to be combined.
sMethod is a string describing the normalization method (see below).
The normalization method describes the way the images are adjusted to match the reference image. The options are described in the following table:
Normalization Methods
Name |
Description |
none |
No normalization is performed. |
scale |
The images are multiplied by a factor. |
offset |
The images are offset by a constant value. |
The following script uses SetNormMethod to specify that the images are to be scaled to bring them into normalization:
|
-- create a CImCombine object |
|
-- central 10% of the image |
|
-- specify CImage and CRect to measure |
|
-- use median as the normalization statistic |
|
-- scale to normalize the image set |
|
-- combine the image set, return a new image |
|
-- show the new image |