Magnified observation device, method for generating observation image, observation image generation program, and recording medium

The dual illumination system in the magnifying observation device enhances unevenness visibility by capturing and combining images from opposing directions, addressing the challenge of shadowed features in single-direction illumination.

JP2024154080APending Publication Date: 2024-10-30KEYENCE CORP

Patent Information

Application Number
JP2023067698
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2024-10-30

AI Technical Summary

Technical Problem

Existing magnifying observation devices struggle to effectively emphasize surface unevenness on an object regardless of the direction of the unevenness, as illumination from a single direction can create shadows that obscure the visibility of certain features.

Method used

The device employs a dual illumination system that applies light from two opposing directions, capturing multiple images to generate composite images that highlight unevenness by comparing brightness differences, and combines these images to create an observation image that emphasizes unevenness in both directions.

Benefits of technology

This approach ensures that unevenness on the object's surface is clearly visible regardless of its orientation, providing a comprehensive view of the object's texture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024154080000001_ABST
    Figure 2024154080000001_ABST
Patent Text Reader

Abstract

To allow acquisition of an observation image in which irregularities are emphasized regardless of the direction of the irregularities in the surface of an observation target object.SOLUTION: There are acquired two images (differential absolute value images Id1, Id2) in which irregularities in the surface of a workpiece 11 are emphasized in two directions of an illumination direction D1 and an illumination direction D2. In order to generate an observation image Io as an image of the workpiece 11, a differential absolute value image Id1 and a differential absolute value image Id2 are synthesized. It thus becomes possible to acquire an observation image Io in which irregularities in the surface of the workpiece 11 are emphasized in two directions of the illumination direction D1 and the illumination direction D2.SELECTED DRAWING: Figure 7
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a technique for capturing an image of an observation target to generate an observation image for observing the observation target. [Background technology]

[0002] Patent Document 1 describes a magnification observation device that captures an object to be observed and generates an observation image of the object. A depth-combined concavo-convex enhanced image is generated as the observation image, and the observation image thus generated is displayed on a display. Therefore, a user can observe the object to be observed by visually checking the observation image. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2020-086293 A Summary of the Invention [Problem to be solved by the invention]

[0004] Incidentally, in order to facilitate visual confirmation of the unevenness of the surface of an observation object, the observation object can be imaged while being irradiated with light from a predetermined illumination direction, thereby generating an observation image in which the unevenness is emphasized. However, depending on the orientation of the unevenness, it may be difficult to emphasize the unevenness. Taking a step extending in a straight line as an example, when the step is perpendicular to the illumination direction, it is possible to generate a clear shadow on the step by the illumination light from the illumination direction. On the other hand, when the step is parallel to the illumination direction, it is difficult to generate a clear shadow on the step by the illumination light from the illumination direction.

[0005] The present invention has been made in consideration of the above-mentioned problems, and has an object to make it possible to acquire an observation image in which unevenness is emphasized regardless of the orientation of the unevenness on the surface of an object to be observed. [Means for solving the problem]

[0006] A magnifying observation device according to a first aspect of the present invention includes an optical system including an objective lens and an imaging lens, an illumination unit that irradiates illumination light onto an observation object placed in a field of view of the optical system from each of a positive direction of a first illumination direction, a negative direction opposite to the positive direction of the first illumination direction, a positive direction of a second illumination direction different from the first illumination direction, and a negative direction opposite to the positive direction of the second illumination direction, an imaging unit that receives light from the observation object via the optical system and generates a luminance image of the observation object, a control unit that controls the illumination unit and the imaging unit, and a display image generation unit that generates an observation image that is an image of the observation object, wherein the display image generation unit acquires a first luminance image by irradiating the illumination light onto the observation object from the positive direction of the first illumination direction and capturing an image of the observation object by controlling the illumination unit by the control unit, and acquires an illumination light from the negative direction of the first illumination direction by controlling the illumination unit by the control unit. the control unit controls the illumination unit to irradiate the object to be observed with illumination light from the positive direction of the second illumination direction and image the object to be observed to obtain a second luminance image; the control unit controls the illumination unit to irradiate the object to be observed with illumination light from the negative direction of the second illumination direction and image the object to be observed to obtain a fourth luminance image; based on the absolute value of the difference between the first luminance image and the second luminance image, a first unevenness-enhanced image is generated in which unevenness on the surface of the object to be observed is enhanced for the first illumination direction; based on the absolute value of the difference between the third luminance image and the fourth luminance image, a second unevenness-enhanced image is generated in which unevenness on the surface of the object to be observed is enhanced for the second illumination direction; and the first unevenness-enhanced image and the second unevenness-enhanced image are combined to generate the observation image.

[0007] The observation image generating method according to the first aspect of the present invention includes a step of acquiring a first luminance image by irradiating an observation object with illumination light from a positive direction of a first illumination direction and capturing an image of the observation object, a step of acquiring a second luminance image by irradiating an observation object with illumination light from a negative direction opposite to the positive direction of the first illumination direction and capturing an image of the observation object, a step of acquiring a third luminance image by irradiating an observation object with illumination light from a positive direction of a second illumination direction different from the first illumination direction and capturing an image of the observation object, and a step of acquiring a fourth luminance image by irradiating an observation object with illumination light from a negative direction opposite to the positive direction of the second illumination direction. The method includes the steps of: obtaining a fourth luminance image by illuminating an object to be observed and capturing an image of the object; generating a first unevenness-enhanced image in which unevenness on the surface of the object to be observed in a first lighting direction is enhanced based on the absolute value of the difference between the first luminance image and the second luminance image; generating a second unevenness-enhanced image in which unevenness on the surface of the object to be observed in a second lighting direction is enhanced based on the absolute value of the difference between the third luminance image and the fourth luminance image; and combining the first unevenness-enhanced image and the second unevenness-enhanced image to generate an observation image, which is an image of the object to be observed.

[0008] The observational image generating program according to the first aspect of the present invention is characterized in that it causes a computer to execute each step of the observational image generating method.

[0009] A recording medium according to a first aspect of the present invention is characterized in that the observational image generating program is stored in a computer-readable manner.

[0010] In the first aspect of the present invention thus configured, a first luminance image is obtained by imaging the object of observation while irradiating the illumination light from the positive direction of the first illumination direction, and a second luminance image is obtained by imaging the object of observation while irradiating the illumination light from the negative direction of the first illumination direction. Then, a first unevenness-enhanced image is generated in which the unevenness of the surface of the object of observation is enhanced in the first illumination direction based on the absolute value of the difference between the first luminance image and the second luminance image. Furthermore, a third luminance image is obtained by imaging the object of observation while irradiating the illumination light from the positive direction of the second illumination direction, and a fourth luminance image is obtained by imaging the object of observation while irradiating the illumination light from the negative direction of the second illumination direction. Then, a second unevenness-enhanced image is generated in which the unevenness of the surface of the object of observation is enhanced in the second illumination direction based on the absolute value of the difference between the third luminance image and the fourth luminance image. In this way, images (first and second unevenness-enhanced images) in which the unevenness of the surface of the object of observation is enhanced in the two directions of the first and second illumination directions are obtained. Then, the first unevenness-enhanced image and the second unevenness-enhanced image are combined to generate an observation image, which is an image of the observation object. This makes it possible to obtain an observation image in which the unevenness of the surface of the observation object is emphasized in two directions, the first and second illumination directions. As a result, it is possible to obtain an observation image in which the unevenness is emphasized regardless of the direction of the unevenness of the surface of the observation object.

[0011] A magnifying observation device according to a second aspect of the present invention includes an optical system including an objective lens and an imaging lens, an illumination unit that irradiates illumination light onto an observation object placed in a field of view of the optical system from each of a positive direction of a first illumination direction, a negative direction opposite to the positive direction of the first illumination direction, a positive direction of a second illumination direction different from the first illumination direction, and a negative direction opposite to the positive direction of the second illumination direction, an imaging unit that receives light from the observation object via the optical system and generates a luminance image of the observation object, a control unit that controls the illumination unit and the imaging unit, and a display image generation unit that generates an observation image that is an image of the observation object, wherein the display image generation unit controls the illumination unit by the control unit to irradiate the illumination light onto the observation object from the positive direction of the first illumination direction and image the observation object to obtain a first luminance image, controls the illumination unit by the control unit to irradiate the illumination light onto the observation object from the negative direction of the first illumination direction and image the observation object to obtain a second luminance image, and controls the illumination unit by the control unit to irradiate the illumination light onto the observation object from the positive direction of the second illumination direction and image the observation object to obtain a second luminance image. a third luminance image is acquired, and a fourth luminance image is acquired by controlling the illumination unit by the control unit to irradiate the observation object with illumination light from the negative direction of the second illumination direction and capture the observation object; a first composite image in which the unevenness of the surface of the observation object is emphasized in the positive direction of the first illumination direction and a second composite image in which the unevenness of the surface of the observation object is emphasized in the negative direction of the first illumination direction are generated based on the first luminance image and the second luminance image; and a fourth composite image in which the unevenness of the surface of the observation object is emphasized in the positive direction of the second illumination direction are generated based on the third luminance image and the fourth luminance image. the first unevenness-enhanced image in which the unevenness of the surface of the object to be observed is emphasized in the first lighting direction based on the absolute value of the difference between the first and second composite images; the second unevenness-enhanced image in which the unevenness of the surface of the object to be observed is emphasized in the second lighting direction based on the absolute value of the difference between the third and fourth composite images; and the first unevenness-enhanced image and the second unevenness-enhanced image are combined to generate the observation image.

[0012] An observation image generating method according to a second aspect of the present invention includes the steps of: acquiring a first luminance image by irradiating an observation object with illumination light from a positive direction of a first illumination direction and capturing an image of the observation object; acquiring a second luminance image by irradiating an observation object with illumination light from a negative direction opposite to the positive direction of the first illumination direction and capturing an image of the observation object; acquiring a third luminance image by irradiating an observation object with illumination light from a positive direction of a second illumination direction different from the first illumination direction and capturing an image of the observation object; acquiring a fourth luminance image by irradiating an observation object with illumination light from a negative direction opposite to the positive direction of the second illumination direction and capturing an image of the observation object; the first and second composite images in which the unevenness of the surface of the object to be observed is emphasized in the positive direction of the second lighting direction based on the third luminance image and the fourth luminance image; generating a third composite image in which the unevenness of the surface of the object to be observed is emphasized in the positive direction of the second lighting direction and a fourth composite image in which the unevenness of the surface of the object to be observed is emphasized in the negative direction of the second lighting direction based on the third luminance image and the fourth luminance image; generating a first unevenness-emphasized image in which the unevenness of the surface of the object to be observed is emphasized in the first lighting direction based on the absolute value of the difference between the first and second composite images; generating a second unevenness-emphasized image in which the unevenness of the surface of the object to be observed is emphasized in the second lighting direction based on the absolute value of the difference between the third and fourth composite images; and combining the first unevenness-emphasized image and the second unevenness-emphasized image to generate an observation image which is an image of the object to be observed.

