align_image_with_openpnm#

Import packages#

import matplotlib.pyplot as plt

import porespy as ps

ps.visualization.set_mpl_style()

Create image and variables#

im = ps.generators.blobs([500, 500])
plt.figure(figsize=[7, 7])
plt.axis(False)
plt.imshow(im);
../../../_images/247be3ebc06c9a2f0294e0dbbe1c9700ad503aa6ca0b106749941c47d631b51f.png

Apply tool#

im = ps.tools.align_image_with_openpnm(im=im)
plt.figure(figsize=[7, 7])
plt.axis(False)
plt.imshow(im);
../../../_images/749387e3bfa1c9aa89bef8ea91e013237426c173c2111a35670530b9847d1143.png