An object of the present invention is to increase efficiency in review work by
appropriately narrowing down review work that verifies shapes of visual defects
relating to an enormous amount of defects detected by a visual inspecting apparatus
with high sensitivity. In order to appropriately extract defect information from
an inspecting apparatus, a filter function and a sampling function are prepared
by unitizing the functions. As a result, defects as review targets are narrowed
down and extracted automatically using the filter function and the sampling function
in combination. In addition, sequencing the filter conditions and the sampling
conditions and registering the sequence enables automatic filtering and sampling
on the basis of information on a wafer as a review target, and thereby only defect
information on the review target is extracted.