Fast Extraction of BRDFs and Material Maps from Images