Automatic In Situ Characterization of Pore Morphology And Wettability