[Julius Tarng] Recreating Jason Salavon

Source material



Results




Capturing imagery

TOMORROW: DO BOTH WEBCAM AND SCREENSHOT AT THE SAME TIME AT THE SAME INTERVAL!
juxtapose (set up so its easy to change each side via enum)
  • average : average
  • max : max
  • min : min
  • mode : mode
  • average/mode/most saturated color reduced into pixel (every frame of titanic style)

other ideas:
  • face detection > paths > draw them all out on top of each other (or average/min/max them)
Capture

Webcam
brew install imagesnap
imagesnap -t 5 -d "webcamname"
Screenshot
while :;do screencapture ~/Desktop/screenshot/$(date +%y%m%d%H%M%S).png;sleep 30;done
Every time my time out app goes off
??? not sure, would have to write cocoa likely

Process



+ Max/Min
+Median
Mode instead of Median
HSB (mistake)
for(int i = 0; i < int(images.back().getWidth()); i++) {
for(int j = 0; j < int(images.back().getHeight()); j++) {
float sumR = 0;
float sumG = 0;
float sumB = 0;
float maxR = 0;
float maxG = 0;
float maxB = 0;
float minR = 255;
float minG = 255;
float minB = 255;
vector rs;
vector gs;
vector bs;
for (int k=0;k<images.size();k++) {
ofColor color = images[k].getColor(i, j);
float r = color.getHue(); // or color.r
float g = color.getSaturation(); // or color.g