Coreimage.framework

Framework

Core Image

Use built-in or custom filters to process still and video images in near real-time. Detect features such as faces and eyes, and track faces in video images.


Overview

Core Image is an image processing and analysis technology designed to provide high-performance processing for still and video images.

Getting Started with Core Image

Use Core Image classes to:

  • Process images using the many built-in image filters

  • Chain together filters and then archive them for later use

  • Detect features (such as faces and eyes) in still and video images, and track faces in video images

  • Analyze images to get a set of auto adjustment filters

  • Create custom filters for use in your app

In OS X, you can also package custom filters as Image Units that you can publish for use by others. For details, see Image Unit Tutorial.

To learn about using Core Image, read Core Image Programming Guide.




































Classes

CIColor

The CIColor class contains color values and the color space for which the color values are valid. You use CIColor objects in conjunction with other Core Image classes, such as  CIFilterCIContext,and CIImage, to take advantage of the built-in Core Image filters when processing images.

CIColorKernel

CIColorKernel object manages a GPU-based image processing routine that processes only the color information in images, used to create custom Core Image filters. You create CIColorKernel objects using methods of the superclass CIKernel.

CIContext

The CIContext class provides an evaluation context for rendering a CIImage object through Quartz 2D, Metal, or OpenGL. You use CIContext objects in conjunction with other Core Image classes, such as CIFilterCIImage, and CIColor, to process images using Core Image filters.

CIDetector

CIDetector object uses image processing to search for and identify notable features (faces, rectangles, and barcodes) in a still image or video. Detected features are represented by CIFeature objects that provide more information about each feature.

CIFaceFeature

CIFaceFeature object describes a face detected in a still or video image. Its properties provide information about the face’s eyes and mouth. A face object in a video can also have properties that track its location over time—tracking ID and frame count. 

CIFeature

CIFeature object represents a portion of an image that a detector believes matches its criteria. Subclasses of CIFeature typically hold additional information specific to the detector that discovered the feature.

CIFilter

The CIFilter class produces a CIImage object as output. Typically, a filter takes one or more images as input. Some filters, however, generate an image based on other types of input parameters. The parameters of a CIFilter object are set and retrieved through the use of key-value pairs.

CIFilterGenerator

The CIFilterGenerator class provides methods for creating a CIFilter object by chaining together existing CIFilter objects to create complex effects. (A filter chain refers to the CIFilter objects that are connected in the CIFilterGenerator object.) The complex effect can be encapsulated as a CIFilterGenerator object and saved as a file so that it can be used again. The filter generator file contains an archived instance of all the CIFilter objects that are chained together. 

CIFilterShape

The CIFilterShape class describes the bounding shape of a filter and the domain of definition (DOD) of a filter operation. You use CIFilterShape objects in conjunction with Core Image classes, such as CIFilterCIKernel, and CISampler, to create custom filters.

CIImage

The CIImage class represents an image. Core Image images are immutable. You use CIImage objects in conjunction with other Core Image classes—such as CIFilterCIContextCIVector, and CIColor—to take advantage of the built-in Core Image filters when processing images. You can create CIImage objects with data supplied from a variety of sources, including Quartz 2D images, Core Video image buffers (CVImageBufferRef), URL-based objects, and NSData objects.

CIImageAccumulator

The CIImageAccumulator class enables feedback-based image processing for such things as iterative painting operations or fluid dynamics simulations. You use CIImageAccumulator objects in conjunction with other Core Image classes, such as  CIFilterCIImageCIVector, and CIContext, to take advantage of the built-in Core Image filters when processing images.

CIKernel

An CIKernel object manages a GPU-based image processing routine used to create custom Core Image filters. To ensure the best performance, use the subclasses CIColorKernel and CIWarpKernelwhen implementing filters that operate only on color or geometry information, and use the CIKernel class directly only when implementing general-purpose filters that use both color and geometry information together.

CIPlugIn

The CIPlugIn class loads image units. An image unit is an image processing bundle that contains one or more Core Image filters. The .plugin extension indicates one or more filters that are packaged as an image unit.

CIQRCodeFeature

