1 | static LPair<RGBImage, Rect> scaleDownTestImagesWithRect(int gridSize, LPair<File, Rect> data) { |
2 | LPair<RGBImage, Rect> scaledImages = new L; |
3 | for (Pair<File, Rect> p : data) { |
4 | BufferedImage img = loadImage2(p.a); |
5 | RGBImage rgb = RGBImage(scaleImageWithFactor(1.0/gridSize, img)); |
6 | add(scaledImages, pair(rgb, scaleRect(p.b, 1.0/gridSize))); |
7 | } |
8 | ret scaledImages; |
9 | } |
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: | 253 / 289 |
Version history: | 1 change(s) |
Referenced in: | [show references] |