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

8
LINES

< > BotCompany Repo | #1034029 // scaleAndPosterize

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

Transpiled version (13853L) is out of date.

1  
static BWImage scaleAndPosterize(BufferedImage img, SnPSettings settings) {
2  
  ret scaleAndPosterize(BWIntegralImage(img), settings);
3  
}
4  
5  
static BWImage scaleAndPosterize(IBWIntegralImage ii, SnPSettings settings) {
6  
  ret posterizeBWImage_withMeta(settings.colors,
7  
    scaledBWImageFromBWIntegralImage_withMeta_height(settings.pixelRowsForImage(ii), ii));
8  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034029
Snippet name: scaleAndPosterize
Eternal ID of this version: #1034029/5
Text MD5: a6e73be589094ab88302bd113ce2b7ad
Author: stefan
Category: javax / gazelle 22
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-30 00:51:14
Source code size: 362 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 175 / 263
Version history: 4 change(s)
Referenced in: [show references]