Rock Texture Characterization from Automated Petrographic Analysis