Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Filter out vertical pattern

Please suggest the best way to remove the vertical pattern in the following image:

4.jpg

 

TIA

 

 

George Zou
0 Kudos
Message 1 of 10
(5,466 Views)

Can you give us some more information?

What is the ultimate goal?
What is this picture?
What data are you wanting?

If you can tell us more about your application we'll be better able to help you.

Tanner B.
Systems R&D Engineer - Aerospace, Defense, and Government
National Instruments
0 Kudos
Message 2 of 10
(5,438 Views)

What is the ultimate goal?

> What is this picture?

> What data are you wanting?

 

Remove vertical pattern, so that when use IMAQ Find Edge, no false edge will be found.

This is a picture of a metal surface.

No vertical pattern should be found on this image.

 

George Zou
0 Kudos
Message 3 of 10
(5,434 Views)

Ok, why does your image have vertical lines? What camera are you using and what's causing that artifact?

Anything you do to filter out the vertical lines is going to affect your data. If you're looking to remove vertical noise from the image, taking the fft of the image and subtracting out the result could work. The lines don't look well spaced, and I think you'd be better off trying to acquire a better image rather than going down the rabbit hole of filtering techniques.

Tanner B.
Systems R&D Engineer - Aerospace, Defense, and Government
National Instruments
0 Kudos
Message 4 of 10
(5,433 Views)

It's no artifact.  The vertical patterns are real.  It's the scratch on the surface.  It's random spaced.

 

George Zou
0 Kudos
Message 5 of 10
(5,431 Views)

Perhaps a horizontal median filter which is wider than your scratches but not as wide as the features you are trying to detect.

 

There are so many scratches, I don't think much will be left after removing them.  If there was just a few bright scratches, it would be easier.

 

Bruce

Bruce Ammons
Ammons Engineering
Message 6 of 10
(5,430 Views)

Can you try more diffuse or cloudy day lighting methods?

 

-AK2DM

 

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 7 of 10
(5,424 Views)

Bruce,

 

Thanks for reply.

 

A median filter will remove the vertical pattern effectively.

However, it will also shift the real edge of object.

The edge is not visible in this shot, but will be in follow-up shots.

 

 

 

George Zou
0 Kudos
Message 8 of 10
(5,421 Views)

@AnalogKid2DigitalMan wrote:

Can you try more diffuse or cloudy day lighting methods?

 

-AK2DM

 


Not sure how to do that.

Do you mean a Gaussian filter?

 

 

George Zou
0 Kudos
Message 9 of 10
(5,416 Views)

Not in software but the physical light source used to illuminate your specimen.

 

Lighting is often overlooked, it can make a great deal of difference in the signal to noise ratio in terms of highlighting features of interest or in minimizing features that are not of interest.

 

EDIT: Here is a good starting reference:

http://www.edmundoptics.com/technical-resources-center/illumination/choose-the-correct-illumination/

 

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 10 of 10
(5,412 Views)