A pattern which does not appear at a flat portion in normal binarization
processing is set as a code pattern, and a code formed from this pattern
is attached. At this time, code attachment with little degradation in
image quality is implemented by selecting an unnoticeable pattern.