Introduction to Programmingusing the Processing languageLecturer: Maarten Lamers of the Media Technology MSc program at Leiden University Teaching assistant: Joris Slob Course developed by Bas Haring (2004) Alterations by Maarten Lamers (2005, 2006, 2007) Introduction Lecture I Lecture II Lecture III Lecture IV Lecture V Lecture VI Lecture VII Fun |
|
Programming concepts |
Dealing with images and video in Processing Using libraries |
Reserved words |
PImage loadPixels() brightness() color pixels[] red() loadImage() updatePixels() green() image() copy() blue() import |
Remark |
A fairly good explanation of dealing with media representations in Processing is written by Davide Rocchesso and Pietro Polotti. It discusses representations for images, colors, typographic elements (fonts), and sounds in the Processing language. You can find it at http://cnx.org/content/m12983/. |
Example VII.4 |
This example shows how to work with live input from a video camera. It uses the JMyron video capture and computer vision library (the standard video library in Processing gives many problems) and pixelizes the video input. Run the code in your Processing environment, and don't forget to change the size() statement to your camera's resolution.Complete source |