[0013] A second aspect of the present invention provides an observational image generating program for causing a computer to execute each step of the observational image generating method.

[0014] A recording medium according to a second aspect of the present invention is characterized in that the observational image generating program is stored in a computer-readable manner.

[0015] In the second aspect of the present invention thus configured, a first luminance image is obtained by imaging the object of observation while irradiating the illumination light from the positive direction of the first illumination direction, and a second luminance image is obtained by imaging the object of observation while irradiating the illumination light from the negative direction of the first illumination direction. Based on the first luminance image and the second luminance image, a first composite image in which the unevenness of the surface of the object of observation is emphasized in the positive direction of the first illumination direction, and a second composite image in which the unevenness of the surface of the object of observation is emphasized in the negative direction of the first illumination direction are generated. Based on the absolute value of the difference between the first composite image and the second composite image, a first unevenness-emphasized image in which the unevenness of the surface of the object of observation is emphasized in the first illumination direction is generated. Furthermore, a third luminance image is obtained by imaging the object of observation while irradiating the illumination light from the positive direction of the second illumination direction, and a fourth luminance image is obtained by imaging the object of observation while irradiating the illumination light from the negative direction of the second illumination direction. Further, based on the third luminance image and the fourth luminance image, a third composite image in which the unevenness of the surface of the observation object is emphasized in the positive direction of the second illumination direction and a fourth composite image in which the unevenness of the surface of the observation object is emphasized in the negative direction of the second illumination direction are generated. Then, based on the absolute value of the difference between the third composite image and the fourth composite image, a second unevenness-emphasized image in which the unevenness of the surface of the observation object is emphasized in the second illumination direction is generated. In this way, images in which the unevenness of the surface of the observation object is emphasized in the two directions of the first and second illumination directions (first and second unevenness-emphasized images) are acquired. Then, in order to generate an observation image that is an image of the observation object, the first unevenness-emphasized image and the second unevenness-emphasized image are synthesized. Thereby, it is possible to acquire an observation image in which the unevenness of the surface of the observation object is emphasized in the two directions of the first and second illumination directions. As a result, it is possible to acquire an observation image in which the unevenness is emphasized regardless of the direction of the unevenness of the surface of the observation object. Effect of the Invention

[0016] As described above, according to the present invention, it is possible to obtain an observation image in which unevenness is emphasized regardless of the orientation of the unevenness on the surface of the observation object. [Brief description of the drawings]

[0017] [Figure 1]FIG. 1 is a diagram showing a schematic configuration of a magnification observation device according to the present invention. [Diagram 2] FIG. 2 is a block diagram showing an electrical configuration of the magnification observation device of FIG. 1. [Diagram 3] FIG. 4 is a bottom view showing a schematic configuration of a ring illumination. [Figure 4] 4 is a flowchart showing an example of luminance image acquisition executed in the magnification observation device of FIG. 1. [Diagram 5] 11 is a flowchart showing an example of observation image generation executed by an image processing unit. [Figure 6A] 6 is a schematic diagram partially showing the surface of a workpiece for which an observation image is to be generated by the observation image generation in FIG. 5 . [Figure 6B] 6 is a schematic diagram partially showing the surface of a workpiece for which an observation image is to be generated by the observation image generation in FIG. 5 . [Figure 7] 6 is a diagram showing a schematic diagram of image processing executed by an image processing unit in generating the observation image in FIG. 5. [Figure 8] FIG. 4 is a diagram illustrating an example of an operation screen displayed on a display. [Figure 9] 11 is a flowchart showing an example of an operation performed in depth stacking and 3D. [Figure 10] 10 is a flowchart showing another example of observation image generation executed by the image processing unit. [Figure 11] 11 is a diagram showing a schematic diagram of image processing executed by an image processing unit in generating the observation image in FIG. 10. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0018] Fig. 1 is a diagram showing a schematic configuration of a magnification observation device according to the present invention, and Fig. 2 is a block diagram showing an electrical configuration of the magnification observation device of Fig. 1. In Fig. 1 and the following figures, the horizontal X direction, the horizontal Y direction perpendicular to the X direction, and the vertical Z direction are appropriately shown. The magnification observation device 1 shown in Fig. 1 displays to a user an observation image in which a workpiece 11, which is an observation object, is enlarged. This magnification observation device 1 includes a microscope 2 that acquires an observation image in which the workpiece 11 is enlarged, and a control system 9 that controls the microscope 2.

[0019] As shown in FIG. 2, the control system 9 includes a controller 91, which has a calculation unit 93 and a storage unit 95. The calculation unit 93 is a processor such as a CPU (Central Processing Unit), and the storage unit 95 is a storage device such as a HDD (Hard Disk Drive) or an SSD (Solid State Drive). The storage unit 95 stores an image Im captured by the microscope 2. Furthermore, the storage unit 95 stores an observation image generating program 19, and the calculation unit 93 executes the observation image generating program 19 read from the storage unit 95 to implement a stage drive control unit 931, a head drive control unit 932, an illumination control unit 933, an image acquisition unit 934, an image processing unit 935, a display control unit 941, and an operation reception unit 942. Details of these functional units 931 to 935 and 941 to 942 will be described later. The observation image generating program 19 is downloaded from, for example, an external server computer (recording medium) and stored in the storage unit 95.

[0020] Furthermore, the control system 9 includes a display 97 that displays an observed image of the workpiece 11 to the user, and an operation unit 99 that executes user operations on the magnification observation device 1. The display 97 performs display according to the control of a display control unit 941. The operation unit 99 has input devices such as a keyboard 991, a mouse 992, or a joystick 993, and the user can input commands to the magnification observation device 1 by operating these devices. In response to this, the operation acceptance unit 942 receives commands corresponding to the user's operation on the operation unit 99 from the operation unit 99, and accepts the commands indicated by the operations.

[0021] As shown in FIG. 1, the microscope 2 includes a base 21 placed on the installation surface of the microscope 2, a stage driving mechanism 22 arranged on the base 21, and a stage 23 supported by the stage driving mechanism 22. The stage 23 has a horizontal sample support plane 231, and the workpiece 11 is placed on the sample support plane 231. The stage driving mechanism 22 includes an X-axis stage driving unit 22x, a Y-axis stage driving unit 22y, and a Z-axis stage driving unit 22z shown in FIG. 2. The X-axis stage driving unit 22x has a motor that drives the stage 23 in the X direction in response to a command from the stage driving control unit 931, the Y-axis stage driving unit 22y has a motor that drives the stage 23 in the Y direction in response to a command from the stage driving control unit 931, and the Z-axis stage driving unit 22z has a motor that drives the stage 23 in the Z direction in response to a command from the stage driving control unit 931. For example, a stepping motor can be used as these motors.

[0022] Then, the stage drive control unit 931 controls the X-axis stage drive unit 22x, the Y-axis stage drive unit 22y, and the Z-axis stage drive unit 22z to move the stage 23 in the X-direction, the Y-direction, and the Z-direction. For example, when the operation receiving unit 942 receives a command corresponding to an operation on the joystick 993, the stage drive control unit 931 controls the X-axis stage drive unit 22x and the Y-axis stage drive unit 22y in response to the command to move the stage 23 in the X-direction and the Y-direction.

[0023] The microscope 2 also includes an observation head 3 that faces the sample support plane 231 of the stage 23 from above. The observation head 3 has an observation field of view V, and acquires an image Im by imaging a portion of the workpiece 11 on the sample support plane 231 that overlaps with the observation field of view V. The observation head 3 has a cylindrical housing 31 that extends in the Z direction, a lens holder 32 provided at the lower end of the housing 31, and an objective lens 331 attached to the lens holder 32. The observation head 3 further has a half mirror 34 and a solid-state image sensor 35 that are disposed in the housing 31, and the half mirror 34 is located between the lens holder 32 and the solid-state image sensor 35 in the housing 31. The objective lens 331 faces the workpiece 11 on the sample support plane 231 from above, and light Ls emitted from the workpiece 11 and incident on the objective lens 331 passes through the half mirror 34 and is then imaged on the solid-state image sensor 35. The light Ls is focused by an imaging optical system 33 including the objective lens 331 and a lens (imaging lens) (not shown) provided in addition to the objective lens 331. The solid-state imaging element 35 is a CCD image sensor, a CMOS image sensor, or the like, and obtains an image Im of the workpiece 11 by detecting the light Ls focused on the solid-state imaging element 35. The image Im obtained by the solid-state imaging element 35 is transmitted from the solid-state imaging element 35 to the image acquisition unit 934. In this manner, the image acquisition unit 934 obtains the image Im of the workpiece 11 within the observation field V.

[0024] As the lens holder 32, a revolver-type lens holder 32 to which a plurality of objective lenses 331 having different magnifications are attached may be used. In this case, by rotating the lens holder 32, one of the objective lenses 331 facing the workpiece 11 can be switched from among the plurality of objective lenses 331. In other words, the magnification when acquiring the captured image Im can be switched.

[0025] The microscope 2 includes an epi-illuminator 41 attached to the housing 31 of the observation head 3. The epi-illuminator 41 is attached to the side of the housing 31 so as to face the half mirror 34 inside the housing 31 from the side. The illumination light Lf emitted from the epi-illuminator 41 is reflected by the half mirror 34 toward the objective lens 331 and is irradiated onto the workpiece 11 via the objective lens 331. The illumination light Lf thus irradiated onto the workpiece 11 is reflected by the workpiece 11 and enters the objective lens 331 as the above-mentioned light Ls.

[0026] The microscope 2 also includes a ring illumination 43 (FIG. 3) attached to the housing 31 of the observation head 3. Here, FIG. 3 is a bottom view showing a schematic configuration of the ring illumination. The ring illumination 43 is attached to the outside of the housing 31 so as to surround the objective lens 331 in the bottom view. The illumination light Lr emitted from the ring illumination 43 is irradiated to the workpiece 11 while being tilted with respect to the Z direction. As shown in FIG. 3, the microscope 2 has a plurality of light emitting parts 431, 432, 433, 434 arranged in a circumferential shape, and the plurality of light emitting parts 431, 432, 433, 434 are turned on and off independently of each other. Therefore, by changing one of the plurality of light emitting parts 431, 432, 433, 434 that is turned on, the direction in which the illumination light Lr is irradiated to the workpiece 11 can be switched. That is, by turning on one light emitting unit 431 of the light emitting units 431 and 432 arranged in the illumination direction D1, the illumination light Lr can be irradiated onto the observation visual field V from the positive direction D1(+) of the illumination direction D1, and by turning on the other light emitting unit 432, the illumination light Lr can be irradiated onto the observation visual field V from the negative direction D1(-) of the illumination direction D1. Here, the positive direction D1(+) and the negative direction D1(-) face opposite sides to each other. In addition, by turning on one light emitting unit 433 of the light emitting units 433 and 434 arranged in the illumination direction D2 perpendicular to the illumination direction D1, the illumination light Lr can be irradiated onto the observation visual field V from the positive direction D2(+) of the illumination direction D2, and by turning on the other light emitting unit 434, the illumination light Lr can be irradiated onto the observation visual field V from the negative direction D2(-) of the illumination direction D2. Here, the positive direction D2(+) and the negative direction D2(-) are opposite to each other. The illumination light Lr thus irradiated onto the observation field of view V is reflected by the workpiece 11 within the observation field of view V and enters the objective lens 331 as the light Ls described above.

