In our application we would like to access the original camera data.
We have a AVCapturePhoto photo for which isRawPhoto returns true.
If we instantiate a CIFilter with options = [ CIRAWFilterOption.boostAmount: 0.0, CIRAWFilterOption.boostShadowAmount: 0.0, CIRAWFilterOption.colorNoiseReductionAmount: 0.0, CIRAWFilterOption.disableGamutMap: true, CIRAWFilterOption.enableChromaticNoiseTracking: false, CIRAWFilterOption.enableSharpening: false, CIRAWFilterOption.luminanceNoiseReductionAmount: 0.0, CIRAWFilterOption.moireAmount: 0.0, CIRAWFilterOption.noiseReductionAmount: 0.0, CIRAWFilterOption.noiseReductionDetailAmount: 0.0, CIRAWFilterOption.noiseReductionContrastAmount: 0.0, CIRAWFilterOption.noiseReductionSharpnessAmount: 0.0, ] the output image is a non-linearly modified version.
photo.pixelBuffer appears to be in a format unlike any typical mosaic pattern (we have tried all four RGGB GRBG GBRG BGGR). Applying demosaic as per any of the patterns renders the repeated image in three vertical overlapping bands.
Is there any way of only applying demosaic to the image, or is there any documentation on the pixelBuffer format?
We have a AVCapturePhoto photo for which isRawPhoto returns true.
If we instantiate a CIFilter with options = [ CIRAWFilterOption.boostAmount: 0.0, CIRAWFilterOption.boostShadowAmount: 0.0, CIRAWFilterOption.colorNoiseReductionAmount: 0.0, CIRAWFilterOption.disableGamutMap: true, CIRAWFilterOption.enableChromaticNoiseTracking: false, CIRAWFilterOption.enableSharpening: false, CIRAWFilterOption.luminanceNoiseReductionAmount: 0.0, CIRAWFilterOption.moireAmount: 0.0, CIRAWFilterOption.noiseReductionAmount: 0.0, CIRAWFilterOption.noiseReductionDetailAmount: 0.0, CIRAWFilterOption.noiseReductionContrastAmount: 0.0, CIRAWFilterOption.noiseReductionSharpnessAmount: 0.0, ] the output image is a non-linearly modified version.
photo.pixelBuffer appears to be in a format unlike any typical mosaic pattern (we have tried all four RGGB GRBG GBRG BGGR). Applying demosaic as per any of the patterns renders the repeated image in three vertical overlapping bands.
Is there any way of only applying demosaic to the image, or is there any documentation on the pixelBuffer format?