Libraryless. Click here for Pure Java version (6403L/39K).
1 | // returns [<cell, average color>] |
2 | static LPair<DoubleRect, RGB> ii_scanGrid(IntegralImage ii, int cols, int rows) { |
3 | ret map( |
4 | concat(gridOfDoubleRects3(ii.getWidth(), ii.getHeight(), cols, rows)), |
5 | r -> pair(r, ii_averageColorOfArea(ii, toRect(r)))); |
6 | } |
7 | |
8 | static LPair<DoubleRect, RGB> ii_scanGrid(IntegralImage ii, int cols) { |
9 | ret ii_scanGrid(ii, cols, rowsForColsWithAspectRatio(cols, ii.getWidth(), ii.getHeight())); |
10 | } |
11 | |
12 | static LPair<DoubleRect, RGB> ii_scanGrid(IntegralImage ii, DoubleRect outer, int cols, int rows) { |
13 | ret map( |
14 | concat(gridOfDoubleRects3(outer, cols, rows)), |
15 | r -> pair(r, ii_averageColorOfArea(ii, toRect(r)))); |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025258 |
Snippet name: | ii_scanGrid |
Eternal ID of this version: | #1025258/12 |
Text MD5: | c3044e2c14a72c5a42552ead4b475880 |
Transpilation MD5: | 8fe19f734267fb4ebe9d38fc42255af1 |
Author: | stefan |
Category: | javax / image recognition |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-07 16:31:00 |
Source code size: | 673 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 296 / 440 |
Version history: | 11 change(s) |
Referenced in: | [show references] |