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.

static BWImage scaleAndPosterize(BufferedImage img, SnPSettings settings) {
  ret scaleAndPosterize(BWIntegralImage(img), settings);
}

static BWImage scaleAndPosterize(IBWIntegralImage ii, SnPSettings settings) {
  ret posterizeBWImage_withMeta(settings.colors,
    scaledBWImageFromBWIntegralImage_withMeta_height(settings.pixelRowsForImage(ii), ii));
}

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: 174 / 261
Version history: 4 change(s)
Referenced in: [show references]