Hello,
I have a question
There are 10 black circles in the image. I want to get the center of the black circle and make a circle of random number.
It seems possible using image magic.
Thanks for best regards
find centered coeccentric circles and draw circle
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: find centered coeccentric circles and draw circle
Please show a sample input image. You can upload to somewhere like dropbox.com and paste the URL here.
Please state the version number of IM you use, and your platform.
If you have a black circle on a white background, "-morphology distance" can find the centre.
Please state the version number of IM you use, and your platform.
If you have a black circle on a white background, "-morphology distance" can find the centre.
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: find centered coeccentric circles and draw circle
So can -connected-components.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: find centered coeccentric circles and draw circle
Good point, Fred, thanks. Connected-components is far simpler, as it directly gives the centroid of the component, which is the centre of the circle.
snibgo's IM pages: im.snibgo.com
Re: find centered coeccentric circles and draw circle
Thank you for your interest.
I will create a sample image and share it through google drive.
Thanks for your best regards
I will create a sample image and share it through google drive.
Thanks for your best regards