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

RangeThreshold

Point Operation

SYNOPSIS

#include "dip_point.h"

dip_Error dip_RangeThreshold ( in, out, lowerBound, upperBound, foreground, background, binaryOutput )

DATA TYPES

integer, float

FUNCTION

out = ( lowerBound <= in <= upperBound ? foreground : background) If the boolean binaryOutput is true, RangeThreshold will produce a binary image. Otherwise an image of the same type as the input image is produced, with the pixels set to either foreground or background.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput image
dip_ImageoutOutput image
dip_floatlowerBoundLower bound
dip_floatupperBoundUpper bound
dip_floatforegroundForeground value
dip_floatbackgroundBackground value
dip_BooleanbinaryOutputConvert output image to binary

SEE ALSO

Threshold, HysteresisThreshold, IsodataThreshold