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

Equal

Compare grey values in two images

SYNOPSIS

dip_Error dip_Equal ( in1, in2, out )

DATA TYPES

binary, integer, float

FUNCTION

This function sets each pixel in out to "true" when corresponding pixels in in1 and in2 are equal. This is the same as Compare with the DIP_SELECT_EQUAL selector flag.

in2 can be a 0D image for comparison of pixel values with a single scalar value. This leads to a functionality similar to SelectValue.

ARGUMENTS

Data typeNameDescription
dip_Imagein1First input
dip_Imagein2Second input
dip_ImageoutOutput

SEE ALSO

Compare, Threshold, Greater, Lesser, NotEqual, NotGreater, NotLesser, SelectValue, NotZero