Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Jitter & Eyesweb Volker Krüger Aalborg Media Lab Aalborg University Copenhagen

Similar presentations


Presentation on theme: "Introduction to Jitter & Eyesweb Volker Krüger Aalborg Media Lab Aalborg University Copenhagen"— Presentation transcript:

1 Introduction to Jitter & Eyesweb Volker Krüger Aalborg Media Lab Aalborg University Copenhagen vok@media.aau.dk

2 What are Jitter and Eyesweb good for? Intuitive programming without programming! Big variety of functionality, incl. those that you have learned about Easy to use: Simply connect the function boxes Fast prototyping of ideas Jitter: Enhancement to Max/MSP Introduction to Jitter & Eyesweb Agenda 1.Intro to the Jitter specific issues 2.Walk-through through some simple key- examples of Jitter and Eyesweb

3 Matrices – Coordinates and Dimensions Main important data type in Jitter: Matrices! Like images: they have coordinates (x,y) and a size! Matrices can have several dimensions: (x,y,z), (x,y,t)

4 Matrices -- Planes When displaying, e.g., color images, each pixel is represented with 3 values: R, G, B! This is handled in Jitter with Planes. The A plane can be used for alpha blending.

5 Allowed Datatypes Available datatypes are: –char (8 bit), long (32 bit) –float32 (32 bit), float64 (64 bit) Functions usually adapt to input, no conversions needed! Parameter can be casted!

6 Like in Max/MSP, Jitter functions can have –Parameters –Attributes Can be given as default values (order matters!) Attributes can be given explicitly (no blank after “@”): Can be changes during program execution Attributes and Arguments!

7 Arguments or Attributes? Parameters can be passed as arguments to the functions: Arguments have to be passed before attributes are set. The following are equivalent:

8 In order to read out the attribute setting: To read out the value of a particular attribute: Getting Attribute Information

9 First Example: Playing a video read reads the name and passes it on. jit.qt.movie reads video into memory: Parameters: size jit.window opens a window and attempts to display the movie. Parameters: window name, corner position of the window. No data is being copied, except for references!! And not data is being displayed either!!!

10 The output has to be triggered! jit.window needs to be triggered! The example sends a bang every 40 ms. To restart the movie, set the attribute time to zero!

11 Example for Message Passing

12 Reading and Displaying Videos in Eyesweb

13 Working with Matrices How to generate a matrix of a particular type: This reserves a region inside the computer memory for the data Parameters are planecount, type and dim.

14 Printing matrix data To print the matrix data a special function exists: jit.print print left prints the reference to the matrix. It is a random name!

15 Setting and reading values setcell getcell setall clear

16 Window object Having set the matrix values we can output the values visually using jit.pwindow It can be found in the task bar

17 Setting the values of the entire matrix Setting each single matrix value separately is tedious. Alternative: Use loops and functions: Uzi sends numbers 1 …

18 Matrices in Eyesweb Hardly ever used explicitly! Matrices are used –in replacement of images –as filter matrices

19 Jitter Operators In Jitter, mathematical operators can be applied to matrices: This allows to generate important functions like thresholding!

20 Jitter Operators For multi-band images, the operator can be applied to each image band separately:

21 Operators in Eyesweb

22 Connection to the outside world Additional programs can be developped for Jitter and Eyesweb. –Possible in Java and C/C++ Eyesweb allows TCP/IP interfacing (e.g. network cameras, process communication)

23 Things to remember: Why you were here today! Jitter and Eyesweb base everything on Matrices Intuitive to use They process video data Jitter and Eyesweb are easy to use and are the basic systems to use for your project. Info for Jitter: www.cycling74.com Info for Eyesweb: www.eyesweb.org www.media.aau.dk/~vok/lectures/ap1_11_05/ap11.html

24 Finally: Questions? Exercises under http://media.aau.dk/~vok/lectures/ap1_11_05/ex11.p df


Download ppt "Introduction to Jitter & Eyesweb Volker Krüger Aalborg Media Lab Aalborg University Copenhagen"

Similar presentations


Ads by Google