import blobDetection.*; 

BlobDetection theBlobDetection; 
PImage img; 

void setup() { 
	img = loadImage("image.gif"); 
	theBlobDetection = new BlobDetection(img.width, img.height); 
	theBlobDetection.setPosDiscrimination(false); 
	theBlobDetection.setThreshold(0.38f); 
	theBlobDetection.computeBlobs(img.pixels); 

	size(img.width*3, img.height*3);
	smooth();
	noLoop();
} 

void draw() { 
	image(img,0,0,width,height);
	background(0); 
	drawBlobsAndEdges(); 
} 

void drawBlobsAndEdges() { 
	noFill(); 
	Blob b; 
	EdgeVertex eA,eB; 
	for (int n=0 ; n