Automated porosity estimation using CT-scans of extracted core data