DIPlib Documentation - ©1995-2017 Quantitative Imaging Group, Delft University of Technology.

ErfClip

Point Operation

SYNOPSIS

#include "dip_point.h"

dip_Error dip_ErfClip ( in, out, threshold, range, clipFlag )

DATA TYPES

integer, float

FUNCTION

Clips in using the erf function at either or both the values threshold +/- range/2. If the flag DIP_CLIP_LOW_AND_HIGH_BOUNDS is specified, threshold and range are used as lower and upper bounds respectively.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput image
dip_ImageoutOutput image
dip_floatthresholdThreshold value
dip_floatrangeRange value
dipf_ClipclipFlagclipFlag

The following dipf_Clip flags are defined:

NameDescription
DIP_CLIP_BOTHclip both the lower and upper bound
DIP_CLIP_LOWclip lower bound only
DIP_CLIP_HIGHclip upper bound only
DIP_CLIP_THRESHOLD_AND_RANGEsame as DIP_CLIP_BOTH
DIP_CLIP_LOW_AND_HIGH_BOUNDSuse threshold and range as lower and upper bounds

LITERATURE

L.J. van Vliet, Grey-Scale Measurements in Multi-Dimensional Digitized Images, Ph.D. thesis Delft University of Technology, Delft University Press, Delft, 1993

SEE ALSO

Clip, ContrastStretch