Accelerate Sample Code
View sample code to see how Accelerate APIs are implemented.
View sample code to see how Accelerate APIs are implemented.
Fill consistently colored connected parts of an image with a new color.
View sample codeFill consistently colored connected parts of an image with a new color.
View sample codeApply dithering to simulate colors that are unavailable in reduced bit depths.
View sample codeShare image data between vDSP and vImage to compute the sharpest image from a bracketed photo sequence.
View sample codeChange the frequency response of an audio signal by manipulating frequency-domain data.
View sample codeReduce or remove periodic artifacts from images.
View sample codeUse the vImage library's polynomial transform to apply tone curve adjustments to images.
View sample codeShare image data between vDSP and vImage to visualize audio that a device microphone captures.
View sample codeConvert an RGB image to discrete luminance and chrominance channels, and apply color and contrast treatments.
View sample codeFilter an image by convolving it with custom and high-speed kernels.
View sample codeCalculate the histogram of one image, and apply it to a second image.
View sample codeUse a gamma function to apply a linear or exponential curve.
View sample codeConvert an image to L*a*b* color space and apply hue adjustment.
View sample codeReduce the storage size of an image using singular value decomposition (SVD).
View sample codeImplement custom linear interpolation to prevent the ringing effects associated with scaling an image with the default Lanczos algorithm.
View sample codeUse vImage's convert-any-to-any function to perform real-time image processing of video frames streamed from your device's camera.
View sample codeCreate a displayable ARGB image from the luminance and chrominance information supplied by your device's camera.
View sample codeShare image data between Core Video pixel buffers and vImage buffers to integrate vImage operations into a Core Image workflow.
View sample codePerform compression for all files and decompression for files with supported extension types.
View sample codeRotate a cube through a series of keyframes using quaternion interpolation to transition between them.
View sample codeRender real-time video effects with the vImage Pixel Buffer.
View sample codeImprove your app's performance by converting image buffer formats from interleaved to planar.
View sample codeFill the gaps in arrays of numerical data using linear interpolation.
View sample codeEnhance and adjust the contrast of an image with histogram equalization and contrast stretching.
View sample codeSelect the optimal LAPACK routine to solve a system of linear equations.
View sample codeChange the frequency response of an audio signal using a cascaded biquadratic filter.
View sample codeUse Accelerate's discrete cosine transform to remove noise from a signal.
View sample codeUse LAPACK to solve a linear system and find an interpolating polynomial to construct new points between a series of known data points.
View sample codeCombine two images by using alpha blending to create a single output.
View sample codeCombine two images by using blend modes to create a single output.
View sample codeReflect, shear, rotate, and scale image buffers using vImage.
View sample codeLimit the effect of vImage operations to rectangular regions of interest.
View sample codeImprove your app's performance by converting image buffer formats from interleaved to planar.
View sample codeFilter an image by convolving it with custom and high-speed kernels.
View sample codeUse a gamma function to apply a linear or exponential curve.
View sample codeConvert an RGB image to discrete luminance and chrominance channels, and apply color and contrast treatments.
View sample codeConvert an image to L*a*b* color space and apply hue adjustment.
View sample codeUse the vImage library's polynomial transform to apply tone curve adjustments to images.
View sample codeCalculate the histogram of one image, and apply it to a second image.
View sample codeEnhance and adjust the contrast of an image with histogram equalization and contrast stretching.
View sample codeCreate a displayable ARGB image from the luminance and chrominance information supplied by your device's camera
View sample codeLearn the fundamentals of the convert-any-to-any function by converting a CMYK image to an RGB image.
View sample codeConvert a color image to grayscale using matrix multiplication.
View sample codeConvert assets with disparate color spaces and bit depths to a standard working format for applying vImage operations.
View sample codeCreate a multidimensional lookup table to convert RGB images to CMYK.
View sample codeImplement custom linear interpolation to prevent the ringing effects associated with scaling an image with the default Lanczos algorithm.
View sample codeShare image data between Core Video pixel buffers and vImage buffers to integrate vImage operations into a Core Image workflow.
View sample codeUse vImage's convert-any-to-any function to perform real-time image processing of video frames streamed from your device's camera.
View sample codeUse vImage to apply effects to a video feed in real time.
View sample codeFill the gaps in arrays of numerical data using linear interpolation.
View sample codeIncrease the performance of common mathematical tasks with vDSP vector-vector and vector-scalar operations.
View sample codeOperate selectively on the elements of a vector at regular intervals.
View sample codeReduce the sample rate of a signal, by specifying a decimation factor and applying a custom antialiasing filter.
View sample codeChange the frequency response of an audio signal using a cascaded biquadratic filter.
View sample codeChange the frequency response of an audio signal by manipulating frequency-domain data.
View sample codeShare image data between vDSP and vImage to compute the sharpest image from a bracketed photo sequence.
View sample codeShare image data between vDSP and vImage to visualize audio that a device microphone captures.
View sample codeLearn how vDSP packs frequency-domain data produced by Fourier transform routines.
View sample codeReduce or remove periodic artifacts from images.
View sample codeUse Accelerate's discrete cosine transform to remove noise from a signal.
View sample codeUse 1D fast Fourier transform to compute the frequency components of a signal.
View sample codeMultiply signal data by window sequence values to reduce spectral leakage.
View sample codeBuild a simple neural network and train it to recognize randomly generated numbers.
View sample codePerform compression for all files and decompression for files with supported extension types.
View sample codeCompress a string, write it to the file system, and decompress the same file using buffer compression.
View sample codeCompress and decompress streamed or from-memory data, using input and output filters.
View sample codeCompress a single file and store the result on the file system.
View sample codeCompress the contents of an entire directory and store the result on the file system.
View sample codeCompress the contents of a Unicode string and store the result on the file system.
View sample codeRecreate an entire file system directory from an archive file.
View sample codeRecreate a string from an archive file.
View sample codeUse vectors to calculate geometric values, calculate dot products and cross products, and interpolate between values.
View sample codeRotate points around the surface of a sphere, and interpolate between them.
View sample codeRotate a cube through a series of keyframes using quaternion interpolation to transition between them.
View sample codeSelect the optimal LAPACK routine to solve a system of linear equations.
View sample codeUse LAPACK to solve a linear system and find an interpolating polynomial to construct new points between a series of known data points.
View sample codeCreate sparse matrices for factorization and solving systems.
View sample codeUse iterative methods to solve large problems faster and with a lower memory overhead than with direct methods.
View sample codeUse direct methods to solve systems of equations where the coefficient matrix is sparse.
View sample codeUse iterative methods to solve systems of equations where the coefficient matrix is sparse.
View sample codeUse separate coordinate format arrays to create sparse matrices.
View sample code