1. A feature extracting apparatus comprising: an edge image extractor that extracts edges from an image; and a feature calculator that calculates a spatial co-occurrence matrix as a feature of the image, the spatial co-occurrence matrix including elements for a number of combinations between at least one of an edge direction of a predetermined pixel and an edge direction of an edge pixel present in a neighboring area of the predetermined pixel, and a position of a division area including the edge pixel in the neighboring area of division areas resulting from dividing the neighboring area.