Accelerate Sample Code
View sample code to see how Accelerate APIs are implemented.
View sample code to see how Accelerate APIs are implemented.
Change the frequency response of an audio signal using a cascaded biquadratic filter.
View sample codeUse the vImage library’s polynomial transform to apply tone curve adjustments to images.
View sample codeRender real-time film grain, temporal blur, posterisation, and colour thresholding on live video with the vImage Pixel Buffer.
View sample codeUse a gamma function to apply a linear or exponential curve.
View sample codeConvert an RGB image to L*a*b* color space and apply hue adjustment.
View sample codeBuild a simple neural network and train it to recognize randomly generated numbers.
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 codeRecreate an entire file system directory from an archive file.
View sample codeCompress the contents of a Unicode string and store the result on the file system.
View sample codeRecreate a string from an archive file.
View sample codeCompress a string, write it to the file system, and decompress the same file using buffer compression.
View sample codePerform compression or the appropriate kind of decompression to a file based on its path extension.
View sample codeCompress and decompress streamed or from-memory data, using input and output filters.
View sample codePerform compression for all files and decompression for files with supported extension types.
View sample codeProvide descriptions of Core Graphics image formats for conversions to and from vImage.
View sample codeInitialize vImage buffers from Core Graphics images.
View sample codeCreate displayable representations of vImage buffers.
View sample codeLimit the effect of vImage operations to rectangular regions of interest.
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 codeImprove your app's performance by converting image buffer formats from interleaved to planar.
View sample codeOperate selectively on the elements of a vector at regular intervals.
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 codeReduce the sample rate of a signal, by specifying a decimation factor and applying a custom antialiasing filter.
View sample codeTransfer 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 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 codeLearn how vDSP packs frequency-domain data produced by Fourier transform routines.
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 codeUse Accelerate's discrete cosine transform to remove noise from a signal.
View sample codeReduce or remove periodic artifacts from images.
View sample codeShape audio output using discrete cosine transforms and biquadratic filters.
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 displayable ARGB image from the luminance and chrominance information supplied by your device's camera
View sample codeCreate a multidimensional lookup table to convert RGB images to CMYK.
View sample codeAvoid ringing effects introduced by the default Lanczos algorithm when scaling an image by using a custom resampling filter.
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 RGB 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 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 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 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 codeReduce noise in an image using singular value decomposition (SVD).
View sample codeGenerate a real-time mel spectrogram of audio using matrix multiplication.
View sample code