Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 3.01 KB

README.md

File metadata and controls

60 lines (40 loc) · 3.01 KB

vImageProcessor

CI Status Version License Platform

Description

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.

Example

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.

Requirements

  • iOS 7+
  • macOS 10.8+
  • tvOS 9+
  • watchOS 2+

Installation

vImageProcessor is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'vImageProcessor'

Screenshot

Alpha Compositing Cropping Affine Transform

Author

DreamPiggy

License

vImageProcessor is available under the MIT license. See the LICENSE file for more info.