Libraryless. Click here for Pure Java version (5928L/33K).
1 | static IIntegralImage iiPadToPowerOfTwoSquare(IIntegralImage etc img) { |
2 | int w = img.getWidth(), h = img.getHeight(); |
3 | int newSize = roundUpToPowerOfTwo(max(w, h)); |
4 | ret iiPadCenter(img, newSize, newSize); |
5 | } |
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: | 160 / 208 |
Referenced in: | [show references] |