Path: Imaging/ImageProcessing
% Applies and adaptive threshold to an image
Type AdaptiveThresholding for a demo with the asteroid Bennu.
--------------------------------------------------------------------------
Form:
d = AdaptiveThresholding(a,thresh,n)
--------------------------------------------------------------------------
------
Inputs
------
a (:,:) uint8 Grayscale image
thresh (1,1) Threshold (fraction of maximum value)
n (1,1) Size of mean mask
-------
Outputs
-------
d (:,:) uint8 Thresholded image. 0: below threshold. 255: above
threshold.
--------------------------------------------------------------------------
Reference: https://homepages.inf.ed.ac.uk/rbf/HIPR2/adpthrsh.htm
--------------------------------------------------------------------------
Imaging: ImageData/Bennu Imaging: ImageProcessing/ConvolveImage Imaging: ImageProcessing/Imager
Back to the Imaging Module page