CLsqFit:GetNumPtsDeleted
The GetNumPtsDeleted method returns the number of points that were manually deleted form the sample.
nPts = CLsqFit:GetNumPtsDeleted() nPts = CLsqFit:GetNumPtsDeleted( nChannel ) n1, n2, n3, n4 = CLsqFit:GetNumPtsDeleted() |
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 deleted 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 deleted and rejected from 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 |
|
|
-- manually delete the 2nd point |
|
-- enable bad data rejection |
|
-- Fit the polynomial |
|
-- number of points deleted |
|
-- number of points rejected |
|
-- list number deleted and number rejected |
CLsqFit class, GetNumPts, GetNumPtsRejected, GetNumPtsUsed, DeletePt, Data Rejection
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.