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

sclass IntegratedBWImage > HashedBWImage is MakesIBWIntegralImage {
  IBWIntegralImage ii;

  *(BufferedImage image) { super(bwImage(image)); }
  *(BWImage image) { super(image); }
  
  public IBWIntegralImage getIBWIntegralImage() {
    while (ii == null) synchronized {
      if (ii == null)
        ii = bwIntegralImage(image);
    }
    ret ii;
  }
  
  S classNameForPrinting() { ret cnfp(this, selfType.class, "IntegratedBWImage"; }
}

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