1. An inspection apparatus for acquiring an image and subjecting an image to an image processing, comprising: means for generating a new image processing algorithm of the image different from a current image processing algorithm based on an acquired image; and means for switching the current image processing algorithm to the new image processing algorithm.