public Blob(BlobDetection parent) { this.parent = parent; line = new int[MAX_NBLINE]; // stack of index nbLine = 0; }
// Use this for initialization void Start() { Processing.SCREEN_W = Screen.width; Processing.SCREEN_H = Screen.height; camTexture = new WebCamTexture(); camTexture.Play (); cam = new PImage (w, h); img = new PImage (w, h); // imgに対して輪郭抽出処理を行う theBlobDetection = new BlobDetection (img.width, img.height); theBlobDetection.setPosDiscrimination (true); }
// Use this for initialization void Start() { Processing.SCREEN_W = Screen.width; Processing.SCREEN_H = Screen.height; int w = texture.width; int h = texture.height; /* texture = new Texture2D(320, 240); */ cam = new PImage (w, h); img = new PImage (w, h); // imgに対して輪郭抽出処理を行う theBlobDetection = new BlobDetection (img.width, img.height); theBlobDetection.setPosDiscrimination (true); }