Statistical Microstructure Generation And 3D Microstructure Geometry Extraction