Transpiled version (11490L) is out of date.
1 | svoid bench_binaryImagePixelDifference_sameSize_Image2B() {
|
2 | int maskSize = 32; |
3 | L<Image2B> images = repF(1000, -> randomBinaryImage(maskSize)); |
4 | Image2B 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 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1036038 |
| Snippet name: | bench_binaryImagePixelDifference_sameSize_Image2B |
| Eternal ID of this version: | #1036038/5 |
| Text MD5: | 67c63b44e2633e8e783c046c3e4cc237 |
| 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:24 |
| Source code size: | 350 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 362 / 459 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |