SetSpecOfPolygonArea

Declaration: TSpCollItem.SetSpecOfPolygonArea (it, cl: integer; capt, catstring: string; Polyg: TPIntArray; Spec, SDev: TDoubleArray);
The function SetSpecOfPolygonArea sets all important properties of a spectrum of a polygonal area at once. The CItemType property is set to ciPoylgon.

The spectrum is defined by the parameter Spec, assuming that the spectrum is the mean spectrum of the polygonal area. The parameter SDev is the standard deviation of the mean spectrum. The length of the spectral information (see SpecLength) is automatically set to the length of the Spec array. The parameter it specifies the time slot. The parameter cl specifies the class number of the spectrum.

The polygon is defined by the array Polyg which contains the pixel coordinates of the polygon enclosing the area of which the spectrum Spec has been calculated.

The parameter capt contains the caption of the spectrum. The catstring parameter contains the user-defined categories (see the spectral collection data format for details on the format.