[0027] Furthermore, the microscope 2 includes a head support section 24 that supports the observation head 3 movably in the Z direction. The head support section 24 includes a Z-axis guide 241 that stands upright on the base 21 in parallel with the Z direction, and a Z-axis movable member 242 that is guided in the Z direction by the Z-axis guide 241, and the housing 31 of the observation head 3 is attached to the Z-axis movable member 242. The head support section 24 also includes a Z-axis head drive section 24z shown in FIG. 2. The Z-axis head drive section 24z includes a motor (e.g., a stepping motor) that drives the Z-axis movable member 242 in the Z direction in response to a command from the head drive control section 932 to move the observation head 3 in the Z direction. In addition, the epi-illumination 41 and the ring illumination 43 also move in the Z direction as the observation head 3 moves in the Z direction.

[0028] The head support part 24 supports the observation head 3 rotatably around a rotation axis parallel to the horizontal direction (for example, the Y direction). Therefore, the user can change the angle of the observation head 3 with respect to the Z direction by rotating the observation head 3 with respect to the head support part 24. In other words, the observation head 3 can take both a frontal posture (the posture in FIG. 1) parallel to the Z direction and an inclined posture inclined in the Z direction, and further, the inclination angle (angle with respect to the Z direction) of the observation head 3 in the inclined posture can be adjusted.

[0029] 4 is a flow chart showing an example of luminance image acquisition executed in the magnification observation device of FIG. 1. In step S101, the illumination control unit 933 controls the ring illumination 43 to turn on only the light emission unit 431 among the light emission units 431 to 434 of the ring illumination 43. This causes the illumination light Lr to be emitted from the light emission unit 431 in the forward direction D1(+) of the illumination direction D1. In step S102, the image acquisition unit 934 controls the solid-state imaging element 35 to capture an image of the surface of the workpiece 11 in the observation field of view V irradiated with the illumination light Lr from the forward direction D1(+) by the solid-state imaging element 35, thereby acquiring an image Im, and stores the image Im in the storage unit 95 as a luminance image Ii1(+).

[0030] In step S103, the illumination control unit 933 controls the ring illumination 43 to turn on only the light emission unit 432 among the light emission units 431 to 434 of the ring illumination 43. This causes the illumination light Lr to be emitted from the light emission unit 432 in the negative direction D1(-) of the illumination direction D1. In step S104, the image acquisition unit 934 controls the solid-state imaging element 35 to capture an image of the surface of the workpiece 11 in the observation field of view V irradiated with the illumination light Lr from the negative direction D1(-), thereby acquiring an image Im, and stores the image Im in the storage unit 95 as a luminance image Ii1(-).

[0031] In step S105, the illumination control unit 933 controls the ring illumination 43 to turn on only the light emission unit 433 among the light emission units 431 to 434 of the ring illumination 43. This causes the illumination light Lr to be emitted from the light emission unit 433 in the forward direction D2(+) of the illumination direction D2. In step S106, the image acquisition unit 934 controls the solid-state imaging element 35 to capture an image of the surface of the workpiece 11 in the observation field of view V irradiated with the illumination light Lr from the forward direction D2(+) using the solid-state imaging element 35, thereby acquiring an image Im, and stores the image Im in the storage unit 95 as a luminance image Ii2(+).

[0032] In step S107, the illumination control unit 933 controls the ring illumination 43 to turn on only the light emission unit 434 among the light emission units 431 to 434 of the ring illumination 43. This causes the illumination light Lr to be emitted from the light emission unit 434 in the negative direction D2(-) of the illumination direction D2. In step S108, the image acquisition unit 934 controls the solid-state imaging element 35 to capture an image of the surface of the workpiece 11 in the observation field of view V irradiated with the illumination light Lr from the negative direction D2(-), thereby acquiring an image Im, and stores the image Im in the storage unit 95 as a luminance image Ii2(-).

[0033] In this way, the image processing unit 935 generates an observation image Io for the user to observe, using the four luminance images Ii1(+), Ii1(-), Ii2(+), and Ii2(-) obtained by capturing images of the surface of the workpiece 11 illuminated with the illumination light Lr from different directions. This will be described next.

[0034] Fig. 5 is a flow chart showing an example of observation image generation executed by the image processing unit, Figs. 6A and 6B are schematic diagrams partially showing the surface of a workpiece for which an observation image is generated by the observation image generation of Fig. 5, and Fig. 7 is a diagram typically showing image processing executed by the image processing unit in the observation image generation of Fig. 5. The observation image generation of Fig. 5 is defined by an observation image generation program 19, and the image processing unit 935 executes the observation image generation of Fig. 5 in accordance with the observation image generation program 19.

[0035] It is assumed that a convex portion 12 exists on the surface of the workpiece 11, which is the object of the observation image generation, as shown in the perspective view of FIG. 6A and the plan view of FIG. 6B. In FIG. 6A and FIG. 6B, the convex portion 12 is shown in a quadrangular pyramid shape. Prior to the generation of the observation image of FIG. 5, the luminance image acquisition of FIG. 4 is executed for the convex portion 12, and four luminance images Ii1(+), Ii1(-), Ii2(+), and Ii2(-) of the convex portion 12 are stored in the storage unit 95 (the "luminance image Ii" column in FIG. 7). The convex portion 12 has four inclined surfaces 121, 122, 123, and 124 and an upper surface 125.

[0036] 7, in a luminance image Ii1(+) acquired while irradiating illumination light Lf onto convex portion 12 from the positive direction D1(+) of illumination direction D1, inclined surface 121 facing the positive direction D1(+) of illumination direction D1 appears bright, and inclined surface 122 facing the negative direction D1(-) of illumination direction D1 appears darker than inclined surface 121. Inclined surfaces 123 and 124 facing illumination direction D2 appear with a brightness between that of inclined surfaces 121 and 122. In addition, upper surface 125 appears with a brightness between that of inclined surface 121 and inclined surfaces 123 and 124.

[0037] In addition, in a luminance image Ii1(-) acquired while irradiating the illumination light Lf onto the convex portion 12 from the negative direction D1(-) of the illumination direction D1, the inclined surface 122 facing the negative direction D1(-) of the illumination direction D1 appears bright, and the inclined surface 121 facing the positive direction D1(+) of the illumination direction D1 appears darker than the inclined surface 122. The inclined surfaces 123 and 124 facing the illumination direction D2 appear with a brightness between the inclined surfaces 122 and 121. In addition, the upper surface 125 appears with a brightness between the inclined surface 122 and the inclined surfaces 123 and 124.

[0038] In addition, in a luminance image Ii2(+) acquired while irradiating the convex portion 12 with illumination light Lf from the positive direction D2(+) of the illumination direction D2, the inclined surface 123 facing the positive direction D2(+) of the illumination direction D2 appears bright, and the inclined surface 124 facing the negative direction D2(-) of the illumination direction D2 appears darker than the inclined surface 123. The inclined surfaces 121 and 122 facing the illumination direction D1 appear with a brightness between the inclined surfaces 123 and 124. Furthermore, the upper surface 125 appears with a brightness between the inclined surface 123 and the inclined surfaces 121 and 122.

[0039] In addition, in a luminance image Ii2(-) acquired while irradiating the illumination light Lf onto the convex portion 12 from the negative direction D2(-) of the illumination direction D2, the inclined surface 124 facing the negative direction D2(-) of the illumination direction D2 appears bright, and the inclined surface 123 facing the positive direction D2(+) of the illumination direction D2 appears darker than the inclined surface 124. The inclined surfaces 121 and 122 facing the illumination direction D1 appear with a brightness between that of the inclined surfaces 124 and 123. In addition, the upper surface 125 appears with a brightness between that of the inclined surface 124 and the inclined surfaces 121 and 122.

[0040] In step S201 of generating an observation image (Figure 5), the image processing unit 935 reads out from the image processing unit 935 a luminance image Ii1(+) acquired while irradiating illumination light Lf from the positive direction D1(+) of the illumination direction D1, and a luminance image Ii1(-) acquired while irradiating illumination light Lf from the negative direction D1(-) of the illumination direction D1.

[0041] In step S202, the image processing unit 935 generates a directional unevenness emphasized image Ie1(+) based on the luminance image Ii1(+) and the luminance image Ii1(-), and stores the generated image in the storage unit 95. This directional unevenness emphasized image Ie1(+) is expressed by the following formula: Ie1(+)=(Ii1(+)-Ii1(-)) / (Ii1(+)+Ii1(-)) That is, the directional unevenness emphasized image Ie1(+) is obtained by subtracting the luminance image Ii1(-) from the luminance image Ii1(+) and normalizing the difference by the sum of the luminance image Ii1(+) and the luminance image Ii1(-).

[0042] Since the slope 121 receives the illumination light Lf from the positive direction D1(+), the slope 121 is bright in the luminance image Ii1(+). On the other hand, since the slope 121 is in the shadow of the illumination light Lf from the negative direction D1(-), the slope 121 is dark in the luminance image Ii1(-). Also, since the slope 122 is in the shadow of the illumination light Lf from the positive direction D1(+), the slope 122 is dark in the luminance image Ii1(+). On the other hand, since the slope 122 receives the illumination light Lf from the negative direction D1(-), the slope 122 is bright in the luminance image Ii1(-). Therefore, in the directional unevenness emphasized image Ie1(+) given by the difference obtained by subtracting the luminance image Ii1(-) from the luminance image Ii1(+), the contrast between the bright slope 121 and the dark slope 122 is emphasized. In other words, in the directional unevenness emphasized image Ie1(+), the unevenness is emphasized by emphasizing the contrast in the positive direction D1(+). Also, by normalizing with the sum of the luminance image Ii1(+) and the luminance image Ii1(-), the influence on the contrast due to the difference in the color of the surface of the workpiece 11 is suppressed.

[0043] Note that the brightness of the slope 123 in the luminance image Ii1(+) is approximately the same as the brightness of the slope 123 in the luminance image Ii1(-). Moreover, the brightness of the slope 124 in the luminance image Ii1(+) is approximately the same as the brightness of the slope 124 in the luminance image Ii1(-). Therefore, in the directional unevenness emphasized image Ie1(+), contrast is not emphasized for the slopes 123 and 124. The same is true for the upper surface 125.

