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

10
LINES

< > BotCompany Repo | #1020679 // imageToRoughlyFixedSizeTiles_twoLevelList

JavaX fragment (include)

1  
static LL<BufferedImage> imageToRoughlyFixedSizeTiles_twoLevelList(BufferedImage img, int roughSize) {
2  
  ret imageToRoughlyFixedSizeTiles_twoLevelList(img, roughSize, roughSize);
3  
}
4  
5  
static LL<BufferedImage> imageToRoughlyFixedSizeTiles_twoLevelList(BufferedImage img, int roughW, int roughH) {
6  
  int w = img.getWidth(), h = img.getHeight();
7  
  int m = max(1, iround(doubleRatio(w, roughW)));
8  
  int n = max(1, iround(doubleRatio(h, roughH)));
9  
  ret imageToTiles_twoLevelList(img, m, n);
10  
}

Author comment

Began life as a copy of #1020678

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020679
Snippet name: imageToRoughlyFixedSizeTiles_twoLevelList
Eternal ID of this version: #1020679/3
Text MD5: 27c4f4aa20ffa728206cd6cf92fd9021
Author: stefan
Category: javax / image analysis
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-30 21:11:31
Source code size: 495 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 331 / 368
Version history: 2 change(s)
Referenced in: [show references]