Threshold color image
The Color Thresholder app lets you segment color images by thresholding the color channels based on different color spaces. Using this app, you can create a binary segmentation mask for a color image.
Color Thresholder supports segmentation in four color spaces. In each color space, the app displays the image, the three color channels, and the color value of all pixels as points in a 3-D color space plot. You can select the colors included in the mask by windowing the color channel values or by drawing an ROI in the image or 3-D color space plot. For an example of using the app, see Segment Image and Create Mask Using Color Thresholder App.
|Color Space||Color Channel Thresholding Controls|
Open the Color Thresholder App
MATLAB® Toolstrip: On the Apps tab, under Image Processing and Computer Vision, click the Color Thresholder app icon.
From the MATLAB command prompt, use the
colorThresholderfunction with a syntax described in Programmatic Use.
colorThresholder opens Color Thresholder, which enables you to
create a segmentation mask of a color image based on the exploration of different
colorThresholder( opens Color
Thresholder, loading the image
RGB into the
colorThresholder close closes all open instances of Color
Introduced in R2014a