1. A local feature amount calculating device that calculates a local feature amount of an image, the local feature amount calculating device comprising: a feature point near-field region extracting unit that extracts a feature point and a near-field region that is set near the feature point from the image; a direction strength calculating unit that calculates a direction of each pixel located within the near-field region and a strength of the direction; a main axis direction detecting unit that detects a main axis direction of the near-field region; and a local feature amount calculating unit that acquires a local feature amount of the feature point by giving a vote of the strength of the direction of each pixel, which is calculated by the direction strength calculating unit, to a vote cell to which the pixel belongs out of vote cells of a rotated vote cell pattern that is acquired by rotating a reference vote cell pattern by an angle corresponding to the main axis direction along a corrected direction that is acquired by correcting the direction of the pixel that is calculated by the direction strength calculating unit in accordance with the main axis direction.