darsia.porosity_based_averaging#
- porosity_based_averaging(labels, porosity, ref_image, threshold=0.3, disk_size=5, rev_size=0.005)[source]#
Custom (FFUM) averaging function that uses porosity in averaging.
Porosity values below 0.3 are not considered in the averaging process. Layer boundaries in the labels image are deactivated in the porosity image.
- Parameters:
- labels
darsia.Image Labels image containing the segmentation of the geometry.
- porosity
darsia.Image Image containing porosity values.
- ref_image
darsia.Image Reference image for the REV.
- labels
- Returns:
darsia.VolumeAveragingVolume averaging object that uses the porosity image.