extract_subsection
¶
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:02:47] ERROR PARDISO solver not installed, run `pip install pypardiso`. Otherwise, _workspace.py:56 simulations will be slow. Apple M chips not supported.
Generate image for testing¶
Demonstration¶
This tool was designed to ‘uppad’ an image that has had an equal amount of padding applied to all sides. The arguments assume that you know the original size of the image and wish to retrieve it back: