HomeiOS Developmentios - Metallic Core Picture kernels for Picture statistics

ios – Metallic Core Picture kernels for Picture statistics


I’m at the moment computing histogram, waveform, and vectoroscope utilizing Speed up and Metallic shaders. This code is for 8-bit SDR pixel buffers and it really works. I need to rewrite them utilizing Core Picture in order that they will work for each 10-bit HDR & SDR buffers.

  1. Speed up works very properly for histogram for 8-bit photographs. Nonetheless it doesn’t assist 10bit YCbCr pixel buffers. CoreImage helps it however it’s unclear tips on how to seize uncooked histogram knowledge from the CIAreaHistogram output in order to show it utilizing CoreGraphics or MTKView. The builtin histogram CIHistogramDisplayFilter to show histogram has much less flexibility. I additionally need histogram of luminance as properly other than rgb.

  2. I exploit atomic_fetch_add_explicit in Metallic shaders to compute statistics reminiscent of Waveform and vectoroscope. It appears Metallic core picture kernels don’t have any assist for atomics. Is there any solution to do the identical in CoreImage?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments