Libraryless. Click here for Pure Java version (6403L/39K).
// returns [<cell, average color>] static LPair<DoubleRect, RGB> ii_scanGrid(IntegralImage ii, int cols, int rows) { ret map( concat(gridOfDoubleRects3(ii.getWidth(), ii.getHeight(), cols, rows)), r -> pair(r, ii_averageColorOfArea(ii, toRect(r)))); } static LPair<DoubleRect, RGB> ii_scanGrid(IntegralImage ii, int cols) { ret ii_scanGrid(ii, cols, rowsForColsWithAspectRatio(cols, ii.getWidth(), ii.getHeight())); } static LPair<DoubleRect, RGB> ii_scanGrid(IntegralImage ii, DoubleRect outer, int cols, int rows) { ret map( concat(gridOfDoubleRects3(outer, cols, rows)), r -> pair(r, ii_averageColorOfArea(ii, toRect(r)))); }
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: | 294 / 436 |
Version history: | 11 change(s) |
Referenced in: | [show references] |