static L audio_streaksUsingBand_v1(BWImage img, IntRange band, O... _) { BWImage bandImage = clipBWImage(img, 0, band.start, img.getWidth(), band.end); BWImage img2 = bwAutoContrast(squishTo1Pixel(bandImage)); optOutParam(_, processedImage := img2); float threshold = optParam(_, 'threshold, 0.5f); L streaks = findBrightHorizontalStreaks(img2, threshold); streaks = joinIntRangesWithDistanceLessThan(streaks, 10); if (boolOptParam(_, 'printStreaks)) printStruct(+streaks); ret streaks; }