ImageAdjust

ImageAdjust[image]

adjusts the levels in image, rescaling them to cover the range 0 to 1.

ImageAdjust[image,corr]

adjusts the image according to the correction specification corr.

ImageAdjust[image,corr,{inmin,inmax}]

first rescales so that the range of input values inmin to inmax is mapped to 0 to 1.

ImageAdjust[image,corr,{inmin,inmax},{outmin,outmax}]

rescales so that the range of input values inmin to inmax is mapped to outmin to outmax.

Details

  • ImageAdjust can be used for adjusting pixel values so that more of the image content is in the visible range or to correct for bad illumination or contrast.
  • ImageAdjust works with arbitrary 2D and 3D images.
  • Correction corr for contrast, brightness and gamma correction can take any of the following settings:
  • cadjusts the image contrast by c
    {c,b}also adjusts the image brightness by b
    {c,b,γ}also performs a gamma correction by raising the values to the power of γ
  • Zero adjustment corresponds to contrast adjustment , brightness adjustment , gamma correction .
  • When rescaled values lie outside the range outmin to outmax, they are clipped.
  • All correction and range parameters can be given as lists to specify different treatment for different channels in the image.
  • Range parameters can be set to Automatic to indicate the minimum or maximum of the values that occur in the image.
  • When applied to color images, ImageAdjust always returns an RGB image.

Examples

open all close all

Basic Examples  (2)

Auto adjust values of a color image:

In[3]:=
Click for copyable input
Out[3]=

Perform a gamma correction

In[1]:=
Click for copyable input
Out[1]=

Scope  (4)

Applications  (4)

Properties & Relations  (4)

Possible Issues  (2)

Introduced in 2008
(7.0)
|
Updated in 2012
(9.0)