Skip to main content

Threshold

サマリー

Creates a raster object by dividing an input raster into two distinct classes in which a high-value class is displayed with light pixels and a low-value class is displayed with dark pixels.

ディスカッション

For more information about how this function works, see the Binary Thresholding raster function.

The referenced raster dataset for the raster object is temporary. To make it permanent, you can call the raster object's save method.

構文

Threshold(raster)

パラメーター 説明 データ タイプ

raster

The input raster.

Raster

戻り値

データ タイプ 説明

Raster

The output raster.

コードのサンプル

Threshold example

Divides a Landsat 8 image into two classes.

import arcpy

Binary_raster = arcpy.ia.Threshold("Landsat8.TIF")