fspecial filter of my own making
조회 수: 9 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (1개)
Image Analyst
2022년 3월 8일
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');
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Signal Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!