Patent Number: 
Section: claims

1. A method for determining a convex or a concave part of a sample by detecting charged particles emitted from the sample by scanning a charged particle beam, comprising:changing a focus position of the charged particle beam;forming a plurality of line profiles, each line profile including a peak which indicates an edge part located between a convex or concave part of the sample and the adjacent surface, at the different focus positions;calculating, for each of the plurality of line profiles, a first width on one side of the peak of the line profile and a second width on the other side of the peak of the line profile; anddetermining that the convex part is located on the one side of the edge part when a minimum value of the first widths corresponds to a shorter focus length than a focus length corresponding to a minimum value of the second width. 2. A method for determining a convex or a concave part of a sample by detecting the charged particles emitted from a sample by irradiation of a charged particle beam emitted from a charged particle source and determining the uneven surface of the sample based on the detection of the charged particles, wherein:a plurality of determinations are performed by the method for determining a convex or a concave part of a sample according to claim 1. 3. A sample measuring method for detecting the charged particles emitted from a sample by irradiation of a charged particle beam emitted from a charged particle source, wherein the sample is measured according to the focal position when a value subjected to measurement used for the determination of a convex or a concave part of a sample according to claim 1 becomes minimum. 4. A charged particle beam apparatus, comprising:a charged particle source,a scanning deflector for scanning a charged particle beam emitted from the charged particle source on a sample,a lens for changing a focus position of the charged particle beam emitted from the charged particle source,a detector for detecting charged particles emitted from the sample, anda computing section for processing a signal based on the detected charged particles, wherein the computing section:forms a plurality of line profiles, each line profile including a peak which indicates an edge part located between a convex or concave part of the sample and the adjacent surface, at different focus positions;calculates, for each of the plurality of line profiles, a first width on one side of the peak of the line profile and a second width on the other side of the peak of the line profile; anddetermines that the convex part is located on the one side of the edge part when a minimum value of the first widths corresponds to a shorter focus length than a focus length corresponding to a minimum value of the second widths. 5. A computer readable storage medium comprising instructions for determining a convex or a concave part of a sample by detecting charged particles emitted from the sample by scanning of a charged particle beam, which when executed by a computer cause the computer to perform a method comprising steps of:changing a focus position of the charged particle beam;forming a plurality of line profiles, each line profile including a peak which indicates an edge part located between a convex or concave part of the sample and the adjacent surface, at the different focus positions;calculating, for each of the plurality of line profiles, a first width on one side of the peak of the line profile and a second width on the other side of the peak of the line profile; anddetermining that the convex part is located on the one side of the edge part when a minimum value of the first widths corresponds to a shorter focus length than a focus length corresponding to a minimum value of the second width. 6. The charged particle beam apparatus according to claim 4, wherein:a template for specifying the convex or concave part of the sample and the measured results of the convex or concave part are compared to determine a state of the convex or concave part of the sample. 7. The charged particle beam apparatus according to claim 4, further comprising a means for displaying by superimposing the convex or concave part information of the sample on the photographed image as a profile waveform. 8. The charged particle beam apparatus according to claim 4, wherein the obtained convex or concave part information is used to specify the position of the sample. 9. The charged particle beam apparatus according to claim 4, wherein an image or value obtained when autofocusing is used to calculate a signal or profile waveform used for determination. 10. The charged particle beam apparatus according to claim 4, wherein a convex or concave part of the scanned portion is determined, and pattern matching is performed according to the results of the convex or concave part determination. 11. The method according to claim 1, wherein the detection of the charged particles is performed on at least two focal positions, and a signal based on the detected charged particles is used to determine the convex or the concave part of the sample. 12. A method for determining a convex or a concave part of a sample by detecting charged particles emitted from the sample by scanning a charged particle beam, comprising:changing a focus position of the charged particle beam;forming a plurality of line profiles, each line profile including a peak which indicates an edge part located between a convex or concave part of the sample and the adjacent surface, at the different focus positions;calculating, for each of the plurality of line profiles, a first width on one side of the peak of the line profile and a second width on the other side of the peak of the line profile; anddetermining that the concave part is located on the one side of the edge part when a minimum value of the first widths corresponds to a longer focus length than a focus length corresponding to a minimum value of the second width. 13. The method according to claim 12, wherein the detection of the charged particles is performed on at least two focal positions, and a signal based on the detected charged particles is used to determine the convex or the concave part of the sample. 14. A method for determining a convex or a concave part of a sample by detecting the charged particles emitted from a sample by irradiation of a charged particle beam emitted from a charged particle source and determining the uneven surface of the sample based on the detection of the charged particles, wherein:a plurality of determinations are performed by the method for determining a convex or a concave part of a sample according to claim 12. 15. A sample measuring method for detecting the charged particles emitted from a sample by irradiation of a charged particle beam emitted from a charged particle source, wherein the sample is measured according to the focal position when a value subjected to measurement used for the determination of a convex or a concave part of a sample according to claim 12 becomes minimum. 16. A charged particle beam apparatus, comprising:a charged particle source,a scanning deflector for scanning a charged particle beam emitted from the charged particle source on a sample,a lens for changing a focus position of the charged particle beam emitted from the charged particle source,a detector for detecting charged particles emitted from the sample, anda computing section for processing a signal based on the detected charged particles, wherein the computing section:forms a plurality of line profiles, each line profile including a peak which indicates an edge part located between a convex or concave part of the sample and the adjacent surface, at different focus positions;calculates, for each of the plurality of line profiles, a first width on one side of the peak of the line profile and a second width on the other side of the peak of the line profile; anddetermines that the concave part is located on the one side of the edge part when a minimum value of the first widths corresponds to a longer focus length than a focus length corresponding to a minimum value of the second widths. 17. A computer readable storage medium comprising instructions for determining a convex or a concave part of a sample by detecting charged particles emitted from the sample by scanning a charged particle beam, which when executed by a computer cause the computer to perform a method comprising steps of:changing a focus position of the charged particle beam;forming a plurality of line profiles, each line profile including a peak which indicates an edge part located between a convex or concave part of the sample and the adjacent surface, at the different focus positions;calculating, for each of the plurality of line profiles, a first width on one side of the peak of the line profile and a second width on the other side of the peak of the line profile; anddetermining that the concave part is located on the one side of the edge part when a minimum value of the first widths corresponds to a longer focus length than a focus length corresponding to a minimum value of the second width. 18. The computer readable storage medium according to claim 17, wherein:a template for specifying the convex or concave part of the sample and the measured results of the convex or concave part are compared to determine a state of the convex or concave part of the sample. 19. The computer readable storage medium according to claim 17, the method further comprising displaying by superimposing the convex or concave part information of the sample on the photographed image as a profile waveform. 20. The computer readable storage medium according to claim 17, wherein the obtained convex or concave part information is used to specify the position of the sample. 21. The computer readable storage medium according to claim 17, wherein an image or value obtained when autofocusing is used to calculate a signal or profile waveform used for determination. 22. The computer readable storage medium according to claim 17, wherein a convex or concave part of the scanned portion is determined, and pattern matching is performed according to the results of the convex or concave part determination.