Skip to content

Commit

Permalink
Merge pull request worldveil#97 from markstrefford/master
Browse files Browse the repository at this point in the history
Updated link to Scipy ndimage iterate_structure page
  • Loading branch information
worldveil authored May 27, 2019
2 parents 6fe89c5 + 541b3b4 commit e0f2577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dejavu/fingerprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def fingerprint(channel_samples, Fs=DEFAULT_FS,


def get_2D_peaks(arr2D, plot=False, amp_min=DEFAULT_AMP_MIN):
# http://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.morphology.iterate_structure.html#scipy.ndimage.morphology.iterate_structure
# http://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.iterate_structure.html#scipy.ndimage.iterate_structure
struct = generate_binary_structure(2, 1)
neighborhood = iterate_structure(struct, PEAK_NEIGHBORHOOD_SIZE)

Expand Down Expand Up @@ -142,7 +142,7 @@ def generate_hashes(peaks, fan_value=DEFAULT_FAN_VALUE):
for i in range(len(peaks)):
for j in range(1, fan_value):
if (i + j) < len(peaks):

freq1 = peaks[i][IDX_FREQ_I]
freq2 = peaks[i + j][IDX_FREQ_I]
t1 = peaks[i][IDX_TIME_J]
Expand Down

0 comments on commit e0f2577

Please sign in to comment.