Two main-scanning-color-group recognition units, each for measuring a
degree of continuity of chromatic pixels in a main scanning direction are
provided. A degree of continuity in a sub-scanning direction is measured
by the degree of continuity of chromatic pixels in the main scanning
direction determined by a different threshold.