Machine learning and digital images of porous materials: from rock to the human brain | Synapse