ImageClip

ImageClip[image]

clips all channel values in image to lie in the default range.

ImageClip[image,{min,max}]

clips channel values to lie in the range from min to max.

ImageClip[image,{min,max},{vmin,vmax}]

gives vmin for values below min and vmax for values above max.

Details

  • ImageClip[image] is equivalent to ImageClip[image,{0,1}].
  • ImageClip works with any type of 2D or 3D image.
  • ImageClip[image,{{min1,min2,},{max1,max2,}},] specifies ranges separately for each channel.

Examples

open allclose all

Basic Examples  (3)

Clip values above a certain threshold:

Clip values below a certain threshold to zero:

Clip pixels of a 3D image to positive values and adjust for better rendering:

Scope  (4)

Clip the data stored in an image to the normal range:

Specify a clipping range:

Specify clipping values:

Specify a clipping range for a "Byte" image:

Applications  (1)

Clip the negative values of a filtered image:

Neat Examples  (1)

Clip an image and adjust the values:

Introduced in 2010
 (8.0)
 |
Updated in 2012
 (9.0)