A bed-type compression mechanism of related art is still desired to be improved to reduce a burden on a subject and to increase operability of an operator.An apparatus includes a bed configured to support a subject and having an insertion hole through which a subject portion that is part of the subject is inserted a pair of compression plates configured to hold and compress the subject portion when the subject portion is inserted through the insertion hole a camera configured to capture an image of the subject portion and an illumination device configured to irradiate the subject portion inserted through the insertion hole with light from a side opposite to the insertion hole when the image of the subject portion is captured.