Intel® Integrated Performance Primitives Developer Guide and Reference

ID 790148
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Thresholding

The threshold functions change pixel values depending on whether they are less or greater than the specified threshold.

The type of comparison operation used to threshold pixel values is specified by the ippCmpOp parameter; this operation can be either “greater than” or “less than” (see Structures and Enumerators for more information). For some thresholding functions the type of comparison operation is fixed.

If an input pixel value satisfies the compare condition, the corresponding output pixel is set to the fixed value that is specific for a given threshold function flavor. Otherwise, it is either not changed, or set to another fixed value, which is defined in a particular function description.

For images with multi-channel data, the compare conditions should be set separately for each channel.