refactor the class Seeds in region growing module