align_image_with_openpnm#

Import packages#

[1]:
import numpy as np
import porespy as ps
import scipy.ndimage as spim
import matplotlib.pyplot as plt
import skimage
ps.visualization.set_mpl_style()

Create image and variables#

[2]:
im = ps.generators.blobs([500, 500])
plt.figure(figsize=[7, 7])
plt.axis(False)
plt.imshow(im);
../../../_images/examples_tools_reference_align_image_with_openpnm_4_0.svg

Apply tool#

[3]:
im = ps.tools.align_image_with_openpnm(im = im)
plt.figure(figsize=[7, 7])
plt.axis(False)
plt.imshow(im);
../../../_images/examples_tools_reference_align_image_with_openpnm_6_0.svg