1. An image processing apparatus comprising: a generator that compares, in pixel units, sixth image data with either seventh image data or second image data, to generate a determination image, wherein the sixth image data is obtained by selecting, in pixel units, a minimum value from among: a value of first image data of a target for moirÃ© determination; and a value of fifth image data obtained by performing edge enhancement processing to the first image data, wherein the seventh image data is obtained by performing preset first processing to second image data, wherein the second image data is derived from a same image as the first image data, wherein the generator generates the determination image by setting a third value for pixels where: a value of the sixth image data is equal to or less than a value of the seventh image data or the second image data, or the value of the sixth image data is equal to or less than a sum of the value of either the seventh image data or the second image data and a preset determination threshold value, and wherein the generator generates the determination image by setting a value different from the third value for all other pixels.