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);
Apply tool#
im = ps.tools.align_image_with_openpnm(im=im)
plt.figure(figsize=[7, 7])
plt.axis(False)
plt.imshow(im);