1 | static L<IntRange> audio_streaksUsingBand_noAutoContrast_v1(BWImage img, IntRange band, O... _) { |
2 | BWImage bandImage = clipBWImage(img, 0, band.start, img.getWidth(), band.end); |
3 | BWImage img2 = squishTo1Pixel(bandImage); |
4 | optOutParam(_, processedImage := img2); |
5 | float threshold = optParam(_, 'threshold, 0.5f); |
6 | L<IntRange> streaks = findBrightHorizontalStreaks(img2, threshold); |
7 | streaks = joinIntRangesWithDistanceLessThan(streaks, 10); |
8 | if (boolOptParam(_, 'printStreaks)) printStruct(+streaks); |
9 | ret streaks; |
10 | } |
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: | 292 / 331 |
Referenced in: | [show references] |