clip intensity to specified levels - Maple Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Graphics : Image Processing : ImageTools Package : ImageTools/Clip

ImageTools[Clip] - clip intensity to specified levels

Calling Sequence

Clip( img, opts )




Image; the image to adjust



(optional) equation(s) of the form option = value; specify options for the Clip command



The Clip command clips any pixel intensity value less than a lower bound to that bound, and greater than an upper bound to that bound.


The img parameter specifies the image to clip, and must be of type Image.


The options low and high specify the lower and upper bounds, respectively, to which intensities are clipped. If both  low and high are unspecified, then they are assigned the values 0.0 and 1.0, respectively. That is, by default, intensities are clipped to be between 0 and 1, inclusive.


If both low and high are specified, and the value of low exceeds that of high, an error is generated.


If only one bound is specified, the other one is unbounded. For example, Clip(img, high = 0.5) clips all intensities in img to be less than or equal to 0.5.


The Clip command is often useful after performing other image processing operations that may have produced out-of-bound values, and before performing operations that are not defined on out-of-bound values.









See Also

ImageTools, ImageTools[Gamma], ImageTools[Scale]

Download Help Document

Was this information helpful?

Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam