ContrastBrightness

サマリー

Creates an enhanced image by improving the contrast and brightness of the source image.

This function works on an 8-bit input raster only.

説明

For more information about how this function works, see the ContrastBrightness 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.

構文

ContrastBrightness (raster, {contrast_offset}, {brightness_offset})
パラメーター説明データ タイプ
raster

The input raster.

Raster
contrast_offset

Specify the contrast offset value. Value can range from -100 through 100.

(デフォルト値は次のとおりです 0)

Double
brightness_offset

Specify the contrast offset value. Value can range from -100 through 100.

(デフォルト値は次のとおりです 0)

Double
戻り値
データ タイプ説明
Raster

The output image improved with contrast and brightness enhancement.

コードのサンプル

ContrastBrightness example

Creates an enhanced image by improving the contrast and brightness of the source image.

import arcpy

ContrastBrightness_raster = arcpy.ia.ContrastBrightness(in_raster1, -50, 100)