File Exchange

image thumbnail

Thresholding Grayscale Image

version (9.29 KB) by Alister Fong
Thresholds the given grayscale image.


Updated 17 Dec 2003

View License

GUI included with selectable threshold value.
Thresholds the grayscale image at the given threshold value.

Cite As

Alister Fong (2021). Thresholding Grayscale Image (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

ashfaq ahmad

Andy Rife

Matlab graythresh() works better.

Mark Hayworth

Not bad. Shows original image on left and binarized image on right. Binarized image changes as you interactively set the low and high threshold limits. Button for a popup window with the binary image applied to the original image. Handles color images after you select a color band (which they call "Scale" for some reason) to work with. A little bit clunky and could use several user interface improvements (e.g. there is no way to interactively browse for an image file), but it's a good starting point for you to use to build something like this into your own application.

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!