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

12
LINES

< > BotCompany Repo | #1034884 // ScaledBufferedImageFromIntegralImage - improved meta-aware procedure

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

Libraryless. Click here for Pure Java version (8816L/50K).

srecord noeq ScaledBufferedImageFromIntegralImage(IIntegralImage img, int w, int h) is ScalingImageOpResult<IIntegralImage> {
  BufferedImage result;
  
  run {
    int[] pixels = img cast IntegralImage
      ? scaledPixelsFromIntegralImage(img, w, h)
      : scaledPixelsFromIntegralImage(img, w, h);
    result = bufferedImage(w, h, pixels);
  }
  
  public IIntegralImage scalingSrcImage() { ret img; }
}

Author comment

Began life as a copy of #1034527

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034884
Snippet name: ScaledBufferedImageFromIntegralImage - improved meta-aware procedure
Eternal ID of this version: #1034884/4
Text MD5: bb6a9ab7f7901e4d60861945e1b10d02
Transpilation MD5: 4194c0d5ced892d4ab5513a3ea0bbfae
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-13 01:18:42
Source code size: 418 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 139 / 226
Version history: 3 change(s)
Referenced in: #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167)
#1035237 - BlurredBufferedImageFromIntegralImage - meta-aware procedure for box blur