Last active
April 29, 2020 19:47
-
-
Save smithdanielle/84f49d396233d9a91eae to your computer and use it in GitHub Desktop.
Create a 1-dimensional gaussian filter and apply it (MATLAB)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gaussFiltered = gaussFilter1D(m, sigma) | |
cutoff = ceil(3*sigma); | |
h = fspecial('gaussian',[1,2*cutoff+1],sigma); % 1D filter | |
gaussFiltered = conv2(h,h,m,'same'); |
Hey, sorry but can i use this for a scalar value? I want to apply a filter a value gotten from the processing of orientation estimation in fingerprint as stated in the paper I am using.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you. I found that the amplitude of the filtered curve changed a lot. I think it is better to use gaussFiltered = conv(m,h,'same');