How to remove the background noise?

Dear All,

I have attached an LEED image below. I want to know how to remove the background grid lines from this image. But I am not sure how to proceed. Any help?

image

Ouch! What is the source of the grid lines? Do you have a way to generate the image without the LEED screen display to show only the grid lines?

If the grid is periodic it might clean out well using spatial filtering.

A.G.

In addition to AG's recommendation, I might consider this.

  • Take an image without the LEED screen on
  • Define that image as a background
  • Apply a remove background or transformation operation to the image using the background

I'd have to wonder how this can be a software issue. Do you have some thoughts to troubleshoot this as well?

Regular background subtraction may work but any offsets in the grid between consecutive frames or any change in exposure will affect the results.  Spatial filtering should work reasonably well if the grid has precise constant intervals. 

Before performing spatial filtering you may want to consider if the image could benefit from pre-processing if it is desired to warp the image so that the grid lines are straight.

You can find a discussion of the filtering in the Image Processing Tutorial (File Menu->Example Experiments->Tutorials->Image Processing Tutorial) under "Spatial frequency filtering".

In your application the approach could be:

1.  Invert an image so that the grid corresponds to high signal.

2.  Fourier transform the image to determine the x and y spatial frequencies of the grid.

3.  Construct a nice smooth filter that attenuates these frequencies and test on the inverted image.

4.  Construct a 2D wave representing your filter in frequency space (say filterWave).

Note: I have not tested the following -- it is just meant as quick illustration of some steps

5.  Use MatrixOP to write one command line that executes the filtering calculation as shown in the example of MatrixOP documentation

// Image filtering using 2D spatial filter filterWave:
MatrixOp/O filteredImage=IFFT(FFT(srcImage,2)*filterWave,3)

6.  For an 8-bit image you can replace srcImage above with

cmplx(-wi+255,0)  // Note the order for computing the inversion

7. Modify the equation to convert the complex to real, perform the inverse inversion and convert to 8-bits (all in one line):

MatrixOp/O filteredImage=uInt8(-mag(IFFT(FFT(cmplx(-wi+255,0),2)*filterWave,3))+255)

I hope this helps,

 

A.G.

In reply to by jjweimer

Dear jjweimer, I tried this but the background image that I have, has an offset and gives a distorted image.

and the intensity is not uniformly distributed among the grids.

I will try to take it under the same conditions as you said.
 

@K_A ... I am truly puzzled by the image. I know LEED systems (and at one point mucked about with software that analyzed I(V) curves of the diffraction spots). I have *never* seen such lines in any LEED image. Is this a home-built system? Can you view the screen without the camera in place (and do the lines appear there)? Can you replace the camera as a test point? Can you pound on the instrument vendor to fix what is happening? I really think you need to address the problems in the image at the source rather than trying to post-process what I must respectfully call a "horribly sloppy LEED image". I am glad to chat off-line when you are interested.

I would also check the camera as jjweimer pointed out already. It looks like an artefact of the camera rather than the LEED apparatus.

In reply to by thomas_braun

There are two types of shutters in most industrial style cameras, rolling and global.  The rolling is more common and can introduce artifacts.  The distorted propellors being the most common illustration.  If there are several periodic sources of light being produced that could introduce image artifacts with a rolling shutter.  One test is to rotate the camera 90 degrees and see if the background noise follows the camera.

Andy

Dear all, Thanks for all the suggestions on troubleshooting

 

Forum

Support

Gallery

Igor Pro 9

Learn More

Igor XOP Toolkit

Learn More

Igor NIDAQ Tools MX

Learn More