1460483072-93bc1e3b-47ed-49fc-9e3f-ff7bbdbf6d8e

A method and system for virtualizing images. A threshold selecting section selects first or second threshold depending on the test location residing in the first sub-area or second sub-area, whereby the judgement section judges presence or absence of a defect in the mask area while using the first or second threshold to compare therewith difference data between the test pattern data and the reference pattern data. The first substrate includes a first base, a dielectric layer and a storage capacitor.