[0044] In step S203, the image processing unit 935 generates a directional unevenness emphasized image Ie1(-) based on the luminance image Ii1(+) and the luminance image Ii1(-), and stores the generated image in the storage unit 95. This directional unevenness emphasized image Ie1(-) is expressed by the following formula: Ie1(-)=(Ii1(-)-Ii1(+)) / (Ii1(-)+Ii1(+)) That is, the directional unevenness emphasized image Ie1(-) is obtained by subtracting the luminance image Ii1(+) from the luminance image Ii1(-) and normalizing the difference by the sum of the luminance image Ii1(-) and the luminance image Ii1(+).

[0045] Since the slope 122 receives the illumination light Lf from the negative direction D1(-), the slope 122 is bright in the luminance image Ii1(-). On the other hand, since the slope 122 is in the shadow of the illumination light Lf from the positive direction D1(+), the slope 122 is dark in the luminance image Ii1(+). Also, since the slope 121 is in the shadow of the illumination light Lf from the negative direction D1(-), the slope 121 is dark in the luminance image Ii1(-). On the other hand, since the slope 121 receives the illumination light Lf from the positive direction D1(+), the slope 121 is bright in the luminance image Ii1(+). Therefore, in the directional unevenness emphasized image Ie1(-) given by the difference obtained by subtracting the luminance image Ii1(+) from the luminance image Ii1(-), the contrast between the bright slope 122 and the dark slope 121 is emphasized. In other words, in the directional unevenness emphasized image Ie1(-), the unevenness is emphasized by emphasizing the contrast in the positive direction D1(-). Also, by normalizing with the sum of the luminance image Ii1(-) and the luminance image Ii1(+), the effect on the contrast due to the difference in the color of the surface of the workpiece 11 is suppressed.

[0046] Note that the brightness of the slope 123 in the luminance image Ii1(-) is approximately the same as the brightness of the slope 123 in the luminance image Ii1(+). Moreover, the brightness of the slope 124 in the luminance image Ii1(-) is approximately the same as the brightness of the slope 124 in the luminance image Ii1(+). Therefore, in the directional unevenness emphasized image Ie1(-), contrast is not emphasized for the slopes 123 and 124. The same is true for the upper surface 125.

[0047] In step S204, the image processing unit 935 reads out from the image processing unit 935 a luminance image Ii2(+) acquired while irradiating illumination light Lf from the positive direction D2(+) of the illumination direction D2, and a luminance image Ii2(-) acquired while irradiating illumination light Lf from the negative direction D2(-) of the illumination direction D2.

[0048] In step S205, the image processing unit 935 generates a directional unevenness emphasized image Ie2(+) based on the luminance image Ii2(+) and the luminance image Ii2(-), and stores the generated image in the storage unit 95. This directional unevenness emphasized image Ie2(+) is expressed by the following formula: Ie2(+)=(Ii2(+)-Ii2(-)) / (Ii2(+)+Ii2(-)) That is, the directional unevenness emphasized image Ie2(+) is obtained by subtracting the luminance image Ii2(-) from the luminance image Ii2(+) and normalizing the difference by the sum of the luminance image Ii2(+) and the luminance image Ii2(-).

[0049] Since the slope 123 receives the illumination light Lf from the positive direction D2(+), the slope 123 is bright in the luminance image Ii2(+). On the other hand, since the slope 123 is in the shadow of the illumination light Lf from the negative direction D3(-), the slope 123 is dark in the luminance image Ii2(-). Also, since the slope 124 is in the shadow of the illumination light Lf from the positive direction D2(+), the slope 124 is dark in the luminance image Ii2(+). On the other hand, since the slope 124 receives the illumination light Lf from the negative direction D2(-), the slope 124 is bright in the luminance image Ii2(-). Therefore, in the directional unevenness emphasized image Ie2(+) given by the difference obtained by subtracting the luminance image Ii2(-) from the luminance image Ii2(+), the contrast between the bright slope 123 and the dark slope 124 is emphasized. In other words, in the directional unevenness emphasized image Ie2(+), the unevenness is emphasized by emphasizing the contrast in the positive direction D2(+). Also, by normalizing with the sum of the luminance image Ii2(+) and the luminance image Ii2(-), the influence of the difference in the color of the surface of the workpiece 11 on the contrast is suppressed.

[0050] Note that the brightness of the slope 121 in the luminance image Ii2(+) is approximately the same as the brightness of the slope 121 in the luminance image Ii2(-). Moreover, the brightness of the slope 122 in the luminance image Ii2(+) is approximately the same as the brightness of the slope 122 in the luminance image Ii2(-). Therefore, in the directional unevenness emphasized image Ie2(+), contrast is not emphasized for the slopes 121 and 122. The same is true for the upper surface 125.

[0051] In step S206, the image processing unit 935 generates a directional unevenness emphasized image Ie2(-) based on the luminance image Ii2(+) and the luminance image Ii2(-), and stores the generated image in the storage unit 95. This directional unevenness emphasized image Ie2(-) is expressed by the following formula: Ie2(-)=(Ii2(-)-Ii2(+)) / (Ii2(-)+Ii2(+)) That is, the directional unevenness emphasized image Ie2(-) is obtained by subtracting the luminance image Ii2(+) from the luminance image Ii2(-) and normalizing the difference by the sum of the luminance image Ii2(-) and the luminance image Ii2(+).

[0052] Since the slope 124 receives the illumination light Lf from the negative direction D2(-), the slope 124 is bright in the luminance image Ii2(-). On the other hand, since the slope 124 is in the shadow of the illumination light Lf from the positive direction D2(+), the slope 124 is dark in the luminance image Ii2(+). Also, since the slope 123 is in the shadow of the illumination light Lf from the negative direction D2(-), the slope 123 is dark in the luminance image Ii2(-). On the other hand, since the slope 123 receives the illumination light Lf from the positive direction D2(+), the slope 123 is bright in the luminance image Ii2(+). Therefore, in the directional unevenness emphasized image Ie2(-) given by the difference obtained by subtracting the luminance image Ii2(+) from the luminance image Ii2(-), the contrast between the bright slope 124 and the dark slope 123 is emphasized. In other words, in the directional unevenness emphasized image Ie2(-), the unevenness is emphasized by emphasizing the contrast in the positive direction D1(-). In addition, by normalizing with the sum of the luminance image Ii2(-) and the luminance image Ii2(+), the influence on the contrast due to the difference in the color of the surface of the workpiece 11 is suppressed.

[0053] Note that the brightness of the slope 121 in the luminance image Ii2(-) is approximately the same as the brightness of the slope 121 in the luminance image Ii2(+). Moreover, the brightness of the slope 122 in the luminance image Ii2(-) is approximately the same as the brightness of the slope 122 in the luminance image Ii2(+). Therefore, in the directional unevenness emphasized image Ie2(-), contrast enhancement is not performed on the slopes 121 and 122. The same is true for the upper surface 125.

[0054] In step S207, the image processing unit 935 generates a difference absolute value image Id1 based on the directional unevenness emphasized image Ie1(+) and the directional unevenness emphasized image Ie1(-), and stores the generated image in the storage unit 95. This difference absolute value image Id1 is calculated by the following formula: Id1 = |Ie1(+)-Ie1(-)| That is, a difference absolute value image Id1 is calculated, which is given by the absolute value of the difference between a directional unevenness emphasized image Ie1(+) in which unevenness is emphasized in the positive direction D1(+) and a directional unevenness emphasized image Ie1(-) in which unevenness is emphasized in the negative direction D1(-). This results in a difference absolute value image Id1 in which unevenness is emphasized in the illumination direction D1.

[0055] In step S208, the image processing unit 935 generates a difference absolute value image Id2 based on the directional unevenness emphasized image Ie2(+) and the directional unevenness emphasized image Ie2(-), and stores the generated image in the storage unit 95. This difference absolute value image Id2 is expressed by the following formula: Id2 = |Ie2(+)-Ie2(-)| That is, a difference absolute value image Id2 is calculated, which is given by the absolute value of the difference between a directional unevenness emphasized image Ie2(+) in which unevenness is emphasized in the positive direction D2(+) and a directional unevenness emphasized image Ie2(-) in which unevenness is emphasized in the negative direction D2(-). This results in a difference absolute value image Id2 in which unevenness is emphasized in the illumination direction D2.

[0056] In step S209, the image processing unit 935 generates an observation image Io based on the difference absolute value image Id1 and the difference absolute value image Id2, and stores the observation image Io in the storage unit 95. The observation image Io is calculated by the following formula: Io=(Id1 2 +Id2 2 ) 1 / 2 In other words, an observation image Io given by the sum of squares of the absolute difference image Id1 and the absolute difference image Id2 is calculated. By combining the absolute difference image Id1 and the absolute difference image Id2 in this manner, an observation image Io in which unevenness is emphasized in both the illumination direction D1 and the illumination direction D2 is obtained.

[0057] Fig. 8 is a diagram showing a schematic example of an operation screen displayed on a display. The operation screen 5 in Fig. 8 is displayed on the display 97 by the display control unit 941. In response to this, the user can operate the operation screen 5 displayed on the display 97 by the operation unit 99. The operation reception unit 942 receives a command corresponding to an operation on the operation unit 99 from the operation unit 99, and the calculation unit 93 executes the process described below in accordance with the command received by the operation reception unit 942.

[0058] The operation screen 5 has an optosem button 511 for executing the observation image generation of Fig. 5. When the operation reception unit 942 receives from the operation unit 99 a command indicating an operation of clicking the optosem button 511, the image processing unit 935 executes the observation image generation (steps S201 to S209) of Fig. 5. As a result, a directional unevenness emphasized image Ie1(+), a directional unevenness emphasized image Ie1(-), a directional unevenness emphasized image Ie2(+), a directional unevenness emphasized image Ie2(-), a difference absolute value image Id1, a difference absolute value image Id2, and an observation image Io are generated and stored in the storage unit 95.

[0059] The operation screen 5 has a check box 512 indicating whether or not to execute a high dynamic range (HDR) function. The HDR function is a function for acquiring luminance images Ii1(+), Ii1(-), Ii2(+), and Ii2(-) in high gradation in the luminance image acquisition of FIG. 4. When the operation reception unit 942 receives an instruction to select the check box 512, the image acquisition unit 934 acquires the luminance images Ii1(+), Ii1(-), Ii2(+), and Ii2(-) in high gradation (16 bits) (HDR function). On the other hand, when the operation reception unit 942 receives an instruction not to select the check box 512, the image acquisition unit 934 acquires the luminance images Ii1(+), Ii1(-), Ii2(+), and Ii2(-) in low gradation (8 bits) lower than the high gradation. The HDR function can be realized by capturing multiple image data of different brightness while changing the exposure time (shutter speed) of the solid-state imaging element 35 to obtain high-gradation luminance images Ii1(+), Ii1(-), Ii2(+), and Ii2(-).

