Local adaptive thresholding with GUI to help find best parameters.
Local adaptive thresholding : using local mean and standard deviation for foreground segmentation.
Two usage:
Using GUI to find best parameter and perform thresholding.
[ bw, params ] = localthreshGUI(img) takes img and displays it and segmented image.
Upon existing GUI program, binary image (bw) and parameters for localthresholding (params) are returned.
Using the function without GUI.
bw = localthresh(img, ssize, msize, sthresh, mthresh) performs local threshing holding on image.
ssize : filter size for standard deviation filter. msize : filter size for mean filter sthresh : threshold for standard deviation ( in fold number relative to local standard deviation ) mthresh : threshold for mean ( in fold number relative to local mean )
Type in the following to try it :
%load built-in rice image
img = imread('rice.png')
localthreshGUI(img)
Cita come
CY Y (2024). Local adaptive thresholding with GUI to help find best parameters. (https://github.com/joe-of-all-trades/localthresh), GitHub. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation > Image Thresholding >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Le versioni che utilizzano il ramo predefinito di GitHub non possono essere scaricate
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |
Updated title and summary
|
|