1. An alignment apparatus comprising: a processor configured to generate a plurality of pairs of a first feature, which is selected from a plurality of features representing a first target object represented on one image, and a second feature, which is selected from a plurality of features representing a second target object represented on another image; obtain, for each of the plurality of pairs, a first translation amount for aligning the first feature with the second feature; vote, in a coordinate system with coordinates each representing a translation amount, a voting value for the coordinate corresponding to the first translation amount; calculate a total of the voting values for each of the coordinates in the coordinate system; and set the translation amount corresponding to the coordinate with largest total of the voting values, as a second translation amount for aligning the first target object with the second target object.