static L audio_entryPointsUsingBand_v1(BWImage img, IntRange band, O... _) { BWImage bandImage = clipBWImage(img.image, 0, band.start, img.image.getWidth(), band.end); BWImage img2 = bwAutoContrast(squishTo1Pixel(bandImage)); optOutParam(_, processedImage := img2); L streaks = findBrightHorizontalStreaks(img2, 0.3f); streaks = joinIntRangesWithDistanceLessThan(streaks, 10); ret startsOfIntRanges(streaks); }