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".

Syntax

CImCombine:SetNormMethod( method )

bullet.gif    CImageSet contains the collection of images to be combined.

bullet.gif    method is a string describing the normalization method (see table below).

Remarks

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

Method

Description

None

No normalization is performed.

Scale

The images are multiplied by a factor.

Offset

The images are offset by a constant value.

Example

The following script uses SetNormMethod to specify that the images are to be scaled to bring them into normalization:

C = new_imcombine()

-- create a CImCombine object

R = new_rect(10,50,10,50)

-- central 10% of the image

C:SetRelRect( R )

-- specify CImage and CRect to measure

C:SetNormStat("median")

-- use median as the normalization statistic

C:SetNormMethod("scale")

-- scale to normalize the image set

I = C:Mean( S )

-- combine the image set, return a new image

I:Display()

-- show the new image

C:delete()

-- when done with S, remove it from memory

Related Topics

CImCombine class

SetNormStat


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.