Indirect material density measurement by a simple digital imaging method