apply_chords
¶
Adds chords to the void space in the specified direction
import matplotlib.pyplot as plt
import numpy as np
import porespy as ps
import scipy.ndimage as spim
import skimage
ps.visualization.set_mpl_style()
[01:01:07] ERROR PARDISO solver not installed, run `pip install pypardiso`. Otherwise, _workspace.py:56 simulations will be slow. Apple M chips not supported.
shape
¶
spacing
¶
Separation between chords. The default is 1 voxel. This can be decreased to 0, meaning that the chords all touch each other, which automatically sets to the label
argument to True
axis
¶
The axis along which the chords are drawn.
trim_edges
¶
Whether or not to remove chords that touch the edges of the image. The default is True
.
label
¶
If True
the chords in the returned image are each given a unique label, such that all voxels lying on the same chord have the same value. This is automatically set to True
if spacing is 0, but is False
otherwise.