CFwhm:Class Description


The CFwhm class is used to compute the Full Width at Half Maximum for an image feature. This class provides methods for calculating the FWHM and for retrieving the calculation results. The centroid computation collects points around a central position, then fits a Gaussian + Constant model to the data. The fit parameters lead to the FWHM value, the background value, and the peak value of the point spread function. Both peaks and valleys can be measured. The Calc method usually uses a centroid position as the center point of the FWHM calculation.

Usage

Construction

Object = CFwhm:new()

Destruction

Object:delete()

Class Properties

These properties hold the data used by each instance of a CFwhm object.

Methods

Construction

new

Creates a new instance of a CFwhm object. Various constructors are available

delete

Deletes the instance of the CFwhm object.

Operations

Calc

Computes the Fwhm and several other values.

Fwhm

Returns the computed FWHM value.

Peak

Returns the computed peak value.

Bg

Returns the computed background value.

X

Returns the computed x coordinate of the centroid position.

Y

Returns the computed y coordinate of the centroid position.

SetCentroid

Sets only the centroid properties.

Related Topics

CFwhm Class Properties

Script Classes