prepare_experimental#
- NormalizedCrossCorrelationMetric.prepare_experimental(patterns: Union[ndarray, Array]) Union[ndarray, Array][source]#
Prepare experimental patterns before matching to dictionary patterns in
match().- Patterns are prepared by:
Setting the data type to
dtype.Excluding the experimental patterns where
navigation_maskisFalseif the mask is set.Reshaping to shape
(n_experimental_patterns, -1)Applying a signal mask if
signal_maskis set.Rechunking if
rechunkisTrue.Normalizing to a mean of 0 and a standard deviation of 1.
- Parameters:
- patterns
Experimental patterns.
- Returns:
prepared_patternsPrepared experimental patterns.