|
Video processingOpenCL Image Processing RoutinesPlease find attached an example file that exhibits the use of six OpenCL image processing routines. They have all been ported over from noise_kernels.cl example from Apple's developer code examples. They will happily take a static image or a moving one. The posted example uses a static image, the online screen grab posted to vimeo uses a video feed [some HD footage of my own] and the output of the kernels is used there as a mask image to the main image, which is also the product of a CoreImage processing routine that inverts the source image . OpticalFlow_OpenCLParticleMesh (Composition by cybero)
This is pretty much as the composition title states. This is an exploitation of an OpenCL Optical Flow kernel, the output of which is fed through a Particle Mesh macro and rendered as Meshes. It is the pepper to the salt of OpticalFlow_OpenCL_Movie_Feed. The composition switches between Billboard rendering of the Optical Flow and then to the Particle Mesh rendering of that filtered video stream. |