darsia.CO2Analysis#
- class CO2Analysis(baseline, config, update_setup=False)[source]#
Bases:
ABC,ConcentrationAnalysisBaseGeneral 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:
Methods
batch_analysis(images, **kwargs)Standard batch analysis.
Empty method which should define self.co2_analysis of type darsia.ConcentrationAnalysis.
Empty method which should define self.co2_gas_analysis of type darsia.ConcentrationAnalysis.
Extract CO2 from currently loaded image, based on a reference image.
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
configConfig dict from file.
widthPhysical width of image.
heightPhysical height of image.
originPhysical origin of origin voxel.
processed_baseline_imagesList of corrected baseline images.
drift_correctionDrift correction wrt.
deformation_correctionLocal deformation correction wrt.
color_correctionColor correction based on reference colors.
translation_correctionTranslation correction based on fixed absolute translation.
curvature_correctionCurvature correction.
uncorrected_baseBaseline image stored as physical image but without corrections.
drift_corrected_baseBaseline 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.ImageBinary image of spatial CO2 distribution.
- determine_co2_gas()[source]#
Extract CO2(g) from currently loaded image, based on a reference image.
- Returns:
darsia.ImageBinary image of spatial CO2(g) distribution.