({{, (RefLink[ImageClip, paclet:ref/ImageClip])[image] 
clips all channel values in image to lie in the default range.}, {, (RefLink[ImageClip, paclet:ref/ImageClip])[image,{min,max}]
clips channel values to lie in the range from min to max.}, {, (RefLink[ImageClip, paclet:ref/ImageClip])[image,{min,max},{(Subscript[v, min]),(Subscript[v, max])}]
gives (Subscript[v, min]) for values below min and (Subscript[v, max]) for values above max.}})

OpenersNotesSection(Spacer1)Details

(RefLink[ImageClip, paclet:ref/ImageClip])[image] is equivalent to (RefLink[ImageClip, paclet:ref/ImageClip])[image,{0,1}].

(RefLink[ImageClip, paclet:ref/ImageClip]) works with any type of 2D or 3D image.

(RefLink[ImageClip, paclet:ref/ImageClip])[image,{{(min_1),(min_2),…},{(max_1),(max_2),…}},…] specifies ranges separately for each channel.

OpenersPrimaryExamplesSection(Spacer1)Examples  (9)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Clip values above a certain threshold:

ImageClip[,{0,.5}]

Clip values below a certain threshold to zero:

ImageClip[,{0.17,1},{0,1}]

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

(i=Image3D@GaborMatrix[20,3{.1,.1,.1}])//ImageAdjust

ImageClip[i,{0,1}]//ImageAdjust

OpenersExampleSection1(Spacer1)Scope  (4)

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

ImageClip[Image[{{-0.5,0.1,0.5,2}}]]//ImageData

Specify a clipping range:

ImageClip[Image[{{-0.5,0.1,0.5,2}}],{0,.5}]//ImageData

Specify clipping values:

ImageClip[Image[{{-0.5,0.1,0.5,2}}],{0,.5},{0,0}]//ImageData

Specify a clipping range for a (StringTypeLink["Byte", paclet:ref/format/Byte]) image:

ImageData[ImageClip[Image[{{0,50,150,250}},"Byte"],{100,200}/255],Automatic]

OpenersExampleSection3(Spacer1)Applications  (1)

Clip the negative values of a filtered image:

i=LaplacianGaussianFilter[,3]

ImageAdjust/@{i,ImageClip[i]}

OpenersExampleSection4(Spacer1)Neat Examples  (1)

Clip an image and adjust the values:

ImageClip[,{0,.5}]//ImageAdjust

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[ImageAdjust, paclet:ref/ImageAdjust])  ▪  (RefLink[Threshold, paclet:ref/Threshold])  ▪  (RefLink[ImageData, paclet:ref/ImageData])  ▪  (RefLink[ImageTrim, paclet:ref/ImageTrim])  ▪  (RefLink[ImageCrop, paclet:ref/ImageCrop])  ▪  (RefLink[Clip, paclet:ref/Clip])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Basic Image Manipulation, paclet:guide/BasicImageManipulation])}, {▪(RefLinkPlain[Segmentation Analysis, paclet:guide/SegmentationAnalysis])}})}})