cybero

OpenCL Image Processing Routines

cybero's picture

Please 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_OpenCL_Movie_Feed (Composition by cybero)

Author: cybero
License: (unknown)
Date: 2010.06.06
Compatibility: 10.6
Categories:
Required plugins:
(none)

The composition is a fairly simple exploitation of an optical flow OpenCL kernel developed from the kernel code published @ [mrkbrz work and ported to QC.

Part of a growing raft of constructs exploiting the facility, textured & untextured to re-create video using OpenCL, upon and within mesh renders, and by various other means.

This construct dispenses with Meshes entirely, although use could be made of some sort of queued Image to Structure setup or another, similar construct to process the video feed say into a Particle Mesh render, re-creating the video feed presented.

This is the video feed before being filtered through the OpenCL kernel.

& this is the video feed after being filtered through the OpenCL kernel

See elsewhere in the Repository for the Particle Mesh variant.

It, OpticalFlow_OpenCLParticleMesh, is the pepper to the salt of this construct.

OpticalFlow_OpenCLParticleMesh (Composition by cybero)

Author: cybero
License: (unknown)
Date: 2010.06.06
Compatibility: 10.6
Categories:
Required plugins:
(none)

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.

Ogg {please support]

cybero's picture

Can Quartz Crystal allow for the incorporation of the usual configuration facilities that the various components installed allow for say in QuickTime Pro when outputting from Quartz Crystal ?

Just be nice to be fine tuning output to .ogg and .mp4 for different media types - iPhone, iPod, PC, PSP, etc.

t-linked + cybero mixdown + music visualizers

cybero's picture

A] - a mixdown of the Audio Tools synced offline rendering of the examples posted @ t-linked.com, with the kind permission of their author, Pascal Lesport.

t-linked + cybero mixdown - mini showreel from cybero on Vimeo.

With the kind permission of Pascal Lesport, the original author of some fine OpenCL examples to be found @ t-linked.com , a fresh mixdown of some of the examples posted.

Expect a posting of the visualizer versions of these Audio Tools based compositions soon.

Those files have been partially re-configured to suit an Audio Tools installation, although the original t-linked OpenCL & GLSL have been left , essentially, intact.

The compositions are audio synced to the mixdown tracks that also affect the resulting rotations, transformations, positions and other dynamic parameters, drawing into meshes and GLSL grids , sometimes with a static DAE input, otherwise with an OpenCL Particle output.

What really distinguishes these OpenCL compositions is that they employ a combination of Supersampling and Feedback to further change the rendered result of the OpenCL kernel, the output of which kernel has already been affected by the peak and spectrum [low, mid, high] data retrieved by Audio Tools from Kineme.

Offline rendered in Quartz Crystal to the tunes that they were set to. Resynced and output from GarageBand, wherein the original midid transcripts and loop mixes were created.

still being processed at the time of writing

B] - a set of re-drafted and protocolised for iTunes set of QC visualizers, employing the OpenCL & GLSL within the t-linked examples, as well as other components built in by yours truly :-).

Download link ----> [t-linked+cybero](http://cybero.co.uk/OpenCLOnline/t-linked-opencl plus-cybero.zip)