![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Modules demonstrating how to estimate line 2d parameters from a cloud of points containing outliers. More...
Modules demonstrating how to estimate line 2d parameters from a cloud of points containing outliers.
For more informations about parametric estimation features, please see Parametric estimation.
We start by importing all necessary libraries:
Searched 2d line is defined using polar coordinates :
and
.
We then define input data points as points on previous line with perturbated ordinate :
with :
a random centered normal noise with unit standard deviationCoordinates of two points have been manually modified to introduce outliers
We then compute robust least square line estimation using following syntax :
In this case we use Least Mean of Squares (LMS) robust algorithm for computation with an expected outlier ratio set to
.
At last we display estimation results
See the full source listing
1.8.14