[0060] The operation screen 5 has a pull-down menu 513 for selecting the illumination used to acquire the luminance image in FIG. 4 between the epi-illumination 41 (coaxial illumination) and the ring illumination 43. When the operation reception unit 942 receives a command to select the ring illumination 43 from the pull-down menu 513, the illumination control unit 933 irradiates the workpiece 11 with the illumination light Lf from the ring illumination 43 as described above. On the other hand, when the operation reception unit 942 receives a command to select the epi-illumination 41 from the pull-down menu 513, the illumination control unit 933 irradiates the workpiece 11 with the illumination light Lf from the epi-illumination 41. Note that, like the ring illumination 43, the epi-illumination 41 has multiple (four) light emission units (regions), and by changing one light emission unit that emits the illumination light Lf among the multiple light emission units, the direction in which the illumination light Lf is irradiated onto the workpiece 11 can be switched among the positive direction D1(+), the negative direction D1(-), the positive direction D2(+), and the negative direction D2(-). That is, irradiation of illumination light Lf from D1(+) (step S101), irradiation of illumination light Lf from the negative direction D1(-) (step S103), irradiation of illumination light Lf from the positive direction D2(+) (step S105), and irradiation of illumination light Lf from the negative direction D2(-) (step S107) are performed by the epi-illumination 41.

[0061] The operation screen 5 has an observational image selection button 52. When the operation reception unit 942 receives an instruction to select the observational image selection button 52, the display control unit 941 displays an observational image Io having no directionality on the display 97. When the operation reception unit 942 receives an instruction to select the observational image selection button 52 while the observational image Io having no directionality is being displayed on the display 97, the display control unit 941 may display an observational image Io on which a negative-positive inversion process for inverting the color of the observational image Io has been performed on the display 97. When the operation reception unit 942 receives an instruction to select the observational image selection button 52 while the observational image Io on which a negative-positive inversion process has been performed is being displayed on the display 97, the display control unit 941 may display the observational image Io generated by the observational image generation in FIG. 5 as it is on the display 97. In this case, the observational image selection button 52 also functions as a toggle button for selecting whether or not to perform a negative-positive inversion process for inverting the color of the observational image Io (ON / OFF). When the operation reception unit 942 receives a command (OFF) not to select the negative-positive inversion process by the observation image selection button 52, the display control unit 941 displays the observation image Io generated by the observation image generation of Fig. 5 as is on the display 97. On the other hand, when the operation reception unit 942 receives a command (ON) to select the negative-positive inversion process by the observation image selection button 52, the display control unit 941 performs the negative-positive inversion process on the observation image Io generated by the observation image generation of Fig. 5, and displays the observation image Io with inverted colors on the display 97.

[0062] The operation screen 5 has an image direction selection section 53 for selecting a directional unevenness-enhanced image to be displayed on the display 97. This image direction selection section 53 has a plurality (four) of image direction selection buttons 531(+), 531(-), 532(+), and 532(-) arranged to surround the observed image selection button 52 on all four sides.

[0063] The image direction selection button 531(+) and the image direction selection button 531(-) are arranged in a direction corresponding to the lighting direction D1, with the image direction selection button 531(+) arranged on the side corresponding to the positive direction D1(+) of the image direction selection button 531(-) and the image direction selection button 531(-) arranged on the side corresponding to the negative direction D1(-) of the image direction selection button 531(+). The image direction selection button 531(+) is provided with a design indicating irradiation of the illumination light Lf from the positive direction D1(+), and the image direction selection button 531(-) is provided with a design indicating irradiation of the illumination light Lf from the negative direction D1(-).

[0064] The image direction selection button 532(+) and the image direction selection button 532(-) are arranged in a direction corresponding to the lighting direction D2, with the image direction selection button 532(+) arranged on the side corresponding to the positive direction D2(+) of the image direction selection button 532(-) and the image direction selection button 532(-) arranged on the side corresponding to the negative direction D2(-) of the image direction selection button 531(+). The image direction selection button 532(+) is provided with a design indicating irradiation of the illumination light Lf from the positive direction D2(+), and the image direction selection button 532(-) is provided with a design indicating irradiation of the illumination light Lf from the negative direction D2(-).

[0065] When the operation accepting unit 942 receives a command to select the image direction selection button 531(+), the display control unit 941 displays the directional unevenness emphasis image Ie1(+) on the display 97. When the operation accepting unit 942 receives a command to select the image direction selection button 531(-), the display control unit 941 displays the directional unevenness emphasis image Ie1(-) on the display 97. When the operation accepting unit 942 receives a command to select the image direction selection button 532(+), the display control unit 941 displays the directional unevenness emphasis image Ie2(+) on the display 97. When the operation accepting unit 942 receives a command to select the image direction selection button 532(-), the display control unit 941 displays the directional unevenness emphasis image Ie2(-) on the display 97.

[0066] The display control unit 941 has a white balance for each of the positive direction D1(+), negative direction D1(-), positive direction D2(+), and negative direction D2(-). Therefore, the display control unit 941 adjusts the directional unevenness emphasized image Ie1(+), Ie1(-), Ie2(+), or Ie2(-) with the corresponding white balance and then displays it on the display 97.

[0067] The operation screen 5 has a slider 54 that controls the degree of unevenness emphasis. When the operation reception unit 942 receives the degree of unevenness emphasis indicated by the slider 54 ("50" in the example of FIG. 8), the display control unit 941 changes the tone curve of the gamma correction when an image such as the directional unevenness emphasis image Ie1(+), the directional unevenness emphasis image Ie1(-), the directional unevenness emphasis image Ie2(+), the directional unevenness emphasis image Ie2(-), or the observation image Io is displayed on the display 97.

[0068] The operation screen 5 has an image type selection section 55 for selecting the type of image to be displayed on the display 97. The image type selection section 55 has a radio button 551 for selecting standard (monochrome) as the type of image, a radio button 552 for selecting color, and a radio button 553 for selecting an unevenness color map. When the operation reception section 942 receives a command to select the standard radio button 551, the display control section 941 displays on the display 97 one of the directional unevenness emphasis images Ie1(+), Ie1(-), Ie2(+), Ie2(-), the observation image Io without directionality, and the observation image Io obtained by negative-positive inversion of the observation image Io, which is selected by the image direction selection buttons 531(+), 531(-), 532(+), 532(-), and the observation image selection button 52 described above. When the operation reception section 942 receives a command to select the color radio button 552, the display control section 941 displays a color image of the workpiece 11 on the display 97. This color image is an image acquired by imaging the workpiece 11 with the solid-state imaging element 35 while irradiating the workpiece 11 with illumination light Lf from all directions, namely the positive direction D1(+), the negative direction D1(-), the positive direction D2(+), and the negative direction D2(-), and is stored in the memory unit 95. When the operation receiving unit 942 receives a command to select the unevenness color map radio button 553, the display control unit 941 displays an image of the workpiece 11 taken by photometric stereo (unevenness color map) on the display 97.

[0069] The operation screen 5 has a slider 56 indicating the transmittance when the color image or the unevenness color map is superimposed on the directional unevenness emphasized image Ie and displayed. When the operation reception unit 942 receives an instruction to select the color radio button 552 and an instruction to select a transmittance greater than 0% by the slider 56, the display control unit 941 displays an image in which the directional unevenness emphasized image Ie or the observation image Io is made transparent to the color image at the transmittance indicated by the instruction on the display 97. At this time, the display control unit 941 displays one of the directional unevenness emphasized images Ie1(+), Ie1(-), Ie2(+), Ie2(-), the observation image Io with no directionality, and the observation image Io obtained by negative-positive inversion of the observation image Io, selected by the image direction selection buttons 531(+), 531(-), 532(+), 532(-) and the observation image selection button 52, in a transparent manner to the color image. In addition, when the operation receiving unit 942 receives an instruction to select the radio button 553 for the unevenness color map and an instruction to select a transmittance greater than 0% using the slider 56, the display control unit 941 similarly displays an image on the display 97 in which the directional unevenness emphasis image Ie is visible through the unevenness color map.

[0070] The operation screen 5 has a depth stacking & 3D button 571 and a color comparison display button 572. When the operation reception unit 942 receives an operation to select the depth stacking & 3D button 571, the calculation unit 93 executes depth stacking & 3D (FIG. 9) described below. When the operation reception unit 942 receives an operation to select the color comparison display button 572, the display control unit 941 displays the color image and the unevenness color map side by side on the display 97.

[0071] FIG. 9 is a flowchart showing an example of an operation performed in depth stacking & 3D. In step S301, the illumination control unit 933 controls the ring illumination 43 or the incident illumination 41 to irradiate the workpiece 11 with illumination light Lf from the positive direction D1 (+) (predetermined direction) of the illumination direction D1. Then, the head drive control unit 932 controls the Z-axis head drive unit 24z to position the observation head 3 at the home height (step S302), and then starts moving the observation head 3 in the Z direction (step S303). The movement in the Z direction may be either upward or downward. While the observation head 3 moves in the Z direction in this way, the image acquisition unit 934 controls the solid-state imaging element 35 to cause the solid-state imaging element 35 to perform imaging multiple times at predetermined intervals (step S304).

[0072] In step S305, the calculation unit 93 determines whether steps S302 to S304 have been completed for all of the four directions D1(+), D1(-), D2(+), and D2(-). If steps S302 to S304 have not been completed for any direction (NO in step S305), the direction in which the illumination light Lf is irradiated is changed, and steps S302 to S304 are executed.

[0073] This results in the acquisition of multiple captured images Im (captured images Im1(+)) captured from different heights while irradiating illumination light Lf from the positive direction D1(+), multiple captured images Im (captured images Im1(-)) captured from different heights while irradiating illumination light Lf from the negative direction D1(-), multiple captured images Im (captured images Im2(+)) captured from different heights while irradiating illumination light Lf from the positive direction D2(+), and multiple captured images Im (captured images Im2(-)) captured from different heights while irradiating illumination light Lf from the negative direction D2(-).

[0074] When steps S302 to S304 are completed for all four directions ("YES" in step S305), the illumination control unit 933 controls the ring illumination 43 or the incident illumination 41 to irradiate the workpiece 11 with illumination light Lf from all four directions D1(+), D1(-), D2(+), and D2(-) (step S307). Then, the head drive control unit 932 controls the Z-axis head drive unit 24z to position the observation head 3 at the home height (step S308), and then starts moving the observation head 3 in the Z direction (step S309). While the observation head 3 moves in the Z direction in this way, the image acquisition unit 934 controls the solid-state imaging element 35 to cause the solid-state imaging element 35 to perform imaging multiple times at predetermined intervals (step S310). As a result, a plurality of captured images Im (captured images Ima) captured from different heights while irradiating the illumination light Lf from all four directions D1(+), D1(-), D2(+), and D2(-) are acquired.

