[mmIntersec] [Up] [mmSymdif] Operations

mmSubm
Subtraction of two images, with saturation.

Synopsis

Image mmSubm ( const Image& f1 , const Image& f2 );

Input

f1 Image [ Unsigned gray-scale (uint8 or uint16), signed (int32) or binary image ]

f2 Image [ Unsigned gray-scale (uint8 or uint16), signed (int32) or binary image ]

Or constant.

Output

y Image [ Unsigned gray-scale (uint8 or uint16), signed (int32) or binary image ]

Description

mmSubm creates the image y by pixelwise subtraction of the image f2 from the image f1. When the subtraction of the values of two pixels is negative, 0 is taken as the result of the subtraction. When f1 and f2 are binary images, y represents the set subtraction of f2 from f1.

Equation

See also

mmAddm Addition of two images, with saturation.

See also

mmAddm Addition of two images, with saturation.
mmLimits Get the possible minimum and maximum of an image.
[mmIntersec] [Up] [mmSymdif]