dacapo.experiments.trainers.gp_augments.intensity_scale_shift_config
Classes
This class is an implementation of AugmentConfig that applies intensity scaling and shifting. |
Module Contents
- class dacapo.experiments.trainers.gp_augments.intensity_scale_shift_config.IntensityScaleShiftAugmentConfig
This class is an implementation of AugmentConfig that applies intensity scaling and shifting.
- scale
A constant to scale your intensities.
- Type:
float
- shift
A constant to shift your intensities.
- Type:
float
- node(raw_key, _gt_key=None, _mask_key=None)
Get a gp.IntensityScaleShift node.
Note
This class is a subclass of AugmentConfig.
- scale: float
- shift: float
- node(raw_key: gunpowder.ArrayKey, _gt_key=None, _mask_key=None)
Get a gp.IntensityScaleShift node.
- Parameters:
raw_key (gp.ArrayKey) – Key for raw data.
_gt_key ([type], optional) – Specific key for ground truth data, not used in this implementation. Defaults to None.
_mask_key ([type], optional) – Specific key for mask data, not used in this implementation. Defaults to None.
- Returns:
Intensity scaling and shifting node which can be incorporated in the pipeline.
- Return type:
gunpowder.IntensityScaleShift
- Raises:
NotImplementedError – This method is not implemented.
Examples
>>> node = intensity_scale_shift_augment_config.node(raw_key)