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()
[01:08:32] ERROR    PARDISO solver not installed, run `pip install pypardiso`. Otherwise,          _workspace.py:56
                    simulations will be slow. Apple M chips not supported.                                         

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);