Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw fitted ellipses in diagnostic images #49

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ethanjli
Copy link
Member

@ethanjli ethanjli commented Oct 9, 2024

This PR adds functionality to draw the region's fitted ellipse in the tagged.jpg diagnostic images saved by the segmenter; those ellipses are useful for understanding biases in the ellipsoid biovolume estimates described at https://www.protocols.io/view/planktoscope-protocol-for-plankton-imaging-bp2l6bq3zgqe/v3?step=16 , and for comparing ellipsoid biovolume against plain/riddled biovolume estimates.

@ethanjli
Copy link
Member Author

ethanjli commented Oct 9, 2024

Here's a visual example of the change made by the above commits.
Before the commits:
tots-ps-acq-136 20_45_45_415569 tagged before-ellipses
After the commits:
tots-ps-acq-136 20_45_45_415569 tagged after-ellipses

@ethanjli ethanjli changed the title Draw fitted ellipse in diagnostic images Draw fitted ellipses in diagnostic images Oct 9, 2024
@ethanjli
Copy link
Member Author

ethanjli commented Oct 9, 2024

The above commit adds drawings of two semicircles for each object in the diagnostic images: the upper semicircle corresponds to the circle with area equal to the object's filled area, while the lower semicircle corresponds to the circle with area equal to the object's area-excluding-holes. For example:
tots-ps-acq-136 20_45_45_415569 tagged after-circles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant