darsia.AnalysisBase#
- class AnalysisBase(baseline, config, update_setup=False)[source]#
Bases:
objectStandard setup for an image analysis, in particular useful when analyzing a larger set of images in a time series.
Constructor.
Sets up fixed config file required for preprocessing.
- Parameters:
Methods
batch_analysis(images, **kwargs)Standard batch analysis.
load_and_process_image(path)Load image for further analysis.
single_image_analysis(img, **kwargs)Standard workflow to analyze CO2 phases.
Attributes
Config dict from file.
Physical width of image.
Physical height of image.
Physical origin of origin voxel.
List of corrected baseline images.
Drift correction wrt.
Local deformation correction wrt.
Color correction based on reference colors.
Translation correction based on fixed absolute translation.
Curvature correction.
Baseline image stored as physical image but without corrections.
Baseline image corrected for drift only.
- batch_analysis(images, **kwargs)[source]#
Standard batch analysis.
- Parameters:
- images
listofPath Paths to batch of images.
- **kwargs
Optional keyword arguments used in single_image_analysis.
- images
- load_and_process_image(path)[source]#
Load image for further analysis. Do all corrections and processing needed.
- Parameters:
- path
strorPath Path to image.
- path
- Returns:
darsia.ImageProcessed image.
- single_image_analysis(img, **kwargs)[source]#
Standard workflow to analyze CO2 phases.
- Parameters:
- img
PathorImage Path to single image.
- **kwargs
Optional keyword arguments.
- img
- color_correction#
Color correction based on reference colors.
- config#
Config dict from file.
- curvature_correction#
Curvature correction.
- deformation_correction#
Local deformation correction wrt. baseline image.
- drift_corrected_base#
Baseline image corrected for drift only.
- drift_correction#
Drift correction wrt. baseline image.
- height#
Physical height of image.
- origin#
Physical origin of origin voxel.
- processed_baseline_images#
List of corrected baseline images.
- translation_correction#
Translation correction based on fixed absolute translation.
- uncorrected_base#
Baseline image stored as physical image but without corrections.
- width#
Physical width of image.