A non-transitory computer-readable recording medium that stores a program that causes a computer to realize a function for performing an image filtering process including a plurality of times of filtering processes with respect to original image data to acquire processed image data, the non-transitory computer-readable recording medium that stores the program causing the computer to execute:
- a process of applying a filter to processing target data to acquire filter application process data;
- a process of applying a gain to the filter application process data to acquire gain application process data;
- a process of acquiring filtering process data from the gain application process data, in each of the plurality of times of filtering processes;
- wherein the gain applied to the filter application process data is acquired based on a target frequency characteristic of the image filtering process specified based on an individual optical characteristic of an optical system used when the original image data is acquired, in each of the plurality of times of filtering processes,
- a process of storing gain table information obtained by associating candidate data of the gain applied to the filter application process data with the individual optical characteristic of the optical system, in each of the plurality of times of filtering processes;
- and
- a process of specifying, with reference to the gain table information, the candidate data associated with the individual optical characteristic of the optical system used when the original image data is acquired as the gain applied to the filter application process data in each of the plurality of times of filtering processes,
- wherein the specified gain applies to the filter application process data to acquire the gain application process data in each of the plurality of times of filtering processes.