![]()  | 
CLsqFit:GetNumPtsRejected
The GetNumPtsRejected method returns the number of points rejected by the fit when data rejection is enabled.
| 
 nPts = CLsqFit:GetNumPtsRejected() nPts = CLsqFit:GetNumPtsRejected( nChannel ) n1, n2, n3, n4 = CLsqFit:GetNumPtsRejected()  | 
    nChannel is an optional argument that
specifies the channel for multi-channel (RGB) data.
    nPts, n1, n2, n3, and n4 are the number of points rejected from
all channels when nChannel is not specified.
The following script fits a 2x2 polynomial with data rejection enabled, then retrieves the number of points rejected by the fit..
| 
 | 
 -- create a CLsqFit object  | 
| 
 | 
 -- set 2x2 coefficients to fit a warped plane  | 
| 
 | 
 -- add a point with x = 3, y = 5, z = 5.15  | 
| 
 -- add more points to the fit  | 
 
  | 
| 
 | 
 -- enable bad data rejection  | 
| 
 | 
 -- Fit the polynomial  | 
| 
 | 
 -- number of points used  | 
| 
 | 
 -- number of points rejected  | 
| 
 | 
 -- list the number used and number rejected  | 
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.