The wheat color sorter features a special system to identify and analyze the grain. This system consists of 1) a handling and image recording unit for the digital image of grain, 2) a unit for taking and preparing the microbiological impurities of the grain for digital image recording and 3) a multistage image analysis algorithm for the subsequent analysis of the digital images.