openpiv.pyprocess.find_second_peak

openpiv.pyprocess.find_second_peak(corr, i=None, j=None, width=2)[source]

Find the value of the second largest peak.

The second largest peak is the height of the peak in the region outside a 3x3 submatrxi around the first correlation peak.

Parameters:
  • corr (np.ndarray) – the correlation map.
  • i,j (ints) – row and column location of the first peak.
  • width (int) – the half size of the region around the first correlation peak to ignore for finding the second peak.
Returns:

  • i (int) – the row index of the second correlation peak.
  • j (int) – the column index of the second correlation peak.
  • corr_max2 (int) – the value of the second correlation peak.