Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    prussiap
    @prussiap
    got here at like 6:15.. falling asleep now
    prussiap
    @prussiap
    ha i saw it in the other chat :)
    i like that it embeds

    import SimpleOpenNI.*;
    SimpleOpenNI kinect;

    int closestValue;
    int closestX;
    int closestY;

    void setup()
    {
    size(640, 480);
    kinect = new SimpleOpenNI(this);
    kinect.enableDepth();
    }

    void draw()
    {
    closestValue = 8000;

    kinect.update();

    // get the depth array from the kinect
    int[] depthValues = kinect.depthMap();

    // for each row in the depth image
    for(int y = 0; y < 480; y++){
      // look at each pixel in the row
      for(int x = 0; x < 640; x++){
        // pull out the corresponding value from the depth array
        int i = x + y * 640;
        int currentDepthValue = depthValues[i];
    
        // if that pixel is the closest one we've seen so far
        if(currentDepthValue > 0 && currentDepthValue < closestValue){
          // save its value
          closestValue = currentDepthValue;
          // and save its position (both X and Y coordinates)
          closestX = x;
          closestY = y;
        }
      }
    }

    //draw the depth image on the screen
    image(kinect.depthImage(),0,0);

    // draw a red circle over it,
    // positioned at the X and Y coordinates
    // we saved of the closest pixel.
    fill(255,0,0);
    ellipse(closestX, closestY, 25, 25);
    }

    doh how do i embed the whole thing
    import SimpleOpenNI.*;
    SimpleOpenNI kinect;
    
    int closestValue;
    int closestX;
    int closestY;
    
    void setup()
    {
      size(640, 480);
      kinect = new SimpleOpenNI(this);
      kinect.enableDepth();    
    }
    
    void draw()
    {
      closestValue = 8000;
    
      kinect.update();
    
      // get the depth array from the kinect
      int[] depthValues = kinect.depthMap();
    
        // for each row in the depth image
        for(int y = 0; y < 480; y++){
          // look at each pixel in the row
          for(int x = 0; x < 640; x++){
            // pull out the corresponding value from the depth array
            int i = x + y * 640;
            int currentDepthValue = depthValues[i];
    
            // if that pixel is the closest one we've seen so far
            if(currentDepthValue > 0 && currentDepthValue < closestValue){
              // save its value
              closestValue = currentDepthValue;
              // and save its position (both X and Y coordinates)
              closestX = x;
              closestY = y;
            }
          }
        }
    
      //draw the depth image on the screen
      image(kinect.depthImage(),0,0);
    
      // draw a red circle over it, 
      // positioned at the X and Y coordinates 
      // we saved of the closest pixel.
      fill(255,0,0);
      ellipse(closestX, closestY, 25, 25);
    }
    prussiap
    @prussiap
    Saturday, 1/24 only. Amazon just announced they will be offering 1-year of Amazon Prime for $72. The normal price of Prime these days is $99/yr.
    what do you think of this monitor for the multimonitor mount http://www.frys.com/product/8291916
    Patrick Kennedy
    @unlikely
    test
    nop, didn’t work. :( (trying to get connected to gitter via IRC so I have less clients running)
    prussiap
    @prussiap
    worked
    i just never have gitter on
    got an email with msgs
    Patrick Kennedy
    @unlikely
    lol
    no, what didn’t work was the irc channel at the other end that was supposed to receive that message
    turns out gitter is deploying new irc infrastructure at moment
    Patrick Kennedy
    @unlikely
    test from IRC client
    w00t it worked
    huh… IRC client can send messages, but seems like they aren’t receiving?
    prussiap
    @prussiap
    interesting
    Patrick Kennedy
    @unlikely
    it works now. but the irc bridge is real-time-only — doesn’t catch up on conversation history, and doesn’t show your posts from a different client. so you only see your posts from IRC.
    it’s still a work in progress on their side, they’re improving the infrastructure still.
    prussiap
    @prussiap
    ok