Effective Transport Properties of Porous Materials -- A 3d image correlation algorithm