porespy.filters#
This module contains a variety of functions for altering images based on the structural characteristics, such as pore sizes. A definition of a filter is a function that returns an image the same shape as the original image, but with altered values.
Functions#
|
Adds chords to the void space in the specified direction. |
|
Adds chords to the void space in all three principle directions. |
|
Applies padding to an image before sending to func, then extracts |
|
Uses the Washburn equation to convert distance transform values to a capillary |
|
Performs the specfied operation "chunk-wise" in parallel using dask. |
|
Perform dilation with a round structuring element |
|
Replaces each void voxel with the linear distance to the nearest solid |
|
Perform erosion with a round structuring element |
|
Perform morphological operations on binary images using fft approach for |
|
Fills all closed pores that are isolated from the main void space. |
|
Fills invalid pores which are either closed or do not span the domain |
|
Fill surface pores |
|
Finds closed pores that a not connected to any surface |
|
Identifies all voxels that are not connected to specified inlets |
Label points in a distance transform that are closer to image boundary |
|
|
Finds all solid that that is not attached to main solid structure. |
|
Finds invalid pores which are either closed or do not span the domain |
|
Finds local maxima in the distance transform |
|
Finds small isolated clusters of voxels which were identified as trapped and |
|
Finds surface pores that do not span the domain |
|
Find the trapped regions given an invasion sequence map and specified outlets |
|
Floods/fills each region in an image with a single value based on the |
|
Flood each isolated region in an image with a constant value calculated by |
|
Replaces each voxel with the highest value along the given axis. |
|
Insert a maximally inscribed sphere at every pixel labelled by sphere radius |
|
Insert a maximally inscribed sphere at every pixel labelled by sphere radius |
|
Calculates the radius of the largest sphere that overlaps each voxel while |
|
Calculates the radius of the largest sphere that overlaps each voxel while |
|
Insert a maximally inscribed sphere at every pixel labelled by sphere radius |
|
Apply the non-local means filter to each 2D layer of a stack in parallel. |
|
Identifies the voxels in regions that border N other regions. |
|
Converts a capillary pressure map to a saturation map |
|
Converts a capillary pressure map to a sequence map |
|
Each location is assigned the radius of the largest sphere that can reach it |
|
Remove all dangling ends or tails of a skeleton |
|
Any peaks that are broad or elongated are replaced with a single voxel |
|
Replace each voxel with the size of the region to which it belongs |
|
Converts a saturaiton map to a sequence map |
|
Converts a sequence map to a saturation map |
|
Converts size map into capillary pressure map |
|
Converts size map to a saturation map |
|
Converts a size map to a sequence map |
|
Partition the void space into pore regions using a marker-based |
|
This function partitions an imaging oontain an arbitrary number of |
|
Performs SNOW algorithm in parallel (or serial) to reduce time |
|
Removes foreground voxels not connected to specified inlets. |
|
Trims local extrema in greyscale values by a specified amount. |
|
Removes all solid that that is not attached to main solid structure. |
|
Removes peaks that are nearer to another peak than to solid |
|
Remove all nonpercolating pores between specified locations |
|
Removes peaks that were mistakenly identified because they lied on a |
|
Removes peaks that were mistakenly identified because they lied on a |
|
Removes clusters voxel of a given size or smaller |