vImage Operations

Apply image manipulation operations to vImage buffers.

Overview

Perform conversions, convolutions, geometric transformations, histogram operations, morphological transformations, and compositing to images.

Topics

Alpha Compositing

Alpha Compositing

Composite images together.

Clipping Data

Clipping Data

Clip the pixel values of an image.

Conversion

Conversion

Convert an image to a different format.

Convolution

Convolution

Apply a convolution kernel to an image.

Decompression Filtering

Decompression Filtering

Filter data prior to decompression.

Extracting Channels

Extracting Channels

Extract one channel from a four-channel interleaved buffer.

Filling Buffers

Filling Buffers

Fill a buffer with a specified color.

Flattening Data

Flattening Data

Perform an alpha composite of a four-channel image over a solid background color.

Geometry

Resampling in vImage

Learn how vImage resamples image data during geometric operations.

Affine Transforms

Translate, rotate, and scale images.

Image Reflection

Reflect images horizontally and vertically.

Image Shearing

Shear images horizontally and vertically.

Image Rotation

Rotate images by arbitrary angles or by multiples of 90 degrees.

Image Scaling

Scale interlaced and planar images.

Histogram

Histogram

Calculate and or manipulate an image's histogram.

Morphology

Morphology

Dilate and erode images.

Overwriting Channels

Overwriting Channels

Overwrite the channels of a buffer.

Permuting Channels

Permuting Channels

Reorder the channels in an image.

Swapping Bytes

Swapping Bytes

Byte swap a buffer.

Transform

Transform

Apply color transformations to images.

Transforming Using Table Lookups

Transforming Using Table Lookups

Transform an image by substituting pixel values with pixel values provided by lookup tables.

See Also

vImage Operations

Adjusting the Brightness and Contrast of an Image

Use a gamma function to apply a linear or exponential curve.

Blurring an Image

Filter an image by convolving it with custom and high-speed kernels.

Adding a Bokeh Effect

Simulate a bokeh effect by applying dilation.

Converting Color Images to Grayscale

Convert a color image to grayscale using matrix multiplication.

Standardizing Arbitrary Image Formats for Processing

Convert assets with disparate color spaces and bit depths to a standard working format for applying vImage operations.

Specifying Histograms with vImage

Calculate the histogram of one image and apply it to a second image.

Reducing Artifacts in Resampled Images

Avoid ringing effects introduced by the default Lanczos algorithm when scaling an image by using a custom resampling filter.