static L<IntRange> audio_streaksUsingBand_noAutoContrast_v1(BWImage img, IntRange band, O... _) { BWImage bandImage = clipBWImage(img, 0, band.start, img.getWidth(), band.end); BWImage img2 = squishTo1Pixel(bandImage); optOutParam(_, processedImage := img2); float threshold = optParam(_, 'threshold, 0.5f); L<IntRange> streaks = findBrightHorizontalStreaks(img2, threshold); streaks = joinIntRangesWithDistanceLessThan(streaks, 10); if (boolOptParam(_, 'printStreaks)) printStruct(+streaks); ret streaks; }
Began life as a copy of #1018840
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019260 |
Snippet name: | audio_streaksUsingBand_noAutoContrast_v1 |
Eternal ID of this version: | #1019260/1 |
Text MD5: | b80ba8484da44c74852af4129eb216b8 |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-28 17:27:32 |
Source code size: | 532 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 293 / 331 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |