The Coreimage framework in IOS

Source: Internet
Author: User

Coreimage Framework (framework) in IOS-time4cnblogstime 2014-03-15 00:24:00 Blog Park-All essays Area original http://www.cnblogs.com/try2do-neo/p/3601546.html
    1. Coreimage Framework Composition

Apple has helped us classify image processing to look at its structure:

Mainly divided into three parts:

1) Definition part: Coreimage ho coreimagedefines. The meaning of the coreimage represents the framework and its definition.

2) Operating part:

Filter (Cifliter): Cifilter produces a ciimage. Typically, accept one to many images as input, and after some filtering operations, produce a picture of the specified output.

Detection (Cidetector): Cidetector detects the characteristics of image processing, such as using to detect the eyes, mouth, etc. of the face in the picture.

Feature (Cifeature): Cifeature represents a feature that is produced by the detector process.

3) Image part:

Canvas (cicontext): The canvas class can be used with processing quartz 2D or OpenGL. It can be used to correlate the Coreimage class. such as filters, colors and other rendering processing.

Color (Cicolor): The image is associated with the canvas, image pixel color processing.

Vector (Civector): image coordinate vector and other geometric methods processing.

Picture (Ciimage): Represents an image that represents an image that is output after an association.

2. Process steps:

1) Create a Ciimage object;

2) Create a Cifilter object and set input values

3) Create a Cicontext object.

4) render the filter output image into a cgimage

3. Note

A. Focus on the way Ciimage is produced:

1) via URL and data

2) convert through other picture classes, cgimageref or other pictures.

3) through Cvpixelbufferref.

4) A set of pixel data.

B. Picture color, kccimagecolorspace to reload the default color space.

C. Picture metadata.

4. Use the filter.

Cisepiatone, Cicolorcontrols, Cihueblendmode.

Process: Multiple CImage input--"ciheblendmode--" cisepiatone.

Render Output:

Process: Get context-"turn into Ciimage-" render into Cgimageref-"convert to UIImage-release cgimageref-" use UIImage.

5. Face Detection

Auto-Enhancement: ciredeyecorrection, cifacebalance (adjust picture to give better skin tone), civibrance (increase saturation without distorting skin tones), citonecurve (adjust picture contrast), Highlight Shadow adjustment.

The Coreimage framework in IOS

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.