align_image_with_openpnm#

Import packages#

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#

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

Apply tool#

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