static LPair<RGBImage, Rect> scaleDownTestImagesWithRect(int gridSize, LPair<File, Rect> data) { LPair<RGBImage, Rect> scaledImages = new L; for (Pair<File, Rect> p : data) { BufferedImage img = loadImage2(p.a); RGBImage rgb = RGBImage(scaleImageWithFactor(1.0/gridSize, img)); add(scaledImages, pair(rgb, scaleRect(p.b, 1.0/gridSize))); } ret scaledImages; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022947 |
Snippet name: | scaleDownTestImagesWithRect |
Eternal ID of this version: | #1022947/2 |
Text MD5: | 30939aaa1b2b144ddc39d56400c0c687 |
Author: | stefan |
Category: | javax / image analysis |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-15 03:22:49 |
Source code size: | 387 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 251 / 287 |
Version history: | 1 change(s) |
Referenced in: | [show references] |