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

11
LINES

< > BotCompany Repo | #1036039 // bench_binaryImagePixelDifference_sameSize_Image2BAsInts

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

Transpiled version (11490L) is out of date.

1  
svoid bench_binaryImagePixelDifference_sameSize_Image2BAsInts() {
2  
  int maskSize = 32;
3  
  L<Image2BAsInts> images = repF(1000, -> new Image2BAsInts(randomBinaryImage(maskSize)));
4  
  Image2BAsInts mainImage = random(images);
5  
  print(benchFor5(-> {
6  
    long sum = 0;
7  
    for (image : images)
8  
      sum += binaryImagePixelDifference_sameSize(image, mainImage);
9  
    ret sum;
10  
  }));
11  
}

Author comment

Began life as a copy of #1036038

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036039
Snippet name: bench_binaryImagePixelDifference_sameSize_Image2BAsInts
Eternal ID of this version: #1036039/4
Text MD5: 41dd9535f42732d5990934f9ac43f819
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:22:39
Source code size: 387 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 143 / 206
Version history: 3 change(s)
Referenced in: [show references]