Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-19T18:57:37-07:00
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
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2017-03-19T19:33:33-07:00
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.
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-19T19:37:06-07:00
ok wait a moment
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-19T19:41:05-07:00
i upload this image
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-19T19:41:28-07:00
this
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-19T19:41:50-07:00
is a random point by each connected image
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-19T19:42:45-07:00
the centroid not help me for my task
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-19T19:43:34-07:00
because sometimes coincides with hollow of number figure and Ruin my command to detect numbers
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2017-03-19T20:53:01-07:00
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"
diegomage
Posts: 205 Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151
Post
by diegomage » 2017-03-19T20:59:31-07:00
very thankyou