• Aucun résultat trouvé

Deblurring using FFT

N/A
N/A
Protected

Academic year: 2022

Partager "Deblurring using FFT"

Copied!
1
0
0

Texte intégral

(1)

Tiré de http://www.nist.gov/lispix/imlab/labs.html

Deblurring using FFT

(Deconvolution)

Take the Fourier Transform: Process ->

FFT -> FFT menu.

I used the Process -> Enhance contrast menu to make the pattern stand out a little more. This affects only the LUT - the following processing steps will not be affected.

ImageJ

This will be the 'point spread' function with which to blur the image, and then deblur it. This is not a realistic point spread function for

microscopes, which might look more like a Gaussian shaped peak, and would be the image from a point source.

Take the FFT of the dot. Process -> FFT -> FFT menu.

(2)

ImageJ

The first image will now be blurred by convolving it with the second image. Although this could be done in the spatial domain by making a convolution kernel and using the Process ->

Convolve menu with a convolution kernel (14x14 array with 1's to match the black pixels in the dot image), convolution by large kernels is done more quickly in the frequency domain (using the FFT). Deconvolution (deblurring) must be done in the frequency domain. [In ImageJ, frequence domain math such as this is available using Process / FFT / FD Math]

Blur the face image with the dot image, by multiplying the two FFT images together and taking the inverse transform of the result.

o Process -> Image Math menu, with these settings:

ImageJ

o which gives FFT5 as a result:

(3)

ImageJ

[In ImageJ, the steps work up to this point. However, the resulting product image is not considered a frequency domain image by ImageJ, so we can go no further using these images. The process can be done more directly using Process / FFT / FD Math. - see the green sections below.]

Take the inverse transform: Process -> FFT -> Inverse FFT menu then, Process ->

FFT -> Swap Quadrants menu

The thin lines in the face have not disappeared.

Show the face by enhancing the contrast

o Click on the square (a) to restore to normal contrast if necessary. The thin lines will now be visible.

o Move the top dot (b) to the left as shown to darken the face a bit more.

(4)

[To make the blurred image in ImageJ, use Process / FFT / FD Math ...]

To deblur the image, divide its FFT by the FFT4, the FFT of the point spread function.

Make sure the above image is the top or active image.

Take its transform: Process -> FFT -> FFT menu. (FFT5 above is restored.)

Divide FFT5 by FFT4: Process Image Math menu, select these parameters:

(5)

Then take the inverse transform, Process -. FFT -> Inverse FFT, to restore the image:

The image has been restored exactly, because the point spread function used for deblurring was identical to the point spread function used for blurring, and there was no noise.

Let's alter the point spread function by reducing the size of the dot slightly, and see the effect on the 'deblurred' image.

Duplicate the original dot used for the blurring point spread function, zoom it several times with the eyeglass tool . It will look like this: .

Using the pencil tool, modify four pixels in the image so that it looks like this:

.

Take the FFT (Process -> FFT -> FFT) of the new dot.

Divide the FFT of the original blurred image (FFT of original image X FFT of original dot) by the FFT of the new corrupted dot. (Process -> Image Math... menu. Make sure the operation is divide).

(6)

And, finally, take the inverse transform (Process -> FFT -> Inverse FFT menu.)

Evidently, the point spread function must be known very accurately.

Références

Documents relatifs

Several (IV) stands designs exist (see figure below) including (a) the fist simple free standing designs, (b) the second simple free standing design, (c) Dyaun IV Pole, (d) Hanging

Fin janvier 2017, en France métropolitaine, parmi les personnes inscrites à Pôle emploi et tenues de rechercher un emploi (catégories A, B, C), 3 467 900 sont sans emploi (catégorie

Total variation and point spread function priors for MLEM reconstruction in Compton camera imaging.. Yuemeng Feng, Ane Etxebeste, Jean Michel Létang, David Sarrut,

We propose SimBA, an open benchmarking solution that can be used to generate simulated data-sets with high configurability as well as a means to evaluate the perfor- mances of

— Fluid collected in floating réservoirs with the anterior oesophagus cannulated and the posterior oeso- phagus ligated and severed, or cannulated and severed, as

Alors que les eaux influencées par les affleurements étaient peu- plées principalement par des espèces ubiquistes dans la sous- province mauritanienne et la zone

The earliest occurrence and re- markable stasis of the family Bostrichidae (Coleoptera: Polyphaga) in Cretaceous Charentes

We hypothesized that the retention time was deter- mined by the diffusive exchange of the stratifying agent between interstitial and ambient fluid, which increases excess density