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

5
LINES

< > BotCompany Repo | #1032177 // iiPadToPowerOfTwoSquare - pad integral image so both dimensions are the same power of two

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

Libraryless. Click here for Pure Java version (5928L/33K).

static IIntegralImage iiPadToPowerOfTwoSquare(IIntegralImage etc img) {
  int w = img.getWidth(), h = img.getHeight();
  int newSize = roundUpToPowerOfTwo(max(w, h));
  ret iiPadCenter(img, newSize, newSize);
}

Author comment

Began life as a copy of #1032171

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032177
Snippet name: iiPadToPowerOfTwoSquare - pad integral image so both dimensions are the same power of two
Eternal ID of this version: #1032177/1
Text MD5: 33792540d25eaf0dc9fdd60c14f8eeca
Transpilation MD5: aa54bb144435aa54100274140da0b065
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-17 14:57:55
Source code size: 214 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 159 / 206
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)