Contents

MPSImageThresholdBinaryInverse

A filter that returns 0 for each pixel with a value greater than a specified threshold or a specified value otherwise.

Declaration

class MPSImageThresholdBinaryInverse

Overview

An MPSImageThresholdBinaryInverse function converts a single channel image to a binary image. If the input image is not a single channel image, the function first converts the input image into a single channel luminance image using the linear gray color transform, and then it applies the threshold. The following listing shows the threshold binary inverse function.

Listing 1. Threshold binary inverse function

destinationPixelValue = sourcePixelValue > thresholdValue ? 0 : maximumValue

Topics

Initializers

Methods

Properties

See Also

Image Threshold Filters