Page 1 of 1

Remove wave shaped line

Posted: 2015-11-22T09:17:13-07:00
by ayanu
I have some images which have below like wave shaped line,
Image
I'm very new to image magick . I want to clear only these line, not any other pixel around it. these line is 2 pixel width at most.

Re: Remove wave shaped line

Posted: 2015-11-22T10:12:23-07:00
by Bonzo
You will need to give more information for instance is the wave always the same and in the same place?

It would be useful to supply at least one image to test as well a your Imagemagick version and your preferred software language.

You will not get any useful replies without the above.

Re: Remove wave shaped line

Posted: 2015-11-22T12:04:24-07:00
by fmw42
I think you need to provide a more realistic example. Is there any background besides white? What is your IM version and platform? What do you mean by "clear" --- make them transparent or replace the black with some image texture?


Please read viewtopic.php?f=1&t=9620

Re: Remove wave shaped line

Posted: 2015-11-22T19:22:57-07:00
by ayanu
ImageMagick version is 6.9.0-0-Q16, for Windows.
The wave always not the same, its shape may change. Here is a real image which I wannna clear,
Image

Many many thanks for ur quick reply. The line may be replace with white, no problem.

Re: Remove wave shaped line

Posted: 2015-11-22T19:42:10-07:00
by fmw42
Is the line always in the same place?

Re: Remove wave shaped line

Posted: 2015-11-23T07:26:56-07:00
by ayanu
Nope, its not always in the same place but its width may be same, at most 2 pixel.

Re: Remove wave shaped line

Posted: 2015-11-23T10:52:12-07:00
by fmw42
Sorry, I do not know how to remove it under those conditions.

Re: Remove wave shaped line

Posted: 2015-11-24T07:05:48-07:00
by ayanu
Thank u sir for your attention. Can you give me any algorithmic suggestion to do this?

Re: Remove wave shaped line

Posted: 2015-11-24T10:24:35-07:00
by fmw42
ayanu wrote:Thank u sir for your attention. Can you give me any algorithmic suggestion to do this?
I have no idea how to approach this, because there seems no way to identify the line and distinguish it from the characters that it overlaps, especially since it overlaps.

Is the wave shaped line, the same shape and length in all the images you have?

Re: Remove wave shaped line

Posted: 2015-11-25T19:12:08-07:00
by ayanu
I'm afraid its negetive!! :( Anyway, again thanks for your response.