0 Replies
      Latest reply on Mar 28, 2019 1:15 AM by kart
      kart Level 1 Level 1 (0 points)

        Core Image lets us specify a color space for a CIContext, as in:

        let context = CIContext(options: [kCIContextOutputColorSpace: NSNull(), kCIContextWorkingColorSpace: NSNull()]) 

        Or for a CIImage, as in:

        let image = CIImage(cvImageBuffer: inputPixelBuffer, options: [kCIImageColorSpace: NSNull()]) 

        How are these three related:

        • kCIContextOutputColorSpace
        • kCIContextWorkingColorSpace
        • kCIImageColorSpace

        What are the pros and cons of setting each of them?