A model image acquisition support apparatus arranged to obtain a model image, the model image acquisition support apparatus being directed to an image processing apparatus that performs a matching processing, based on a previously-set model image, on a measurement image obtained by imaging an object, the model image acquisition support apparatus being characterized by comprising: an extracting unit for extracting a plurality of model image candidates, serving as candidates for the model image, from images obtained by imaging objects; an input unit for receiving a plurality of measurement images, the plurality of measurement images including a non-defective item image (OK_IMG) that should match with the model image and a defective item image (NG_IMG) that should not match with the model image; a processing unit for generating a plurality of trial results by performing a matching processing on the plurality of measurement images based on each of the plurality of model image candidates; an evaluating unit for generating an evaluation result by evaluating each of the plurality of trial results, said evaluating unit comprising a unit for receiving a condition for determining an optimum model image from among the model image candidates; and a unit for determining a model image candidate whose evaluation result satisfies the received condition as the optimum model image, wherein the processing unit is configured to stop the generation of the plurality of trial results when a number of wrong detections exceeds a predetermined threshold, wherein the number of wrong detections is a sum of a number of non-defective item images (OK_IMG) that are wrongly determined as defective item (OK-NG) and a number of defective item images (NG_IMG) that are wrongly determined as non-defective items (NG-OK); wherein the evaluating unit is configured to receive user input to indicate a priority order of said condition from a plurality of conditions used for determining the optimum model image, and an output unit for outputting the optimum model image. an extracting unit for extracting a plurality of model image candidates, serving as candidates for the model image, from images obtained by imaging objects; an input unit for receiving a plurality of measurement images, the plurality of measurement images including a non-defective item image (OK_IMG) that should match with the model image and a defective item image (NG_IMG) that should not match with the model image; a processing unit for generating a plurality of trial results by performing a matching processing on the plurality of measurement images based on each of the plurality of model image candidates; an evaluating unit for generating an evaluation result by evaluating each of the plurality of trial results, said evaluating unit comprising a unit for receiving a condition for determining an optimum model image from among the model image candidates; and a unit for determining a model image candidate whose evaluation result satisfies the received condition as the optimum model image, a unit for receiving a condition for determining an optimum model image from among the model image candidates; and a unit for determining a model image candidate whose evaluation result satisfies the received condition as the optimum model image, wherein the processing unit is configured to stop the generation of the plurality of trial results when a number of wrong detections exceeds a predetermined threshold, wherein the number of wrong detections is a sum of a number of non-defective item images (OK_IMG) that are wrongly determined as defective item (OK-NG) and a number of defective item images (NG_IMG) that are wrongly determined as non-defective items (NG-OK); a number of non-defective item images (OK_IMG) that are wrongly determined as defective item (OK-NG) and a number of defective item images (NG_IMG) that are wrongly determined as non-defective items (NG-OK); wherein the evaluating unit is configured to receive user input to indicate a priority order of said condition from a plurality of conditions used for determining the optimum model image, and an output unit for outputting the optimum model image.