Page 1 of 1
detect any random point cointained in each line of this image
Posted: 2017-03-19T18:57:37-07:00
by diegomage
Im trying to detect a point inside a line in this image
Im using this command but only detect the area box and the centroid
Code: Select all
convert nmonddo52 -define connected-components:verbose=true -connected-components -4 -auto-level ccredsult.png
what could I do
please help
Re: detect any random point cointained in each line of this image
Posted: 2017-03-19T19:33:33-07:00
by fmw42
Inside which line? You will need to turn this image into black and white. Make transparency white. If the point is inside the right side closed curve, then the centroid is likely inside it.
Please explain further.
Re: detect any random point cointained in each line of this image
Posted: 2017-03-19T19:37:06-07:00
by diegomage
ok wait a moment
Re: detect any random point cointained in each line of this image
Posted: 2017-03-19T19:41:05-07:00
by diegomage
i upload this image
Re: detect any random point cointained in each line of this image
Posted: 2017-03-19T19:41:28-07:00
by diegomage
this
Re: detect any random point cointained in each line of this image
Posted: 2017-03-19T19:41:50-07:00
by diegomage
is a random point by each connected image
Re: detect any random point cointained in each line of this image
Posted: 2017-03-19T19:42:45-07:00
by diegomage
the centroid not help me for my task
Re: detect any random point cointained in each line of this image
Posted: 2017-03-19T19:43:34-07:00
by diegomage
because sometimes coincides with hollow of number figure and Ruin my command to detect numbers
Re: detect any random point cointained in each line of this image
Posted: 2017-03-19T20:53:01-07:00
by fmw42
try grep "black" and it will find all black points
convert image txt: | grep "black"
Or if you want only the red ones
convert image txt: | grep "red"
Re: detect any random point cointained in each line of this image
Posted: 2017-03-19T20:59:31-07:00
by diegomage
very thankyou