Home > ISET > utility > ieClip.m

ieClip

PURPOSE ^

Clip data to range specified arguments.

SYNOPSIS ^

function im = ieClip(im,lowerBound, upperBound)

DESCRIPTION ^

Clip data to range specified arguments.

    im = ieClip(im,[lowerBound], [upperBound])

 Purpose:
   Various types of clipping of data are supported.  These are

    ieClip(im,[],255) sets the upper bound to 255, no lower bound
    ieClip(im,0,1)    sets the lower to 0 and upper to 1
    ieClip(im,0,[])   sets the lower to 0, no upper bound
    ieClip(im)        defaults to 0 1 range
    ieClip(im,bound)  sets bound to +/- bound
 Examples:
   im = 2*randn([5,5])
   ieClip(im,[],1)
   ieClip(im,0,[])
   ieClip(im,1.35789)

 Copyright ImagEval Consultants, LLC, 2003.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 14-Jan-2007 10:24:23 by m2html © 2003