ImageAdjust

ImageAdjust[image]

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

ImageAdjust[image,c]

adjusts the contrast of image by an amount c.

ImageAdjust[image,{c,b}]

adjusts the contrast by an amount c and the brightness by an amount b.

ImageAdjust[image,{c,b,γ}]

also performs a gamma correction by raising values to the power γ.

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 works with images involving any number of channels.
  • Zero adjustment corresponds to contrast adjustment 0, brightness adjustment 0, and gamma correction 1.
  • 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.
  • ImageAdjust works with Image3D objects.

Examples

open allclose all

Basic Examples  (2)

Auto adjust values of a color image:

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

Adjust values of a 3D image:

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

Scope  (4)

Applications  (3)

Properties & Relations  (4)

See Also

Lighter  Darker  BrightnessEqualize  ImageClip  ImageHistogram  ImageLevels  HistogramTransform  ColorToneMapping  Sharpen  ColorBalance

Tutorials

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