Libraryless. Click here for Pure Java version (7498L/44K).
svoid test_ImageSimilarityAtScale(BufferedImage img1, BufferedImage img2, int featureSize, bool verbose default false) { ImageSimilarityAtScale algo = new( IntegralImage(img1), IntegralImage(img2), featureSize); algo.verbose = verbose; algo.run(); do { print("Similarity: " + algo! + " after " + nBlocks(algo.blocksCalculated()) + " at " + algo.ps.lastExecutedProbability()); // TODO print("Diffs at scale: " + .diffsAtScale); } while (algo.step()); }
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: | 234 / 310 |
Version history: | 13 change(s) |
Referenced in: | [show references] |