Libraryless. Click here for Pure Java version (7498L/44K).
1 | svoid test_ImageSimilarityAtScale(BufferedImage img1, BufferedImage img2, int featureSize, bool verbose default false) { |
2 | ImageSimilarityAtScale algo = new( |
3 | IntegralImage(img1), IntegralImage(img2), featureSize); |
4 | algo.verbose = verbose; |
5 | algo.run(); |
6 | do { |
7 | print("Similarity: " + algo! + " after " + nBlocks(algo.blocksCalculated()) + " at " + algo.ps.lastExecutedProbability()); |
8 | // TODO print("Diffs at scale: " + .diffsAtScale); |
9 | } while (algo.step()); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032164 |
Snippet name: | test_ImageSimilarityAtScale (just prints the results) |
Eternal ID of this version: | #1032164/14 |
Text MD5: | a103276f089631f562ff3de9ed77dc41 |
Transpilation MD5: | efc9b7a099b5d869d94a7537b1f558c3 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-22 21:08:16 |
Source code size: | 482 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 235 / 313 |
Version history: | 13 change(s) |
Referenced in: | [show references] |