SYSTEM AND METHOD FOR EXTRACTION OF STRUCTURAL DATA OF A SAMPLE FROM SCAN DATA

20250116617 ยท 2025-04-10

    Inventors

    Cpc classification

    International classification

    Abstract

    Some embodiments relate to a computer system for determining a structural image of a sample. The computer system is configured to receive and process raw measured data produced by a scanning microscope and being indicative of at least one scan dataset (I.sub.M).sub.N acquired in a scan session and corresponding to a sequence of N measurements on a sample located in proximity to a focal plane of the scanning microscope. Each measurement includes data provided by M detection channels associated with M-segment detector (M3). The computer system includes a data analyzer capable of processing at least one scan dataset to compensate image shifts induced by off-axis detection channels for sample features at defocus plane to thereby obtain data indicative of parallax corrected scan image of the sample which enables separation between phase and depth information and extraction of a depth contrast image of the sample from the single scan dataset.

    Claims

    1. A computer system for determining a structural image of a sample, the computer system being configured for data communication with a measured data provider to receive raw measured data produced by a scanning microscope, the raw measured data being indicative of at least one scan dataset acquired in a scan session, the scan dataset (I.sub.M).sub.N corresponding to a sequence of N measurements on a sample located in proximity to a focal plane of the scanning microscope, each measurement including data provided by M detection channels associated with M-segment detector (M3), the computer system comprising a data analyzer configured and operable to process said at least one scan dataset to compensate image shifts induced by off-axis detection channels for sample features at defocus plane to thereby obtain data indicative of parallax corrected scan image of the sample which enables separation between phase and depth information and extraction of a depth contrast image of the sample from the single scan dataset.

    2. The computer system according to claim 1, wherein said data analyzer is further configured and operable to utilize said data indicative of the parallax corrected scan image and data indicative of integrated differential phase contract of the scan dataset (I.sub.M).sub.N to extract the depth contrast image of the sample comprising signed intensity, bright and dark, indicative of a degree of defocus indicative of depth of features in the sample.

    3. The computer system according to claim 1, wherein said data analyzer comprises: a first data processor adapted to process the scan dataset (I.sub.M).sub.N and determine deshifted scan dataset (I.sub.1.sup.ds, . . . I.sub.M.sup.ds).sub.N, in which image shifts induced by off-axis detection channels for sample features at defocus plane are compensated; and further process the deshifted scan dataset to determine corresponding deshifted differential phase contrast data, DPC.sup.ds, thereby providing said data indicative of the parallax corrected scan image of the sample.

    4. The computer system according to claim 3, wherein said first data processor is further configured to determine, from said deshifted differential phase contrast data DPC.sup.ds, corresponding integrated differential phase contrast data iDPC.sub.1.

    5. The computer system according to claim 4, wherein the data analyzer further comprises a second data processor adapted to utilize data indicative of integrated differential phase contrast image, iDPC, calculated from said raw scan dataset (I.sub.M).sub.N and determine a difference between the iDPC and iDPC.sub.1 thereby extracting the depth contrast image of the sample.

    6. The computer system according to claim 3, wherein said first data processor is adapted to process the scan dataset (I.sub.M).sub.N by carrying out the following: identifying, in the scan dataset (I.sub.M).sub.N, image I.sub.i(x,y) acquired by each i-th detection channel based on the N measurements along the scan, by mapping locations in the image according to a locations of a focused scan beam in a focal plane; processing at least some of the images I.sub.i(x,y) of the scan dataset to determine an image shift (x.sub.i, v.sub.i) between I.sub.i(x,y) and a hypothetical image corresponding to a central detection channel collectable by a central region of the detector on an optical axis defined by illumination path of the microscope, determining an opposite shift value and applying said opposite shift value to the image provided by each i-th detection channel I.sub.i(x,y) to thereby obtain deshifted scan dataset (I.sub.1.sup.ds, . . . I.sub.M.sup.ds); and processing the deshifted images (I.sub.1.sup.ds(x,y) . . . I.sub.m.sup.ds(x,y)) for all the detection channels to determine the differential phase contrast data DPC.sup.ds, thereby compensating for defocus image shifts induced by the off-axis detection channels and provide data indicative of a parallax corrected scan image of the sample.

    7. The computer system according to claim 6, wherein said opposite shift value is an average shift obtained from measurements by each of M detection channels along the scan, applied with an opposite sign to respective image (I.sub.i(x,y)).sub.N.

    8. The computer system according to claim 3, wherein said data analyzer is further configured to determine a sum of intensity signals of deshifted images (I.sub.1.sup.ds(x,y) . . . I.sub.m.sup.ds(x,y)) for all M detection channels, in each of said N measurements of the scan dataset, providing extended depth of field.

    9. The computer system according to claim 6, wherein said determining of the image shift (x.sub.i, y.sub.i) comprises: performing intersegment cross-correlations between signals I.sub.i and I.sub.j for at least some of pairs ij of the detection channels in said at least some of the images of the scan dataset and determining x.sub.ij and y.sub.ij; and determining the image shift (x.sub.i, y.sub.i) from a best fit condition.

    10. The computer system according to claim 6, wherein the data analyzer is further configured to carry out at least one of the following: determine a degree of defocus z by applying a model based analysis to the image shift (x.sub.i, y.sub.i) data, using a predetermined model describing a relation between an image shift and defocus and dominant aberrations; and utilize the image shifts and provide a depth-labeled phase contrast image for each selected region of interest of the scan image.

    11. (canceled)

    12. The computer system according to claim 1, wherein said raw measured data is obtained from one of the following: a scanning transmission electron microscope (STEM) utilizing said M-segment detector; or a scanning confocal microscope utilizing said M-segment detector.

    13. (canceled)

    14. The computer system according to claim 1, configured for the data communication with a storage device where the raw measured data is stored and provided

    15. The computer system according to claim 14, wherein said storage device is associated with a scanning microscope performing said measurements.

    16. An imaging system comprising: a scanning microscope unit including a scan unit for probing a sample plane by radiation and a detection unit comprising an M-segment detector (M3) located in a Fourier plane with respect to a focal plane of the scan unit for detecting the radiation transmitted through the sample and generating measured data comprising scan dataset (I.sub.M).sub.N corresponding to a sequence of N measurements on a sample located in proximity to a focal plane of the scanning microscope acquired in a scan session, each measurement including M detection channels associated with said M-segment detector; and a control unit comprising the computer system of claim 1.

    17. The imaging system according to claim 16, wherein said radiation is electron beam radiation.

    18. The imaging system according to claim 17, wherein the scan unit has one of the following configurations: is configured to produce a raster scan; or is configured to produce a pseudo-spiral scan or a circular scan pattern thereby minimizing changes in probe acceleration.

    19. (canceled)

    20. The imaging system according to claim 17, wherein said detection unit comprises a six-segment detector structure, the six segments including four-quadrant detector segments and concentrically arranged surrounding annular ring segments.

    21. The imaging system according to claim 20, wherein the detection unit further comprises at least one of the following: a bright field detector aligned with a central aperture region of said six-segment detector structure, and a high angle annular dark field (HAADF) detector.

    22. The imaging system according to claim 16, wherein said radiation is optical radiation.

    23. The imaging system according to claim 22, characterized by at least one of the following: said scanning microscope unit has a confocal configuration; and the scan unit is configured to produce a raster scan.

    24. (canceled)

    25. A method for use in reconstruction of a structural image of a sample, the method comprising: Providing raw measured data indicative of at least one scan dataset (I.sub.M).sub.N, the scan dataset being obtained in a scan session performed by a scanning microscope and corresponding to a sequence of N measurements on a sample located in proximity to a focal plane of the scanning microscope, each measurement including data acquired by M detection channels associated with M-segment detector (M3); processing and analyzing said at least one scan dataset to compensate image shifts induced by off-axis detection channels for sample features at defocus plane to thereby obtain data indicative of parallax corrected scan image of the sample which enables separation between phase and depth information and extraction of a depth contrast image of the sample from the single scan dataset.

    26. The method according to claim 25, further comprising utilizing said data indicative of the parallax corrected scan image and data indicative of integrated differential phase contract of the scan dataset (I.sub.M).sub.N to extract the depth contrast image of the sample comprising signed intensity, bright and dark, indicative of a degree of defocus corresponding to depth of features in the sample.

    27. The method according to claim 25 or 26, wherein said processing and analyzing comprises: processing the scan dataset (I.sub.M).sub.N and determining deshifted scan dataset (I.sub.1.sup.ds, . . . I.sub.M.sup.ds), in which image shifts induced by off-axis detection channels for sample features at defocus plane are compensated; processing the deshifted scan dataset to determine corresponding deshifted differential phase contrast data DPC.sup.ds, thereby providing said data indicative of the parallax corrected scan image of the sample.

    28. The method according to claim 27, further comprising determining, from said deshifted differential phase contrast data DPC.sup.ds, corresponding integrated differential phase contrast data iDPC.sub.1.

    29. The method according to claim 28, further comprising utilizing data indicative of integrated differential phase contrast image, iDPC, calculated from said raw scan dataset (I.sub.M).sub.N and determining a difference between the iDPC and the iDPC.sub.1 thereby extracting said depth contrast image of the sample.

    30. The method according to claim 27, wherein said processing of the scan dataset (I.sub.M).sub.N to determine the deshifted scan dataset (I.sub.1.sup.ds, . . . I.sub.M.sup.ds).sub.N, comprises: Identifying, in the scan dataset, image I.sub.i(x,y) acquired by each i-th detection channel based on the N measurements along the scan, by mapping locations in the image according to a locations of a focused scan beam in a focal plane; processing at least some of the images I.sub.i(x,y) of the scan dataset to determine an image shift (x.sub.i, y.sub.i) between I.sub.i(x,y) from an image corresponding to a central detection channel collectable by a central region of the detector intersecting with an optical axis defined by illumination path of the microscope, determining an opposite shift value and applying said opposite shift value to the image provided by each i-th detection channel I.sub.i(x,y) to thereby obtain deshifted scan dataset (I.sub.1.sup.ds, . . . I.sub.M.sup.ds); and processing the deshifted images (I.sub.1.sup.ds(x,y) . . . I.sub.m.sup.ds(x,y)) for all the detection channels to determine the differential phase contrast data DPC.sup.ds, thereby compensating for defocus image shifts induced by the off-axis detection channels and provide data indicative of a parallax corrected scan image of the sample.

    31. The method according to claim 27, wherein said processing and analyzing further comprises determining a sum of intensity signals of deshifted images (I.sub.1.sup.ds(x,y) . . . I.sub.m.sup.ds(x,y)) for all M detection channels, in each of said N measurement of the scan dataset.

    32. The method according to claim 30, characterized by at least one of the following: said determining of the image shift (x.sub.i, y.sub.i) comprises: performing intersegment cross-correlations between each I.sub.i and I.sub.j for at least some of pairs ij of the detection channels in the at least some of N measurements and determining x.sub.ij and y.sub.ij; and determining the image shift (x.sub.i, y.sub.i) from a best fit condition; and said processing and analyzing comprises determining a degree of defocus z by applying a model based analysis to the image shift (x.sub.i, y.sub.i) data, using a predetermined model describing a relation between an image shift and defocus and dominant aberrations.

    33. (canceled)

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0054] In order to better understand the subject matter that is disclosed herein and to exemplify how it may be carried out in practice, embodiments will now be described, by way of non-limiting example only, with reference to the accompanying drawings, in which:

    [0055] FIG. 1 is a block diagram schematically illustrating the configuration and operation of the data analysis system of the presently disclosed subject matter;

    [0056] FIG. 2A exemplifies the flow diagram of the method of the presently disclosed subject matter that can be implemented by system of FIG. 1 to obtain parallax corrected scan image of the sample from the single-scan raw measured data, and how this parallax corrected image data can be used to extract depth contrast image;

    [0057] FIG. 2B shows a flow diagram of the method of the presently disclosed subject matter for determination of parallax corrected scan image of multiple objects in a sample;

    [0058] FIG. 2C exemplifies a flow diagram of the method of the presently disclosed subject matter for the formation of depth-labeled phase contrast image;

    [0059] FIGS. 3A and 3B Fibroblast cells' images obtained using the state of the art confocal scanning microscope in simple light collection during transmitted light scan (FIG. 3A) (b) after applying Differential Interfering Contrast (DIC) filtering (FIG. 3B);

    [0060] FIGS. 4A and 4B exemplify the technique of the presently disclosed subject matter implemented using the principles of confocal microscope, wherein FIG. 4A shows the general principles of the light detection scheme in a confocal scanning microscope and how it can be used for the purposes of the presently disclosed subject matter; and FIG. 4B shows the specification of the elements in the multi-segment detector (shaded area) and an outer circle that can be determined by the cone of illumination;

    [0061] FIGS. 5A-5D show the results of experiments conducted by the inventors, comparing the technique of the presently disclosed subject matter with the DIC filteration method, wherein FIG. 5A shows iDPC image data calculated from the raw measured data, FIG. 5B shows the deshifted iDPC (iDPC1) calculated from the original images after applying the deshifting (refocusing) processing; FIG. 5C shows iDPC2 image corresponding to difference between iDPC of FIG. 5A and iDPC1 and reveals a clear image of the cells, which resembles the DIC filtered image of FIG. 5D;

    [0062] FIG. 6 illustrates a plot of the image shifts obtained at several values of defocus which reveals the predicted linear relation;

    [0063] FIGS. 7A and 7B exemplify a detector suitable to be used in multi-channel detection mode in a STEM enabling the analysis of the scan dataset in accordance with the presently disclosed subject matter, wherein FIG. 7A shows a detector with an aperture in the center for a separate Bright Field (BF) detector or EELS spectrometer, inner four-quadrant (A-D) and outer annular ring (E,F) segments; and FIG. 7B shows montage of a specific 6-channel segments acquired in a real-space scan showing the uniformity of detector response;

    [0064] FIG. 7C shows, by way of a block diagram, an exemplary STEM configuration incorporating the presently disclosed subject matter;

    [0065] FIG. 8 exemplifies a protocol that can be used in a microscope to compensate for distortions in the scan due to inductive scan delays;

    [0066] FIGS. 9A to 9D exemplify a pattern of the sequence of scan points, i.e. a pseudo-spiral scan (FIG. 9A); uncorrected full span of a 10 sec scan, i.e. the spiral scan with full circular margins circumscribing a square image (FIG. 9B), and two examples of correction for central region of a 10 s scan (FIG. 9C) and correction for central region of a 5 sec frame times (FIG. 9D) according to the inductive model of FIG. 8;

    [0067] FIG. 10 schematically illustrates the analysis of the position of the uniform diffraction disk on a quadrant detector;

    [0068] FIG. 11 exemplifies a histogram of the response of detector of FIG. 7B response in different channels;

    [0069] FIGS. 12A-12B illustrate comparison between diffraction disk position based on 4-quadrant analysis (continuous line) and based on the microscope diffraction shift status reading (broken line) in two cases where the beam is deflected statically using the control panel: without specimen, with lens renormalization per measurement (FIG. 12A), and with replica grating specimen inserted (FIG. 12B);

    [0070] FIGS. 13A and 13B show, respectively, integrated differential phase contrast data, iDPC image, based on first and third order terms acquired by analyzing diffraction disk movements at focus; and iDPC image based on first and third order terms acquired by analyzing diffraction disk movements at 1.4 um defocus;

    [0071] FIGS. 14A-14D show the transmission images of boron nitride nanotubes computed from the quadrant (segments A-D) and ADF (segment E) data of detector of FIG. 7B, wherein FIG. 14A shows the iDPC phase shift by Fourier analysis (iDPCFT); FIG. 14B shows the iDPC phase shift by real-space integration (iDPCRS); FIG. 14C shows the ADF scan (ADF); and FIG. 14D shows the Difference image from the sum of segments A-D at two defocus settings (f);

    [0072] FIGS. 15A-15F illustrate focus extension in the sum images of the bright-field quadrants of the detector segments by compensating the parallax image shifts, for defocus settings: 1.5 m, 0.5 m, 1.5 m, wherein FIGS. 15A-15C correspond to readings of simple annular bright field (ABF) detector by summing signals directly from the four channels A,B,C,D, and FIGS. 15D-15F correspond to the same scans summed after parallax correction by aligning the images by cross-correlation;

    [0073] FIGS. 16A-16D show calculation of CTF versus defocus at three spatial frequencies. CTF.sub.iS for the specific quadrant detector of FIG. 7B with specific operational parameters (FIG. 16A); CTF.sub.iS for hypothetical quadrant detector without a central hole (FIG. 16B); CTF.sub.2 under similar conditions (FIG. 16C); CTF of ADF (modulo prefactor)FIG. 16D;

    [0074] FIGS. 17A-17H illustrate computed iDPC signals, wherein FIGS. 17A-17D show the iDPC.sub. (iDPC1) part calculated based on aligned quadrant images, where the parallax contribution is compensated computationally (by de-shifting), and FIGS. 17E-17H show the second part, iDPC.sub..sub.2 (iDPC2) calculated from the remainder of the iDPC signal;

    [0075] FIG. 18 shows DPC vector field (inverted) for part of the data in FIGS. 17A-17H, where high magnitude arrows are interpreted as electric field pointing toward accumulated negative charge.

    DETAILED DESCRIPTION OF EMBODIMENTS

    [0076] Referring to FIG. 1, there is schematically illustrated, by way of a block diagram, a data analysis system 10 of the presently disclosed subject matter for determining a structural image of a sample. The system 10 is typically a computer system comprising inter alia data input and output utilities 12A, 12B, memory 12C and a data processor and analyzer 12D. The system 10 is configured for data communication (via wires- or wireless-based technique of any known suitable type) with a measured data provider 14. To this end, the system may include an appropriate communication utility 16, which may be of any known suitable type.

    [0077] The measured data provider 14 is typically a storage utility where the measured data is stored, and may be that of a scanning microscope itself or an external storage device associated with the scanning transmission microscope (electron microscope, optical microscope or X-ray microscope). The system 10 can thus be connected to/integral with a scanning microscope to process measured data being collected in real time (so-called on-line mode) or may be a stand-alone computer system receiving the measured data in off-line mode from the storage device.

    [0078] The measured data that can be processed by the system 10 to provide a structural image of a sample is raw measured data obtained from a segmented detector collecting illumination transmitted through a sample during a single scan session in a scanning microscope. This may be electron beam scan session or optical scan session.

    [0079] The raw measured data thus includes scan dataset, (I.sub.M).sub.N; collected in a single scan and including a sequence of N measurements (e.g. measured points) on a sample (N9) obtained by an M-segment detector (M3). This scan dataset is processed and analyzed by the data processor and analyzer utility 12D. The data processor and analyzer utility 12D includes at least a first processor 18 which is configured and operable to process the scan dataset (I.sub.M).sub.N to produce data indicative of parallax corrected scan image data (structural image) of the sample, a so-called deshifted differential phase contract data DPC.sup.ds.

    [0080] Preferably this first processor 18 also calculates corresponding integrated differential phase contrast data iDPC.sub.1. This enables separation between phase and depth information and direct extraction of depth contrast image of the sample in which the signed intensity, bright or dark, represents the degree of defocus. To this end, the data processor and analyzer preferably also includes a second processor 20, which utilizes data indicative of integrated differential phase contrast data iDPC (which is calculated from the scan data set by either the first or the second processor), and determines a difference, iDPC.sub.2, between the iDPC and iDPC.sub.1, which is indicative of the depth contrast image of the sample, in which the signed intensity, bright or dark, represents the degree of defocus indicative of the depth of features in the sample.

    [0081] Thus, the data processor and analyzer 12D may be configured and operable to determine, in the scan dataset, two parts related to different contributions of the signal being detected: one part is associated with parallax component induced by phase delay of coherent illumination being detected by off-axis detector segments and is indicative of true phase contrast (determined by structure/composition of the sample), and the other part is associated with parallax component dependent on defocusing aberration effects.

    [0082] More specifically, as indicated in FIG. 1, and is further exemplified in flow diagram 100 of FIG. 2A, the processor and analyzer 12D can operate to compensate, in the scan dataset, image shifts induced by off-axis detection channels for sample features at defocus plane to thereby separate between phase and depth contrast in the image data and directly extract a depth contrast image of the sample from the single scan dataset.

    [0083] Such processing may be implemented as follows:

    [0084] As indicated above, the scan dataset, (I.sub.M).sub.N, is provided/received (step 102) including the sequence of N measurements/points on a sample each obtained by M detection channels of M-segment detector (M3). Each i-th detector segment provides image I.sub.i(x,y) based on the N measurement points along the scan, by mapping the locations in the image according to the locations of the focused beam exactly at the focal plane.

    [0085] This scan dataset is processed (step 104) to determine the parallax-corrected scan image (stage 108). To this end, for at least some of N points in dataset I.sub.i(x,y) per each i-th-detection channel, an image shift (x.sub.i, y.sub.i) is determined. This is a shift (e.g. a common shift for all N points acquired by the i-the detection channel) between the (x,y).sub.foc locations of the focused beam at the focal plane and the (x,y).sub.defoc locations of the beam on a sample at defocus plane, i.e. at a z location off the focal plane.

    [0086] In other words, an image shift is found between I.sub.i(x,y) and a hypothetical image acquired from a central region of a detector at the optical axis defined by the illumination path of the microscope (step 108). The determination of the shift may for example be implemented as follows:

    [0087] All possible vectors of relative image shifts are calculated for at least some of pairs ij of detection channels in at least some of the N measurements, i.e. intersegment cross-correlations between at least some of images I.sub.i(x,y) and I.sub.i(x,y) is performed and relative shifts x.sub.ij and y.sub.ij are calculated, and the image shift values (x.sub.i, y.sub.i) are determined from a best fit condition (step 110). This will be described more specifically further below.

    [0088] Then, an opposite shift value is applied to each normalized signal I.sub.i(x,y) to thereby obtain corresponding deshifted image I.sub.i.sup.ds(x,y) with respect to each i-th detector segment/detection channel (step 112). The so-obtained deshifted scan dataset (I.sub.1.sup.ds, . . . I.sub.M.sup.ds), where each set of N samples/measurements is now reordered/shifted differently, are used to calculate deshifted differential contrast data DPC.sup.ds (step 114). This deshifted differential phase contrast (DPC.sup.ds) is indicative of parallax corrected scan image of the sample.

    [0089] Preferably, this data DPC.sup.ds is used to calculate therefrom corresponding integrated differential phase contrast (iDPC.sub.1) (step 116) providing a parallax-corrected scan image related to the true phase of the sample (detected signal associated with radiation (light or electron beam) passage through the structure/composition of the sample) and being indicative of extended depth of field (as will be described more specifically further below).

    [0090] Additionally, and in some embodiments preferably, the scan dataset (I.sub.M).sub.N is also processed to determine integrated differential phase contrast iDPC data (step 106). This enables to determine a difference, iDPC.sub.2, between the integrated differential phase contrast data iDPC of the original scan dataset (I.sub.1, . . . I.sub.M), and integrated differential phase contrast data iDPC.sub.1 of the deshifted scan dataset (I.sub.1.sup.ds, . . . I.sub.M.sup.ds) (step 118), thereby enabling direct extraction of the parallax component of image dependent on defocus providing a simple and very interpretable 30 depth contrast.

    [0091] The data indicative of parallax-corrected scan image may be so-called global parallax-corrected image data of multiple features/objects within a range of interest R. This technique is exemplified by a flow diagram 120 of FIG. 2B. To facilitate understanding, similar steps/elements in various examples of the presently disclosed subject matter as described herein are identified by the same reference numbers. As shown in the figure, raw single-scan data (I.sub.M).sub.N is provided (step 102) and, for every feature/range R of interest the following processing is performed: A set of pixels S(R) in the image is determined that belongs to the feature/range of interest R (step 122). Then, images I.sub.iR(x,y) are generated from the i-th detector segment images I.sub.i(x,y) by clearing pixels outside said set of pixels S(R)step 124. Image shifts are determined for Ii,R(x,y), which is similar to step 110 described above; and these shifts are used to determine deshifted images and calculate corresponding deshifted DPC.sup.ds similar to the above-described steps 112 and 114. Then, values of global DPC.sup.ds are determined at points S(R) according to DPC.sup.ds (R) presenting the global parallax-corrected image data-(step 126). Similar to the above-described example, this data DPC.sup.ds is preferably used to calculate therefrom corresponding integrated differential phase contrast (iDPC.sub.1)step 116.

    [0092] As indicated above, the technique of the presently disclosed subject matter also provides for obtaining a depth-labeled phase contrast image by displaying the iDPC.sub.1 information with different labeling according to the depth of features in the sample, which is found from the scan dataset (I.sub.M).sub.N. For example, the labeling can include color scale in a 2D image or recording the features in different slices of a 3D image file. In this connection, reference is made to FIG. 2C exemplifying a flow diagram 130 of this technique.

    [0093] As shown, the raw single-scan data (I.sub.M).sub.N provided (step 102) and, for every feature/range R of interest the following processing is performed: a set of pixels S(R) in the image is determined that belongs to the feature/range of interest R (step 122); and, by clearing pixels outside said set of pixels S(R), images I.sub.i,R(x,y) are generated from the i-th detector segment images I.sub.i(x,y)step 124. Then the image shifts found in step 110 as described above are used to calculate defocus z(R), e.g. using model-based processing (step 136). Then, a color or any other suitable labeling mark C(R) can be chosen in accordance with the degree of defocus Z(R)step 138; and the pixels S(R) are drawn according to intensity of iDPC.sub.1 (determined in step 116 as described above) in the chosen color (label) C(R)step 140.

    [0094] The above-described data analysis technique can be used with electron beam scanning microscope or optical microscope or X-ray microscope by using any known suitable microscope configurations with the only modification that multiple detection channels are used (either by replacing a pixelated detector with a segmented detector or by proper interpretation of readout of the pixelated detector as described above) for detecting the illumination transmitted through the sample.

    [0095] Considering optical microscopy, the principles of the presently disclosed subject matter may be implemented in confocal scanning microscope modified by using a segmented detector. biological samples, such as cells without stain, are mostly transparent to light. Specific features or molecules within may be fluorescent, whether naturally or by labeling with fluorescent proteins or chemical dyes. Generally, confocal microscope is designed to achieve contrast in such fluorescent samples and to scan inner layers with resolution on the order of a few micrometers in thickness. A scanning probe is focused by the microscope objective, which means that the illumination cone is defined by the numerical aperture of the objective. The scanned images are acquired by a detector collecting light returned along the illumination path. An aperture is used to improve the selectivity in depth by blocking out-of-focus light; the aperture is located at a plane confocal with the specimen focus. Fluorescence is selected from the returned light using spectral filters. Reflected light may also be used in cases of reflective specimens such as in metallurgy or mineralogy but is not adequate for biological specimens. Often, provision is made to also collect the transmitted light, though the transmitted image produced does not benefit from the depth-selecting aperture. To display the pattern of fluorophores within the context of the cell, there is a need for both the fluorescent (i.e., filtered reflection) scan and transmitted light scan. Since the typical specimens are transparent, very little contrast is obtained by the simple transmitted intensity. At the state of the art, contrast in the transmission scan can be achieved with polarizers and a Nomarski-modified Wollaston prism in the optical path, which implements a Differential Interference Contrast (DIC) technique.

    [0096] FIGS. 3A-B exemplify images that can be obtained using the state of the art confocal scanning microscope, where FIG. 3A shows image resulting from simple light collection and FIG. 3B shows the image after DIC filtering. In this specific example, transmission scans of fibroblast tissue culture cells in Olympus Fluoview scanner with BX50WI microscope, where the DIC components are withdrawn or inserted, which shows the benefit of DIC filtration clearly. However, the image position and shading depend on settings of the polarizers and the prism, so positioning of the fluorophore distribution in the cell context is compromised. Moreover, the complexity in adjusting several optical components conflicts with other optical manipulations.

    [0097] To implement the technique of the presently disclosed subject matter, the confocal scanning microscope is modified by using a segmented detector, e.g. quadrant detector, placed in a diffraction (Fourier) plane of the scanning probe of a confocal microscope.

    [0098] In this connection, reference is made to FIGS. 4A and 4B. FIG. 4A shows the general principles of the light detection scheme in a confocal scanning microscope 200 and how it can be used for the purposes of the presently disclosed subject matter. As shown in the figure, an illumination cone is structured such that it is focused to probe a focal plane, and a quadrant detector 202 having segment A, B, C, and D is located in the diffraction plane. The use of segmented detector allows measurement of Differential Phase Contrast (DPC) and its derived integrated Differential Phase Contrast (iDPC) as follows:

    [00001] D P C x I A + I B - I C - I D DP C y - I A + I B + I C - I D iDPC ( x , y ) = 0 x dxDPC x + 0 y dyDPC y

    [0099] The DPC and iDPC are derived from normalized current I.sup.i received by each i-th detector segment simultaneously from segments A-D, which current is proportional to the collected illumination falling on the area of said segment.

    [0100] The detected signals correspond to a point in a full scanned image, I.sub.i(x,y) by the i-th detector segment, so the indices (x,y) correspond to the location of the scanning probe (namely the focal point of the illumination) on the sample. The x and y components of DPC are with respect to the diffraction plane (Fourier plane) where the detector is located, so in the special case that the beam is curled (similar to curling of the scattering trajectory of electron in magnetic field) a corresponding vector is to be transformed to the (x,y) framework of the scan (otherwise, the two frameworks are the same). In any case, the DPC corresponds to element-wise mathematical operations between datasets/images I.sub.i . . . I.sub.M.

    [0101] As mentioned above and will be described in more details below, the measured data analysis technique of the presently disclosed subject matter utilizes separation of the DPC and iDPC into two parts related to different contributions in the signal being detected. One part is the true phase contrast related to delay in phase of the coherent illumination by the sample, and the other part is referred to as depth contrast, which involves the influence of defocus aberrations. According to this technique, the true phase contrast (iDPC.sub.1 in FIG. 2) is calculated from deshifted scan images of the signal I.sub.i(x,y) detected by each i-th detector segment along the scan, namely from corrected images based on finding the image shifts (x.sub.i, y.sub.i) and translating each image by the opposite shift. Effectively, this means that the scan signals I.sub.i(x,y) are synchronized with the true point of (x,y) on a sample.

    [0102] The inventors have found that the computationally aligned or deshifted iDPC.sub.1 is robust against lens aberration and remains much the same when the image is scanned at a range of lens defocii as large or even somewhat larger than the canonical depth of field.

    [0103] The second contribution of iDPC is determined as


    iDPCiDPC1=iDPC2

    where the image intensity of iDPC2 is sensitive to the depth of the sample's features, and thus it reveals the order of the features in height based on differences in brightness of similar features.

    [0104] There is a certain freedom in determining the zero of iDPC2, which represent the background. For presentation of iDPC2 as depth contrast, the iDPC1 is calculated from image shift larger than about 1 pixel, otherwise the details cannot be observed. The range of interest (ROI) in the iDPC1 calculation for this purpose is preferably in the margins of the image, where the contrast may disappear. If the image shift is less than 1 pixel, the value of 1 pixel can be used for deshifting of the images.

    [0105] The technique of the presently disclosed subject matter thus advantageously provides for acquiring 3D information of the sample (i.e. structural data of the sample) in a single scan.

    [0106] In the following, the general relation between defocus and image shifts with the use of M-segment detector (M3) located in a diffraction plane (Fourier plane) is explained.

    [0107] By selecting part of the image around a chosen feature the amount of defocus (lens correction) required to scan the feature in focus can be determined. It is possible also to select the entire scan image and determine the best defocus required to bring the entire scan to best average focus, from which relative heights or depths appear as relatively bright or dark intensities.

    [0108] FIG. 4B shows the specification of the elements in the detector (shaded area) and an outer circle that can be determined by the cone of illumination, .sub.1 denoting the semi-angle of the cone. Angles .sub.0 and .sub.1 are arctangent of the radii of collected illumination divided by the imaging length in the electron microscope, and in optical systems .sub.1 is simply the numerical aperture. Unless there is a hole in the center of the detector, the inner angle is .sub.0=0. The outer angle is the smaller between the beam illumination cone angle and the detector maximum collection angle.

    [0109] The azimuthal angle of the center of each i-th detector segment is

    [00002] i = 2 M ( i - 1 ) +

    with respect to a certain x-axis in a Cartesian coordinate system. A scan image is acquired from each detector segment, which due to its specified location is shifted by (x.sub.i, y.sub.i) compared with a scan image that would be acquired from a central element/segment in the detector lying on the optical axis defined by the illumination path.

    [0110] In general, the lenses may introduce aberrations. The inventors have determined the relation between the image shift of i-th detector segment, the defocus z, and the dominant aberrations according to a set of linear equations as follows:

    [00003] ( x i y i ) = ( cos ( i ) 0 sin ( i ) 0 sin ( i ) cos ( i ) ) ( z + A 1 x z - A 1 x A 1 y ) + C 3 ( cos ( i ) sin ( i ) ) , where 2 3 ( 1 3 - 0 3 ) ( 1 2 - 0 2 ) sin ( / M ) / M 2 5 ( 1 5 - 0 5 ) ( 1 2 - 0 2 ) sin ( / M ) / M

    Here, (A.sub.1x+iA.sub.1y) is the 2-fold astigmatism, and C.sub.3 is the spherical aberration.

    [0111] Since there are different equations for each i-th detector segment, the defocus z and aberration constants can be extracted by solving for them when the image shifts are known. Often it is possible to neglect all aberrations except for defocus, and a four-quadrant detector aligned as

    [00004] i = 2 ( i - 1 ) - 4 ,

    i=1 . . . 4 can be used, similarly to the quadrants in a Cartesian coordinate system. In this case the calculation simplifies to:

    [00005] ( x 1 y 1 ) = 4 1 3 Z ( 1 - 1 ) , ( x 2 y 2 ) = 4 1 3 Z ( 1 1 ) , ( x 3 y 3 ) = 4 1 3 Z ( - 1 1 ) , ( x 4 y 4 ) = 4 1 3 Z ( - 1 - 1 )

    In practice, the defocus z is obtained by averaging all shift results according to:

    [00006] Z = 3 32 1 ( x 1 - y 1 + x 2 + y 2 - x 3 + y 3 - x 4 - y 4 )

    [0112] Image shifts are usually obtained via digital analysis by finding the location of the highest peak in a correlation map between two images. However, the reference unshifted scan (from a central detector element) can be omitted and the required image shifts are extracted more reliably from all possible couples among the shifted M images. The procedure is demonstrated for the case M=4 as follows.

    [0113] The unknown image shifts in relation to a virtual unshifted image are denoted by shift vectors r.sub.1, r.sub.2, r.sub.3, r.sub.4 (r.sub.i=(x.sub.i, y.sub.i)). The relative shift of image q with respect to image p is denoted r.sub.pq, and is related to the required vectors as r.sub.pq=r.sub.qr.sub.p. Since r.sub.pq=r.sub.qp it suffices to measure cross correlation of 6 image pairs, and the following equations are used:

    [00007] 3 r 1 - r 2 - r 3 - r 4 = r 2 1 + r 3 1 + r 4 1 3 r 2 - r 1 - r 3 - r 4 = r 1 2 + r 3 2 + r 4 2 3 r 3 - r 1 - r 2 - r 4 = r 1 3 + r 2 3 + r 4 3 3 r 4 - r 1 - r 2 - r 3 = r 1 4 + r 2 4 + r 3 4

    [0114] After rewriting the equations using the known (x.sub.pq, y.sub.pq) one can solve for the required r.sub.i=(x.sub.i, y.sub.i) using known in the art Moore-Penrose pseudoinverse solution.

    [0115] It should be noted that r.sub.pq can be found in subpixel resolution as follows. 1616 points around the highest peak in the cross-correlation map are first isolated, then interpolated to 512512 points (for example using the Matlab code fftInterpolate written by Matthias Christian Schabel). The location of the peak is then found within 1/32 pixel resolution.

    [0116] Since z is determined by a linear relation to a measurable property (the image shifts) the performance of existing algorithms that determine defocus based on image blurring can be exceeded by the technique of the presently disclosed subject matter, since the property of blurring depends quadratically on defocus and is thus less accurate to determine small defocus.

    [0117] The technique of the presently disclosed subject matter is exemplified for a quadrant detector replacing a bundle of optical fibers in the back of the BX50WI microscope; the fiber bundle normally carries transmitted light to a photomultiplier detector. The quadrant photodiode detector (UDT, SPDT 40) is rectangular, with total size of 7 mm. The active surface of the detector is placed at the location to which the diffraction plane of the condenser is projected, normally where the edge of the fiber bundle is otherwise positioned in the BX50WI. The precise location of the diffraction plane is found using a Bertrand lens replacing one of the eyepieces, in which the light emitting fiber bundle should appear in focus. The position of the collimator is then aligned by viewing the edges of the field iris via the normal eyepiece. By partly contracting the field iris and bringing its edges to focus it is assured that the diffraction pattern of the sample is projected on the chosen plane of the detector.

    [0118] For demonstration, the 4 wires and the ground pin of the quadrant detector are connected to a 4-channel oscilloscope (Siglent SDS 1104x). The labeling of the channels should follow the order shown in FIG. 4A so the DPC calculation can apply. The acquisition settings are 250 KS/s, 2 sec/div, for a scan time of 28 sec. The sensitivity is either 10 mV/div with AC coupling or 100 mV/div with DC coupling, where in transparent cells the former is needed for sufficient resolution of details. The scan is controlled from the Fluoview software and set to 35.9 sec and 20482048 pixels, using zoom 2 and objective lens of X20 NA=0.7, so the pixel size is 0.17 microns. The data are stored in CSV file and analyzed by a custom-written MATLAB code to produce the images.

    [0119] The cells are fixated on a slide and a green laser probe is focused on the cells with the normal objective focus. The collimator is then readjusted so the fins of the field iris viewed through the eyepiece is at focus. This step assures that the quadrant detector is at the diffraction plane. The signals are acquired with the laser scan and using a custom-written Matlab code confocal_measure.m the image shift is calculated either over the entire scan area or around a feature of interest. Based on the image shift the defocus is determined according to

    [00008] Z = 3 4 NA .Math. [ image shift ] .Math. [ pixel size ]

    [0120] One of the scans at arbitrary sample position z=0 provided the following image shifts: [0121] i=1, (8.0859, 7.1797) [0122] i=2, (7.0078, 6.1797) [0123] i=3, (7.1953, 7.6328) [0124] i=4, (7.8984, 6.6328) [0125] Image shift average=7.2 pixels

    [0126] Reference is made to FIGS. 5A-5D showing the results of experiments conducted by the inventors, comparing the technique of the presently disclosed subject matter to the DIC filteration method.

    [0127] The iDPC image data (FIG. 5A) can be calculated from the raw measured data as described above with reference to FIG. 4A. The deshifted iDPC (iDPC1 in FIGS. 1 and 2) is calculated (using custom-written Matlab code confocalb.m) from the images after applying the following translation vectors, which cancel the average shift [0128] i=1, (7.2, 7.2) [0129] i=2, (7.2, 7.2) [0130] i=3, (7.2, 7.2) [0131] i=4, (7.2, 7.2)

    [0132] The deshifted iDPC in FIG. 5B seems to deshift one of the layers that was out of focus but do injustice to another layer that was originally at the correct position. However, the subtraction iDPC2=iDPCiDPC1 that is shown in FIG. 5C reveals a clear image of the cells, which resembles the DIC filtered image (FIG. 5D) discussed above. It should also be understood that the technique of the presently disclosed subject matter can be used without introducing any new optical components to the microscope system.

    [0133] FIG. 6 illustrates a plot of the image shifts obtained at several defocus points (the sample is moved in relation to the objective lens). The plot is found linear, which confirms the modeled theoretical relation between defocus and average image shift. From the slope of the plot, it is found that the numerical aperture is to be NA=(3*0.17/4)/0.809=0.5, somewhat smaller than the NA=0.7 of the objective.

    [0134] It should be noted that several technical improvements can be used in the measurements to impact both the convenience and quality of the data, such as the use of a proper amplifier for the photodiode, a dedicated signal acquisition device synchronized to the scan, and an optical switch between conventional trans-illumination and use of the segmented detector in the scanning mode.

    [0135] As mentioned above, the data analysis technique of the presently disclosed subject matter can be used with scanning transmission electron microscope (STEM) of any known suitable microscope configuration utilizing a segmented detector for detecting sample's response to electron beam illumination.

    [0136] Generally, STEM is based on instantaneous measurements of electron flux as the specimen is illuminated by a focused probe. A variety of detectors may be employed, singly or simultaneously, which subtend different solid angles of scattering. These may be configured such that their signals are dominated by distinct scattering processes. Thus, a detector with multiple segments can report on coherent and incoherent scattering, or distinguish light from heavy elements, on the basis of comparative signal intensities [1].

    [0137] Simultaneous acquisition of integrating area detectors such as ring shapes is needed for Annular Dark Field (ADF) and off-axis elements for Differential Phase Contrast (DPC). Computational methods such as integrated DPC (iDPC) offer a powerful extension in that the image contrast need not be a simple representation of an analog signal from the detector.

    [0138] For wide-field TEM, the notion of the image as a 2D array of square pixels is inherent in the camera architecture. By convention, the STEM image is generated by scanning the probe in a raster pattern and synchronizing the detection window to define pixels in rows and columns, normally with an aspect ratio of one. While this 2D array is retained as a convenience for presentation and storage in a standard file format, in fact the raw signals are traces in time. Separating the measurement sampling from the image pixel leads to considerable freedom in generation of unconventional scan patterns and in measures for minimization of damage to radiation-sensitive specimens. Unconventional scans have been explored recently in the context of compressive sensing acquisition, which could potentially offer an improvement in dose efficiency and scan time.

    [0139] The inventors have also developed scan and data acquisition control system for a STEM utilizing multi-channel detection based on use of multi-segment detector. This technique provides simultaneous multi-channel (e.g. eight-channel) acquisition (with practically no limitation to the number of channels defined by detector segments) and arbitrary waveform scanning capability.

    [0140] In this connection reference is made to FIGS. 7A-7C, wherein FIGS. 7A and 7B exemplify multi-segment detectors 300A and 300B, respectively, and FIG. 7C exemplifies, by way of a block diagram, a STEM 400 equipped with the scan and data acquisition control system 402.

    [0141] As shown in FIG. 7A, the detector 300A includes the following segments providing corresponding detection channels: four-quadrant detector segments A,B,C,D, and outer annular ring segments E, F and an additional detector BF being a bright field detector or EELS spectrometer located within a central region of the disc 302. In the example of FIG. 7B, the detector 300B is configured generally similar to that of 300A, namely including detector segments A-F, but having no central detector leaving a central hole/aperture. This allows for placing additional detector BF downstream of the disc 302 while being vertically aligned with the central aperture of the disc.

    [0142] The detector of FIG. 7B may be implemented similar to solid-state segmented detector commercially available from Opal, El-Mul Technologies, Israel. This figure also shows montage of such 6 detection channels acquired in a real-space scan providing uniformity of detector response.

    [0143] As shown schematically in FIG. 7C, the STEM 400 is of the generally known configuration (e.g. FEI Tecnai T20-F), namely includes an electron beam column EM configured for implementing a scan mode along x- and y-axes while being properly controlled by user input via user interface and typical serial software. In this system, however, a detection unit is configured to implement eight-channel detection, and an internal scan generator is modified to implement scan mode control according to the presently disclosed subject matter and possibly also the scan dataset analysis as described above. Alternatively (or additionally), as shown in the figure in dashed lines, the scan dataset analyzer 10 may be part of an external system in data communication with the STEM. The detection unit includes the above-exemplified 6-segment detector 300B, a bright field detector BF located downstream of and aligned with the central hole of the detector 300B, and a high-angle annular dark-field detector HAADF accommodated upstream of or surrounding the detector 300B, providing all together 8 detection channels. As also shown in the figure, the scan controller operates to control arbitrary waveform generators (AWGs) to perform x- and y-axes scan, and read out circuit including analog to digital converters (ADCs) for converting electrical output of 8 detection channels. Acquisition hardware is built from off-the-shelf components. The software is organized so that the system appears as a camera to the popular microscope control platform SerialEM, facilitating integration into sophisticated protocols such as automated acquisition or tomography.

    [0144] The use of the above-described data analysis technique of the presently disclosed subject matter for analysis of signals acquired by multiple detection channels associated with multiple segments of the detector demonstrates that additive terms in the contrast transfer function for iDPC-STEM or for iDPC optical microscope reflect material contrast related directly to phase, and a parallax component dependent on defocus. The latter provides a simple and very interpretable depth contrast. Compensation for the parallax shift provides an extended depth of field and suppresses contrast inversion in the phase image.

    [0145] The various image modalities are demonstrated in the following using a non-planar network of boron nitride nanotubes.

    [0146] Generally, the four design features that are to be considered for a flexible scan system include the following: scan patterns, synchronous multi-channel acquisition, software integration, and data structure.

    [0147] With regards to the scan patterns, the following should be noted: The raster scan is the most natural way to fill a Cartesian plane, with a fast scan in one direction and a slow step in the other. The raster scan also corresponds conveniently to storage of data arrays in a computer by row and column. One should typically only synchronize the sampling to generate a 2D image similar to the read-out of a camera. The raster scan is not, however, a natural way to steer an electron beam. Both the magnetic deflectors and the electronic amplifiers that drive them have a minimal response time, which means that the actual beam location lags behind the control signal that determines the recorded pixel position. At the end of each line the beam is to come rapidly to a halt and reverse direction. This causes very strong scan distortions near the edges of the frame, where severe damage often accumulates. The displayed field is normally cropped to a smaller region where the scan is properly linear. A significant fraction might have to be discarded, and the displayed area might also shift horizontally depending on the scan speed.

    [0148] A more natural way to scan would be to minimize changes in the probe acceleration. For example, a circular scan is entirely smooth, with sine and cosine functions driving orthogonal directions. Then, the probe lag is equivalent to a phase delay on both. By slowly reducing the amplitude, a shrinking spiral is obtained or set of concentric circles. A variety of spiral scan schemes has been explored previously [8]. Alternatively, the plane may be covered by sweeping a large circle slowly along a line. The Hilbert pattern is another attractive scanning option to reduce distortion by shortening the flyback paths [9].

    [0149] Maximal flexibility can be achieved by preparing an array of scan coordinates in advance. The Cartesian pixel grid can be recovered by interpolation between the sampled points taking the phase delay into account.

    [0150] With regards to synchronous multi-channel acquisition the following should be noted: In order to improve quantitative comparison between measurements in different channels the acquisitions are to be truly simultaneous. Many digitizers multiplex the measurements in time to use a single analog to digital converter. This approach can cause aliasing artifacts when sampling close to the clock speed, and moreover it is hard to increase the number of channels without slowing the acquisition proportionally. Therefore, simultaneous acquisition is desired. It is also desirable to sample at a frequency significantly higher than the temporal response of the detector amplifiers. This is useful for noise reduction by averaging and for optimal interpolation of non-Cartesian scans.

    [0151] Proper software integration might also be needed because a data collection session for automated operations, such as through-focus series, tomography and recordings for single particle analysis, requires a level of meta-control beyond that of the single image recording. The commonly used SerialEM package can be implemented in a scan generator in order to leverage its capabilities for navigation, acquisition, and microscope control. It should be understood that integration with other software is also possible.

    [0152] Requirements of the file format for saving multi-channel images with flexible scan patterns may include efficient data compression, flexibility and tractability of the field definitions, and aggregation of multiple scans in tomography. Metadata can be saved in the same file. A current mature technology that fulfils the requirements is the MAT file by Mathworks, which can be loaded directly to MATLAB or processed with available open source libraries based on the published format. For example the popular MRC format [20].

    [0153] The hardware used in the experiments conducted by the inventors to demonstrate the techniques of the presently disclosed subject matter is based on computer cards from Spectrum Instruments GmbH (Germany): a two-channel arbitrary waveform generator (AWG) M2p.6541-x4, an eight-channel 16-bit analog to digital converter (ADC) M2p.5923-x4, and a STAR-HUB that synchronizes the cards. The AWG outputs are attached to the Line and Frame external scan inputs (scanX and scanY, henceforth) for STEM. External terminators of 75 Ohm are added at the high impedance microscope inputs. The scanning process begins with upload of pattern vectors for the scanX and scanY inputs of the microscope to the on-board memory of the AWG card. Sampling rates, duration, and amplitude are set to determine the field of view and resolution, including margins that will not be part of the image. Then a synchronized generation and acquisition is handled by the STAR-HUB. Finally, the acquired records are downloaded to the storage utility. The internal storage is sufficient for 8 channel scans of 20482048 pixels with oversampling and scan margins, but in principle a first-in-first-out (FIFO) mode could utilize the computer RAM to expand the sizes.

    [0154] The scan might require distortion compensation due to inductive scan delays. The lumped circuit expected for the beam deflectors is a resistor and inductor in series (as shown schematically in FIG. 8). The location of the beam is determined by the magnetic field and thus by the current passing through the inductor L in the scan coil. The commanded location of the beam is determined by the voltage generated by the Arbitrary Waveform Generators (AWG) channels divided by a constant resistance of the resistor R. The delay of the current after the voltage has a characteristic time =L/R, and therefore the actual position, lags behind the command signal. A list of digital-to-analog conversion (DAC) vectors hold the target points (scanXi, scan Yi) to feed the scan coils, which correspond to the location of the beam in static condition. The sample locations (xi, yi) in the reconstructed image correspond to the location of the beam in dynamic condition, determined by the current in the magnetic coil that lags behind the DAC signal.

    [0155] The delay can be compensated by adjusting the position key used to reconstruct the image. The relation between the commanded location X (or Y) and the actual location Xcorr (or Ycorr) is determined by the first order differential equation

    [00009] X corr = X - dX corr dt

    In discrete form the equation reduces to a corrected series at scan positions n>1:

    [00010] X corr [ n ] = { X [ n ] + t X corr [ n - 1 ] } / ( t + 1 )

    [0156] The delay constant fitted to the microscope (FEI, Tecnai T20-F) was found to be approximately 200 s. Comparing different scan amplitudes and times, the inventors identified a second order correction as a dependence of on the scan velocity. By analyzing images of a replica grating it turned out that .sub.x and .sub.y are to be tuned independently to remove kinks in vertical and horizontal lines, respectively.

    In summary,

    [00011] x = A 1 * [ 1 - B 1 * ( scanx_amplitude / fullXsize ) / t ] y = A 2 * [ 1 - B 2 * ( scany_amplitude / fullYsize ) / t ]

    In the tests performed by the inventors, the fitted values were A1=220 s, A2-265 s, B1=B2=0.1 s/mV. It should, however, be understood that different instruments might require slightly different corrections.

    [0157] The scan might require resampling to 2D image, which may be implemented as follows: The raw data series is converted to a 2D image in Cartesian coordinates for processing and presentation. This involves, first, a correction for the time delay as discussed above. Non-raster scans are interpolated to the Cartesian grid of image pixels. Due to over-sampling, the raw data may be denser than the target array. At acquisition, the over-sampling factor can be set by default to e.g. 10, and is to be reduced if the recorded size or sampling rate exceeds hardware limitations of 512 GS/20 MS/s. Interpolation is based on an average of nearby (<1 pixel) sampled values around the filled pixel, weighted according to distance to sampled positions, i.e.

    [00012] I ( x , y ) = .Math. w i S i ( x i , y i ) / .Math. w i .

    Here, bilinear weighting factor is used calculated as

    [00013] w i = ( 1 - .Math. "\[LeftBracketingBar]" x - x i .Math. "\[RightBracketingBar]" ) ( 1 - .Math. "\[LeftBracketingBar]" y - y i .Math. "\[RightBracketingBar]" ) ,

    according to the distance (in units of pixels) between the exact beam position and the center of the pixel. Bicubic or other weightings may be implemented as well.

    [0158] It should be noted that in contrast to compressive sensing acquisition, the technique used in the presently disclosed subject matter is over-sampling the equivalent pixel grid. This comes at no cost in exposure because, lacking a fast blanker, the beam is in any case sweeping across the sample, and the analog-to-digital conversion (ADC) bandwidth is higher than that of the detector response. The over-sampling provides a measure of redundancy and noise reduction in comparison with instantaneous sampling coupled directly to a pixel lattice.

    [0159] In order to validate the scan used in the experiments, a standard replica grating (S106, Agar Scientific, with 2160 lines/mm) was used to develop several scan patterns.

    [0160] It should be noted that the technique of the presently disclosed subject matter is not limited to the type of the scan used in measurements (e.g. raster scan, circular scan, spiral scan, etc.). Generally, for the measured data analysis, what is to be known (properly supplied) is data indicative of the arrangement of the detector segments to enable properly identify and process data pieces associated with different detection channels.

    [0161] FIG. 9A exemplifies a pattern of the sequence of scan points, i.e. a pseudo-spiral scan consisting of a series of concentric circles with radius decreasing in steps of one pixel, starting from the circle circumscribing the requested square image. The fraction of the scanned area retained is then 2/. In many applications, such as imaging of abundant particles, a square image might not be required, so the entire scan area may be used. The number of sampled points (x, y) is equal to the circumference of the circle times an oversampling factor samples_per_pixel, which is provided for noise reduction as above. The speed of the beam travel is constant and smooth except for the jumps over one pixel between the circles at a certain angle.

    [0162] FIG. 9B exemplify uncorrected full span of a 10 s scan, i.e. the spiral scan with full circular margins circumscribing a square image. The uncorrected artifacts include a twist at the center of the scan and displacement of the lines that should appear straight. FIGS. 9C and 9D show two examples of correction for central region of a 10 s scan (FIG. 9C) and correction for central region of a 5 sec frame times (FIG. 9D) according to the inductive model described above with reference to FIG. 8. A remnant distortion remains in the faster scan, which may be corrected with higher order time derivatives. At the end of the scan the beam is deflected to one of the corners outside the image frame.

    [0163] Scan dataset from each detection channel associated with the detector segment (e.g. of the detector exemplified in FIG. 7A or 7B) can be stored separately, producing multiple images, yet the signals are not independent, and the power of the segmented detector emerges in combinations among the channels.

    [0164] Reference is made to FIG. 10, schematically illustrating the analysis of the position of the uniform diffraction disk on a quadrant detector. The sum of four quadrant detector signals, I1, I2, I3 and I4, relates to the scattering amplitude and their differences to gradients of the phase shift. By definition, a signal I.sub.i is the raw current acquired by the i-th detector segment normalized by the total current of the incident beam. The segments are to be aligned with the scan direction at the sample plane, which due to the helical electron trajectory in the projection system may rotate in relation to the scan direction seen at the detector plane in image mode. After rotation transformation it is assumed that quadrant segments 1 and 2 are being placed at the x>0 half plane with respect to the sample scan, and the four segments are labeled counterclockwise.

    [0165] The differential phase contrast (DPC) and the sum of annular bright field (ABF) signals can be found from the normalized quadrant signals and from the reciprocal vector k.sub.BF (corresponding to the extent of the bright field illumination cone) according to

    [00014] A B F = I 1 + I 2 + I 3 + I 4 , D P C x = k BF 4 ( I 1 + I 2 - I 3 - I 4 ) / A B F , D P C y = k BF 4 ( I 1 + I 4 - I 2 - I 3 ) / A B F .

    [0166] Normalization of the DPC components by the sum signal is a minor adaptation to the loss of intensity due to scattering. Approximately, DPC is related to the specimen phase () delay according to:

    [00015] D P C x 1 2 x and D P C y 1 2 y .

    [0167] Quadrant detectors are commonly used for laser alignment, or, for example, for measurement of tip displacement in atomic force microscopy. Unlike the Gaussian beam of a laser, STEM illumination projects a uniform diffraction disk with a sharp edge, for which the sensitivity of a quadrant detector to displacement differs in the cubic term [14].

    [0168] In the following, a semi-analytical approach that allows accurate calculation of diffraction pattern displacements with a quadrant detector in STEM to mimic a proper position sensitive detector (PSD) is exemplified:

    [0169] Assuming the diffraction disk is in focus and is uniform, the signal from the detector is proportional to the illuminated area within each quadrant. Adjacent quadrants form a half plane, and the area of intersection A between a round spot and the half plane is analytically determined by the radius R of the spot and the central angle measured at the circle center between the vertices of the half plane line cutting the circle:

    [00016] A = 1 2 R 2 ( - sin )

    [0170] In FIG. 10 the relation applies, in one example, to angle .sub.B and the area of intersection between the diffraction disk and quadrants 1 and 4. The area of the i-th quadrant detector illuminated by the diffraction disk is proportional to the signal acquired I.sub.i.

    [0171] Thus, the following equations are obtained for the ratio of the beam intensity G falling onto opposite half planes:

    [00017] G A = ( I 1 + I 2 ) - ( I 3 + I 4 ) I 1 + I 2 + I 3 + I 4 = A - sin A - 1 G B = ( I 1 + I 4 ) - ( I 2 + I 3 ) I 1 + I 2 + I 3 + I 4 = B - sin B - 1

    [0172] Using Newton's method with up to 10 iterations the angles .sub.A and .sub.B are determined accurately and rapidly. For example, starting from .sub.A[0]=G.sub.A+,

    [00018] A [ i + 1 ] = A [ i ] - G A + - A [ i ] + sin A [ i ] - 1 + cos A [ i ]

    [0173] As seen in FIG. 10, the isosceles triangles formed by the circle center and the vertices of the circle with x and y axes, provide that:

    [00019] sin A 2 = R 2 - x c 2 R sin B 2 = R 2 - y c 2 R

    [0174] From these equations it is simple to express the center location x.sub.c, y.sub.c in terms of the angles and the radius, where the sign of the coordinates is retrieved from the sign of G.sub.A and G.sub.B. Expanding sin .sub.A and cos .sub.A around provides analytic expressions

    [00020] G A 4 x c R ( 1 - 1 6 x c 2 R 2 ) and G B 4 y c R ( 1 - 1 6 y t 2 R 2 ) ,

    showing the quadrature term is absent. The illumination cone in k space corresponds to the radius of the diffraction disk R, the camera length L (being the distance of the detector from the sample plane), and the wavelength as

    [00021] k B F = R L .

    [0175] Based on the Fourier transform property:

    [00022] F k p { e i 2 q .Math. r p i n } = F k p - q { i n } ,

    with phase gradient

    [00023] 2 q = ( / x , / y )

    that is nearly constant, the diffracted beam appears uniform and shifted along the x-axis in according to the vector (/x, /y).

    [0176] The known linear approximation of the DPC, namely the phase gradient, can be reproduced as

    [00024] 1 2 x = q x = x c L 4 G A k BF and 1 2 y 4 G B k BF .

    [0177] The signals G.sub.A and G.sub.B thus can be related to the DPC.sub.x and DPC.sub.y signals. The computed center location provides a direct measure of the intensity center of mass (COM) displacement for a thin specimen at focus.

    [0178] It should be noted that at focus the iDPC.sub..sup.3 term relates to the third order correction of the location of the diffraction disk. This leaves the quadratic term iDPC.sub..sup.2 the main contribution that does not involve the disk location.

    [0179] The Differential Phase Contrast DPC evaluation presumes that the detector segment response is uniform. This is an advantageous property of diode-based detectors (such as that commercially available from Opal). FIG. 11 exemplifies a histogram of the response of such detector in different channels Ch1-Ch6. The inset in the figure shows the uniformity in response as a focused probe is scanned across the sensitive areas using direct scanning mode. Histograms of the intensities reported in each channel are found in the main plot. The variability in average response between the segments is less than 5%. The DPC calculation is valid also in the case that the quadrant segments are part of an annulus, rather than a disk, as long as the spot covers completely the inner diameter of the annulus and does not extend beyond the outer diameter. The microscope diffraction camera length is chosen to fulfill these conditions with the detector segments Ch1-4.

    [0180] Operation of the quadrant detector as a position-sensitive detector (PSD) was tested by manually steering the beam using diffraction alignment controls and then comparing the response. The diffraction disk was steered manually using the microscope controls for diffraction alignment, and the x, y readings from the system status panel were recorded along with the average signals of the four segments extracted from a spiral scan. Based on the four average signals, the position of the diffraction disk was calculated detailed above.

    [0181] Reference is made to FIGS. 12A and 12B illustrating comparison between the diffraction disk position based on 4-quadrant analysis (continuous line) and based on the microscope diffraction shift status reading (broken line) in two cases: where the beam is deflected statically using the control panel without specimen, with lens renormalization per measurement (FIG. 12A) and with replica grating specimen inserted (FIG. 12B). In the first case (FIG. 12A), the probe was measured without a sample and each measurement was performed 3 seconds after lens renormalization. This demonstrates the close correspondence. It should be noted that the status values represent control voltages whereas the difference signals are real measurements. In the second case (FIG. 12B) the beam displacement was measured through a replica grating sample. This demonstrates that the signals remain well within range as the beam is displaced, so that the error signal may be used during scanning as a measure of COM displacement.

    [0182] Phase images of the original/raw scan dataset, i.e. integrated differential phase contrast data (iDPC), were computed additionally based on the PSD signals, i.e. directly from the evaluation of the quadrant signals as a position sensitive detector. The images are shown in FIGS. 13A and 13B. Here, FIG. 13A shows the iDPC based on first and third order terms acquired by analyzing diffraction disk movements at focus; and FIG. 13B shows the iDPC image based on first and third order terms acquired by analyzing diffraction disk movements at 1.4 um defocus. It should be noted that the Bragg spots so prominent in the detector signals are almost perfectly removed in the analysis of the disk displacement.

    [0183] The inventors have further demonstrated the capabilities of the data analysis technique of the presently disclosed subject matter for contrast enhancement by comparison and combination of multiple, simultaneously acquired detector segment signals. As a specimen a non-planar net of boron nitride (BN) nanotubes was used, scanned with a pseudo-spiral pattern of 20482048 pixels for 20 sec with a probe semi-convergence angle of 3.7 mrad. The camera length (calibrated to 1500 mm) was chosen so as to largely fill the inner quadrant segments A-D without overlap to the neighboring annular segment E, which then collects a dark-field signal (see detector of FIG. 7A). The accelerating voltage was 200 kV so the FWHM probe diameter was approximately 0.5 nm, sufficiently fine to show mean field phase gradients but not the steep footprint of individual atoms. In addition to mass-thickness contrast, there are discrete points of Bragg scattering coming from the unresolved lattice of the layered material.

    [0184] The respective image data is presented in FIGS. 14A-14D showing the transmission images of boron nitride nanotubes computed from the quadrant (segments A-D) and ADF (segment E) data. Here, FIG. 14A shows the iDPC phase shift by Fourier analysis (iDPC: FT), FIG. 14B shows the iDPC phase shift by real-space integration (iDPC: RS), FIG. 14C shows the ADF scan (ADF), and FIG. 14D shows the difference image from the sum of segments A-D at two defocus settings (f).

    [0185] The iDPC image can be calculated according to

    [00025] k { i D P C } = k .Math. k { D P C .fwdarw. } 2 i k 2

    as shown in [11], where the Fourier transform custom-character and reciprocal vectors {right arrow over (k)} are specified in 2D. Thus, the iDPC image in FIG. 14A was obtained from the imaginary part of the inverse transform of k.Math.custom-character.sub.k{DPC}/k.sup.2.

    [0186] An additional Gaussian high pass filter at 0.01 k.sub.BF can be used to remove the lowest spatial frequencies that suffer from poor signal to noise ratio [10]. For the related iCOM, the Fourier integration method minimizes the noise contribution to the measurement of a conservative field [11].

    [0187] An alternative route to obtain iDPC is by integration in real space, namely

    [00026] ( x , y ) = 0 x d x D P C x + 0 y dyDP C y + regularization

    [0188] Specifically in the case of a DPC measurement, the vector field per se is not strictly conservative. As such, an elaboration on the real space integration implemented in a code called intgrad2 [12] is found useful. The code solves a set of 2*Nx*Ny equations with Nx*Ny variables (x.sub.i, y.sub.i) using the backslash linear equation solver in Matlab. Thus, in the case of a non-conservative vector field, i.e.

    [00027] D P C x y D P C y x ,

    the solution to the inconsistent gradient is obtained in a least-squares manner. This code was used to obtain the iDPC image shown in FIG. 14B (with the same high pass filter as in FIG. 14A).

    [0189] In general, the difference in image details revealed by the two integration methods is small compared with the ADF image of FIG. 14C obtained from segment E. Both integration methods seem to be consistent in the signs of the phases in relation to zero mean, and, unlike the situation for phase contrast TEM, contrast certainly exists at low spatial frequencies. The inventors have found that the real space integration is somewhat preferable since objects appear more uniform with less ringing.

    [0190] In FIG. 14D, phase contrast is retrieved in a manner akin to the phase shift extraction in TEM images described in [13]. The image is produced from the difference between one image in focus and another at a defocus of 1.4 m. The inventors found empirically that the calculation in reciprocal space of the image with k.sub.p to the power of 1 (instead of 2 as in the TEM methods) renders the richest detail, namely

    [00028] I dif ( k p ) 1 .Math. "\[LeftBracketingBar]" k p .Math. "\[RightBracketingBar]" 1 I ( k p ) z

    [0191] The difference in power of k.sub.p in STEM compared to TEM can be explained using notation of the wavefunction =I.sup.1/2e.sup.i and the Transport of Intensity Equation that reads as

    [00029] 2 I ( x , y , z ) z = - I x , y 2 - x , y I .Math. x , y .

    [0192] The second term on the right-hand side is neglected in TEM images while in STEM it is dominant. Specifically the result can be explained based on simulations of the effective Contrast Transfer Function (CTF) for ABF detector [11].

    [0193] The difference CTF(z)-CTF(0) for small defocus z depends linearly on the spatial frequency at the low range. Hence, the expression

    [00030] 1 .Math. "\[LeftBracketingBar]" k p .Math. "\[RightBracketingBar]" I ( k p ) z

    is nearly proportional to the Fourier transform of the phase and thus renders in real space the best image among powers of k.sub.p.

    [0194] The technique of the presently disclosed subject matter considers parallax effect manifested in image shifts with defocus. When comparing images from the four quadrant segments, a lateral shift that depends on defocus was observed. This is a wave phenomenon in the bright field; focus-dependent image shifts are not observed when the quadrant detector collects in the dark field.

    [0195] According to the presently disclosed subject matter (in its either electron-beam or optical scan implementation), for an image acquired away from perfect focus, the shifted images of all the detector channels may be realigned (de-shifted) to compensate the parallax. This is exemplified in FIGS. 15A-15F for defocus settings of 1.5 m, 0.5 m and 1.5 m of STEM. Here, images of FIGS. 15A-15C correspond to readings of simple annular bright field (ABF) detector by summing signals directly from the four channels A,B,C,D. The blurring by defocus is severe in comparison to the ADF image that was acquired simultaneously on segment E. Images of FIGS. 15D-15F correspond to the same scans summed after parallax correction by aligning the images by cross-correlation. The resulting images are clearly sharper than the simple sum of images. In a tilted sample the defocus aberration could be corrected separately in two halves of the image.

    [0196] The data analysis technique of the presently disclosed subject matter utilizes compensation for the parallax shift to provide an extended depth of field and suppress contrast inversion in the phase image. This can be better explained by testing some implications of Contrast Transfer Function (CTF) theory detailed below.

    [0197] The mathematical description of the scan signal from thick samples can be described in an undisturbed probe model following [1] as an incoherent superposition of independent contributions from thin slices along the transmission direction, denoted by subscript l, each of which induces a phase delay .sub.l(x, y). The theory relies on the Born approximation across the entire sample, rather than an explicit weak phase approximation; hence the refractive index n is related to the phase delay within each layer as

    [00031] l = 2 z ( n ( r p , l ) - 1 ) ,

    where z is the layer thickness and is the wavelength of the electron. In a two-dimensional Fourier space, the relation between the scan signal and the phase shift is written for iDPC as follows [11]:

    [00032] k p { I i D P C } = i D P C + i D P C 2 + i D P C 3 ,

    where each part is linearly dependent on the sample features via a contrast transfer function, which in turn depends on defocus lz and spatial frequency k.sub.p

    [00033] i D P C = l C T F i S ( l z , k p ) k p { l } iDP C 2 = .Math. l C T F 2 ( l z , k p ) k p { ( 1 - cos l ) } iDP C 3 = .Math. l C T F 3 ( l z , k p ) k p { ( l - sin l ) }

    The third order correction term iDPC.sub..sub.3 is related to phase delays in the third power, and thus may be neglected in practice.

    [0198] In case of the ADF detector:

    [00034] k p { I A D F } c ( R , W ) k p { | .Math. n | 2 } _ l k p { ( 1 - cos l ) } ,

    where .sub.in denotes the incident probe wavefunction. The prefactor c is assumed constant in a particular setup, and the ADF CTF may be defined as

    [00035] C T F A D F k p { | .Math. n | 2 } _ .

    [0199] Understanding the role of the bright-field parallax in iDPC is key to its analysis for scan microscope imaging of thick samples. The inventors have calculated various CTFs based on the theory of [11] at various defoci and spatial frequencies.

    [0200] The results are illustrated in FIGS. 16A-16D showing the calculation of CTF versus defocus at three spatial frequencies: CTF.sub.iS for the specific quadrant detector (FIG. 7B) with other parameters as described in the text (FIG. 16A), CTF.sub.iS for hypothetical quadrant detector without a central hole (FIG. 16B), and CTF.sub.w2 under similar conditions (FIG. 16C), and CTF of ADF (modulo prefactor)FIG. 16D.

    [0201] The modeled detector geometry was chosen according to the dimensions of the detector of FIG. 7B commercially available from OPAL and details of the configuration used in the Tecnai T20-F microscope: spherical aberration C.sub.s=2 mm, condenser C2 aperture 30 m, camera length L=1500 mm, and wavelength =2.5 pm. At the corresponding semi-convergence angle of 3.7 mrad, with depth of field 180 nm, the contribution of the spherical aberration is practically negligible, rendering the CTF functions either symmetric or antisymmetric with defocus. CTF.sub.iS, which relates to the first order term in iDPC, and CTF.sub.ADF are symmetric and resemble a sinc function; both attenuate similarly with increasing spatial frequency. Hence, the first term in iDPC is expected to be similar to iCOM, since iCOM is defined as a cross correlation between the probe intensity and the phase delay function.

    [0202] In FIG. 16A, CTF.sub.iS is calculated for the above detector of FIG. 7B with its hole in the center, while the hypothetical case without a hole appears in FIG. 16B. Apparently, the hole introduces zero crossings to the CTF, yet the crossings are absent for defocus values smaller than the canonical depth of field defined by the convergence angle and wavelength.

    [0203] The second order term in iDPC, CTF.sub.2, is antisymmetric with defocus as seen in FIG. 16C. The CTF.sub.2 has the same number of extrema as zero crossings in CTF.sub.ADF, counted on the defocus axis. Locations in defocus of the extrema in CTF.sub.2 and zero crossings in CTF.sub.ADF roughly match at high spatial frequencies. Hence, the second iDPC term provides complementary information to that of the ADF. Most significant is the emergence of a linear relation of CTF.sub.2 to defocus. The slope of CTF.sub.2 around the origin increases in value up to an asymptotic line at the lowest spatial frequency. The farther from focus, the stronger will be the low-frequency intensity, with inversion of sign around focus. This is strongly reminiscent of the image shifts by parallax described above.

    [0204] In FIGS. 17A-17H the inventors computed the iDPC signal (with real space integration) from the datasets shown in FIGS. 15A-15F as bright field images. FIGS. 17A-17D show the iDPC.sub. part calculated based on aligned quadrant images, where the parallax contribution is compensated computationally (by de-shifting). FIGS. 17E-17H show the second part, iDPC.sub..sub.2 (iDPC2 in FIGS. 1 and 2) which is calculated from the remainder of the iDPC signal, namely iDPC.sub..sub.2=iDPCiDPC.sub.. As clearly seen in the figures, separation of iDPC parts reveals a constant part (FIGS. 17A-17D) related to phase or projected electric potential and a parallax induced part (FIGS. 17E-17H) related to depth or defocus; objects appear white in underfocus.

    [0205] In the following, the formal relation between parallax offsets and iDPC CTF is elaborated to show that the iDPC.sub..sub.2 part can be expanded as

    [00036] i D P C 2 .Math. l z k p { ( 1 - cos l ) } + O ( k p l z ) 2 ,

    so it is dominated by the parallax contribution.

    [0206] In geometrical optics the wave aberration e.sup.i.sup..sup.(k) of the condenser lens gives rise to an angular ray deflection resulting in a ray displacement

    [00037] = 1 2 k ( k )

    at the plane of the probe, where k is the spatial frequency in the diffraction plane, thus is in general a function of the off-axial position of the detector element. Assuming only defocus Z and no other lens aberrations

    [00038] = Z k .

    The displacements are introduced to the scanning image depending on the accumulated signal on the detector plane. With the detector sensitivity W(k) the related ray displacements can be integrated to obtain an effective image shift

    [00039] S = d 2 k W ( k ) ( k ) / d 2 k W ( k )

    with respect to the aberration-free image.

    [0207] The image shift S for a detector of uniform sensitivity over the x>0 half plane will be opposite in value compared to the image shift of a detector over x<0 half plane.

    [0208] Hence, there is a parallax offset between the images of different quadrant detectors, and thus DPC is affected by the image shift contribution. Yet, if two half planes are considered with a sensitivity similar to a COM sensor, namely W(k)=k.sub.x, the two half planes reveal the same S values. This means that the COM sensor is insensitive to the focus-related parallax effect, as it will be for any even aberration in k.

    [0209] The inventors have proven that the CTF of the second term of iDPC is formally related to the difference in image shifts thus providing the depth contrast image of the sample. The main term in CTF.sub..sub.2 of the iDPC image is the integrated CTF.sub.c in reciprocal space, related to the cosine of phase contribution to the DPC vector. Without restriction, only the x-component is considered, based on the detector sensitivity W.sub.x(k), and a similar result is obtained for the y-component. According to [11], the calculation is

    [00040] CT F c , x _ = - k { i n ( r ) r { W x k - 1 { .Math. n ( r ) _ } } } - k { .Math. n ( r ) _ r - 1 { W x k { i n ( r ) } } } Using i n ( r ) = r { A ( k ) e - i }

    and assuming even aberrations,

    [00041] ( k ) = ( - k ) ,

    and a symmetric condenser aperture

    [00042] A ( k ) = A ( - k ) = A ( k ) _

    the calculation is reduced to convolution terms:

    [00043] CT F c x _ = - k { i n ( r ) } * [ W x ( - k ) A ( k ) e i ] - k { .Math. n ( r ) _ } * [ W x ( k ) A ( k ) e - i ]

    For a small aberration phase shift the inventors approximate:

    [00044] e i 1 + ik x k x , hence CT F c , x _ = - k { i n ( r ) } * [ W x ( - k ) A ( k ) i k x k x ] + k { .Math. n ( r ) _ } * [ W x ( k ) A ( k ) i k x k x ] .

    [0210] Ignoring the convolution with the probe the CTF can be integrated over x- and y-components via

    [00045] C T F 2 C T F ic = C T F c , x 2 ik x + C T F c , y 2 ik y

    [0211] Approaching k.fwdarw.0 the convolution is replaced with integration over k space, therefore

    [00046] CT F 2 ( k = 0 ) 1 2 dk x d k y | A ( k ) | 2 { k x [ W x ( k ) - W x ( - k ) ] + k y [ W y ( k ) - W y ( - k ) ] } ( S x + - S x - ) + ( S y + - S y - )

    [0212] Written in this form, the inventors observe that CTF.sub..sub.2 at a low spatial frequency is proportional to the sum of image shift differences between the left and right quadrants as well as the image shifts between the upper and lower quadrants of the DPC detector. Thus, in the absence of lens aberrations the CTF.sub.2 of any symmetric four quadrant segments is expected to read:

    [00047] C T F 2 Z + O ( k Z ) 2 .

    [0213] The above-described FIGS. 17A-17H demonstrate the principles of the presently disclosed subject matter resulting from a separate analysis of the various CTF contributions to the iDPC presented above. In particular, the figures reveal the understanding of the inventors that the contrast of first part (iDPC.sub.) is almost unaffected by defocus, while the second part (iDPC.sub..sub.2) is strongly affected. The first part is useful for tomography, especially since it is possible to deconvolve the image by the known contrast transfer function CTF.sub.iS at focus. The second part, iDPC.sub..sub.2, provides relative height information instantly from a single scan. The inventors observe that the objects in the iDPC.sup.2 image almost disappear at focus; in underfocus they are white, while in overfocus they are dark. It is also easy to appreciate which of the nanotubes is on top based on the difference in shades, for example as shown in FIG. 17F at f=0.5 m.

    [0214] In the iDPC images of FIGS. 17A-17D, but not in the SUM images of FIGS. 15A-15C, a single significantly bright tip of a nanotube can be recognized where the image intensity extends beyond the material boundary. The same feature was not particularly noteworthy in the ABF images.

    [0215] FIG. 18 shows DPC vector field (inverted) for part of the data in FIGS. 17A-17H, determined from the raw DPCx and DPCy components, which relate to the phase gradient convolved with the probe. The high magnitude arrows are interpreted as electric field pointing toward accumulated negative charge. For scales larger than the probe diameter they reflect the local electric field along the scan direction. The direction and magnitude of the arrows indicate an electric field arising from excess negative charge accumulated on the boundary of the nanotube and at the sharp tip, which is aligned roughly along the circular scan trajectory. Charging by the electron beam is a common nuisance in scanning electron microscopy and STEM, yet the DPC vector representation offers a means to harness and possibly quantify it. Together with the capability of precise and compensated scan pattern there is a possibility to monitor charging dynamics and perhaps determine conductivity.

    [0216] The technique of the presently disclosed subject matter can thus be advantageously implemented in a scanning microscope, and in particular in a standard S/TEM, by using there a multi-segment detector and applying the above-described data analysis of all the detection channels.

    [0217] Also, as described above, the scan microscope operation can be improved by properly controlling the above-described parameters and conditions of the scan mode. The scan generator described above permits arbitrary scan patterns. The inventors have demonstrated scanning with minimal acceleration, as opposed to the conventional raster scan, and a correction algorithm providing to account for the delay of the probe position with respect to the drive signal. As a data collection system there are seven channels with simultaneous acquisition. These features in combination with the use of segmented detector, in particular diode detector, even more improves the STEM performance. Conventional bright field and high angle annular dark field signals were also recorded. Digitization speed is sufficient for significant over-sampling in time, which permits effective interpolation from the unconventional scan patterns to the Cartesian grid of a presentable image. The time stream can be saved for further analysis. The system has been programmed for compatibility with the popular SerialEM software package for microscope control and straightforward integration with sophisticated workflows.

    [0218] The capabilities of multi-channel recording were explored in various combinations to generate contrast even from a weakly scattering specimen (like boron nitride nanotubes). Compensation of defocus image shifts from off-axis detector elements provides a simple separation of phase and depth contrast in iDPC. In comparison to iCOM, the method of de-shifted iDPC provides the depth information essentially for free. It should be understood that the principles of data analysis of the presently disclosed subject matter are neither limited to any number of multiple detection channels, as well any type of multi-segment detection used to provide the scan dataset. The data analysis system of the presently disclosed subject matter is applied as post-acquisition, and can thus be useful for analyzing data collected by any multi-channel detection.