static float bwDistance(BWImage a, BWImage b, float maxDistance) { ret 1f-bwImageSimilarityResized(a, b, 1f-maxDistance); }