Mechatronics home Send Feedback Print

Previous Topic

Next Topic

Book Contents

Book Index

Ellipse fitting algorithm

The ellipticity of the diffraction pattern is determined from an iso-intensity curve. A slight misalignment of the camera with respect to the orthogonal diffraction pattern is compensated for with the new tilted ellipse fit.

Ellipse fit.

The orientation of the diffraction pattern in the video image depends on the orientation of the camera with respect to the measuring geometry. The diffraction pattern is therefore described by the equation of a tilted ellipse. (References 1, 33) The ellipse parameters (see Figure 4 section a). namely location (x0,y0), orientation (j) and axes (A,B) are obtained by least squares fitting of the data points to the edge of the ellipse.(References 1, 33)

Outlier rejection.

The ellipse parameters are heavily biased if outliers exist in the data points, or when part of a neighbouring cell coexists in the rectangular analysis region. The fitting algorithm is therefore encapsulated by an iterative procedure that skips the most-distant data point until all data points are within 10 pixels from the fit. The procedure rejects patterns if the remaining number of pixels drops below a specified number (50).

Distance to ellipse.

The distance of a data point to the obtained ellipse has to be calculated in order to reject outliers. Calculating this distance requires solving a quadratic equation, which is an inefficient procedure. A good approximation can be obtained using orthogonal hyperbola.(References 50, 51) Confocal ellipses and hyperbola intersect orthogonally (see Figure 4 section b). This property is exploited to find the confocal hyperbola that crosses a specific data point. The distance from the data point to the point of intersection between the ellipse and the hyperbola provides a good approximation of the shortest distance to the ellipse.(References 50, 51) The average distance of the edge pixels to the best-fit ellipse is defined as the Error Of Fit (Eof) parameter.

Tilted_ellipse

Figure 4.

  1. Tilted ellipse with its five ellipse parameters indicated: location (x0, y0), orientation (j) and axes (a,b),
  2. the closest distance of a data point to the best-fit ellipse is estimated using the confocal hyperbola that goes through the data points and intersects the ellipse orthogonally.

Accuracy of ellipse parameters.

The accuracy of the ellipse parameters is determined in one of two possible ways.

  1. If one configures the software to analyze a certain number of diffraction patterns in order to reduce measurement inaccuracy, the programs displays the mean and standard deviation for each of the obtained ellipse parameters, and of the derived parameters (such as the EI).
  2. If only one diffraction pattern is analyzed, which can be configured, e.g., for RBC-stability testing, parameter accuracy will be estimated using the Bootstrap method.(References 47, 60) This method takes M random data points from the set of N that remained after outlier rejection. M is normally taken equal to N resulting in a new hypothetical data set in which some data points appear more than once while others are omitted. By repeatedly (300x) generating these hypothetical data sets from the original set, and by fitting each set to the equation of a tilted ellipse, a distribution is obtained for each of the five ellipse parameters. The average value is a good estimate of the true parameter while the standard error serves to indicate the accuracy of the estimate.

Normally, the diffraction pattern is displayed on an orthogonal base and the orientation angle (j) will not be of value in ektacytometry. Therefore A is taken the axis closest to the vertical and B is taken the axis closest to the horizontal. With this definition EI can be negative when the diffraction pattern is rotated over 90º, which happens when the cells orient differently in shear flow, e.g., in sickle cell anemia (Reference 9) or elliptocytosis.(References 18, 15)

Note that the accuracy of the fit also depends on the number of edge coordinates that are extracted from the image. The number of edge coordinates can be increased by fitting more than one intensity level, at the cost of computational speed.

See Also

RBC-deformability measurements

Deformability curve

Stability test

To top of page Mechatronics home Send Feedback Print