1. An image evaluation device comprising: at least one processor configured to execute: an acquisition unit that acquires an image including a plurality of patterns having different spatial frequencies and contrasts; and an output unit that compares each of a plurality of patterns included in the image acquired by the acquisition unit with each of a plurality of ideal patterns corresponding to the plurality of patterns, calculates similarities therebetween, and outputs an evaluation value for evaluating performance regarding a resolution of the image based on a sum of the calculated similarities of the plurality of patterns, wherein the image is an image in which the plurality of patterns are disposed so that the spatial frequencies of the plurality of ideal patterns to which each of the plurality of patterns corresponds gradually increase in a first predetermined direction, and that the contrasts of the plurality of ideal patterns to which each of the plurality of patterns corresponds gradually lower in a second direction intersecting the first predetermined direction, wherein the output unit calculates the evaluation value based on the similarities within a range in which, among the similarities of each of the plurality of patterns, the similarities gradually become smaller as the spatial frequencies gradually increase in the first predetermined direction, and wherein the output unit calculates the evaluation value by replacing the similarities outside a range in which the similarities gradually become smaller, among the similarities of each of the plurality of patterns, with zero or a minimum value within a range in which the similarities gradually become smaller.