Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1035101 // g22_darkRegions

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (7794L/44K).

static <Img extends WidthAndHeight> L<IImageRegion<Img>> g22_darkRegions(Iterable<IImageRegion<Img>> regions, int threshold default 128) {
  ret filter(regions, r -> r.brightness() < threshold);
}

Author comment

Began life as a copy of #1034247

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035101
Snippet name: g22_darkRegions
Eternal ID of this version: #1035101/2
Text MD5: 2e56e83cab06f4933fe7a4f52b60e90e
Transpilation MD5: cc43f3598a80156123608d3791f2a96c
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-30 00:40:08
Source code size: 198 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 126 / 182
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1036552 - g22_brightRegions