Combine two nearby spots?

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?".
Post Reply
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Combine two nearby spots?

Post by diegomage »

Its possible combine this two nearby spots for obtain a spot like this

this is my input

Image


this is my expected output

Image

I use noise and obtain this

Code: Select all

convert      -noise 5x5                 removevis2 removevis2xy
Image
Please give a help
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Combine two nearby spots?

Post by fmw42 »

try either

Code: Select all

convert y7vwA.png -morphology open octagon:1 result1.png

Code: Select all

convert y7vwA.png -morphology erode octagon:1 result2.png
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: Combine two nearby spots?

Post by diegomage »

very thank you this help me for finish this
Post Reply