[0075] In step S311, the image processing unit 935 generates one depth-combined image If1(+) by combining the combined portions of the focused portions of the multiple captured images Im1(+) acquired while irradiating the illumination light Lf from the forward direction D1(+) (depth composition). In this depth composition, the contrast or maximum value of the luminance value of the pixel is calculated as a reference value for determining the focus. The contrast is given by the difference between the maximum luminance value and the minimum luminance value among the luminance values ​​of the target pixel and the pixels surrounding the target pixel. The maximum value is given by the maximum luminance value among the luminance values ​​of the target pixel and the pixels surrounding the target pixel. The luminance value of the target pixel of one captured image Im1(+) with the maximum reference value among the target pixels of the multiple captured images Im1(+) is determined as the luminance value of the target pixel of the depth-combined image If1(+). The captured image Im1(+) is generated by executing such a calculation on the target pixel while changing the target pixel among all pixels.

[0076] In steps S312 to S314, the image processing unit 935 performs similar calculations for each of the negative direction D1(-), the positive direction D2(+), and the negative direction D2(-) to generate a depth synthesis image If1(-), a depth synthesis image If2(+), and a depth synthesis image If2(-). In step S315, the image processing unit 935 sets the depth synthesis image If1(+) to the luminance image Ii1(+), sets the depth synthesis image If1(-) to the luminance image Ii1(-), sets the depth synthesis image If2(+) to the luminance image Ii2(+), and sets the depth synthesis image If2(-) to the luminance image Ii2(-), and executes observation image generation (FIG. 5) to generate an observation image Io based on the depth synthesis images. Note that the order of execution of steps S312 to S315 is not limited to this. For example, the image processing unit 935 may generate observational images Io corresponding to each position in the Z direction, and perform depth synthesis for each generated observational image Io, synthesizing the combined portions of the focused portions of each image, to generate a single depth-synthesized observational image Io.

[0077] In step S315, the image processing unit 935 calculates a depth composite image of the workpiece 11 and a three-dimensional image Itd showing the three-dimensional shape from a plurality of captured images Ima acquired while irradiating the workpiece 11 with illumination light Lf from all of the four directions D1(+), D1(-), D2(+), and D2(-) (3D composition). Specifically, the three-dimensional image Itd is calculated by performing a calculation to obtain the height of the target pixel from the height of the observation head 3 when one captured image Ima including a focused target pixel among the plurality of captured images Ima is captured while changing the target pixel among all pixels. In step S315, the image processing unit 935 may perform an arbitrary combination of image connection to connect images captured at different positions in the XY direction, depth composition in step S315, and 3D composition for the directional unevenness emphasis image and the observation image Io. For example, the image processing unit 935 may generate a connected image, a connected + depth composite image, or a connected + 3D composite image for the directional unevenness enhanced image or the observation image Io.

[0078] In the embodiment described above, a luminance image Ii1(+) (first luminance image) is obtained by imaging the workpiece 11 (observation object) while irradiating the illumination light Lf from the positive direction D1(+) of the illumination direction D1 (first illumination direction), and a luminance image Ii1(-) (second luminance image) is obtained by imaging the workpiece 11 while irradiating the illumination light Lf from the negative direction D1(-) of the illumination direction D1. In addition, based on the luminance image Ii1(+) and the luminance image Ii1(-), a directional unevenness-enhanced image Ie1(+) (first composite image) in which the unevenness of the surface of the workpiece 11 is enhanced in the positive direction D1(+) of the illumination direction D1, and a directional unevenness-enhanced image Ie1(-) (second composite image) in which the unevenness of the surface of the workpiece 11 is enhanced in the negative direction D1(-) of the illumination direction D1 are generated. Then, based on the absolute value of the difference between the directional unevenness emphasized image Ie1(+) and the directional unevenness emphasized image Ie1(-), a difference absolute value image Id1 (first unevenness emphasized image) in which the unevenness of the surface of the workpiece 11 in the illumination direction D1 is emphasized is generated. Furthermore, a luminance image Ii2(+) (third luminance image) obtained by imaging the workpiece 11 while irradiating the illumination light Lf from the positive direction D2(+) of the illumination direction D2 (second illumination direction), and a luminance image Ii2(-) (fourth luminance image) obtained by imaging the workpiece 11 while irradiating the illumination light Lf from the negative direction D2(-) of the illumination direction D2 are acquired. Further, based on the luminance image Ii2(+) and the luminance image Ii2(-), a directional unevenness-enhanced image Ie2(+) (third composite image) in which the unevenness of the surface of the workpiece 11 is enhanced in the positive direction D2(+) of the illumination direction D2, and a directional unevenness-enhanced image Ie2(-) (fourth composite image) in which the unevenness of the surface of the workpiece 11 is enhanced in the negative direction D2(-) of the illumination direction D2 are generated. Then, based on the absolute value of the difference between the directional unevenness-enhanced image Ie2(+) and the directional unevenness-enhanced image Ie2(-), a difference absolute value image Id2 (second unevenness-enhanced image) in which the unevenness of the surface of the workpiece 11 is enhanced in the illumination direction D2 is generated. In this way, two images (difference absolute value images Id1, Id2) in which the unevenness of the surface of the workpiece 11 is enhanced in the two directions of the illumination direction D1 and the illumination direction D2 are acquired. Then, to generate an observed image Io which is an image of the workpiece 11, the difference absolute value image Id1 and the difference absolute value image Id2 are synthesized.This makes it possible to obtain an observation image Io in which the unevenness of the surface of the workpiece 11 is emphasized in two directions, the illumination direction D1 and the illumination direction D2. As a result, it is possible to obtain an observation image Io in which the unevenness is emphasized regardless of the direction of the unevenness of the surface of the workpiece 11.

[0079] The system is also provided with a display 97 (image display unit) that displays an image to a user, and an operation unit 99 (user operation unit) that accepts user operations. The image processing unit 935 (display image generating unit) displays an image on the display 97 according to the user's operation accepted by the operation unit 99, from among the directional unevenness emphasized image Ie1(+), the directional unevenness emphasized image Ie1(-), the directional unevenness emphasized image Ie2(+), the directional unevenness emphasized image Ie2(-), the observation image Io with no directionality, and the observation image Io obtained by negative-positive inversion of the observation image Io. In this configuration, the user can observe the workpiece 11 while appropriately referring to the directional unevenness emphasized image Ie1(+), the directional unevenness emphasized image Ie1(-), the directional unevenness emphasized image Ie2(+), the directional unevenness emphasized image Ie2(-), or the observation image Io with no directionality and unevenness emphasized.

[0080] Further, the image processing unit 935 generates a directional unevenness emphasized image Ie1(+) based on the difference obtained by subtracting the luminance image Ii1(-) from the luminance image Ii1(+), generates a directional unevenness emphasized image Ie1(-) based on the difference obtained by subtracting the luminance image Ii1(+) from the luminance image Ii1(-), generates a directional unevenness emphasized image Ie2(+) based on the difference obtained by subtracting the luminance image Ii2(-) from the luminance image Ii2(+), and generates a directional unevenness emphasized image Ie2(-) based on the difference obtained by subtracting the luminance image Ii2(+) from the luminance image Ii2(-). By such calculations, it is possible to generate directional unevenness emphasized images Ie1(+), Ie1(-), Ie2(+), and Ie2(-) in which unevenness is emphasized in the positive direction D1(+), negative direction D1(-), positive direction D2(+), and negative direction D2(-), respectively.

[0081] Furthermore, the image processing unit 935 generates a directional unevenness emphasized image Ie1(+) based on data standardized by dividing the difference obtained by subtracting the luminance image Ii1(-) from the luminance image Ii1(+) by the sum obtained by adding the luminance image Ii1(+) and the luminance image Ii1(-), and generates a directional unevenness emphasized image Ie1(-) based on data standardized by dividing the difference obtained by subtracting the luminance image Ii1(+) from the luminance image Ii1(-) by the sum obtained by adding the luminance image Ii1(-) and the luminance image Ii1(+). ), a directional unevenness enhanced image Ie2(+) is generated based on standardized data by dividing the difference obtained by subtracting the luminance image Ii2(-) from the luminance image Ii2(+) by the sum obtained by adding the luminance image Ii2(+) and the luminance image Ii2(-), and a directional unevenness enhanced image Ie2(-) is generated based on standardized data by dividing the difference obtained by subtracting the luminance image Ii2(+) from the luminance image Ii2(-) by the sum obtained by adding the luminance image Ii2(-) and the luminance image Ii2(+). By performing such normalization, the influence of the color of the surface of the workpiece 11 can be suppressed and the unevenness can be appropriately emphasized.

[0082] Also provided are a display 97 (image display unit) that displays an image to the user, and an operation unit 99 (user operation unit) that accepts user operations. An image processing unit 935 (display image generating unit) executes a negative-positive inversion process that inverts the color of the observation image Io displayed on the display 97 in response to the user operations accepted by the operation unit 99. With this configuration, the user can display the observation image Io in colors that make it easy to visually check the unevenness of the workpiece 11.

[0083] Also provided is a vertical illumination 41 (illumination light source) that emits illumination light Lf toward an imaging optical system 33 (optical system), and the illumination light Lf emitted from the vertical illumination 41 and collected by the imaging optical system 33 is irradiated onto the workpiece 11. The controller 91 controls the vertical illumination 41 by an illumination control unit 933 (control unit) to change the area of ​​the vertical illumination 41 from which the illumination light Lf is emitted, thereby switching the direction in which the illumination light Lf is irradiated onto the workpiece 11 between the positive direction D1(+) of the illumination direction D1, the negative direction D1(-) of the illumination direction D1, the positive direction D2(+) of the illumination direction D2, and the negative direction D2(-) of the illumination direction D2. In this configuration, the direction in which the illumination light Lf is irradiated onto the workpiece 11 can be switched by simple control such as changing the area of ​​the vertical illumination 41 from which the illumination light Lf is irradiated.

