This library is used in a related picture service provider for years. I make it open-sourced today.
Supported algorithms:
+ Octree + Min-diff + Mix them up
https://github.com/XadillaX/byakuren
Supported algorithms:
+ Octree + Min-diff + Mix them up
https://github.com/XadillaX/byakuren