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

12
LINES

< > BotCompany Repo | #1033440 // scaledGrayImageFromBWIntegralImage

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (11576L/67K).

1  
meta-for BWIntegralImage also as IBWIntegralImage {
2  
3  
  static BufferedImage scaledGrayImageFromBWIntegralImage(int w, BWIntegralImage img) {
4  
    ret scaledGrayImageFromBWIntegralImage(img, w);
5  
  }
6  
  
7  
  static BufferedImage scaledGrayImageFromBWIntegralImage(BWIntegralImage img, int w, int h default heightForWidth(img, w)) {
8  
    byte[] pixels = scaledGrayBytesFromBWIntegralImage(img, w, h);
9  
    ret newGrayBufferedImage(w, h, pixels);
10  
  }
11  
12  
}

Author comment

Began life as a copy of #1033302

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033440
Snippet name: scaledGrayImageFromBWIntegralImage
Eternal ID of this version: #1033440/8
Text MD5: 45df540c2b78877fe430645945bf7de0
Transpilation MD5: 51149249bce8f08a717895c77e760248
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-12-26 19:02:47
Source code size: 454 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 207 / 305
Version history: 7 change(s)
Referenced in: [show references]