ImageAdjust

ImageAdjust[image]
adjusts the levels in image, rescaling them to cover the range to .

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 to is mapped to to .

ImageAdjust[image, corr, {inmin, inmax}, {outmin, outmax}]
rescales so that the range of input values to is mapped to to .

DetailsDetails

  • ImageAdjust works with images involving any number of channels.
  • Zero adjustment corresponds to contrast adjustment , brightness adjustment , and gamma correction .
  • When rescaled values lie outside the range to , 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.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Increase the contrast and brightness of an image:

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

Increase the brightness and perform a gamma correction:

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

Adjust the input range:

In[1]:=
Click for copyable input
Out[1]=
New in 7 | Last modified in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »