darsia.CO2Analysis#

class CO2Analysis(baseline, config, update_setup=False)[source]#

Bases: ABC, ConcentrationAnalysisBase

General setup for an image analysis of time series aiming at analyzing CO2 evolution. This class inherits from darsia.TracerAnalysis.

Constructor for two-component analysis, where the two specific components are identified with CO2(g) and CO2 saturated water. Pure water will be treated as neutral (third) phase.

Parameters:
baselinestr, Path or list of such

See darsia.AnalysisBase.

configstr or Path

See darsia.AnalysisBase.

update_setupbool

See darsia.AnalysisBase.

Methods

batch_analysis(images, **kwargs)

Standard batch analysis.

define_co2_analysis()

Empty method which should define self.co2_analysis of type darsia.ConcentrationAnalysis.

define_co2_gas_analysis()

Empty method which should define self.co2_gas_analysis of type darsia.ConcentrationAnalysis.

determine_co2()

Extract CO2 from currently loaded image, based on a reference image.

determine_co2_gas()

Extract CO2(g) from currently loaded image, based on a reference image.

load_and_process_image(path)

Load image for further analysis.

single_image_analysis(img, **kwargs)

Standard workflow to analyze CO2 phases.

Attributes

config

Config dict from file.

width

Physical width of image.

height

Physical height of image.

origin

Physical origin of origin voxel.

processed_baseline_images

List of corrected baseline images.

drift_correction

Drift correction wrt.

deformation_correction

Local deformation correction wrt.

color_correction

Color correction based on reference colors.

translation_correction

Translation correction based on fixed absolute translation.

curvature_correction

Curvature correction.

uncorrected_base

Baseline image stored as physical image but without corrections.

drift_corrected_base

Baseline image corrected for drift only.

abstractmethod define_co2_analysis()[source]#

Empty method which should define self.co2_analysis of type darsia.ConcentrationAnalysis.

abstractmethod define_co2_gas_analysis()[source]#

Empty method which should define self.co2_gas_analysis of type darsia.ConcentrationAnalysis.

determine_co2()[source]#

Extract CO2 from currently loaded image, based on a reference image.

Returns:
darsia.Image

Binary image of spatial CO2 distribution.

determine_co2_gas()[source]#

Extract CO2(g) from currently loaded image, based on a reference image.

Returns:
darsia.Image

Binary image of spatial CO2(g) distribution.