A detection unit of a CPU of a console detects the position of an electronic cassette and the position of an irradiation field on the basis of a camera image output from a camera that is attached to an X-ray source and captures an image of at least the electronic cassette. The image processing unit performs image processing for an X-ray image detected by the electronic cassette on the basis of information of the position of the electronic cassette and information of the position of the irradiation field.