migration hue distance and connex component extractor