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

Sign

Arithmetic function

SYNOPSIS

dip_Error dip_Sign ( in, out )

DATA TYPES

binary, integer, float

FUNCTION

Computes the sign of the input image values, and outputs a signed integer typed image. The sign of zero is defined as zero.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput
dip_ImageoutOutput

SEE ALSO

Abs, Ceil, Floor, Truncate, Fraction, NearestInt