[0084] As described above, in this embodiment, the magnification observation device 1 corresponds to an example of the "magnification observation device" of the present invention, the workpiece 11 corresponds to an example of the "observation object" of the present invention, the observation image generating program 19 corresponds to an example of the "observation image generating program" of the present invention, the imaging optical system 33 corresponds to an example of the "optical system" of the present invention, the solid-state imaging element 35 corresponds to an example of the "imaging section" of the present invention, the epi-illumination 41 and the ring illumination 43 constitute the "illumination section" of the present invention, and the illumination control unit 933 and the image acquisition unit 934 correspond to an example of the "control unit" of the present invention. ", the image processing unit 935 corresponds to an example of a "display image generating unit" of the present invention, the memory unit 95 corresponds to an example of a "recording medium" of the present invention, the display 97 corresponds to an example of an "image display unit" of the present invention, the operation unit 99 corresponds to an example of a "user operation unit" of the present invention, the lighting direction D1 corresponds to an example of a "first lighting direction" of the present invention, the positive direction D1(+) corresponds to an example of a "positive direction of the first lighting direction" of the present invention, the negative direction D1(-) corresponds to an example of a "negative direction of the first lighting direction" of the present invention, and the lighting direction D2 corresponds to an example of a "negative direction of the first lighting direction" of the present invention. the positive direction D2(+) corresponds to an example of the “positive direction of the second lighting direction” of the present invention, the negative direction D2(-) corresponds to an example of the “negative direction of the second lighting direction” of the present invention, the luminance image Ii1(+) corresponds to an example of the “first luminance image” of the present invention, the luminance image Ii1(-) corresponds to an example of the “second luminance image” of the present invention, the luminance image Ii2(+) corresponds to an example of the “third luminance image” of the present invention, the luminance image Ii2(-) corresponds to an example of the “fourth luminance image” of the present invention, and the directional unevenness emphasis image Ie1(+) corresponds to an example of the "first composite image" of the present invention, the directional unevenness emphasized image Ie1(-) corresponds to an example of the "second composite image" of the present invention, the directional unevenness emphasized image Ie2(+) corresponds to an example of the "third composite image" of the present invention, the directional unevenness emphasized image Ie2(-) corresponds to an example of the "fourth composite image" of the present invention, the difference absolute value image Id1 corresponds to an example of the "first unevenness emphasized image" of the present invention, the difference absolute value image Id2 corresponds to an example of the "second unevenness emphasized image" of the present invention, and the observation image Io corresponds to an example of the "observation image" of the present invention.

[0085] The present invention is not limited to the above embodiment, and various modifications can be made to the above without departing from the spirit of the invention. For example, the method of acquiring the luminance images Ii1(+), Ii1(-), Ii2(+), and Ii2(-) can be changed. Specifically, the depth synthesis images If1(+), If1(-), If2(+), and If2(-) may be generated as luminance images Ii1(+), Ii1(-), Ii2(+), and Ii2(-) by the above-mentioned depth synthesis. In this configuration, an observation image Io in which unevenness is emphasized for each of the illumination directions D1 and D2 can be generated based on the focused and clear depth synthesis images If1(+), If1(-), If2(+), and If2(-) (first, second, third, and fourth luminance images).

[0086] Moreover, Fig. 10 is a flowchart showing another example of observation image generation executed by the image processing unit, and Fig. 11 is a diagram showing typically the image processing executed by the image processing unit in the observation image generation of Fig. 10. The observation image generation of Fig. 10 is defined by an observation image generation program 19, and the image processing unit 935 executes the observation image generation of Fig. 10 in accordance with the observation image generation program 19.

[0087] In step S401 of generating an observation image (Figure 10), the image processing unit 935 reads out from the image processing unit 935 a luminance image Ii1(+) acquired while irradiating illumination light Lf from the positive direction D1(+) of the illumination direction D1, and a luminance image Ii1(-) acquired while irradiating illumination light Lf from the negative direction D1(-) of the illumination direction D1.

[0088] In step S402, the image processing unit 935 generates a difference absolute value image Id1 based on the luminance image Ii1(+) and the luminance image Ii1(-), and stores the image in the storage unit 95. This difference absolute value image Id1 is calculated by the following formula: Id1 = |Ii1(+)-Ii1(-)| This results in a difference absolute value image Id1 in which the unevenness is emphasized in the illumination direction D1.

[0089] In step S403, the image processing unit 935 reads out from the image processing unit 935 a luminance image Ii2(+) acquired while irradiating illumination light Lf from the positive direction D2(+) of the illumination direction D2, and a luminance image Ii2(-) acquired while irradiating illumination light Lf from the negative direction D2(-) of the illumination direction D2.

[0090] In step S402, the image processing unit 935 generates a difference absolute value image Id2 based on the luminance image Ii2(+) and the luminance image Ii2(-), and stores the generated image in the storage unit 95. This difference absolute value image Id2 is expressed by the following formula: Id2 = |Ii2(+)-Ii2(-)| This results in a difference absolute value image Id2 in which the unevenness is emphasized in the illumination direction D2.

[0091] In step S405, the image processing unit 935 generates an observation image Io based on the difference absolute value image Id1 and the difference absolute value image Id2, and stores the observation image Io in the storage unit 95. This observation image Io is calculated by the following formula: Io=(Id1 2 +Id2 2 ) 1 / 2 In other words, an observation image Io given by the sum of squares of the absolute difference image Id1 and the absolute difference image Id2 is calculated. By combining the absolute difference image Id1 and the absolute difference image Id2 in this manner, an observation image Io in which unevenness is emphasized in both the illumination direction D1 and the illumination direction D2 is obtained.

[0092] In the embodiment configured in this manner, a luminance image Ii1(+) (first luminance image) is obtained by imaging the workpiece 11 while irradiating the illumination light Lf from the positive direction D1(+) of the illumination direction D1 (first illumination direction), and a luminance image Ii1(-) (second luminance image) is obtained by imaging the workpiece 11 while irradiating the illumination light Lf from the negative direction D1(-) of the illumination direction D1. Then, a difference absolute value image Id1 (first unevenness-emphasized image) is generated in which the unevenness of the surface of the workpiece 11 in the illumination direction D1 is emphasized based on the absolute value of the difference between the luminance image Ii1(+) and the luminance image Ii2(-). Furthermore, a luminance image Ii2(+) (third luminance image) is obtained by imaging the workpiece 11 while irradiating the illumination light Lf from the positive direction D2(+) of the illumination direction D2 (second illumination direction), and a luminance image Ii2(-) (fourth luminance image) is obtained by imaging the workpiece 11 while irradiating the illumination light Lf from the negative direction D2(-) of the illumination direction D2. Then, a difference absolute value image Id2 (second unevenness-enhanced image) is generated in which the unevenness of the surface of the workpiece 11 is enhanced in the illumination direction D2 based on the absolute value of the difference between the luminance image Ii2(+) and the luminance image Ii2(-). In this way, images (difference absolute value images Id1, Id2) in which the unevenness of the surface of the observation object is enhanced in the two directions of the illumination direction D1 and the illumination direction D2 are obtained. Then, in order to generate an observation image Io, which is an image of the workpiece 11, the difference absolute value image Id1 and the difference absolute value image Id2 are combined. This makes it possible to obtain an observation image Io in which the unevenness of the surface of the workpiece 11 is emphasized in two directions, the illumination direction D1 and the illumination direction D2. As a result, it is possible to obtain an observation image Io in which the unevenness is emphasized regardless of the direction of the unevenness of the surface of the workpiece 11.

[0093] Incidentally, in both the observation image generation in FIG. 5 and FIG. 10, the difference absolute value image Id1 and the difference absolute value image Id2 are synthesized to generate the observation image Io, which is an image of the workpiece 11. In the above example, the difference absolute value image Id1 and the difference absolute value image Id2 are synthesized by a square sum average operation that calculates the square root of the sum of squares of the pixel values ​​of the difference absolute value image Id1 and the pixel values ​​of the difference absolute value image Id2 for all pixels. However, the specific method of synthesizing them is not limited to the square sum average operation. Therefore, the synthesis may be performed by a simple average operation that calculates a simple average of the pixel values ​​of the difference absolute value image Id1 and the pixel values ​​of the difference absolute value image Id2 for all pixels. Alternatively, the synthesis may be performed by a maximum value operation that calculates the maximum value of the pixel values ​​of the difference absolute value image Id1 and the difference absolute value image Id2 for all pixels.

[0094] In addition, the angle at which the illumination direction D1 and the illumination direction D2 intersect is not limited to 90 degrees. Furthermore, the number of directions in which the illumination light Lf is irradiated is not limited to two, namely, the illumination directions D1 and D2. Therefore, while irradiating the illumination light Lf from three or more directions, a luminance image may be acquired for each of the positive and negative directions of each direction.

[0095] The order of the steps in the above flowchart is merely an example, and the order of the steps may be changed as appropriate.

[0096] In addition, the magnifying observation device 1 may be configured such that the illumination unit and the imaging unit are configured by an electron optical system, and an electronic image is obtained as the captured image. In this case, the arrangement of the scanning electron optical system as the illumination unit and the electron detector as the imaging unit is reversed. The electron detectors are arranged in four directions, which correspond to the four directions of the ring illumination 43.

[0097] Furthermore, the magnifying observation device 1 may be equipped with functions other than those described above. For example, the quick replay function described below may be equipped. In this quick replay function, for each of a plurality of imaging positions set for the workpiece 11, imaging conditions (such as the light amount of the illumination light Lf, the exposure time of the solid-state imaging element 35, and the magnification of the imaging optical system 33) for imaging the imaging position are stored. Then, when the operation reception unit 942 receives a command indicating execution of the quick replay function, the controller 91 performs an operation of facing the observation head 3 to one imaging position and imaging the one imaging position under the imaging conditions corresponding to the one imaging position, for each of the plurality of imaging positions in turn. [Industrial Applicability]

[0098] The present invention is applicable to all magnification observation techniques for magnifying and observing an object to be observed. [Explanation of symbols]

[0099] 1...Magnifying observation device 11...Work (object to be observed) 19... Observation image generation program 33...Imaging optical system (optical system) 35...Solid-state image sensor (imaging section) 41…Episcopic lighting (lighting section) 43…Ring lighting (lighting section) 933...Lighting control unit (control unit) 934...Image acquisition unit (control unit) 935...Image processing unit (display image generating unit) 95...Memory unit (recording medium) 97...Display (image display section) 99...Operation section (user operation section) D1…Illumination direction (first illumination direction) D1(+)…Positive direction (positive direction of the first lighting direction) D1(-)…Negative direction (negative direction of the first lighting direction) D2…Illumination direction (second illumination direction) D2(+)…Positive direction (positive direction of the second lighting direction) D2(-)…Negative direction (negative direction of the second lighting direction) Ii1(+)…Luminance image (first luminance image) Ii1(-)…Luminance image (second luminance image) Ii2(+)…Luminance image (third luminance image) Ii2(-)…Luminance image (fourth luminance image) Ie1(+)…Directional unevenness-emphasized image (first composite image) Ie1(-)…Directional unevenness emphasized image (second composite image) Ie2(+)…Directional unevenness emphasized image (third composite image) Ie2(-)…Directional unevenness emphasized image (4th composite image) Id1: Absolute difference image (first concave-convex emphasized image) Id2: Absolute difference image (second concave-convex enhanced image) Io…Observation image

Claims

