To simplify the use of a dynamic mask with image, I try to use the PGraphics class as an off screen buffer to store the image for a subsequent mask operation. The foreground image is the live video input from the webcam. The mouse drag operation will draw a dynamic mask to reveal the webcam image. It makes use of the fact that the PGraphics class is a subclass of PImage. The mask function can directly take the PGraphics instance as input. Here is a sample screen shot.
Continue reading “Processing Test with the PGraphics”
The second performance test is to compare the performance among three ways to copy from one PImage to another with exactly the same size. The first method uses the PImage.copy function. The second method use the arrayCopy function to copy directly from one pixels array to another. The third method uses a linear loop to traverse the pixels array one by one.
Continue reading “Processing Performance Test 2”
I try to compare various methods to handle mainly image-based computer graphics in the Processing environment and publish the results for developers’ reference. The first one is a very straightforward test by comparing two ways to modify all pixels in a single PImage object instance.
The first way is nested loops for x and y dimensions and the second way is to traverse the whole pixels array in one linear loop.
Continue reading “Processing Performance Test 1”
Here is the writing by Genetic Moo (Tim and Nicola) about my work participating in the Microworld – Lumen Prize Exhibition in Hong Kong. Below is the documentation video from Genetic Moo. Thanks Tim and Nicola for the invitation.
Continue reading “Writing about my work – Movement in Time”
The new Kinect for Windows SDK library is now officially listed under the Libraries section of the Processing website. Please try and test. Feedback welcome.
The Kinect for Windows SDK library for Processing is renamed again to cater for the naming convention in the Processing standard. It is now called Kinect4WinSDK. The main class is Kinect, instead of P5Kinect or PKinect.
The new library is built in Windows 7, with Java JRE 1.7u60, Kinect for Windows SDK 1.8, and tested in Processing 2.2.1.