Image processing code for characterization of multiphase flow in porous media


This work utilizes microfluidic experiments to gather data captured as snapshots during the experiments. These snapshots provide real-time information and undergo image processing to derive the required data. Image processing involves several steps tailored to the investigations:

Making a reference image (mask): This process involves creating a reference image, or mask, to document the initial conditions. For instance, the porous domain is imaged when saturated with one phase to differentiate various areas containing different phases. Reading and cutting images: Images showing changes in fluid volume fraction are selectively chosen and processed. Each image is read into MATLAB, and the area of interest is extracted. Image segmentation: Labeling each pixel of the images is done via thresholding and edge detection. Measuring parameters: Parameters like saturation, interfacial length, area, contact angle, and curvature are measured. These parameters play a crucial role in analyzing the experiments. The interfacial area is calculated through various formulations. Calculating capillary pressure: Several forms of capillary pressure are calculated using information derived from the experiments. REV-Scale Quantities: Parameters are upscaled to represent Representative Elementary Volume (REV)-scale values essential for continuum theories. REV-scale capillary pressure is derived from pore-scale values using appropriate averaging techniques.

MATLAB, 2019a (

Related Identifier IsCitedBy
Related Identifier IsCitedBy
Metadata Access
Creator Vahid Dastjerdi, Samaneh ORCID logo; Steeb, Holger ORCID logo
Publisher DaRUS
Contributor Vahid Dastjerdi, Samaneh; Steeb, Holger
Publication Year 2024
Funding Reference DFG EXC 2075 - 390740016
Rights MIT License; info:eu-repo/semantics/openAccess;
OpenAccess true
Contact Vahid Dastjerdi, Samaneh (Institute of Applied Mechanics (CE) & SC SimTech, University of Stuttgart); Steeb, Holger (Institute of Applied Mechanics (CE) & SC SimTech, University of Stuttgart)
Resource Type Dataset
Format image/tiff; text/x-matlab; application/pdf; text/markdown
Size 739550; 788232; 888772; 1060130; 1180024; 1267860; 1426492; 1522834; 1552862; 1559342; 740000; 2489; 144138; 14091; 119872; 29668; 2760; 2894; 34892; 738626; 120058
Version 1.0
Discipline Construction Engineering and Architecture; Earth and Environmental Science; Engineering; Engineering Sciences; Environmental Research; Fluid Mechanics; Geosciences; Heat Energy Technology, Thermal Machines, Fluid Mechanics; Mechanical and industrial Engineering; Mechanics; Mechanics and Constructive Mechanical Engineering; Natural Sciences; Thermal Engineering/Process Engineering