Main Content

Color Thresholder

Threshold color image

Description

TheColor Thresholderapp 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 Thresholdersupports 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, seeSegment Image and Create Mask Using Color Thresholder App.

Color Space Color Channel Thresholding Controls
RGB

HSV

YCbCr

L*a*b*

Open the Color Thresholder App

  • MATLAB®Toolstrip: On theAppstab, underImage Processing and Computer Vision, click theColor Thresholderapp icon.

  • From the MATLAB command prompt, use thecolorThresholderfunction with a syntax described inProgrammatic Use.

Programmatic Use

expand all

colorThresholderopensColor Thresholder, which enables you to create a segmentation mask of a color image based on the exploration of different color spaces.

colorThresholder(RGB)opensColor Thresholder, loading the imageRGBinto the app.

colorThresholder closecloses all open instances ofColor Thresholder.

Version History

Introduced in R2014a