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).

1  
srecord noeq BlurredBufferedImageFromIntegralImage(IIntegralImage img, int blurw, int blurh) {
2  
  BufferedImage result;
3  
  
4  
  *(IIntegralImage img, int blurw) {
5  
    this(img, blurw, blurw);
6  
  }
7  
  
8  
  BufferedImage get() {
9  
    int[] pixels = img cast IntegralImage
10  
      ? blurredPixelsFromIntegralImage(blurw, blurh, img)
11  
      : blurredPixelsFromIntegralImage(blurw, blurh, img);
12  
    ret result = bufferedImage(img.w()-blurw, img.h()-blurh, pixels);
13  
  }
14  
  
15  
  public IIntegralImage blurringSrcImage() { ret img; }
16  
}

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: 147 / 219
Version history: 5 change(s)
Referenced in: [show references]