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

11
LINES

< > BotCompany Repo | #1036046 // bench_binaryImagePixelDifference_sameSize_Image2BAsLongs

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

Libraryless. Click here for Pure Java version (11677L/66K).

svoid bench_binaryImagePixelDifference_sameSize_Image2BAsLongs() {
  int maskSize = 32;
  L<Image2BAsLongs> images = repF(1000, -> new Image2BAsLongs(randomBinaryImage(maskSize)));
  Image2BAsLongs mainImage = random(images);
  print(benchFor5(-> {
    long sum = 0;
    for (image : images)
      sum += binaryImagePixelDifference_sameSize(image, mainImage);
    ret sum;
  }));
}

Author comment

Began life as a copy of #1036039

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036046
Snippet name: bench_binaryImagePixelDifference_sameSize_Image2BAsLongs
Eternal ID of this version: #1036046/1
Text MD5: 1f8b096d2327a6aed6901add4c4287af
Transpilation MD5: 976be3211cb1c3ab7778e4c117f06d9f
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-03 01:31:35
Source code size: 391 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 122 / 180
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1036048 - bench_maskDiffing_justTheBitOp