CIQRCodeFeature describes a Quick Response code (a two-dimensional barcode using the ISO/IEC 18004:2006 standard) detected in a video or still image. The properties of a QR code feature identify the corners of the barcode as it appears in perspective in the image and provide the message decoded from the barcode.

CIRectangleFeature

CIRectangleFeature object describes a quadrilateral region detected in a video or still image. A detected rectangle feature is not necessarily rectangular in the plane of the image; rather, the feature identifies a shape that may be rectangular in space but which appears in perspective in the image—for example, a paper or book on a desk. The properties of a rectangle feature identify its corners in image coordinates.

CISampler

The CISampler class retrieves samples of images for processing by a CIKernel object. A CISampler object defines a coordinate transform, and modes for interpolation and wrapping. You use CISampler objects in conjunction with other Core Image classes, such as  CIFilterCIKernel, and CIFilterShape, to create custom filters.

CITextFeature

CITextFeature object describes a quadrilateral region likely to contain upright text detected in a video or still image. The properties of a text feature identify its corners in image coordinates.

CIVector

The CIVector class is used for coordinate values and direction vectors. You typically use a CIVector object to pass parameter values to Core Image filters. CIVector objects work in conjunction with other Core Image classes, such as CIFilterCIContextCIImage, and CIColor, to process images using the Core Image framework.

CIWarpKernel

CIWarpKernel object manages a GPU-based image processing routine that processes only the geometry information in an image, used to create custom Core Image filters. You create CIWarpKernel objects using methods of the superclass CIKernel.

Protocols

CIFilterConstructor

The CIFilterConstructor protocol defines a method for supplying CIFilter objects.

CIImageProcessorInput

A object conforming to the CIImageProcessorInput protocol provides image data and information for use in a custom image processor. Your app does not define classes that adopt this protocol; Core Image provides an object of this type when you create a custom image processor with a block passed to the CIImageimageWithExtent:processorDescription:argumentDigest:inputFormat:outputFormat:options:roiCallback:processor:method.

Beta
CIImageProcessorOutput

A object conforming to the CIImageProcessorOutput protocol provides image data and information for use in a custom image processor. Your app does not define classes that adopt this protocol; Core Image provides an object of this type when you create a custom image processor with a block passed to the CIImageimageWithExtent:processorDescription:argumentDigest:inputFormat:outputFormat:options:roiCallback:processor:method.

Beta
CIPlugInRegistration

The CIPlugInRegistration protocol defines a method for loading Core Image image units. The principal class of an image unit bundle must support this protocol.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
如果你的电脑上没有 `spring.banner.image.location` 属性,而你想在 Spring Boot 项目中使用 ASCII Art 图片作为启动时的横幅,可以尝试以下替代方案: 1. 使用 `spring.banner.location` 属性:在 Spring Boot 的默认配置中,可以使用 `spring.banner.location` 属性来指定 ASCII Art 图片的位置。你可以在配置文件(如 `application.properties` 或 `application.yml`)中添加以下配置: ```properties spring.banner.location=/path/to/banner.txt ``` 确保将 `/path/to/banner.txt` 替换为你实际的 ASCII Art 图片文件路径。 2. 在代码中自定义横幅输出:你可以在你的代码中自定义横幅输出的逻辑。例如,你可以编写一个启动时执行的方法,在该方法中使用 Java 的 IO 操作读取 ASCII Art 图片文件,并输出到控制台。 ```java import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.core.io.ClassPathResource; import org.springframework.util.FileCopyUtils; import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; @SpringBootApplication public class YourApplication { public static void main(String[] args) throws IOException { ConfigurableApplicationContext context = SpringApplication.run(YourApplication.class, args); printBanner(); } private static void printBanner() throws IOException { ClassPathResource resource = new ClassPathResource("banner.txt"); InputStreamReader reader = new InputStreamReader(resource.getInputStream(), StandardCharsets.UTF_8); String banner = FileCopyUtils.copyToString(reader); System.out.println(banner); } } ``` 在上面的代码中,我们假设 ASCII Art 图片文件名为 `banner.txt`,放在项目的 `resources` 目录下。你可以根据实际情况修改文件名和路径。 通过以上方法,你可以在没有 `spring.banner.image.location` 属性的情况下实现自定义的横幅输出。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值