CFwhm:SetCentroid
The SetCentroid method sets the centroid properties but not the FWHM calculation properties of the CFwhm object.
CFwhm:SetCentroid( CCentroid )
CFwhm:SetCentroid( CFwhm )
where
The first form copies the properties of a CCentroid object.
The second form copies only the CCentroid properties from another CFwhm object.
The following script updates the cenroid properties of a FWHM measurements and then remeasures. Assume that a CImage object I already exists:
|
|
|
-- create a CCentroid |
|
-- change the radius properties |
|
-- do something |
|
-- create CFwhm A with default values |
|
-- measure the object near 420,600 |
|
-- result: 420.24,599.872 = 2.145 |
|
-- change the centroid properties |
|
-- result: 420.21,599.884 = 2.138 |