An image processing apparatus, including a transform unit configured to
wavelet-transform image data into a set of wavelet coefficients, and a
determination unit configured to determine whether the image data is of a
vertical writing or of a horizontal writing based on the set of wavelet
coefficients.