Skip to content
This repository was archived by the owner on Jul 26, 2025. It is now read-only.
This repository was archived by the owner on Jul 26, 2025. It is now read-only.

New ROI property: ellipse #246

@lpatiny

Description

@lpatiny

I would like to have the information about the ellipse that fit the best a ROI.

We have something similar in PCA to create ellipses around points

https://github.com/cheminfo/jsgraph-sd-ellipse/blob/master/src/index.js

Still to discuss if we provide a parameter (nbSD). We would return an aspectRatio parameter I guess among other.

For return value we can use something very close to Feret

    return {
      minorAxis: {
        length: 0,
        points: [
          { column: 0, row: 0 },
          { column: 0, row: 0 },
        ],
        angle: 0,
      },
      majorAxis: {
        length: 0,
        points: [
          { column: 0, row: 0 },
          { column: 0, row: 0 },
        ],
        angle: 0,
      },
      aspectRatio: 1,
    };

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions