When determining that non-writing line 22b23 has the correlation with both writing lines 22a1 and 22a2, determination unit 32 further performs processing of narrowing writing lines 22a1 and 22a2 having the correlation with non-writing line 22b23 to one. That is, determination unit 32 associates one writing line with non-writing line 22b23.
Determination unit 32 narrows writing lines 22a1 and 22a2 with which non-writing line 22b23 has the correlation to one based on the determination result of the correlation between non-writing line 22b23 and writing lines 22a1 and 22a2. Determination unit 32 determines that the writing line having the higher correlation with non-writing line 22b23 is the writing line with which non-writing line 22b23 has the correlation. For example, determination unit 32 may compare a sum of pixels having the correlation between non-writing line 22b23 and writing line 22a1 to a sum of pixels having the correlation between non-writing line 22b23 and writing line 22a2, and determine that the writing line and non-writing line 22b23 having the larger sum of pixels having the correlation have the correlation.