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

Add ellipse fitting example #3895

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

langestefan
Copy link

@langestefan langestefan commented Nov 27, 2024

Draft PR for the ellipse fitting example, will add code.

For this demo I took an image of the cartwheel galaxy captured by the James Webb space telescope:
James Webb Space Telescope images

It's a very general setup and multiple ellipse model definitions, optimization criteria and demo images can be defined.

To efficiently fit the ellipses I need to do some image preprocessing, some filtering and some clustering. For these tasks I used Clustering.jl, Images.jl and DSP.jl. Would it be okay to use these dependencies? I can come up with alternative implementations but it will be more messy.

After fitting the ellipses the final result looks like this:

afbeelding

@odow
Copy link
Member

odow commented Nov 27, 2024

This looks like a super cool (and visual) example.

No problem adding the extra packages. Just ensure they have a compat:

[compat]

Also: we need to make sure that the image we use can be redistributed. If possible, find the original source, instead of new scientist?

@langestefan
Copy link
Author

Yeah JWST really creates some breathtaking images!

Also: we need to make sure that the image we use can be redistributed. If possible, find the original source, instead of new scientist?

Found the source: https://webbtelescope.org/contents/media/images/2022/039/01G8JXN0K2VBQP112RNSQWTCTH

Unless otherwise stated, all material on the site was produced by NASA and the Space Telescope Science Institute (STScI). Material on this site produced by STScI was created, authored, and/or prepared for NASA under Contract NAS5-03127. Unless otherwise specifically stated, no claim to copyright is being asserted by STScI and material on this site may be freely used as in the public domain in accordance with NASA's contract. However, it is requested that in any subsequent use of this work NASA and STScI be given appropriate acknowledgement.

I'll make sure we add the acknowledgment.

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

Successfully merging this pull request may close these issues.

2 participants