There is provided a method for setting a suitable imaging magnification for each of a plurality of measurement places in a charged particle beam apparatus which images a semiconductor pattern. The method includes sequentially focusing laser light at different focuses along a line within the laminated glass structure. It is shown that the method can be implemented in both direct and FFT based correlation algorithms with greatly reduced computational complexity.