Azzera filtri
Azzera filtri

fspecial filter of my own making

2 visualizzazioni (ultimi 30 giorni)
David Raveh
David Raveh il 8 Mar 2022
Risposto: Image Analyst il 8 Mar 2022
I would like to make a point spread function using fspecial for atmospheric turbulence. Is there a way that I can create my own function instead of using the pre-defined functions for 'gaussian' etc.? If yes, how would I go about doing that?

Risposte (1)

Image Analyst
Image Analyst il 8 Mar 2022
Sure. Just assign it.
psf = [1,2,3;
4,5,6;
7,8,9]; % or whatever it is.
Do you know the size of it (the window width)? Do you have a formula for it? You need to or else how will you put the values into it. Then you can use conv2() to convolve your input image with your custom PSF.
blurredImage = conv2(inputImage, psf, 'same');

Categorie

Scopri di più su Signal Processing Toolbox in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by