Capture and process ProRAW images

RSS for tag

Discuss the WWDC21 session Capture and process ProRAW images.

Posts under wwdc21-10160 tag

2 Posts

Post

Replies

Boosts

Views

Activity

How to create CGImageDestinationRef with type kUTTypeRawImage?
Trying Code : NSString *destpath2 = [documentsDirectory stringByAppendingPathComponent: @"RGBA8888Somthing.raw"];   CFURLRef url = (__bridge CFURLRef)[NSURL fileURLWithPath:destpath2];   CGImageDestinationRef destination = CGImageDestinationCreateWithURL(url, kUTTypeRawImage, 1, NULL); I am getting error : findWriterForTypeAndAlternateType:119: unsupported file format 'public.camera-raw-image'
0
0
395
Apr ’22
How to get a correct CIImage/CVPixelBuffer from a ProRaw?
I need to process the ProRaw photo as soon as it is captured. Our flow for the Bayer Raw includes creating an MTLTexture from a CVPixelBuffer. But with ProRaw looks like the problem is even before this step. We need a linear image so I've tried the following sample (adjusted to work on iOS 14): var options: [CIRAWFilterOption: Any] = [     .baselineExposure: 0.0,     .boostAmount: 0.0,     .boostShadowAmount: 0.0,     .disableGamutMap: true ] if #available(iOS 14.3, *) {     options[.ciInputLocalToneMapAmountKey] = 0.0 } let pxFilter = CIFilter(cvPixelBuffer: photo.pixelBuffer!, properties: photo.metadata, options: options)! let pxImage = pxFilter.outputImage! (ignore all the force unwrappings, it is just a proof of concept) And the output image is always overexposed here: How can I get a linear image with proper exposure?
2
0
1.5k
Jul ’21
How to create CGImageDestinationRef with type kUTTypeRawImage?
Trying Code : NSString *destpath2 = [documentsDirectory stringByAppendingPathComponent: @"RGBA8888Somthing.raw"];   CFURLRef url = (__bridge CFURLRef)[NSURL fileURLWithPath:destpath2];   CGImageDestinationRef destination = CGImageDestinationCreateWithURL(url, kUTTypeRawImage, 1, NULL); I am getting error : findWriterForTypeAndAlternateType:119: unsupported file format 'public.camera-raw-image'
Replies
0
Boosts
0
Views
395
Activity
Apr ’22
How to get a correct CIImage/CVPixelBuffer from a ProRaw?
I need to process the ProRaw photo as soon as it is captured. Our flow for the Bayer Raw includes creating an MTLTexture from a CVPixelBuffer. But with ProRaw looks like the problem is even before this step. We need a linear image so I've tried the following sample (adjusted to work on iOS 14): var options: [CIRAWFilterOption: Any] = [     .baselineExposure: 0.0,     .boostAmount: 0.0,     .boostShadowAmount: 0.0,     .disableGamutMap: true ] if #available(iOS 14.3, *) {     options[.ciInputLocalToneMapAmountKey] = 0.0 } let pxFilter = CIFilter(cvPixelBuffer: photo.pixelBuffer!, properties: photo.metadata, options: options)! let pxImage = pxFilter.outputImage! (ignore all the force unwrappings, it is just a proof of concept) And the output image is always overexposed here: How can I get a linear image with proper exposure?
Replies
2
Boosts
0
Views
1.5k
Activity
Jul ’21