getMaxContourSizes(int count) in ColorDetector.java