CIImagePipeline

@objcMembers
public class CIImagePipeline : NSObject

Pipeline for appling image transformation functions to a CIImage.

  • Sampling method used to resize image.

    See more

    Declaration

    Swift

    @objc(ResizeSamplingMethod)
    public enum ResizeSamplingMethod : Int
  • Current CIImage.

    Declaration

    Swift

    public var image: CIImage
  • Sampling method use when resizing images. Defaults to .affine, which is the fastest but produces the most artifacts.

    Declaration

    Swift

    public var resizeSamplingMethod: CIImagePipeline.ResizeSamplingMethod
  • Create CIImagePipeline

    Declaration

    Swift

    public init(_ image: CIImage, context: CIContext? = nil)

    Parameters

    image

    Input CIImage

    context

    CIImage context. If not provided, uses FritzVisionImage shared context.

  • Render current CIImage to pixelBuffer

    Declaration

    Swift

    public func render() -> CVPixelBuffer?