http://www.alphamatting.com/code.php http://www.computervisiononline.com/books/computer-vision/image-matting