1. An image processing apparatus comprising: sorting means for executing sorting processing of sorting a train of pixel values within the same line of a radiation image and thus rearranging the train of pixel values within the same line from pixels having higher pixel values to pixels having lower pixel values; analyzing means for calculating a characteristic value from a predetermined region of the image after the sorting processing; and gradation transforming means for executing gradation transformation processing of the radiation image based on the characteristic value.