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_howtos_align_image_with_openpnm_4_0.png

Apply tool

[3]:
im = ps.tools.align_image_with_openpnm(im = im)
plt.figure(figsize=[7, 7])
plt.axis(False)
plt.imshow(im);
[3]:
<matplotlib.image.AxesImage at 0x7f37b88da850>
../../../_images/examples_tools_howtos_align_image_with_openpnm_6_1.png