Core Image

Horus-iOS·2022년 5월 31일
0

Use built-in or custom filters to process still and video images.

스틸, 비디오 이미지를 처리하기 위해 내장된 혹은 커스텀 필터를 사용할 수 있습니다.

Overview

코어 이미지는 스틸, 비디오 이미지 고성능 처리를 제공하는 이미지 처리 및 분석 기술입니다. 이미지 처리를 하려면 여러 가지 내장된 필터를 사용할 수 있으며, 필터를 체이닝해서 복잡한 효과를 빌드할 수 있습니다. 세부적인 내용은 Core Image Filter Reference를 보시기 바랍니다.

Core Image Filter Reference
https://developer.apple.com/library/archive/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html#//apple_ref/doc/uid/TP40004346

커스텀 필터 및 이미지 프로세서를 사용해 새로운 효과를 생성할 수도 있습니다. 자세한 내용은 Core Image Programming Guide를 보시기 바랍니다.

Core Image Programming Guide
https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/CoreImaging/ci_intro/ci_intro.html#//apple_ref/doc/uid/TP30001185

CIContext

An evaluation context for rendering image processing results and performing image analysis.

렌더링 이미지 처리 결과 및 이미지 분석 수행을 위한 평가(?)(evaluation) 컨텍스트입니다.

잘 와닿지 않는다. 아래와 같은 메소드가 정의되어 있다.

func createCGImage(CIImage, from: CGRect) -> CGImage?

func render(CIImage, to: CVPixelBuffer)

이미지를 생성하고 렌더하기도 하나보다.

번역은 아래 링크.

https://velog.io/@horus222128/CIContext

CIFilter

An image processor that produces an image by manipulating one or more input images or by generating new image data.

하나 혹은 하나 이상의 인풋 이미지를 조작하거나 새 이미지 데이터를 생성해서 이미지를 제공하는 이미지 프로세서입니다.

매뉴얼 레퍼런스 사용 시 dealloc 구현에서 메모리 릴리즈를 하지 않아야 한다고. 아마 직접 구현할 일이 없을 것 같아 멀어보이지만, 그래도 중요한 주의사항인 것 같아서 남긴다.

번역 링크.

https://velog.io/@horus222128/CIFilter

CIImage

A representation of an image to be processed or produced by Core Image filters.

코어 이미지 필터에 의해 처리되거나 생성되는 이미지의 표현입니다.

이미지가 아니다. 아래와 같은 메소드가 있음을 기억해야겠다.

func applyingFilter(String, parameters: [String : Any]) -> CIImage

0개의 댓글