Remove wave shaped line

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
ayanu
Posts: 5
Joined: 2015-11-22T07:51:58-07:00
Authentication code: 1151

Remove wave shaped line

Post 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.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Remove wave shaped line

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Remove wave shaped line

Post 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
ayanu
Posts: 5
Joined: 2015-11-22T07:51:58-07:00
Authentication code: 1151

Re: Remove wave shaped line

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Remove wave shaped line

Post by fmw42 »

Is the line always in the same place?
ayanu
Posts: 5
Joined: 2015-11-22T07:51:58-07:00
Authentication code: 1151

Re: Remove wave shaped line

Post by ayanu »

Nope, its not always in the same place but its width may be same, at most 2 pixel.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Remove wave shaped line

Post by fmw42 »

Sorry, I do not know how to remove it under those conditions.
ayanu
Posts: 5
Joined: 2015-11-22T07:51:58-07:00
Authentication code: 1151

Re: Remove wave shaped line

Post by ayanu »

Thank u sir for your attention. Can you give me any algorithmic suggestion to do this?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Remove wave shaped line

Post 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?
ayanu
Posts: 5
Joined: 2015-11-22T07:51:58-07:00
Authentication code: 1151

Re: Remove wave shaped line

Post by ayanu »

I'm afraid its negetive!! :( Anyway, again thanks for your response.
Post Reply