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

13
LINES

< > BotCompany Repo | #1033677 // scaledBWImageFromBWIntegralImage

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

Libraryless. Click here for Pure Java version (13869L/80K).

static BWImage scaledBWImageFromBWIntegralImage(int w, IBWIntegralImage img) {
  ret scaledBWImageFromBWIntegralImage(img, w);
}

static BWImage scaledBWImageFromBWIntegralImage(IBWIntegralImage img, int w, int h default heightForWidth(img, w)) {
  ScaledBWImageFromBWIntegralImage op = new(img, w, h);
  op.run();
  ret op.result;
}

static BWImage scaledBWImageFromBWIntegralImage(int w, int h, IBWImage img) {
  ret scaledBWImageFromBWIntegralImage(w, h, toIBWIntegralImage(img));
}

Author comment

Began life as a copy of #1033440

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033677
Snippet name: scaledBWImageFromBWIntegralImage
Eternal ID of this version: #1033677/6
Text MD5: 09c77d8f1c835d5508d25af2792dd9f0
Transpilation MD5: 7a32e3898d10027089d82eb81008890e
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-07-21 20:02:35
Source code size: 497 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 157 / 272
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1033681 - scaledBWImageFromBWIntegralImage_withMeta (+_height)