Weighted 'least squares' line fitting, where the impact of outliers
is decreased based on the approach of Huber (see below).
'tukey'"tukey""tukey""tukey""tukey":
Weighted 'least squares' line fitting, where outliers
are ignored based on the approach of Tukey (see below).
'drop'"drop""drop""drop""drop":
'least squares' line fitting, where outliers are ignored. In
particular, all contour points further away from the contour than the mean
distance to the regression line multiplied with the ClippingFactorClippingFactorClippingFactorClippingFactorclippingFactor
(see below) are ignored for the calculation of the undistorted regression
line.
'gauss'"gauss""gauss""gauss""gauss":
Weighted 'least squares' line fitting, where the impact of outliers
is decreased based on the mean value and the standard deviation of
the distances of all contour points from the approximating line.
For 'huber', 'tukey', and 'drop' a robust error statistics is used to
estimate the standard deviation of the distances from the contour points
without outliers from the approximating line. The parameter
ClippingFactorClippingFactorClippingFactorClippingFactorclippingFactor (a scaling factor for the standard deviation)
controls the amount of outliers: The smaller the value chosen for
ClippingFactorClippingFactorClippingFactorClippingFactorclippingFactor the more outliers are detected. The detection of
outliers is repeated. The parameter IterationsIterationsIterationsIterationsiterations specifies the number
of iterations. In the modus 'regression' this value is ignored. Note that in
the approach of Tukey ('tukey'), the outliers are removed before performing
the approximation and all other points are weighted, whereas in the approach
of Huber ('huber'), the outliers still have a small influence. Particularly,
for outliers the optimization is influenced linearly and for points with a
smaller distance it is influenced quadratically. In practice, the approach of
Tukey is recommended.
The start point and the end point of a line segment is determined by
projecting the first and the last point of the corresponding contour
to the approximating line. Due to artifacts in the pre-processing
the start and end points of a contour might be faulty. Therefore, it
is possible to exclude ClippingEndPointsClippingEndPointsClippingEndPointsClippingEndPointsclippingEndPoints points at the beginning
and at the end of a contour from the line fitting. However, they are
still used for the determination of the start point and the end
point of the line segment.
The minimum necessary number of contour points for fitting a line is two.
Therefore, it is required that the number of contour points is at least
.
List of values: 'drop'"drop""drop""drop""drop", 'gauss'"gauss""gauss""gauss""gauss", 'huber'"huber""huber""huber""huber", 'regression'"regression""regression""regression""regression", 'tukey'"tukey""tukey""tukey""tukey"