fft_correlator_1d

giant.image_processing:

giant.image_processing.fft_correlator_1d(extracted_lines, predicted_lines)[source]

This function performs 1d correlation based on extracted lines and predicted lines.

Each line of the input matrices should be a pair of scan lines to be correlated. The result of this function will be a numpy array of correlation coefficients for the cross correlation of the lines.

The correlation is computed using discrete fourier transforms to transform the scan lines into the frequency domain. The correlation is then performed in the frequency domain and then transformed back into the spatial domain. Finally, the spatial correlation lines are normalized to have values between -1 and 1 in the usual sense.

Parameters:
  • extracted_lines (ndarray) – array of extracted lines to be correlated

  • predicted_lines (ndarray) – array of predicted lines to be correlated

Returns:

array of correlation coefficients for each scan line pair.

Return type:

ndarray