What is the unit of sigma in the function imgaussfilt?

15 Ansichten (letzte 30 Tage)
Jona Östreicher
Jona Östreicher am 13 Dez. 2021
Beantwortet: Image Analyst am 21 Jan. 2022
Is the unit of sigma of imgaussfilt pixels or is it the same unit as my input on which the filter is applied?

Antworten (2)

Abhiroop Rastogi
Abhiroop Rastogi am 21 Jan. 2022
Hey Jona,
The sigma (standard deviation for the Gaussian Distribution) is supposed to be a positive number or a two element vector of positive numbers, and is not dependent on the input. You can refer to the documentation page of "imgaussfilt" function for any other details of the function.

Image Analyst
Image Analyst am 21 Jan. 2022
The units for sigma should be specified in pixels, which is basically elements of your input matrix. Not sure what you mean by "same unit as my input". If each element represents some real world distance, like the distance between pixel 1 and pixel 2 is 35 microns or 10 kilometers, imgaussfilt() won't know about that calibration scaling factor. It just works on pixels. If you have some sigma you want in real world units, like 47 kilometers, you need to divide by your calibration scaling factor to turn that distance into the number of pixels.

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by