[ SM3117 ] - [ Class 08 ] - Depth

Class 08 - Director workshop - Depth

 

1

We can reduce the bit depth of the live image, from 24 bits to 16 bits, 8, 4 and 1 bits.

 

2

Essential visual information can be extracted in the reduced depth images.

 

3

You can copy the cameraImage first to a temporary image in less bit depth. Then copy that image to the stage afterwards.

img1 = image(160,120,1);
img2 = member("webcam").cameraImage;
img1.copyPixels(img1,img1.rect,img2.rect);
 
4

All together