Stereoscopic imaging platform with target locking autofocus mode
The stereoscopic imaging platform with a target locking autofocus mode addresses the challenge of maintaining focus in robotic-assisted stereoscopic imaging by using a controller to adjust the working distance and sharpness signals, ensuring clear images during movement.
Patent Information
- Application Number
- JP2023556849
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-03-29
- Filing Date
- 2022-03-02
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-03-02
AI Technical Summary
Implementing autofocus in stereoscopic imaging devices, especially those assisted by robotic systems, is challenging due to the need for coordinated focusing of multiple lenses with slightly shifted fields of view, which can result in reduced image quality if not properly managed.
A stereoscopic imaging platform with a controller that executes autofocus modes, including a target locking mode, to maintain focus on a target area while the robotic arm moves by restricting camera movement to a virtual sphere and adjusting the working distance based on focus motor positions and sharpness signals.
Ensures that stereoscopic images remain in focus during robotic movement, enhancing image quality by dynamically adjusting the working distance and maintaining sharpness, even when the target area or robotic arm moves.
Smart Images

Figure 0007955285000006 
Figure 0007955285000007 
Figure 0007955285000008
Abstract
Description
[Technical Field]
[0001] This disclosure relates, in general terms, to a stereoscopic imaging platform. More specifically, it relates to an autofocus mode in a robot-assisted stereoscopic imaging platform. Various imaging modalities are commonly used to image different parts of the human body. For example, medical procedures such as surgery may require the real-time acquisition of focused images. Autofocus focuses on an object of interest in a scene by appropriately moving a part of the lens assembly in the imaging device. However, implementing autofocus in stereoscopic imaging devices is a challenge. Stereoscopic imaging devices generally include multiple lenses, each having a separate image sensor. The lenses are arranged so that each has a field of view of the scene that is slightly shifted from the other lenses, for example, the left lens produces the left image and the right lens produces the right image. Due to differences in perspective, the focusing of the lenses needs to be coordinated so that each lens focuses on the same object. Otherwise, the lenses may focus on various objects in the scene simultaneously, reducing image quality. This challenge is even greater if the stereoscopic imaging device is assisted by a robotic system capable of moving the imaging device or camera while the image is being acquired. [Overview of the project] [Means for solving the problem]
[0002] This specification discloses a stereoscopic imaging platform for imaging a target area. The stereoscopic imaging platform includes a stereoscopic camera configured to record left and right images of a target area in order to generate at least one stereoscopic image of the target area. A robotic arm is operably connected to the stereoscopic camera and is adapted to selectively move the stereoscopic camera relative to the target. The stereoscopic camera includes a lens assembly having at least one lens and defining a working distance. The lens assembly has at least one focus motor adapted to selectively change the working distance by moving at least one lens. A controller communicates with the stereoscopic camera and includes a processor and tangible non-temporary memory on which instructions are recorded. The controller is adapted to selectively execute one or more autofocus modes for the stereoscopic camera, one or more autofocus modes including a target locking mode. The target locking mode is adapted to maintain focus on at least one stereoscopic image while the robotic arm is moving the stereoscopic camera.
[0003] As the robotic arm moves, the controller is configured to restrict the movement of the stereoscopic camera to the surface of a virtual sphere based on the current position of at least one focus motor. The center of the virtual sphere corresponds to the location of the target area, and the radius of the virtual sphere corresponds to the working distance at the current position. The controller is configured to limit the change in working distance so that the radius of the virtual sphere is within the maximum and minimum working distances, and the controller is configured to enforce an artificial robotic boundary on the robotic arm.
[0004] When the robotic arm is moving, the controller is configured to direct the view vector of the stereoscopic camera towards the center of a virtual sphere. The center of the virtual sphere corresponds to the location of the target area. When the target area is moving, the controller is configured to determine a dynamic trajectory corresponding to the movement of the target point on the target area. When the target area is moving, the controller is configured to replace the view vector at the center of the virtual sphere with the dynamic trajectory.
[0005] The controller is configured to determine an updated working distance value and reset the radius of the virtual sphere as the working distance update value as the robot arm moves. The controller is configured to calculate motor commands for at least one focus motor corresponding to the updated working distance value. The controller is configured to send motor commands corresponding to the updated value so that at least one stereoscopic image remains in focus as the robot arm moves.
[0006] When no further movement of the robot arm is detected, the controller is configured to determine a motor command for at least one focus motor, partially based on the sharpness signal, the maximum sharpness signal, and the derivative of the maximum sharpness. The sharpness signal may be defined as the contrast between each edge of an object in at least one stereoscopic image. The maximum sharpness signal may be defined as the maximum sharpness value observed during the scanning period. When no further movement of the robot arm is detected, the controller is configured to send a motor command corresponding to the highest value of the maximum sharpness signal.
[0007] The sensor may be operably connected to the robot and is configured to detect one or more forces applied by the operator to the stereoscopic camera. The one or more forces include translational and rotational forces. The robot arm includes at least one joint, a joint motor, and a joint sensor, the joint motor and joint sensor being coupled to at least one joint. The joint motor is configured to rotate at least one joint about an axis. The joint sensor is configured to transmit the position of at least one joint.
[0008] This specification discloses a robotic imaging platform for imaging a target site. The robotic imaging platform includes a stereoscopic camera configured to record left and right images of a target site in order to generate at least one stereoscopic image of the target site. A robotic arm is operably connected to the stereoscopic camera and is adapted to selectively move the stereoscopic camera relative to the target site. The stereoscopic camera includes a lens assembly having at least one lens and defining a working distance, the lens assembly having at least one focus motor adapted to selectively change the working distance by moving at least one lens. A controller communicates with the stereoscopic camera and includes a processor and tangible non-temporary memory on which instructions are recorded. The controller is adapted to selectively execute one or more autofocus modes for the stereoscopic camera, one or more autofocus modes including a target locking mode. The target locking mode is adapted to maintain the target site locked in real time while the robotic arm moves the stereoscopic camera, and the target locking mode allows for changes in the working distance.
[0009] The controller is configured to determine whether the robot arm is moving. When the robot arm is moving, the controller is configured to restrict the movement of the stereoscopic camera to the surface of the virtual sphere based on the current position of at least one focus motor, the center of the virtual sphere corresponding to the location of the target area, and the radius of the virtual sphere corresponding to the working distance of the current position. When the robot arm is moving, the controller is configured to direct the view vector of the stereoscopic camera toward the center of the virtual sphere so that the center of the virtual sphere corresponds to the target area.
[0010] The controller may be configured to determine a dynamic trajectory corresponding to the movement of a target point on the target area when the target area is moving. The controller may be configured to replace the view vector at the center of the virtual sphere with the dynamic trajectory when the target area is moving. The controller may be configured to determine an updated working distance value and reset the radius of the virtual sphere as the updated working distance value when the robot arm is moving. The controller may be configured to determine a motor command for the focus motor corresponding to the updated working distance value. The controller may be configured to send a motor command corresponding to the updated value so that at least one stereoscopic image remains in focus as the robot arm moves.
[0011] When no further movement of the robot arm is detected, the controller is configured to determine a motor command for the focus motor, partly based on the sharpness signal, the maximum sharpness signal, and the derivative of the maximum sharpness. The sharpness signal may be defined as the contrast between each edge of an object in at least one stereoscopic image. The maximum sharpness signal is defined as the highest sharpness value observed during the scanning period. When no further movement of the robot arm is detected, the controller is configured to send a motor command corresponding to the maximum value of the derivative of the maximum sharpness.
[0012] The features and advantages of this disclosure, as well as other features and advantages, will be readily apparent from the following detailed description of the best mode for carrying out this disclosure, in conjunction with the accompanying drawings. [Brief explanation of the drawing]
[0013] [Figure 1] Figure 1 is a schematic partial diagram of a stereoscopic imaging platform having a stereoscopic camera with one or more autofocus modes and a controller. [Figure 2] Figure 2 is a schematic diagram of a portion of the stereoscopic camera shown in Figure 1. [Figure 3] Figure 3 is a schematic diagram of another part of the stereoscopic camera shown in Figure 1. [Figure 4] FIG. 4 is a flowchart of an example method implementable by the controller of FIG. 1 to implement a disparity mode for auto-focusing. [Figure 5A] FIG. 5A is a schematic diagram of a distance scale showing effective disparity range and effective sharpness range for an example stereoscopic camera. [Figure 5B] FIG. 5B is a schematic diagram showing disparities of example left and right images. [Figure 6] FIG. 6 is a schematic graph representing disparity signals for various working distances for an example stereoscopic camera. [Figure 7] FIG. 7 is a flowchart of an example method implementable by the controller of FIG. 1 to implement a sharpness control mode for auto-focusing. [Figure 8A-8B] FIGS. 8A-8B are schematic graphs showing examples of sharpness signal values (versus focus motor position) for different zoom values for an example stereoscopic camera. [Figure 8C] FIG. 8C is a schematic diagram showing sharpness, maximum sharpness, and derivative of maximum sharpness (versus focus motor position) for an example stereoscopic camera. [Figure 9] FIG. 9 is a flowchart of an example method implementable by the controller of FIG. 1 to implement a target locking mode for auto-focusing. [Figure 10] FIG. 10 is a schematic diagram of an example virtual sphere usable with the third method of FIG. 9. [Figure 11] FIG. 11 is a flowchart of an example method implementable by the controller of FIG. 1 to implement a continuous auto-focusing mode for auto-focusing.
[0014] Representative embodiments of the present disclosure are illustrated in the drawings by way of non-limiting example and are described in further detail below. It should be understood, however, that the novel aspects of the present disclosure are not limited to the specific forms illustrated in the drawings listed above. Rather, the present disclosure encompasses modifications, equivalents, combinations, sub-combinations, permutations, groupings, and alternatives that fall within the scope of the present disclosure, such as those encompassed by the appended claims.
[0015] Referring to the drawings, like reference numerals refer to like components. Figure 1 schematically illustrates a stereoscopic imaging platform 10 having a stereoscopic camera 12 with one or more autofocus modes 14. The stereoscopic imaging platform 10 is configured to image a target site 16. Referring to Figure 1, the stereoscopic camera 12 is disposed at least partially within a head unit 18 of a housing assembly 20, and the head unit 18 is configured to be at least partially directed toward the target site 16. The stereoscopic camera 12 is configured to record first and second images of the target site 16, and may be used to generate a live two-dimensional stereoscopic view of the target site 16. The target site 16 may be an anatomical location of a patient, a biological sample in a laboratory, a calibration slide / template, or the like.
[0016] Referring to Figure 1, at least one selector 22 may be mounted on the head unit 18 to select specific features of the stereoscopic camera 12, such as magnification, focus, and other features. The selector 22 may be used to allow an operator to manually position the head unit 18. The stereoscopic imaging platform 10 may include a robotic arm 24 operably connected to the head unit 18 and configured to selectively move the head unit 18. Referring to Figure 1, the head unit 18 may be mechanically coupled to the robotic arm 24 via a coupling plate 26. The operator can position and orient the stereoscopic camera 12 with assistance from the robotic arm 24. A sensor 28 may be operably connected to the robotic arm 24 and / or the coupling plate 26. The sensor 28 is configured to detect the force and / or torque applied by the operator to move the stereoscopic camera 12.
[0017] The robotic arm 24 may include one or more joints, e.g., a first joint 30 and a second joint 32, configured to provide a further degree of positioning and / or orientation of the head unit 18. Data from sensors 28 may be used to determine which joints of the robotic arm 24 should rotate and how quickly the joints should rotate in order to provide assisted movement of the stereoscopic camera 12 in response to forces / torques provided by the operator. Referring to Figure 1, a corresponding joint motor (e.g., joint motor 31) and a corresponding joint sensor (e.g., joint sensor 33) may be coupled to each joint. The joint motor 31 is configured to rotate the first joint 30 around an axis, while the joint sensor 33 is configured to transmit the position of the first joint 30 (in 3D space).
[0018] Referring to Figure 1, the stereoscopic imaging platform 10 includes a controller C having at least one processor P and at least one memory M (or tangible non-temporary computer-readable storage medium) on which instructions for executing one or more subroutines or methods are recorded. The memory M can store a controller executable instruction set, and the processor P can execute the controller executable instruction set stored in the memory M.
[0019] Referring to Figure 1, the robotic arm 24 may be controlled via an embedded processor such as controller C and / or robotic arm controller 42. The robotic arm 24 may be selectively operable to extend the field of view of the stereoscopic camera 12 along the X, Y, and Z axes. The head unit 18 may be connected to a cart 34 having at least one display medium (which may be a monitor, terminal, or other form of two-dimensional visualization), such as the first and second displays 36 and 38 shown in Figure 1. Referring to Figure 1, controller C may be configured to process signals for broadcasting on the first and second displays 36 and 38. The housing assembly 20 may be completely self-contained and movable between various locations. The image stream from the stereoscopic camera 12 may be transmitted to controller C and / or camera processor (not shown), which may be configured to prepare the image stream for viewing. For example, controller C may combine or alternate the first and second video signals from the stereoscopic camera 12 to create a stereoscopic signal. Controller C may be configured to store the video and / or stereoscopic video signals in a video file and store it in memory M. The first and second displays 36 and 38 may incorporate a stereoscopic display system, and the two-dimensional displays may have separate images for the left and right eyes. To view the stereoscopic display, the user may wear special glasses that work in conjunction with the first and second displays 36 and 38 to show the left field of view to the user's left eye and the right field of view to the user's right eye.
[0020] Referring to Figure 1, the first display 36 may be connected to a cart 34 via a flexible mechanical arm 40 having one or more joints to allow for flexible positioning. The flexible mechanical arm 40 may be configured to be long enough to extend over the patient during surgery to provide the surgeon with a relatively close view. The first and second displays 36 and 38 may include any type of display such as a high-definition television, ultra-high-definition television, smart glasses, projector, one or more computer screens, laptop computer, tablet computer and / or smartphone, and may include a touchscreen.
[0021] The stereoscopic camera 12 is configured to acquire stereoscopic images of a target area 16, which may be presented in various forms, including but not limited to captured still images, real-time images, and / or digital video signals. As used herein, “real-time” generally means updating information at the same rate as the data is received. More specifically, “real-time” means that image data is acquired, processed, and transmitted at a sufficiently high data rate and sufficiently low latency, and that when the data is displayed, the object moves smoothly without any noticeable vibration or latency for the user. Typically, real-time occurs when new images are acquired, processed, and transmitted at a rate of at least about 30 frames per second (fps), displayed at about 60 fps, and the combined processing of the video signals has a latency of about 1 / 30 of a second or less.
[0022] Controller C is adapted to selectively execute one or more autofocus modes 14 (hereinafter, "one or more") for the stereoscopic camera 12. Each of the autofocus modes 14 can be selectively started by the user. The autofocus modes 14 utilize the two available images (left and right) of the stereoscopic camera 12 to allow the user to convert the image from out-of-focus to in-focus without requiring tedious manual focusing.
[0023] The autofocus mode 14 can be used with any stereoscopic visualization device having a variable, for example, changeable working distance W. Figure 1 shows the working distance W, which can be defined as the distance between a reference plane and the focal plane of the target area 16. Accordingly, the working distance W sets the plane or the focused scene of the target area 16. In the embodiments shown in Figures 1 and 2, the reference plane is the outer surface of the front working distance lens 104. The working distance W may correspond to the angular field of view, with longer working distances resulting in a wider field of view or a larger visible area.
[0024] Referring to Figure 1, the autofocus mode 14 may include a disparity mode 50, a sharpness control mode 52, a target locking mode 54, and a continuous autofocus mode 56. Partially based on the initial robot arm input and dynamic image feedback, the autofocus mode 14 automatically adjusts the working distance W to achieve improved image quality in various situations. The controller C may be adapted to provide an application programming interface (API) for starting and stopping each of the autofocus modes 14. Exemplary implementations of the disparity mode 50, sharpness control mode 52, target locking mode 54, and continuous autofocus mode 56 are described below with reference to Figures 4, 7, 9, and 11, respectively (as Methods 200, 400, 600, and 700).
[0025] Disparity mode 50 is adapted to use the disparity signal as a feedback signal to control the adjustment of the working distance W during the autofocus process. The disparity signal reflects the horizontal displacement between a point of interest in the left field of view image and the same point of interest in the right field of view image. Sharpness control mode 52 improves the overall image when the stereoscopic camera 12 is in focus and reduces the inferior image quality caused by disparity fluctuations. Sharpness control mode 52 is adapted to use the disparity signal as well as several sharpness parameters (e.g., sharpness, maximum sharpness, and the derivative of maximum sharpness). In disparity mode 50 and sharpness control mode 52, the robot arm 24 and the target part 16 are fixed in place as shown in Table 1 below.
[0026] [Table 1]
[0027] While the robot arm 24 moves the stereoscopic camera 12 and the target area 16 remains fixed, the target locking mode 54 is adapted to maintain focus in the image. The continuous autofocus mode 56 is adapted to maintain focus in the image as both the robot arm 24 and the target area 16 move. The continuous autofocus mode 56 converges to the maximum sharpness value when the robot arm 24 stops moving.
[0028] Controller C in Figure 1 is specifically programmed to execute blocks of methods 200, 400, 600, and 700 (which will be discussed in detail below with respect to Figures 4, 7, 9, and 11, respectively), and may contain or access information downloaded from remote sources and / or executable programs. Referring to Figure 1, Controller C may be configured to communicate with remote servers 60 and / or cloud units 62 via network 64. Remote servers 60 may be private or public information sources maintained by organizations such as research institutions, companies, universities, and / or hospitals. Cloud units 62 may include one or more servers hosted on the Internet for storing, managing, and processing data.
[0029] Network 64 may be a serial communication bus in the form of a local area network. A local area network may include, but is not limited to, a Controller Area Network (CAN), a Controller Area Network with Flexible Data Rate (CAN-FD), Ethernet, Bluetooth, Wi-Fi, and other data formats. Network 64 may be a wireless local area network (LAN) connecting multiple devices in a wireless distributed manner, a wireless metropolitan area network (MAN) connecting multiple wireless LANs, or a wireless wide area network (WAN) covering a wide area such as a neighboring city or town. Other types of connections may be used.
[0030] I. Optical Components of Stereoscopic Cameras Exemplary optical components of the stereoscopic camera 12 are shown in Figures 2 and 3. Those skilled in the art should understand that other optical components or devices available may be used. Referring here to Figure 2, a schematic diagram of a portion of the stereoscopic camera 12 is shown. Images from the target area 16 are received by the stereoscopic camera 12 via the optical assembly 102 shown in Figures 2 and 3. Referring to Figures 2 and 3, the optical assembly 102 includes a front working distance lens 104 and a rear working distance lens 106 within a housing 108.
[0031] Referring to Figure 2, the focal plane 122 is located at a distance equal to the focal distance F from the principal plane 124 of the optical assembly 102. Visualization of the object by the stereoscopic camera 12 above and below the focal plane 122 weakens the object's focus. Since it can be difficult to measure the location of the principal plane 124, the distance from the bottom surface of the housing 108 to the focal plane 122 is usually specified as the working distance W. The working distance W accurately sets the plane or the focused area of the target part 16.
[0032] The optical assembly 102 is configured to provide the stereoscopic camera 12 with a variety of working distances W (see Figure 1). Referring to Figure 2, the controller C is adapted to selectively instruct the focus motor 110 to change the distance between the rear working distance lens 106 and the front working distance lens 104. The focus motor 110 is movable (for example, along direction 112) to change the working distance W of the optical assembly 102. As described above, the working distance W may be referred to as the distance from the stereoscopic camera 12 to the reference plane in focus of the target area 16. In some embodiments, the working distance W is adjustable from 200 to 450 mm by moving the rear working distance lens 106 via the focus motor 110.
[0033] The movement of the rear working distance lens 106 relative to the front working distance lens 104 also changes the focal length F. In some embodiments, the focal length F is the distance between the rear working distance lens 106 and the front working distance lens 104 plus half the thickness of the front working distance lens 104. The achievable focal length F is bounded by the maximum and minimum working distances allowed by the hardware. In one embodiment, the focus motor 110 is an electric motor. However, the focus motor 110 can be any type of linear actuator, such as a stepper motor, a shape memory alloy actuator, or any other type of actuator available to those skilled in the art.
[0034] In the illustrated embodiment, the rear working distance lens 106 is movable along direction 114 (here, the Z-axis) while the front working distance lens 104 is stationary. However, it should be understood that the front working distance lens 104 may be movable, or both the front working distance lens 104 and the rear working distance lens 106 may be movable. The focus motor 110 may be selectively operable via controller C and / or motor controller 116. The stereoscopic camera 12 may include an additional focus motor to move the front and rear lenses independently. The magnification of the optical assembly 102 may vary based on the working distance W. For example, the optical assembly 102 may have a magnification of 8.9x for a working distance of 200mm and a magnification of 8.75x for a working distance of 450mm.
[0035] In some embodiments, the front working distance lens 104 is composed of a plano-convex lens and / or a meniscus lens. The rear working distance lens 106 may include an achromatic lens. In embodiments in which the optical assembly 102 includes an achromatic refractive assembly, the front working distance lens 104 may include a hemispherical lens and / or a meniscus lens. The rear working distance lens 106 may include an achromatic doublet lens, a group of achromatic doublet lenses and / or an achromatic triplet lens. The optical assembly 102 may include other types of refractive or reflective assemblies and components available to those skilled in the art.
[0036] Referring to Figure 2, by imaging the object at the focal plane 122, a conjugate image located at infinity from the rear or back of the optical assembly 102 is formed. The optical assembly 102 is configured to provide left and right fields of view of the target area 16 via the optical device 130. In some embodiments, the optical device 130 includes left and right optical units 132, 134, each having a sensor and optical device. As shown in Figure 2, the left and right optical units 132, 134 generate a left optical path 136 and a right optical path 138, respectively, which are two parallel optical paths within the housing 108. The left and right optical units 132, 134 are separated laterally by a distance 140. In some embodiments, the distance 140 is approximately 58-70 mm. Outside the housing 108, the left optical path 136 and the right optical path 138 extend to the left optical axis 142 and the right optical axis 144, respectively, in directions slightly different from the optical axis 146 of the optical assembly 102. The left optical axis 142 and the right optical axis 144 coincide at the center of the field of view at image point 148. Image point 148 is sometimes referred to as the “tip” of the stereoscopic camera 12 at the focal plane 122.
[0037] By adjusting the relative positions of the front working distance lens 104 and the rear working distance lens 106, a new working distance W2 is formed at the position of the new focal plane 122B. Referring to Figure 2, the movement of the rear working distance lens 106 causes the left optical axis 142B and the right optical axis 144B to be realigned, and as a result, the tip 148B of the stereoscopic camera 12 is repositioned.
[0038] The front working distance lens 104 and the rear working distance lens 106 are configured together to provide an infinite conjugate image to provide optimal focus for the downstream optical image sensor. In other words, an object precisely located at the focal plane of the target area 16 will have its image projected at an infinite distance, thereby coupling at infinity at the working distance provided. Generally, an object appears in focus at a certain distance from the focal plane along the optical path. However, beyond a certain threshold distance, the object begins to appear blurred and out of focus.
[0039] The optical assembly 102 shown in Figures 2 and 3 provides images of the target area 16 to both the left optical path 136 and the right optical path 138. In an alternative embodiment, the optical assembly 102 may include separate left and separate right front working distance lenses 104 and separate left and separate right rear working distance lenses 106. Furthermore, each of the rear working distance lenses 106 may be independently adjustable.
[0040] Referring now to Figure 3, a schematic diagram of another part of the stereoscopic camera 12 is shown. The elements shown in Figure 3 may be part of either the left optical path 136 or the right optical path 138 (see Figure 2), and these elements are generally identical with respect to their arrangement. Referring to Figure 3, to illuminate the target area 16, the stereoscopic camera 12 may include one or more illumination sources, for example, a first light source 150, a second light source 152, and a third light source 154. In other embodiments, the stereoscopic camera 12 may include additional or fewer light sources. The light generated by the illumination sources interacts and is reflected at the target area 16, and some of the reflected light is directed towards the optical assembly 102. Alternatively, the stereoscopic camera 12 may use an external light source or ambient light from the environment.
[0041] In one embodiment, a first light source 150 is configured to output light in the visible portion of the electromagnetic spectrum, and a second light source 152 is configured to output near-infrared light mainly having wavelengths slightly past the red portion of the visible spectrum. A third light source 154 may be configured to output near-ultraviolet light mainly having wavelengths in the blue portion of the visible spectrum. The brightness of the generated light can be controlled by controller C and / or corresponding microcontrollers associated with the corresponding light sources. In some embodiments, light from the third light source 154 is reflected by a deflection element 156 towards the optical assembly 102 using an epi-illumination setting. The deflection element 156 may be, for example, a beam splitter. The deflection element 156 may be coated or configured to reflect only light beyond the near-ultraviolet wavelength range, thereby filtering out near-ultraviolet light.
[0042] Referring to Figure 3, the deflection element 156 may be configured to transmit light of a specific wavelength from the third light source 154 to the target area 16 through the optical assembly 102. The deflection element 156 is also configured to reflect the light received from the target area 16 toward downstream optical elements, including a forward lens set 158 for magnification and recording. In some embodiments, the deflection element 156 may filter the light received from the target area 16 through the optical assembly 102 so that light of a specific wavelength reaches the forward lens set 158. The deflection element 156 may include any type of mirror or lens for reflecting light in a specific direction. In one embodiment, the deflection element 156 includes a dichroic mirror or filter having different reflection and transmission characteristics at different wavelengths.
[0043] Referring to Figure 3, the stereoscopic camera 12 may include one or more zoom lenses to provide zoom magnification by changing the focal length and the field of view of the target area 16. In the illustrated embodiment, the zoom lens includes a front lens set 158, a zoom lens assembly 160, and a lens barrel set 166. The front lens set 158 includes corresponding positive focusing lenses (for the left and right optical paths), respectively, which can guide light from the deflection element 156 to the corresponding lenses of the zoom lens assembly 160. The lateral position of the front lens set 158 can determine the beams from the optical assembly 102 and the deflection element 156 that are propagated to the zoom lens assembly 160. The front lens set 158 may include lenses having adjustable radial and axial positions.
[0044] Referring to Figure 3, the zoom lens assembly 160 can form an infinite focus zoom system for changing the size of the field of view (e.g., a linear field of view) by changing the size of the light beam propagated to the lens barrel set 166. The zoom lens assembly 160 may include a forward zoom lens set 162 having corresponding left and right forward zoom lenses. The zoom lens assembly 160 may include a rear zoom lens set 164 having corresponding left and right forward zoom lenses. The forward zoom lens set 162 may include a positive focusing lens, while the rear zoom lens set 164 may include a negative diverging lens. In some embodiments, the lens barrel set 166 may be fixed radially and axially within the housing 108. In other embodiments, the lens barrel set 166 may be movable axially along the optical path to provide an increase in magnification. In addition, some or all of the corresponding elements in the forward lens set 158, the forward zoom lens set 162 and / or the rear zoom lens set 164 may be adjustable radially and / or rotationally.
[0045] The stereoscopic camera 12 in Figure 3 may include one or more optical filters 168 for selectively transmitting a desired wavelength of light. Each optical path may have a separate filter. By including separate filters, it becomes possible, for example, to simultaneously filter light of different wavelengths from the left optical path and the right optical path, thereby enabling the display of, for example, a fluorescence image related to a visible light image.
[0046] Referring to Figure 3, the filter 168 may include a wheel that is rotatable around a rotation axis and capable of accommodating multiple different optical filter pairs. The lenses of the optical assembly 102, the front lens set 158, the zoom lens assembly 160, and the lens barrel set 166 may be configured to pass through a relatively wide bandwidth of light, including wavelengths of interest and undesirable wavelengths to the operator. In other embodiments, the filter 168 may include a digital micromirror that can change the direction of the optical path with respect to the video frame rate.
[0047] Referring to Figure 3, the stereoscopic camera 12 may include a final optical element set 170 for focusing the light received from the filter 168 onto an optical image sensor 172 which can be connected to a flexible member 174. The final optical element set 170 may include right and left positive focusing lenses, which are adjustable radially and / or axially to correct magnification and / or focusing aberrations in the right and left optical paths before the light reaches the optical image sensor 172.
[0048] Referring to Figure 3, the optical image sensor 172 is configured to acquire and / or record incident light received from the final optical element set 170. The optical image sensor 172 may include separate right and left optical image sensors for the right and left optical paths, and may include, but is not limited to, complementary metal oxide semiconductor ("CMOS") sensing elements, N-type metal oxide semiconductor ("NMOS"), and / or semiconductor charge-coupled device ("CCD") sensing elements. The controller C may be configured to measure and calculate the camera's model parameters for magnification and working distance values. To match the left and right stereoscopic fields of view of the target area 16, the output of the stereoscopic camera 12 may be calibrated using a mathematical model executable by the controller C.
[0049] II. Disparity Mode Referring here to Figure 4, a flowchart of Method 200 is shown. Method 200 is an exemplary implementation of Disparity Mode 50 in Figure 1 and can be embodied as computer-readable code or instructions stored in and partially executable by Controller C in Figure 1. Method 200 does not need to be applied in a specific order as described herein and can be executed dynamically. Furthermore, it should be understood that some steps may be omitted. As used herein, the terms “dynamic” and “dynamically” describe a step or process that is performed in real time during the execution of a routine or during the repetition of a routine, characterized by monitoring or determining the state of a parameter and updating the state of the parameter periodically or periodically.
[0050] Assuming a 3D stereoscopic imaging device with a variable working distance (e.g., a stereomicroscope), the challenge is to find a way to rapidly change the working distance W (e.g., by adjusting the focus motor 110) regardless of the initial state of the working distance W, and to automatically acquire a focused image. The first challenge is to acquire a feedback signal for changing the working distance W. In disparity mode 50, the feedback signal used is the disparity signal. A schematic diagram showing disparity for exemplary left image 320 and right image 322 is shown in Figure 5B, which is not drawn to scale. The disparity value / signal 324 can be defined as the numerical value of the pixel offset between the identifiable region 326A in the left-eye image 320 and the same identifiable region 326B in the right-eye image 322. Referring to Figure 5B, the disparity signal can be calculated by acquiring the identifiable region 326A of the left-eye image 320 and performing a template match on a second (larger) region 328 containing the same coordinates of the identifiable region 326B in the right-eye image 322. The second region 328 is larger than the identifiable region 326A / 326B. The second challenge is to search across the entire working distance W, as the initial state of the working distance W may result in a completely blurred image, making the disparity signal unreliable. Therefore, a search must be performed, and the focus motor 110 is moved to a region where the disparity signal is effective and can be used in the feedback controller.
[0051] Referring to Figure 4, method 200 begins in block 202. In block 202, controller C is programmed to investigate the state of the robot arm 24 and determine the selected direction 308 (see Figure 5A) in which the focus motor 110 must move to focus on the image. Referring to Figure 5A, a distance scale 300 is shown between the minimum working distance 302 and the maximum working distance 304. The initial state of the working distance W (and the corresponding initial position of the focus motor 110 in Figure 2) is indicated by the starting point 306. The selected direction 308 aligns with the direction of movement of the robot arm 24. Data is investigated to determine which direction the robot arm 24 has moved since the last time the image was in focus. This search in this direction makes it possible to quickly encounter a valid disparity region 310 (see Figure 5A). Figure 5A shows the valid disparity region 310 and the valid sharpness region 312. The effective sharpness region 312 is smaller than the effective disparity region 310 and is contained within it.
[0052] In block 202 of Figure 4, controller C is also programmed to scan or sweep a range of working distance (W) in the selected direction 308 and calculate a disparity signal at each step. As described above, referring to Figure 5B, the disparity signal 324 can be calculated by acquiring the identifiable region 326A of the left-eye image 320 and performing a template match on a larger second region 328 containing the same coordinates of the identifiable region 326B in the right-eye image 322. A pixel offset is obtained by calculating the position of the optimal template match, and the pixel offset is set as the disparity signal. Other methods may be used.
[0053] Referring to Figure 6, a schematic graph of an exemplary disparity signal is shown. The horizontal axis 360 represents the working distance between the minimum working distance 362 and the maximum working distance 364. The vertical axis 366 represents the magnitude of the disparity signal. Referring to Figure 6, as the image gradually comes into focus, the disparity signal slopes linearly from the edge of the effective disparity region 370 to zero (at the zero disparity position 372). The zero disparity position 372 indicates that the disparity signal is zero. When the disparity signal is zero, the left and right images overlap and are not offset, and as a result, the image is in better focus. Referring to Figure 6, the disparity signal within the effective disparity region 370 reflects a valid / legitimate value, while the values of the disparity signal in the first outer region 374 and the second outer region 376 reflect artifacts or meaningless values. Artifacts are, for example, a result of how the disparity signal is calculated using the template matching process described above. As the image moves further away from the zero-disparity position 372, it becomes increasingly blurred, until eventually the image is completely blurred, at which point the pixel offset obtained by calculating the optimal template match location simply returns noise. When a region of the variable working distance is input to a location where numerically valid disparity is detected (e.g., the valid disparity region 310 in Figure 5A), the controller C is programmed to switch to using a feedback controller (e.g., a PID controller) to move the focus motor 110 accordingly and drive the disparity to zero.
[0054] In block 204 of Figure 4, controller C is programmed to determine a motor command for the focus motor 110 such that the calculated disparity signal is zero. This is because the error value (E) is set to the desired disparity (D desired Disparity (D = 0) estimated This can be done via a closed-loop control module configured to obtain the difference between ) and ). E=[ LIM Destimated -D desired ]
[0055] A closed-loop control module may be integrated into or accessible from controller C. The closed-loop control module is configured to minimize the error value over time by adjusting the control variable (in this case, the working distance) to a new value. The closed-loop control module may be a proportional-derivative (PD) control module, a proportional-integral (PI) control module, or a proportional-integral-derivative (PID) control module. As will be understood by those skilled in the art, PI and PID control modules continuously calculate the error value using a feedback loop. The error value is the difference between the desired value and the measured process variable. The PI control module applies corrections based on proportional and integral terms, while the PID control module further includes a differential term, and the PD control module applies corrections based on proportional and differential terms.
[0056] In block 206 of Figure 4, controller C is programmed to move the focus motor 110 to the corresponding zero-disparity position 372 (determined in block 204) to acquire a focused image. This is not straightforward, as "perfect focus disparity" has been observed to vary considerably from unit to unit. In addition, changes such as heating of the stereoscopic camera 12 can shift the zero-disparity position 372. Disparity mode 50 provides a single function call when the robot arm 24 is not moving, so that a focused image can be acquired at any time, from any initial conditions. Another technical advantage is that since the stereoscopic camera 12 has two images available, no additional hardware is required to measure the distance to the ground point, thus eliminating the need for a rangefinder.
[0057] III. Sharpness and Disparity-Based Autofocus Referring here to Figure 7, a flowchart of Method 400 is shown. Method 400 is an exemplary implementation of the sharpness control mode 52 of Figure 1, and can be embodied as computer-readable code or instructions stored in and partially executable by Controller C of Figure 1. Method 400 does not need to be applied in a specific order as described herein and can be executed dynamically. Furthermore, it should be understood that some steps may be omitted. The sharpness control mode 52 improves the overall image when the stereoscopic camera 12 is in focus and reduces inferior image quality caused by disparity fluctuations. In many situations, the position of maximum sharpness is offset from the position of zero disparity. The challenge here is to apply dynamic adjustments to converge to the position of maximum sharpness. Another challenge is the effectiveness of the sharpness signal across the entire working distance range, because the portion outside the effective sharpness region 312 (see Figure 5A) is unusable / blurred. As shown in Figure 5A, the effective sharpness region 312 is relatively small, especially at high magnification.
[0058] Figures 8A and 8B are schematic graphs showing examples of sharpness signal values for various positions of the focus motor 110 for an exemplary stereoscopic camera 12. In Figures 8A and 8B, the horizontal axis 502 reflects the position of the focus motor, while the vertical axis 504 reflects the amplitude of the sharpness signal. Trace 506 in Figure 8A shows the sharpness signal obtained at a magnification of 1X, where the sharpness signal has its maximum value at motor position 508. Trace 516 in Figure 8B shows the sharpness signal obtained at a magnification of 10X, where the sharpness signal has its maximum value at motor position 518. The width of the sharpness signal changes with magnification or zoom. As shown in Figures 8A and 8B, the width is narrower in the higher magnification range.
[0059] The method 400 of FIG. 7 begins at block 402. At block 402, the controller C is programmed to determine a selected direction (e.g., selected direction 308 of FIG. 5A) in which the focus motor 110 needs to move to achieve focus. The selected direction is set to the direction in which the robotic arm 24 moved at the previous time point when the image was in focus. The controller C is programmed to scan the range of working distance (W) in the selected direction 308.
[0060] At block 404 of FIG. 7, the controller C is programmed to determine a motor command for the focus motor 110 such that the calculated disparity signal is zero (e.g., see zero disparity position 372 of FIG. 6). This is achieved by setting the error value (E) to the desired disparity (D desired =0) and the estimated disparity (D estimated ) via a closed-loop control module configured to obtain the difference between them. E= LIM D estimated -D desired
[0061] The closed-loop control module may be integrated into the controller C or accessible to the controller C. The closed-loop control module is configured to minimize the error value over time by adjusting the control variable (in this case, the working distance) to a new value. The closed-loop control module may be a proportional-derivative (PD) control module, a proportional-integral (PI) control module, or a proportional-integral-derivative (PID) control module. As will be appreciated by those skilled in the art, the PI control module and the PID control module continuously calculate the error value using a feedback loop. The error value is the difference between the desired value and the measured process variable. The PI control module applies corrections based on the proportional term and the integral term, while the PID control module further includes a derivative term, and the PD control module applies corrections based on the proportional term and the derivative term.
[0062] In block 406 of Figure 7, controller C is programmed to determine or track several sharpness parameters, including a sharpness signal, a maximum sharpness signal, and a derivative of maximum sharpness, i.e., the rate of change of maximum sharpness over time. Figure 8C is a schematic diagram showing an example of a sharpness signal 550, a maximum sharpness signal 560, and a derivative of maximum sharpness 570 for the stereoscopic camera 12. The vertical axis 540 indicates the magnitude of the corresponding sharpness parameter, while the horizontal axis 542 indicates the corresponding position of the focus motor 110. The sharpness parameters reflect the crispness of the image. The sharpness signal 550 may be defined as the contrast between the edges of objects in the image, which is the high-frequency component of the image. The sharpness signal 550 may be calculated by calculating the Laplacian variation of the Gaussian blur for each image frame of the stereoscopic image. As those skilled in the art will understand, the Laplacian (sometimes called the Laplace operator) is a differential operator given by the divergence of the gradient of a function in Euclidean space. Gaussian blur can be obtained by blurring or smoothing an image using a Gaussian function. These calculations can be performed using mathematical software, machine learning algorithms, and processing devices available to those skilled in the art. The definition of the sharpness signal 550 may vary depending on the application at hand.
[0063] Referring to Figure 8C, the maximum sharpness signal 560 can be defined as the highest sharpness value observed during scanning time. The maximum sharpness signal 560 is continuously updated, and the derivative of the maximum sharpness 570 is calculated with respect to time. In some embodiments, the derivative of the maximum sharpness 570 (dS) max / dt) is dS max / dt=filter([Δs[n+1]-Δs[n]] / T s ) can be obtained as T s is the sample rate, n is the number of samples, Δs is the change in maximum sharpness, and the filter function may be a smoothing or denoising filter function available to those skilled in the art. The sharpness signal 550 may be input at different rates in different threads and may be calculated at a time slightly different from the time the focus motor command is updated.
[0064] As shown in Figure 8C, the derivative of maximum sharpness 570 reaches its maximum at the first position 544. When the derivative of maximum sharpness 570 returns to zero, this means that the best sharpness location has been passed and the controller C is activated. For example, the controller C may be activated at the second position 546, which is when the derivative 570 settles to zero over a predetermined number of steps. The controller C is programmed to instruct the focus motor 110 to return to the first position 544, which is considered the maximum sharpness position.
[0065] Method 400 in Figure 7 proceeds from block 406 to block 408. In block 408 of Figure 7, controller C is programmed to determine whether the disparity signal at the maximum sharpness position is at or below an acceptable threshold. If so, method 400 proceeds to block 410. In block 410, the focus motor 110 is instructed to move to the working distance position corresponding to the maximum sharpness (obtained in block 406). By utilizing the disparity signal to ensure convergence to a small sharpness region, method 400 is fast, robust, and works well at multiple zoom levels. By maximizing sharpness, the resulting image has less blur than if it were simply converged to disparity alone.
[0066] If the disparity signal exceeds an acceptable threshold, method 400 proceeds to block 412. In block 412, the focus motor 110 is instructed to move to the zero disparity position 372 (see Figure 6) obtained in block 404. In some cases where the stereoscopic camera 12 is improperly calibrated, the location corresponding to maximum sharpness may result in unacceptably high disparity, making three-dimensional recognition difficult. In this case, since maximum sharpness cannot be used, method 400 returns to the zero disparity location. Using only sharpness is challenging at high magnifications due to the extremely small area containing meaningful sharpness information.
[0067] In summary, Method 400 achieves optimal focus by performing multiple sweeps and varying the working distance W using disparity feedback and sharpness feedback. When considering an image, if the disparity is not too large and the image sharpness is maximized, the image can be considered to be in maximum focus. The sharpness control mode 52 enables optimal convergence to maximum sharpness by pairing the sharpness parameter with the disparity signal. The disparity signal has an effective disparity region 310 (see Figure 5A) which includes a larger effective sharpness region 312 (see Figure 5A).
[0068] IV. Target Locking Mode Referring now to Figure 9, a flowchart of exemplary method 600 is shown. Method 600 is an exemplary implementation of the target locking mode 54 of Figure 1, and can be embodied as computer-readable code or instructions stored in and partially executable by controller C of Figure 1. Method 600 does not need to be applied in a specific order as described herein and can be executed dynamically. Furthermore, it should be understood that some steps may be omitted.
[0069] In some embodiments, referring to Figure 1, the target locking mode 54 begins when the operator selects the target locking mode 54 (e.g., via an input device 66 such as a mouse), thereby sending a command message or signal to the controller C and / or robot arm controller 42. Upon receiving the command, the exemplary controller C and / or robot arm controller 42 may record the current working distance, magnification, focus, and / or other optical parameters of the stereoscopic camera 12. The current position of the target area 16 may be determined from position data of various joints of the robot arm 24. The controller C and / or robot arm controller 42 may also record a current image of the target area 16.
[0070] The target locking mode 54 allows the stereoscopic camera 12 to move to any location in 3D space (via the robotic arm 24) while allowing changes in working distance, while maintaining focus on the target area 16 in real time. The challenge of maintaining focus on the image while the robotic arm 24 is moving arises when the orientation of the stereoscopic camera 12, i.e., the direction of the view vector 118 of the stereoscopic camera 12 in 3D space (see Figure 3), changes. In these embodiments, the target locking mode 54 allows the robotic arm 24 to act as an extension of the surgeon by allowing the orientation of the stereoscopic camera 12 to change while locking it onto a specific point on the target area 16 (e.g., target point 120 shown in Figure 3).
[0071] Method 600 begins in block 602 of Figure 9. In block 602, the controller C is programmed to determine whether the robot arm 24 has moved. If it has moved, Method 600 proceeds from block 602 to block 604. In block 604, the position of the target part 16 is locked via a target lock function. The target lock function restricts the position of the stereoscopic camera 12 to the outer surface of a virtual sphere, for example, the outer surface 652 of the virtual sphere 650 shown in Figure 10, based on the current position of the target part 16. Figure 10 is a schematic diagram of an exemplary virtual sphere 650 that can be used in Method 600. Referring to Figure 10, a given position on the outer surface 652 may be given by an equation that is a function of the rotation sphere angles V and U.
[0072] Referring to Figure 10, the view vector 118 of the stereoscopic camera 12 (also shown in Figure 3) is pointed towards the center 654 of the virtual sphere 650. The center 654 has the same coordinates in XYZ space as the selected point in the target area 16, such as the target point 120 shown in Figure 3. Referring to Figure 10, the end position 656 (of the stereoscopic camera 12) on the outer surface 652 may be obtained differently depending on the type of input received. In some embodiments, the input is received via an input device 66 (e.g., a joystick or mouse) as shown in Figure 1. Controller C and / or the robot arm controller 42 may be adapted to translate "up," "down," "left," and "right" from camera coordinates to robot base frame coordinates. The X and Y vectors are used by Controller C and / or the robot arm controller 42 to directly determine how the stereoscopic camera 12 moves on the virtual sphere 650 to determine the end position 656.
[0073] In some embodiments, the controller C is configured to receive trajectory input data expressed in the form of rotation angles. In these embodiments, referring to Figure 10, the controller C maintains a constant first spherical angle V while repeatedly moving the virtual sphere 650 along a second spherical angle U. The repeated movement along the second spherical angle U allows for the determination of the end position 656 for the trajectory input. In some embodiments, the virtual sphere 650 may be represented by a different shape, and its outer surface 652 may be represented by a flat surface 670.
[0074] After the end position 656 is determined, controller C is configured to calculate the amount of rotation required for the stereoscopic camera 12 to maintain locking to the XYZ coordinates of the selected point after the stereoscopic camera 12 has moved. Controller C (and / or robot arm controller 42) may determine roll and pitch amounts relative to the stereoscopic camera 12 and provide anti-sway correction. The exemplary controller C and / or robot arm controller 42 in Figure 1 allows the operator to move the stereoscopic camera 12 to the end position 656 on the outer surface 652 while maintaining the state in which the stereoscopic camera 12 is pointed toward the center 654 of the virtual sphere 650 (as indicated by the view vector 118B), thereby maintaining the target area 16 in focus during the movement. In other words, controller C is configured to determine how the stereoscopic camera 12 should be pointed such that, given its new position on the virtual sphere 650, the view vector 118B of the end position 656 is provided in the same XYZ coordinates at the center of the virtual sphere 650 (corresponding to the selected point). In addition, controller C and / or robot arm controller 42 are adapted to determine the joint angles of the robot arm 24 and / or coupling plate 26 necessary to achieve the desired orientation.
[0075] Method 600 proceeds from block 604 to block 606, where controller C is programmed to calculate the change in working distance (ΔW) relative to the previously saved value (or previous iteration) due to the movement of the stereoscopic camera 12 via the robot arm 24. Controller C is programmed to obtain an updated value of working distance (W). In other words, the displacement of working distance (W) due to robot movement is tracked for each movement cycle.
[0076] Method 600 proceeds from block 606 to block 608, where controller C is programmed to calculate a motor command for the focus motor 110 corresponding to the updated working distance (W). In some embodiments, a calibrated lookup table is used to translate the change in working distance into a command for the focus motor 110. Method 600 proceeds to block 610. In block 610 of Figure 9, controller C is programmed to move the focus motor 110 by sending the calculated motor command from block 608 so that the image does not shift focus while the working distance (W) is updated in each iteration.
[0077] If no further movement of the robot arm 24 is detected in block 602, method 600 proceeds to 614, where the position where sharpness is maximized is determined. Similar to block 406 in Figure 7, in block 614, controller C is programmed to determine or track multiple sharpness parameters, including a sharpness signal, a maximum sharpness signal, and a derivative of the maximum sharpness, i.e., the rate of change over time. Figure 8C shows an example of a sharpness signal 550, a maximum sharpness signal 560, and a derivative of the maximum sharpness 570 for the stereoscopic camera 12. The vertical axis 540 indicates the magnitude of the corresponding sharpness parameter, while the horizontal axis 542 indicates the corresponding position of the focus motor 110. As previously mentioned, the sharpness signal 550 can be calculated by calculating the variation in the Laplacian of the Gaussian blur for each image frame. The definition of the sharpness signal 550 may vary based on the available applications. The maximum sharpness signal 560 can be defined as the maximum sharpness value observed during scanning time. The maximum sharpness signal 560 is continuously updated, and the derivative of maximum sharpness 570 is calculated over time. As shown in Figure 8C, the derivative of maximum sharpness 570 reaches its maximum at a first position 544. When the derivative of maximum sharpness 570 returns to zero, this means that the best sharpness location has been passed and the controller C is activated. For example, the controller C may be activated at a second position 546, which is when the derivative 570 settles to zero over a predetermined number of steps. The first position 544 is considered the maximum sharpness location.
[0078] Method 600 in Figure 9 proceeds from block 614 to block 616, where controller C is adapted to move the focus motor 110 to the maximum sharpness position. As shown in line 612, Method 600 loops back from block 610 to block 602. With each cycle update, Method 600 updates the displacement amount moved along the working distance (W), for example in meters. This displacement is then converged to a motor focus command using a calibrated lookup table. This motor command is then transmitted, and as a result, the image remains in focus as the working distance (W) changes. The radius of the virtual sphere 650 in each iteration is reset to the updated working distance (W) value by the internal target lock function calculation updating the radius of the virtual sphere 650 each cycle. If the target area 16 is moving, the selection point (at the center 654 of the virtual sphere 650) is replaced with a dynamic trajectory corresponding to the movement of the target area 16.
[0079] In summary, Method 600 allows the robot arm 24 to maintain focus while moving through three-dimensional space while keeping its focus on the target area 16. Controller C dynamically interprets the movement of the robot arm 24 and calculates how much it should move in order to maintain focus. When the robot arm 24 has completed all its movements, the focus motor 110 is moved to the location of maximum sharpness. The amount of this adjustment (movement to the location of maximum sharpness) may be small due to the continuous tracking of the robot arm 24 during its movement. As a result, an image that always appears in focus is obtained, even when the robot arm 24 is changing its working distance. Referring to Figure 1, in target locking mode 54, changes in working distance W (due to the movement of the robot arm 24) are permissible. The permissible changes in working distance W may be limited so that the radius of the virtual sphere 650 does not exceed the maximum and minimum working distances permissible by the hardware. In some embodiments, feature flags may be inserted to enforce artificial robot boundaries and prevent the robot arm 24 from exceeding these limits on working distance W.
[0080] In some embodiments, controller C may program and store movement paths within the image of an object, created from different field of view angles. For example, controller C and / or robot arm controller 42 may be programmed to perform an ophthalmic examination of a patient's eye by pivoting around a point within the eye. In this example, robot arm 24 sweeps the stereoscopic camera 12 in a roughly conical motion so that the patient's eye is viewed from multiple field of view angles. Such movement to visualize the surgical site can be used to select the best angle to eliminate spurious reflections from lighting or to avoid obstacles and view from alternative field of view angles.
[0081] V. Continuous Autofocus Mode Referring now to Figure 11, a flowchart of Method 700 is shown. Method 700 is an exemplary implementation of the continuous autofocus mode 56 of Figure 1, and can be embodied as computer-readable code or instructions stored in and partially executable by Controller C of Figure 1. Method 700 does not need to be applied in a specific order as described herein and can be executed dynamically. Furthermore, it should be understood that some steps may be omitted.
[0082] The continuous autofocus mode 56 in Figure 1 is adapted to maintain image focus regardless of the type of movement as the robot arm 24 moves, and to provide a smooth, low-noise adjustment to maximum sharpness at the end of the movement. This means that the image remains in focus even if the stereoscopic camera 12 rotates to view different scenes, the scene itself changes depth, the working distance changes, or all of the above occur simultaneously. As described later, the continuous autofocus mode 56 measures the relative change in the view vector 118 (see Figure 2) by measuring the relative change in target depth (i.e., axial position, in this case the Z-axis) using the current state of the robot arm 24 and dynamic control of the disparity signal. This allows for initialization when a focused image is detected (automatically or by the user), and from that point onward, the image remains in focus. Because the disparity signal is used dynamically during movement, changes in depth (i.e., axial position) that occur as the robot arm 24 moves will remain in focus.
[0083] Method 700 begins with block 702 in Figure 11. In block 702, controller C is programmed to determine whether the robot arm 24 has moved. If so, method 700 proceeds to block 704. In block 704, controller C is programmed to determine the change in height resulting from the change in the robot arm 24 (detected in block 702). Height is defined as the change in the position of the stereoscopic camera 12 along the axial direction (in this case, the Z-axis) due to the movement of the robot arm 24. Controller C may calculate the change in height using position data from joints (e.g., joint sensors 33 in Figure 1) and other parts of the robot arm 24, as shown in block 706.
[0084] Method 700 in Figure 11 proceeds from block 704 to block 708. In block 708, controller C is programmed to determine the change in target depth (ΔZ_target). As shown by block 710, controller C may receive input data related to the disparity signal in order to calculate the change in target depth. The change in target depth (ΔZ_target) may be calculated using feedback control with a closed-loop control module which may be a PI controller, PD controller and / or PID controller. In one embodiment, the change in target depth (ΔZ_target) is calculated using a PID controller and a disparity value as follows: ΔZ_target=Kp(Rc-Rt)+Ki∫(Rc-Rt)dt-Kd×dRc / dt
[0085] Here, Rc is the current disparity value, and Rt is the initial target disparity value, defined as the disparity value recorded when the start value is initialized and stored. Here, Kp, Ki, and Kd are the proportionality constant, integral constant, and differential constant from the PID controller, respectively, and the process variable is the difference between the current disparity value (Rc) and the initial target disparity (Rt). The constants Kp, Ki, and Kd can be obtained through calibration using a known change in target depth (here, a change along the Z-axis).
[0086] Method 700 in Figure 11 proceeds from block 708 to block 712. In block 712, controller C is programmed to determine the change in the position coordinates of the target area 16 based on the change in target depth (from block 708). The stored location of the Z component of the target area 16 is updated as follows: Z_updated=Z_initial-ΔZ_target
[0087] Next, method 700 proceeds to block 714. In block 714, controller C is programmed to determine the summation change in focal length (ΔF) and update the focal length (F). With each update cycle, the focal length F is updated using the feedforward term from robot arm 24 plus a feedback term from target depth disparity, as follows: ΔF = ΔF_robot + ΔF_target
[0088] The focal length F is updated based on two factors: firstly, how much the endpoint of the view vector 118 of the stereoscopic camera 12 has changed, and secondly, how much the target depth of the target 16 has changed.
[0089] Since the two elements are in different coordinate systems, a homogeneous transformation matrix (4x4) is used to transform the base coordinates (Xbase, Ybase, Zbase) in the robot base frame to the camera coordinate frame. The base coordinates (Xbase, Ybase, Zbase) represent the immediate or current location of the target part 16 on the robot base frame. The homogeneous transformation matrix consists of a rotation matrix Q (3x3) and a translation vector P, and can be expressed as follows.
number
number
number
[0090] Here, the vector (x³, y³, z³) represents the third column of the rotation matrix Q, which is the Z basis vector in the rotation space of the transformation matrix. The z position component of the Z basis vector is represented by z³. The updated focal length F can be calculated using the following formula: Zbase = F(z3) + z0 (Equation 3)
number
[0091] Method 700 proceeds from block 714 to block 716. In block 716, controller C is configured to calculate a motor command corresponding to the updated focal length F determined in block 714. The motor command is transmitted, and the focus motor 110 is moved by a correction amount determined by calibration so that the working distance W is the same as the updated focal length F. Referring to Figure 11, as shown in line 717, the updated focal length F (and updated working distance W) may be fed back to block 706 to update data regarding the joint angles of the robot arm 24. As described above, the data regarding the joint angles is used in block 704 to obtain the height change resulting from the movement of the robot arm 24. In addition, as shown in line 717, the updated focal length F may be input to block 710 to update the disparity signal information used in block 708 to obtain the change in target depth. Finally, Method 700 returns the loop from block 716 to block 702, as shown in line 718 in Figure 11.
[0092] Referring again to block 702 in Figure 11, if no movement of the robot arm 24 is detected, method 700 proceeds from block 702 to block 720. In block 720, controller C is programmed to scan and calculate the focus motor position for maximum sharpness. Similar to block 406 in Figure 7, in block 614, controller C is programmed to determine or track multiple sharpness parameters, including a sharpness signal, a maximum sharpness signal, and a derivative of maximum sharpness, i.e., the rate of change over time. Figure 8C shows an example of a sharpness signal 550, a maximum sharpness signal 560, and a derivative of maximum sharpness 570 for the stereoscopic camera 12. The vertical axis 540 indicates the magnitude of the corresponding sharpness parameter, while the horizontal axis 542 indicates the corresponding position of the focus motor 110. As previously mentioned, the sharpness signal 550 can be calculated by calculating the variation in the Laplacian of the Gaussian blur for each image frame. The definition of the sharpness signal 550 may vary based on the available applications. The maximum sharpness signal 560 may be defined as the highest sharpness value observed during scanning time. The maximum sharpness signal 560 is continuously updated, and the derivative of maximum sharpness 570 is calculated over time. As shown in Figure 8C, the derivative of maximum sharpness 570 reaches its maximum at a first position 544. When the derivative of maximum sharpness 570 returns to zero, this means that the best sharpness location has been passed and the controller C is activated. For example, the controller C may be activated at a second position 546, which is when the derivative 570 has settled to zero over a predetermined number of steps. The first position 544 is considered the maximum sharpness location. Finally, the method 700 in Figure 11 proceeds from block 720 to block 722. In block 722, the controller C is programmed to send motor commands to move to the position for maximum sharpness.
[0093] The continuous autofocus mode 56 requires an initial set of starting or estimated values for the target location (in 3D space) and focal length. The starting values can be obtained if at least one of the disparity mode 50 or sharpness control mode 52 has been successfully performed once during application. In some embodiments, the continuous autofocus mode 56 will not function unless at least one of the disparity mode 50 or sharpness control mode 52 is completed. Alternatively, an initial set of starting values may be supplied to the controller C as the output of a subroutine or machine learning algorithm. The continuous autofocus mode 56 then measures the relative change in focal length and maintains the image in focus based on the deviation from the starting values, even when the robot arm 24 is moving and the target location, depth, and working distance may be changing.
[0094] The continuous autofocus mode 56 is independent of the movement of the robot arm 24. This means that the continuous autofocus mode 56 monitors the actual physical state of the robot arm 24, rather than receiving commands from the controller C (and / or robot arm controller 42). This means that even if tracking the state of the robot arm 24 is incomplete, the image will still remain in focus.
[0095] The controller C in Figure 1 may be an integral part of the stereoscopic imaging platform 10, or it may be a separate module operably connected to the stereoscopic imaging platform 10. The controller C includes a computer-readable medium (also referred to as a processor-readable medium) which includes a non-temporary (e.g., tangible) medium related to providing data (e.g., instructions) that can be read by a computer (e.g., by the computer's processor). Such a medium may include, but is not limited to, non-volatile and volatile media. Non-volatile media may include, for example, optical or magnetic disks and other persistent memory. Volatile media may include, for example, dynamic random access memory (DRAM) which may constitute main memory. Such instructions may be transmitted by one or more transmission media, including coaxial cables, copper wires and optical fibers, which include wiring including a system bus coupled to the computer's processor. Some forms of computer-readable media include, for example, floppy disks, flexible disks, hard disks, magnetic tapes, other magnetic media, CD-ROMs, DVDs, other optical media, punch cards, paper tapes, other physical media having perforation patterns, RAM, PROMs, EPROMs, flash EEPROMs, other memory chips or cartridges, or other media that can be read by a computer.
[0096] The lookup tables, databases, data repositories, or other data stores described herein may include various types of mechanisms for storing, accessing, and retrieving various types of data, including hierarchical databases, sets of files in a file system, proprietary application databases, and relational database management systems (RDBMS). Each such data store may be contained within a computing device employing a computer operating system as described above and may be accessed over a network in one or more different ways. File systems may be accessible from computer operating systems and may contain files stored in various formats. RDBMS may use structured query language (SQL) in addition to languages for creating, saving, editing, and executing stored procedures such as the PL / SQL language described above.
[0097] The flowcharts presented herein illustrate the architecture, functionality, and operation of expected implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or part of code and may contain one or more executable instructions for implementing a specified logical function. It should also be noted that each block in the block diagrams and / or example flowcharts, and combinations of blocks in the block diagrams and / or example flowcharts, may be implemented by a combination of a computer instruction and a purpose-specific hardware-based device or purpose-specific hardware that performs a specified function or action. These computer program instructions may also be stored in computer-readable media. Computer program instructions can be directed to a controller or other programmable data processing device to function in a specific way, such that instructions stored in computer-readable media, including instructions for implementing the functions / actions specified in the blocks of the flowcharts and / or block diagrams, produce a manufactured article.
[0098] Numerical values of parameters (e.g., quantities or conditions) in this Spec., including the appended claims, should be understood to be modified by “approximately” in each instance, regardless of whether the term “approximately” actually precedes the numerical value. “Approximately” indicates that the stated numerical value allows for some degree of slight inaccuracy (in some approaches, it is an exact value; roughly or reasonably close; almost). Where the inaccuracy provided by “approximately” is not understood in this ordinary sense in the Art, “approximately” as used herein indicates at least the variation that may arise from the ordinary methods of measuring and using such parameters. In addition, the disclosure of ranges includes the disclosure of each value and further subdivided ranges within the full range. In this Spec., each value within a range and the endpoints of the range are disclosed as separate embodiments.
[0099] While detailed descriptions and drawings or figures support and illustrate this disclosure, the scope of this disclosure is defined solely by the claims. Although several best modes and other embodiments for carrying out the claimed disclosure have been described in detail, various alternative designs and embodiments exist for carrying out the disclosure as defined in the appended claims. Furthermore, the features of the embodiments shown in the drawings or the various embodiments referred to herein should not necessarily be understood as independent embodiments of each other. Rather, each of the characteristics described in one example of an embodiment can be combined with one or more other desirable characteristics from other embodiments, resulting in other embodiments that are not described in language or not described by reference to the drawings. Thus, such other embodiments are included within the framework of the appended claims. According to embodiment (1), a stereoscopic imaging platform for imaging a target area, A stereoscopic camera configured to record left and right images of the target area in order to generate at least one stereoscopic image of the target area, A robotic arm operably connected to the stereoscopic camera, adapted to selectively move the stereoscopic camera relative to the target area, The stereoscopic camera includes a lens assembly having at least one lens and defining a working distance, the lens assembly having at least one focus motor adapted to move the at least one lens and selectively change the working distance, the robotic arm A controller that communicates with the stereoscopic camera and has a processor and a tangible non-temporary memory on which instructions are recorded, Adapted to selectively perform one or more autofocus modes for the stereoscopic camera, the one or more autofocus modes include a target locking mode, The target locking mode is adapted to maintain focus on at least one stereoscopic image while the robot arm is moving the stereoscopic camera, and the controller It is a stereoscopic imaging platform that includes [specific components / features]. According to embodiment (2), when the robot arm is moving, the controller is configured to restrict the movement of the stereoscopic camera to the surface of the virtual sphere based on the current position of the at least one focus motor, and The center of the virtual sphere corresponds to the location of the target area, and the radius of the virtual sphere corresponds to the working distance from the current position. According to embodiment (3), the controller is configured to limit the change in the working distance such that the radius of the virtual sphere is within the maximum working distance and the minimum working distance, and the controller is configured to enforce an artificial robotic boundary on the robotic arm. According to embodiment (4), when the robot arm is moving, the controller is configured to direct the view vector of the stereoscopic camera toward the center of the virtual sphere, and The center of the virtual sphere corresponds to the location of the target area. According to embodiment (5), the controller is configured to determine a dynamic trajectory corresponding to the movement of a target point in the target area when the target area is moving, and The controller is configured to replace the view vector at the center of the virtual sphere with the dynamic trajectory when the target area is moving. According to embodiment (6), the controller is configured to determine the updated value of the working distance when the robot arm is moving, and The controller is adapted to reset the radius of the virtual sphere as the updated value of the working distance. According to embodiment (7), the controller is configured to determine a motor command for the at least one focus motor corresponding to the updated value of the working distance, and The controller is configured to transmit motor commands corresponding to the updated values so that the at least one stereoscopic image remains in focus as the robot arm moves. According to embodiment (8), when the movement of the robot arm is no longer detected, the controller is configured to determine a motor command for the at least one focus motor, based in part on the sharpness signal, the maximum sharpness signal, and the derivative of the maximum sharpness. According to embodiment (9), the sharpness signal is defined as the contrast between each edge of an object in the at least one stereoscopic image, The aforementioned maximum sharpness signal is defined as the maximum sharpness value observed during the scanning period, and The controller is configured to transmit the motor command corresponding to the highest value of the maximum sharpness signal when the movement of the robot arm is no longer detected. According to embodiment (10), the system further includes a sensor operably connected to the robot arm, which is configured to detect one or more forces applied to the stereoscopic camera by an operator, The aforementioned one or more forces include translational forces and rotational forces. According to embodiment (11), the robot arm includes at least one joint, a joint motor and a joint sensor, the joint motor and the joint sensor are coupled to the at least one joint, The joint motor is configured to rotate at least one joint about an axis, and The joint sensor is configured to transmit the position of at least one joint. According to embodiment (12), a robotic imaging platform for imaging a target site, A stereoscopic camera configured to record left and right images of the target area in order to generate at least one stereoscopic image of the target area, A robotic arm operably connected to the stereoscopic camera, adapted to selectively move the stereoscopic camera relative to the target area, The stereoscopic camera includes a lens assembly having at least one lens and defining a working distance, the lens assembly having at least one focus motor adapted to move the at least one lens and selectively change the working distance, the robotic arm A controller that communicates with the stereoscopic camera and has a processor and a tangible non-temporary memory on which instructions are recorded, Adapted to selectively perform one or more autofocus modes for the stereoscopic camera, the one or more autofocus modes include a target locking mode, The target locking mode is adapted to maintain the target area locked in real time while the robot arm moves the stereoscopic camera, and the target locking mode allows for changes in the working distance, and the controller This is a robotic imaging platform that includes [specific components / features]. According to embodiment (13), the controller is configured to determine whether the robot arm is moving, When the robot arm is moving, the controller is configured to restrict the movement of the stereoscopic camera to the surface of the virtual sphere based on the current position of the at least one focus motor, the center of the virtual sphere corresponding to the location of the target area, and the radius of the virtual sphere corresponding to the working distance of the current position, and When the robot arm is moving, the controller is configured to direct the view vector of the stereoscopic camera toward the center of the virtual sphere such that the center of the virtual sphere corresponds to the target area. According to embodiment (14), the controller is configured to determine a dynamic trajectory corresponding to the movement of a target point in the target area when the target area is moving, and The controller is configured to replace the view vector at the center of the virtual sphere with the dynamic trajectory when the target area is moving. According to embodiment (15), the controller is configured to determine the updated value of the working distance when the robot arm is moving, and The controller is adapted to reset the radius of the virtual sphere as the updated value of the working distance. According to embodiment (16), the controller is configured to determine a motor command for the focus motor corresponding to the updated value of the working distance, and The controller is configured to transmit motor commands corresponding to the updated values so that the at least one stereoscopic image remains in focus as the robot arm moves. According to embodiment (17), when the movement of the robot arm is no longer detected, the controller is configured to determine a motor command for the focus motor based in part on the sharpness signal, the maximum sharpness signal, and the derivative of the maximum sharpness. According to embodiment (18), the sharpness signal is defined as the contrast between each edge of an object in the at least one stereoscopic image, The aforementioned maximum sharpness signal is defined as the highest sharpness value observed during the scanning period, and The controller is configured to send the motor command corresponding to the maximum value of the derivative of the maximum sharpness when the movement of the robot arm is no longer detected.
Claims
1. A stereoscopic imaging platform for imaging a target area, A stereoscopic camera configured to record left and right images of the target area in order to generate at least one stereoscopic image of the target area, A robotic arm operably connected to the stereoscopic camera, adapted to selectively move the stereoscopic camera relative to the target area, The stereoscopic camera includes a lens assembly having at least one lens and defining a working distance, the lens assembly having at least one focus motor adapted to move the at least one lens and selectively change the working distance, the robot arm, A controller that communicates with the stereoscopic camera and has a processor and a tangible non-temporary memory on which instructions are recorded, Adapted to selectively perform one or more autofocus modes for the stereoscopic camera, the one or more autofocus modes include a target locking mode, The target locking mode is adapted to maintain focus on at least one stereoscopic image while the robot arm is moving the stereoscopic camera. The controller is configured to track the movement of the robot arm in each movement cycle and to determine the updated value of the working distance when the robot arm is moving. The controller is configured to send motor commands to move the at least one focus motor in accordance with the updated value of the working distance, so that the at least one stereoscopic image remains in focus as the robot arm moves. The controller is configured to determine whether or not the robot arm is moving. When the robot arm is moving, the controller is configured to restrict the movement of the stereoscopic camera to the surface of the virtual sphere based on the current position of the at least one focus motor. When the movement of the robot arm is no longer detected, the controller is configured to track a number of sharpness parameters, including a sharpness signal, a maximum sharpness signal, and a derivative of the maximum sharpness, and to send a motor command corresponding to the maximum value of the maximum sharpness signal. The sharpness signal is defined as the contrast between each edge of an object in the at least one stereoscopic image, and the maximum sharpness signal is defined as the maximum sharpness value observed during the scanning period. The controller and, Includes, The center of the virtual sphere corresponds to the location of the target area, and the radius of the virtual sphere corresponds to the working distance from the current position. Stereoscopic imaging platform.
2. The stereoscopic imaging platform according to claim 1, wherein the controller is configured to limit the change in the working distance such that the radius of the virtual sphere is within the maximum working distance and the minimum working distance, and the controller is configured to enforce an artificial robotic boundary on the robotic arm.
3. When the robot arm is moving, the controller is configured to direct the view vector of the stereoscopic camera toward the center of the virtual sphere, and The stereoscopic imaging platform according to claim 1, wherein the center of the virtual sphere corresponds to the location of the target area.
4. The controller is configured to determine a dynamic trajectory corresponding to the movement of a target point in the target area when the target area is moving, and The stereoscopic imaging platform according to claim 3, wherein the controller is configured to replace the view vector at the center of the virtual sphere with the dynamic trajectory when the target area is moving.
5. The stereoscopic imaging platform according to claim 1, wherein the controller is adapted to reset the radius of the virtual sphere as the updated value of the working distance.
6. The sensor is operably connected to the robot arm and further includes a sensor configured to detect one or more forces applied to the stereoscopic camera by an operator, The stereoscopic imaging platform according to claim 1, wherein the one or more forces include translational force and rotational force.
7. The robot arm includes at least one joint, a joint motor and a joint sensor, the joint motor and the joint sensor being coupled to the at least one joint, The joint motor is configured to rotate at least one joint about an axis, and The stereoscopic imaging platform according to claim 1, wherein the joint sensor is configured to transmit the position of at least one joint.
8. A robotic imaging platform for imaging a target area, A stereoscopic camera configured to record left and right images of the target area in order to generate at least one stereoscopic image of the target area, A robotic arm operably connected to the stereoscopic camera, adapted to selectively move the stereoscopic camera relative to the target area, The stereoscopic camera includes a lens assembly having at least one lens and defining a working distance, the lens assembly having at least one focus motor adapted to move the at least one lens and selectively change the working distance, the robot arm, A controller that communicates with the stereoscopic camera and has a processor and a tangible non-temporary memory on which instructions are recorded, Adapted to selectively perform one or more autofocus modes for the stereoscopic camera, the one or more autofocus modes include a target locking mode, The target locking mode is adapted to maintain the target area locked in real time while the robot arm moves the stereoscopic camera, and the target locking mode allows for changes in the working distance. The controller is configured to track the movement of the robot arm in each movement cycle and to determine the updated value of the working distance when the robot arm is moving. The controller is configured to send motor commands to move the at least one focus motor in accordance with the updated value of the working distance, so that the at least one stereoscopic image remains in focus as the robot arm moves. The controller is configured to determine whether or not the robot arm is moving. When the robot arm is moving, the controller is configured to restrict the movement of the stereoscopic camera to the surface of the virtual sphere based on the current position of the at least one focus motor. When the movement of the robot arm is no longer detected, the controller is configured to track a number of sharpness parameters, including a sharpness signal, a maximum sharpness signal, and a derivative of the maximum sharpness, and to send a motor command corresponding to the maximum value of the maximum sharpness signal. The sharpness signal is defined as the contrast between each edge of an object in the at least one stereoscopic image, and the maximum sharpness signal is defined as the maximum sharpness value observed during the scanning period. The controller and, Includes, The center of the virtual sphere corresponds to the location of the target area, and the radius of the virtual sphere corresponds to the working distance from the current position. Robot imaging platform.
9. The robot imaging platform according to claim 8, wherein when the robot arm is moving, the controller is configured to direct the view vector of the stereoscopic camera toward the center of the virtual sphere such that the center of the virtual sphere corresponds to the target area.
10. The controller is configured to determine a dynamic trajectory corresponding to the movement of a target point in the target area when the target area is moving, and The robot imaging platform according to claim 9, wherein the controller is configured to replace the view vector at the center of the virtual sphere with the dynamic trajectory when the target area is moving.
11. The robot imaging platform according to claim 9, wherein the controller is adapted to reset the radius of the virtual sphere as the updated value of the working distance.
Citation Information
Patent Citations
Stereoscopic visualization camera and integrated robotics platform
US20190327394A1
Medical observation device
WO2016017532A1
