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

16
LINES

< > BotCompany Repo | #1035237 // BlurredBufferedImageFromIntegralImage - meta-aware procedure for box blur

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

Libraryless. Click here for Pure Java version (11735L/68K).

srecord noeq BlurredBufferedImageFromIntegralImage(IIntegralImage img, int blurw, int blurh) {
  BufferedImage result;
  
  *(IIntegralImage img, int blurw) {
    this(img, blurw, blurw);
  }
  
  BufferedImage get() {
    int[] pixels = img cast IntegralImage
      ? blurredPixelsFromIntegralImage(blurw, blurh, img)
      : blurredPixelsFromIntegralImage(blurw, blurh, img);
    ret result = bufferedImage(img.w()-blurw, img.h()-blurh, pixels);
  }
  
  public IIntegralImage blurringSrcImage() { ret img; }
}

Author comment

Began life as a copy of #1034884

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1035237
Snippet name: BlurredBufferedImageFromIntegralImage - meta-aware procedure for box blur
Eternal ID of this version: #1035237/6
Text MD5: a108f4f2f61173f4f5c8f484aecaf404
Transpilation MD5: bb87e631b3ae1c1dd8d3729a4463be09
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-21 07:27:51
Source code size: 527 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 146 / 217
Version history: 5 change(s)
Referenced in: [show references]