Skip to content

Add unit tests to fit_ellipse_to_points #36

@lauraporta

Description

@lauraporta

Is your feature request related to a problem? Please describe.

The function fit_ellipse_to_points currently lacks dedicated unit tests. While it is covered indirectly through integration tests, we need explicit verification that the fitted parameters are meaningful and that the resulting ellipse accurately represents the provided cloud of points. In particular, we are most interested in ensuring the correctness of the ellipse center.

Describe the solution you'd like

Add at least one unit test to validate that fit_ellipse_to_points correctly estimates the center of the fitted ellipse when given a well-defined set of points.

Describe alternatives you've considered

Currently, the function is tested indirectly through integration tests within the broader pipeline. However, this approach does not provide fine-grained validation of its correctness.

Additional context

The function fit_ellipse_to_points takes as input a cloud of points (centers of detected blobs computed elsewhere) and fits an ellipse to them. The primary parameters of interest are the ellipse’s center, eccentricity, and orientation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions