This is a wrapper to use vImage framework for image processing. Currently it support Alpha Compositing and Geometry including thesse:
- Alpha Compositing for image and color
- Alpha Compositing for image and image
- Image Scale
- Image Cropping
- Image Flipping
- Image Rotation
- Image Shearing
- Image Affine Transform
All these methods use vImage API but not Core Graphics to do image processing, which is more performant.
This project is more like a demo to show how vImage can be used to benefit some hign-efficient image processing on Apple platform. You can also use these methods in your own image framework.
To run the example project, clone the repo, and run pod install
from the Example directory first.
There are 8 demo cases to show the feature about vImage. Currently it do not have some powerful feature like Convolution or vDSP, because it need more knowledge about DSP. Through Accelerate and vImage support these feature, GPUImage may be a better place to get start.
- iOS 7+
- macOS 10.8+
- tvOS 9+
- watchOS 2+
vImageProcessor is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'vImageProcessor'
Alpha Compositing | Cropping | Affine Transform |
---|---|---|
DreamPiggy
vImageProcessor is available under the MIT license. See the LICENSE file for more info.