Ask Your Question

removing lines

asked 2020-01-14 19:57:45 -0500

BBoDDo gravatar image

image description

background image

image description

object image

I want to eliminate gray lines in 16 bit image you can see.

Final goal is remove line in object image with background image.

I thought it need FFT, but i don't know how FFT applied. There will be other ways, too.

Please help me.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-01-15 07:20:25 -0500

kbarni gravatar image

updated 2020-01-15 07:27:04 -0500

As a general rule it's much more easy to obtain a better quality image (which is simple to analyse) than processing a complicated image.

I would try to put something in front of that background (maybe a translucent paper or matte glass) to eliminate those lines.

Look also a the focal distance of the camera: it seems that it's set at the background. Setting it to the foreground will enhance the quality of the picture and the background will be blurred (so the lines less visible) - especially if your lens has a wide aperture.

Otherwise I don't have a better idea than the FFT analysis. Compute the FFT of the image, and you'll see some peaks (high intensity points) on the vertical center line (except the central point). image description

Erase these peaks (set them to 0). You can also try to set the whole vertical line ( except the central part, several pixels wide) to 0. image description

Compute the IFFT to get back the original image. The lines should (mostly) disappear. image description

Refine this approach until you'll get the results you like. Here's a 5 minute result for the second image: image description

edit flag offensive delete link more


Thank you for your hard work!! I tried like your method before you answer, and i erase all vertical line without center. Then it was removed all line! I succeeded! But it occurred some problem, something like a strange gray line occurred a bit below.

BBoDDo gravatar imageBBoDDo ( 2020-01-15 18:31:09 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-01-14 19:51:00 -0500

Seen: 41 times

Last updated: Jan 15