HistogramNormalization_05de3250b4644784a7fd257be8a0e062¶
- author:
Dragonfly Team
- contact:
- email:
- organization:
Comet Technologies Canada Inc.
- address:
460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7
- copyright:
Comet Technologies Canada Inc. All rights reserved 2023.
- date:
Feb 06 2019 11:54
- dragonflyVersion:
4.0.0.11112
- UUID:
d2444f1e2a2f11e9853540167e7aa991
Class Code¶
- class OrsPythonPlugins.HistogramNormalization_05de3250b4644784a7fd257be8a0e062.HistogramNormalization_05de3250b4644784a7fd257be8a0e062.HistogramNormalization_05de3250b4644784a7fd257be8a0e062(*args, **kwargs)¶
- classmethod getMainFormClass()¶
Gets the class of the main form
- Returns:
output –
- static hist_match(target, reference)¶
Adjust the pixel values of a grayscale image such that its histogram matches that of a target image
Arguments:¶
- source: np.ndarray
Image to transform; the histogram is computed over the flattened array
- reference: np.ndarray
Template image; can have different dimensions to source
Returns:¶
- matched: np.ndarray
The transformed output image
- interfacemethod normalizeHistogram(target: Channel, targetTIndex: int, reference: Channel, referenceTIndex: int = 0) None¶
Normalize target channel so that its histogram matches the one of the reference data set, for specific Ts
- Parameters:
target (ORSModel.ors.Channel) – source dataset
targetTIndex (int) – timestep to normalize in the target channel
reference (ORSModel.ors.Channel) – reference dataset
referenceTIndex (int) – timestep to use in the reference channel
