Thresholding an image

Interactively threshold an image. Make a binary image.

現在この提出コンテンツをフォロー中です。

This program takes a color or monochrome image and lets the user interactively/manually threshold the monochrome image, or a single color band of a color image, via sliders to set the maximum and minimum thresholds. The thresholded image is a binary image that can be used as a mask image for other images. The pixels in the thresholded range are shown in the middle image as a binary image (black/white), and the original image pixels are shown masked in the left image (gray scale or color). Inputs are the low and high thresholds to start with and the image file name or image matrix. The program returns the threshold values and the last color band that was used to select the threshold. The image can be of type integer (uint8, uint16, etc.) or floating point (single, double).

引用

Image Analyst (2026). Thresholding an image (https://jp.mathworks.com/matlabcentral/fileexchange/29372-thresholding-an-image), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを与えたファイル: Parametric Mapping Scripts for MRI data

一般的な情報

MATLAB リリースの互換性

  • R2014b 以降 R2021b 以前と互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.3.0.0

Added option to set thresholds to Triangle or Otsu values. Updated graphics. Updated properties from set() to OOP style. Tested in R2021b.

1.2.0.0

Changed description slightly
Fixed bug about typing in a value for a floating point image.

1.1.0.0

Updated to work with R2015a.

1.0.0.0