// A = tag type srecord noeq URecognizeByBrightness(NavigableMap brightnessToAction) { void run( IProbabilisticScheduler scheduler, IIntegralImage img, IVF1 action) { new ProbabilisticDistanceBasedLookup( scheduler, brightnessToAction, brightness -> action.get(map.get(brightness)), img.averageBrightness()) .run(); } }