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

16
LINES

< > BotCompany Repo | #1034821 // IntegratedBWImage - immutable BWImage with 64 bit hash and IBWIntegralImage

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

Libraryless. Click here for Pure Java version (13584L/79K).

1  
sclass IntegratedBWImage > HashedBWImage is MakesIBWIntegralImage {
2  
  IBWIntegralImage ii;
3  
4  
  *(BufferedImage image) { super(bwImage(image)); }
5  
  *(BWImage image) { super(image); }
6  
  
7  
  public IBWIntegralImage getIBWIntegralImage() {
8  
    while (ii == null) synchronized {
9  
      if (ii == null)
10  
        ii = bwIntegralImage(image);
11  
    }
12  
    ret ii;
13  
  }
14  
  
15  
  S classNameForPrinting() { ret cnfp(this, selfType.class, "IntegratedBWImage"; }
16  
}

Author comment

Began life as a copy of #1034818

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034821
Snippet name: IntegratedBWImage - immutable BWImage with 64 bit hash and IBWIntegralImage
Eternal ID of this version: #1034821/5
Text MD5: 73c59c961a29f7fa92713b421bbc47df
Transpilation MD5: df91dae4ab32d82e18d267daf522450d
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-11 01:21:32
Source code size: 455 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 131 / 232
Version history: 4 change(s)
Referenced in: [show references]