Detects and removes foreign material based on colour, size, and ...