1. an optical system including an objective lens and an imaging lens; an illumination unit that irradiates illumination light onto an observation object placed in a field of view of the optical system from a positive direction of a first illumination direction, a negative direction opposite to the positive direction of the first illumination direction, a positive direction of a second illumination direction different from the first illumination direction, and a negative direction opposite to the positive direction of the second illumination direction; an imaging unit that receives light from the observation object via the optical system and generates a luminance image of the observation object; A control unit that controls the illumination unit and the imaging unit; a display image generating unit that generates an observation image that is an image of the observation object; Equipped with The display image generating unit is The control unit controls the illumination unit to irradiate the observation object with illumination light from a forward direction of the first illumination direction, and captures an image of the observation object to obtain a first luminance image; by controlling the illumination unit using the control unit, the illumination light is irradiated onto the observation object from a negative direction of the first illumination direction, and an image of the observation object is captured to obtain a second luminance image; The control unit controls the illumination unit to irradiate the observation object with illumination light from a forward direction of the second illumination direction, thereby capturing an image of the observation object to obtain a third luminance image; by controlling the illumination unit using the control unit to irradiate the observation object with illumination light from a negative direction of the second illumination direction, and capturing an image of the observation object to obtain a fourth luminance image; generating a first unevenness-enhanced image in which unevenness on the surface of the object to be observed in the first illumination direction is enhanced based on an absolute value of a difference between the first luminance image and the second luminance image; generating a second unevenness-enhanced image in which unevenness on the surface of the object to be observed in the second illumination direction is enhanced based on an absolute value of a difference between the third luminance image and the fourth luminance image; a magnification observation device for generating the observation image by combining the first unevenness-emphasizing image and the second unevenness-emphasizing image.

2. an optical system including an objective lens and an imaging lens; an illumination unit that irradiates illumination light onto an observation object placed in a field of view of the optical system from a positive direction of a first illumination direction, a negative direction opposite to the positive direction of the first illumination direction, a positive direction of a second illumination direction different from the first illumination direction, and a negative direction opposite to the positive direction of the second illumination direction; an imaging unit that receives light from the observation object via the optical system and generates a luminance image of the observation object; A control unit that controls the illumination unit and the imaging unit; a display image generating unit that generates an observation image that is an image of the observation object; Equipped with The display image generating unit is The control unit controls the illumination unit to irradiate the observation object with illumination light from a forward direction of the first illumination direction, and captures an image of the observation object to obtain a first luminance image; by controlling the illumination unit using the control unit, the illumination light is irradiated onto the observation object from a negative direction of the first illumination direction, and an image of the observation object is captured to obtain a second luminance image; The control unit controls the illumination unit to irradiate the observation object with illumination light from a forward direction of the second illumination direction, thereby capturing an image of the observation object to obtain a third luminance image; by controlling the illumination unit using the control unit to irradiate the observation object with illumination light from a negative direction of the second illumination direction, and capturing an image of the observation object to obtain a fourth luminance image; generating a first composite image in which unevenness on the surface of the object to be observed is emphasized in a positive direction of the first illumination direction, and a second composite image in which unevenness on the surface of the object to be observed is emphasized in a negative direction of the first illumination direction, based on the first luminance image and the second luminance image; generating a third composite image in which unevenness on the surface of the object to be observed is emphasized in a positive direction of the second illumination direction, and a fourth composite image in which unevenness on the surface of the object to be observed is emphasized in a negative direction of the second illumination direction, based on the third luminance image and the fourth luminance image; generating a first unevenness-enhanced image in which unevenness on the surface of the object to be observed in the first illumination direction is enhanced based on an absolute value of a difference between the first composite image and the second composite image; generating a second unevenness-enhanced image in which unevenness on the surface of the object to be observed in the second illumination direction is enhanced based on an absolute value of a difference between the third composite image and the fourth composite image; a magnification observation device for generating the observation image by combining the first unevenness-emphasizing image and the second unevenness-emphasizing image.

3. an image display unit for displaying an image to a user; a user operation unit that accepts user operations; Further equipped with The magnification observation device according to claim 2, wherein the display image generating unit displays on the image display unit an image corresponding to a user operation received by the user operation unit, among the first composite image, the second composite image, the third composite image, the fourth composite image, and the observation image.

4. The magnification observation device described in claim 3, wherein the display image generating unit performs a negative-positive inversion process to invert the color of the observation image displayed on the image display unit in accordance with a user's operation accepted by the user operation unit while the observation image is being displayed on the image display unit.

5. The display image generating unit is generating the first composite image based on a difference obtained by subtracting the second luminance image from the first luminance image; generating the second composite image based on a difference obtained by subtracting the first luminance image from the second luminance image; generating the third composite image based on a difference obtained by subtracting the fourth luminance image from the third luminance image; 3. The magnification observation device according to claim 2, wherein the fourth composite image is generated based on a difference obtained by subtracting the third luminance image from the fourth luminance image.

6. The display image generating unit is generating the first composite image based on standardized data obtained by dividing a difference obtained by subtracting the second luminance image from the first luminance image by a sum obtained by adding the first luminance image and the second luminance image; generating the second composite image based on standardized data obtained by dividing a difference obtained by subtracting the first luminance image from the second luminance image by a sum obtained by adding the second luminance image and the first luminance image; generating the third composite image based on standardized data obtained by dividing a difference obtained by subtracting the fourth luminance image from the third luminance image by a sum obtained by adding the third luminance image and the fourth luminance image; The magnification observation device of claim 5, wherein the fourth composite image is generated based on standardized data obtained by dividing the difference obtained by subtracting the third luminance image from the fourth luminance image by the sum obtained by adding the fourth luminance image and the third luminance image.

7. an image display unit for displaying an image to a user; a user operation unit that accepts user operations; Further equipped with 3 . The magnification observation device according to claim 1 , wherein the display image generating unit executes a negative-positive inversion process for inverting a color of the observation image to be displayed on the image display unit in response to a user's operation received by the user operation unit.

8. a drive unit that moves a focus of the optical system relative to the observation object, The display image generating unit is the control unit controls the drive unit to change the object to be observed and the focal point of the optical system, and the control unit irradiates the object to be observed from a positive direction of the first illumination direction to capture an image of the object to be observed a plurality of times to obtain a plurality of first captured images, and generates the first luminance image by depth stacking that combines focused portions of the plurality of first captured images; the control unit controls the drive unit to change the object to be observed and the focal point of the optical system, and the control unit captures the object to be observed a plurality of times by irradiating the object with illumination light from a negative direction of the first illumination direction, thereby acquiring a plurality of second captured images, and generating the second luminance image by depth stacking that combines focused portions of the plurality of second captured images; the control unit controls the drive unit to change the object to be observed and the focal point of the optical system, and the control unit captures an image of the object to be observed a plurality of times while irradiating the object with illumination light from a forward direction of the second illumination direction to obtain a plurality of third captured images, and generates the third luminance image by depth stacking that combines focused portions of the plurality of third captured images; 3. The magnification observation device according to claim 1, wherein the control unit controls the drive unit to change the object to be observed and the focal point of the optical system, and the control unit controls the drive unit to irradiate the object to be observed from a negative direction of the second illumination direction, thereby capturing an image of the object to be observed a plurality of times to obtain a plurality of fourth captured images, and the fourth luminance image is generated by depth stacking that combines the focused portions of each of the plurality of fourth captured images.

9. the illumination unit has an illumination light source that emits illumination light toward the optical system, and irradiates the observation object with the illumination light that is emitted from the illumination light source and collected by the optical system; The display image generating unit controls the illumination light source using the control unit to change the area of ​​the illumination light source from which illumination light is emitted, thereby switching the direction in which illumination light is irradiated onto the object to be observed between the positive direction of the first illumination direction, the negative direction of the first illumination direction, the positive direction of the second illumination direction, and the positive direction of the second illumination direction.

10. a step of irradiating an observation object with illumination light from a forward direction of a first illumination direction and capturing an image of the observation object to obtain a first luminance image; acquiring a second luminance image by irradiating the observation object with illumination light from a negative direction opposite to the positive direction of the first illumination direction and capturing an image of the observation object; acquiring a third luminance image by irradiating the observation object with illumination light from a forward direction of a second illumination direction different from the first illumination direction and capturing an image of the observation object; acquiring a fourth luminance image by irradiating the observation object with illumination light from a negative direction opposite to the positive direction of the second illumination direction and capturing an image of the observation object; generating a first unevenness-enhanced image in which unevenness on the surface of the object to be observed in the first illumination direction is enhanced based on an absolute value of a difference between the first luminance image and the second luminance image; generating a second unevenness-enhanced image in which unevenness on the surface of the object to be observed in the second illumination direction is enhanced based on an absolute value of a difference between the third luminance image and the fourth luminance image; combining the first unevenness-emphasized image and the second unevenness-emphasized image to generate an observed image that is an image of the observed object; An observation image generating method comprising:

11. a step of irradiating an observation object with illumination light from a forward direction of a first illumination direction and capturing an image of the observation object to obtain a first luminance image; acquiring a second luminance image by irradiating the observation object with illumination light from a negative direction opposite to the positive direction of the first illumination direction and capturing an image of the observation object; acquiring a third luminance image by irradiating the observation object with illumination light from a forward direction of a second illumination direction different from the first illumination direction and capturing an image of the observation object; acquiring a fourth luminance image by irradiating the observation object with illumination light from a negative direction opposite to the positive direction of the second illumination direction and capturing an image of the observation object; generating a first composite image in which unevenness on the surface of the object to be observed is emphasized in a positive direction of the first illumination direction, and a second composite image in which unevenness on the surface of the object to be observed is emphasized in a negative direction of the first illumination direction, based on the first luminance image and the second luminance image; generating a third composite image in which unevenness on the surface of the object to be observed is emphasized in a positive direction of the second illumination direction, and a fourth composite image in which unevenness on the surface of the object to be observed is emphasized in a negative direction of the second illumination direction, based on the third luminance image and the fourth luminance image; generating a first unevenness-enhanced image in which unevenness on the surface of the object to be observed in the first illumination direction is enhanced based on an absolute value of a difference between the first composite image and the second composite image; generating a second unevenness-enhanced image in which unevenness on the surface of the object to be observed in the second illumination direction is enhanced based on an absolute value of a difference between the third composite image and the fourth composite image; combining the first unevenness-emphasized image and the second unevenness-emphasized image to generate an observed image that is an image of the observed object; An observation image generating method comprising:

12. 12. An observation image generating program for causing a computer to execute each step of the observation image generating method according to claim 10 or 11.

13. A recording medium storing the observation image generating program according to claim 12 in a computer-readable manner.

Citation Information

Patent Citations

  • Magnifying observation device

    JP2020086293A

Cited By

  • Microscope system, shadow image acquisition method, and shadow image acquisition program

    WO2026094458A1