System having an endoscope and an image sensor and method for processing medical images

By capturing effective and mechanical vignetting data in endoscopic images, detecting the effective area of ​​the scope and performing automatic focus and white balance processing, the vignetting problem caused by the optical shadow of the scope is solved and image capture suitable for surgical procedures is achieved. and processing effects.

CN111867439BActive Publication Date: 2024-09-10SONY GROUP CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980018915.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-03-20
Filing Date
2019-03-12
Publication Date
2024-09-10
Estimated Expiration
2039-03-12

AI Technical Summary

Technical Problem

In endoscopic images, due to the vignetting problem caused by the optical shadow of the scope, it is difficult to fix the calculation target area of ​​the evaluation value in advance, affecting the accuracy of autofocus and white balance processing.

Method used

The image sensor captures the effective image part data and the mechanical vignetting part data. The circuit determines the evaluation information from the effective image part data, performs automatic focus and automatic white balance processing, detects the effective area of ​​the lens body, and performs control processing based on the evaluation value.

Benefits of technology

It realizes endoscopic image shooting suitable for surgical procedures, solves the problem of vignetting, and provides an effective focusing and white balance processing system to ensure the clarity and accuracy of the image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111867439B_ABST
    Figure CN111867439B_ABST
Patent Text Reader

Abstract

A system includes an endoscope including a scope and an image sensor. The image sensor is configured to capture medical image data including effective image portion data and mechanical vignetting portion data, the mechanical vignetting portion data of the medical image data being generated due to mechanical vignetting caused by a difference between the image sensor generating the medical image data and the scope. A circuit is also provided, which is configured to determine evaluation information from the image data from the effective image portion data, and to perform control processing based on the evaluation information to at least partially control at least one of an autofocus process and an auto white balance process on the endoscope.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present technology relates to an endoscope system, a control method, an information processing device, and a program, and more particularly, to an endoscope system, a control method, an information processing device, and a program capable of capturing an endoscopic image suitable for a surgical operation.

[0002] <Cross-reference to related applications>

[0003] This application claims the benefit of Japanese Priority Patent Application JP 2018-051955 filed on Mar. 20, 2018, the entire contents of which are hereby incorporated by reference. Background Art

[0004] In recent years, endoscopic surgery with low invasiveness has attracted attention. In order to obtain an endoscopic image suitable for surgery, an endoscope having an auto focus (AF) function, an auto exposure (AE) function, and an auto white balance (AWB) function has been proposed.

[0005] For example, Patent Document 1 discloses a technology for executing an AF function of an endoscope by calculating a focus evaluation value based on an endoscopic image.

[0006] Reference List

[0007] Patent Literature

[0008] Patent Document 1: JP 2013-80108A Summary of the invention

[0009] Technical issues

[0010] Typically, near the periphery of an endoscopic image, a mask area is generated as a noticeable dark area due to optical shading (vignetting) of the scope. For example, when AF is performed based on such an endoscopic image, focusing may be performed on the mask area in some cases.

[0011] In addition, the position or size of the mask area varies depending on the type of mirror used. Therefore, it is difficult to fix the calculation target area for the evaluation value in advance.

[0012] In view of the above circumstances, the present technology has been made to capture endoscopic images suitable for surgical operations.

[0013] Solution to the problem

[0014] A system includes an endoscope including a scope and an image sensor. The image sensor is configured to capture medical image data including effective image portion data and mechanical vignetting portion data, the mechanical vignetting portion data of the medical image data being generated due to mechanical vignetting caused by a difference between the image sensor generating the medical image data and the scope. A circuit is also provided, which is configured to determine evaluation information from the image data from the effective image portion data, and to perform control processing based on the evaluation information to at least partially control at least one of an autofocus process and an auto white balance process on the endoscope.

[0015] In addition, there is a method of processing medical image information, the method comprising determining evaluation information using effective image portion data of medical image data, the medical image data comprising effective image portion data and mechanical vignetting portion data, the mechanical vignetting portion data of the medical image data being generated due to mechanical vignetting caused by a difference between an image sensor generating the medical image data and a medical device. In addition, a control process comprising at least one of an auto focus process and an auto white balance process is performed based on the evaluation information.

[0016] In the present technology, the effective area of ​​the scope is detected from a photographic image captured by an image sensing device, and control processing including at least one of automatic focus processing, automatic exposure processing, and automatic white balance processing is performed based on an evaluation value of the effective area.

[0017] Advantageous Effects of the Invention

[0018] In the present technology, endoscopic images suitable for surgical operations can be captured. In addition, the present technology allows a system that solves the vignetting problem and provides advantageous focus and / or white balance processing.

[0019] Note that the advantageous effects described herein are not necessarily limited but may include any of those described in the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a diagram illustrating an exemplary configuration of an endoscope system according to an embodiment of the present technology.

[0021] ] Figure 2 is a perspective view showing the appearance of an endoscope.

[0022] Figure 3 are diagrams showing exemplary photographic images.

[0023] Figure 4 are diagrams showing exemplary photographic images.

[0024] Figure 5 is a block diagram showing an exemplary configuration of a CCU and an endoscope.

[0025] Figure 6 is a diagram showing an exemplary setting of a sampling frame.

[0026] Figure 7 is a diagram illustrating exemplary edge detection of a mask region.

[0027] Figure 8 is a diagram illustrating exemplary edge detection of a mask region.

[0028] Fig. 9 is a diagram showing an exemplary setting of a sampling frame in the case of detecting a mask area based on an AF evaluation value.

[0029] Fig.10 is a diagram showing another exemplary setting of a sampling frame in the case of detecting a mask area based on an AF evaluation value.

[0030] Fig.11 is a diagram showing still another exemplary setting of sampling frames in the case of detecting a mask area based on AF evaluation values.

[0031] Fig.12 : is a diagram showing an exemplary setting of an evaluation value calculation target area.

[0032] Fig.13 is a diagram showing another exemplary setting of the evaluation value calculation target area.

[0033] Fig.14 is a flowchart for describing the AF processing of the CCU.

[0034] Fig.15 is used to describe Fig.14 Flowchart of the mask area detection process performed in step S3 of FIG.

[0035] Fig.16 is used to describe Fig.14 Flowchart of another mask area detection process performed in step S3 of .

[0036] Fig.17 is a block diagram showing an exemplary configuration of a CCU for AE processing.

[0037] Fig.18 : is a diagram showing an exemplary setting of an evaluation value calculation target area for an AE evaluation value.

[0038] Fig.19 : is a diagram showing another exemplary setting of the evaluation value calculation target area for the AE evaluation value.

[0039] Fig. 20 is a block diagram showing an exemplary configuration of a computer. DETAILED DESCRIPTION

[0040] Embodiments of the present technology will now be described. The description will be made in the following order.

[0041] 1. Configuration of the endoscope system

[0042] 2. First embodiment: Example of detecting a mask area based on sampling values

[0043] 3. Second Embodiment: Example of Detecting a Mask Area Based on AF Evaluation Values

[0044] 4. Third Embodiment: First Exemplary Setting of Evaluation Value Calculation Target Area

[0045] 5. Fourth Embodiment: Second Exemplary Setting of Evaluation Value Calculation Target Area

[0046] 6. Fifth Embodiment: Exemplary Autofocus Processing

[0047] 7. Operation of CCU

[0048] 8. Other Examples

[0049] <<Configuration of endoscope system>>

[0050] Figure 1 is a diagram illustrating an exemplary configuration of an endoscope system according to an embodiment of the present technology.

[0051] Figure 1 The endoscope system 1 includes a display device 11 , a camera control unit (CCU) 12 , a light source device 13 , a treatment tool device 14 , a pneumoperitoneum device 15 , a recorder 16 , and a printer 17 , which are mounted on a cart 18 .

[0052] In addition, the endoscope system 1 includes an endoscope 19, an energy treatment tool 20, a forceps 21, trocars 22 to 25, a foot switch 26, and a patient bed 27. The endoscope system 1 is installed in, for example, a surgical operating room to assist an operator who performs laparoscopic surgery on a lesion in the abdomen 31 of a patient lying on the patient bed 27.

[0053] The display device 11 includes a fixed two-dimensional display, a head-mounted display, etc. The display device 11 displays an image of a surgical treatment portion (surgical field area) provided from the CCU 12 or the like.

[0054] The CCU 12 is connected to each part such as the light source device 13 and the endoscope 19. The CCU 12 receives a photographic image of a surgical treatment part taken by the endoscope 19 and transmitted through a camera cable, and displays the photographic image on the display device 11. The CCU 12 outputs the photographic image taken by the endoscope 19 to the recorder 16 or the printer 17 as needed. Note that the CCU 12 and the endoscope 19 can be connected to each other via wireless communication.

[0055] In addition, the CCU 12 performs an auto focus process as a process for performing auto focus (AF) of the endoscope 19. That is, in the endoscope system 1, the focus adjustment of the endoscope 19 is automatically performed under the control of the CCU 12 regardless of the manipulation of the operator.

[0056] The light source device 13 is connected to the endoscope 19 via a light guide cable. The light source device 13 outputs light beams having various wavelengths to the endoscope 19 by switching the light beams having various wavelengths.

[0057] The treatment tool device 14 as a high frequency output device is connected to the energy treatment tool 20 and the foot switch 26 through a cable. The treatment tool device 14 outputs a high frequency current to the energy treatment tool 20 in response to a manipulation signal provided from the foot switch 26.

[0058] The pneumoperitoneum device 15 has a blower unit and a suction unit, and blows air into the abdomen 31 from the hole of the trocar 24 as an opening tool installed in the abdominal wall of the abdomen 31 .

[0059] The recorder 16 records the photographic image supplied from the CCU 12 .

[0060] The printer 17 prints the photographic image supplied from the CCU.

[0061] The endoscope 19 is inserted into the abdomen 31 from the hole of the trocar 22 installed in the abdominal wall of the abdomen 31. The endoscope 19 irradiates the inside of the abdomen 31 with light emitted from the light source device 13 to photograph the inside of the abdomen 31. The endoscope 19 outputs a photographic image obtained by photographing the inside of the abdomen 31 to the CCU 12.

[0062] The energy treatment tool 20 includes an electrocautery, etc. The energy treatment tool 20 is inserted into the abdomen 31 from a hole portion of a trocar 23 installed in the abdominal wall of the abdomen 31. The energy treatment tool 20 changes or removes the inside of the abdomen 31 using electric heat.

[0063] Forceps 21 are inserted into abdomen 31 from the hole of trocar 25 installed in the abdominal wall of abdomen 31. Forceps 21 are used to clamp the inside of abdomen 31. Endoscope 19, energy treatment tool 20 and forceps 21 are held by an operator, an assistant, a scopist, a robot or the like.

[0064] The foot switch 26 receives foot manipulation from an operator, an assistant, etc. The foot switch 26 outputs a manipulation signal representing the received manipulation to the CCU 12 or the treatment tool device 14 .

[0065] The operator can remove a lesion in the abdomen 31 while viewing a photographic image displayed on the display device 11 by using the endoscope system 1 .

[0066] Figure 2 1 is a perspective view showing the appearance of the endoscope 19 .

[0067] like Figure 2 As shown, the endoscope 19 as a rigid endoscope includes a camera head 51 and a scope body 52 having a long lens tube. Endoscopes are divided into flexible endoscopes and rigid endoscopes, and the main body insertion part of the flexible endoscope is bendable, while the main body insertion part of the rigid endoscope is not bendable. The endoscope 19 is the latter endoscope. The operator performs a surgical operation by holding the camera head 51 and inserting the scope body 52 into the patient's body.

[0068] The camera head 51 has inside thereof an imaging element that performs photoelectric conversion on light guided from a living body by a lens of the scope 52, a drive unit for driving the lens of the scope 52, and the like. The camera head 51 illuminates the inside of the abdomen 31 to photograph a surgical treatment portion by guiding light emitted from the light source device 13 via the scope 52. The camera head 51 outputs a photographic image obtained from the photographing to the CCU 12 via a camera cable.

[0069] The scope 52 is detachably installed in the camera head 51. The scope 52 refers to a plurality of types of scopes having different specifications, such as scopes having different diameters (scope diameters) or scopes having lenses having different F numbers. Which type of scope 52 is used is appropriately selected according to the details of the surgical operation, the condition of the surgical treatment part, etc., and the selected scope 52 is installed in the camera head 51.

[0070] Figure 3 are diagrams showing exemplary photographic images.

[0071] like Figure 3 As shown, a roughly circular effective area is formed in the center of the rectangular photographic image, and a dark mask area is formed outside the effective area.

[0072] The mask area is an area formed by optical shading (vignetting) of the mirror body 52. ​​More specifically, vignetting or mechanical vignetting is caused by the difference between an image sensor such as the imaging element 111 that generates medical image data and the mirror body 52. ​​Since the mirror body 52 has a long cylindrical shape, a dark area is imaged around the image circle. The condition of the surgical treatment part is displayed within the range of the effective area without vignetting. Note that vignetting caused by the mirror body 52 refers to an optical shading generated when the optical path is physically blocked by the side wall of the mirror body 52, for example.

[0073] As described above, the scope 52 can be switched according to the details of the surgical operation, etc. Depending on the type of the scope 52 installed in the camera head 51, the position, size, shape, etc. of the effective area on the photographic image are changed.

[0074] Figure 4 A and Figure 4 B is a diagram showing an exemplary photographic image. Figure 4 A and Figure 4 In B, the condition of the surgical treatment portion within the effective area is intentionally omitted for simplicity. The effective image portion data is image data obtained from the effective area, around the effective area, or near the effective area. The mechanical vignetting portion data is image data obtained from the mask area, around the mask area, or near the mask area, and the mask area is an area formed by optical shadows (vignetting) of the mirror body 52.

[0075] Figure 4 The photographic image of A is a photographic image obtained when the scope 52 having a scope diameter (diameter) shorter than the vertical length of the photographic image is installed. Figure 3 Photographic images, Figure 4 The photographic image of A includes a circular effective area as a whole.

[0076] at the same time, Figure 4 The photographic image of B is a photographic image obtained when the scope 52 having a scope diameter longer than the vertical length of the photographic image is installed. Figure 4 The effective area of ​​B has a circular shape truncated at the upper end and the lower end.

[0077] In this way, an effective area having a diameter corresponding to the diameter of the scope is formed on the photographic image. The size of the diameter of the scope 52 installed in the camera head 51 can be specified based on the size of the diameter of the effective area included in the photographic image.

[0078] As described above, the focus adjustment of the endoscope 19 of the endoscope system 1 is automatically performed using AF.

[0079] If an AF evaluation value, which is an evaluation value for performing AF, is calculated for the entire photographic image, the AF evaluation value for each region including the mask region is calculated. This is not desirable. Therefore, in the case where the AF evaluation value is calculated for each region including the mask region, for example, an operation for focusing on the edge (boundary) of the mask region is performed. The evaluation information is one or more evaluation values or other types of information. The evaluation information includes at least information from the data of the effective image portion.

[0080] In addition, assume that the calculation target region for the AF evaluation value is fixedly set within the effective region. Then, regardless of which lens body 52 is installed, the target region is restricted to a narrow range near the center of the photographic image corresponding to the effective region. As Figure 4 shown in A of Figure 4 and B of

[0081] shown, the range of the effective region changes according to the type of the lens body 52 installed.

[0082] In the CCU 12, the diameter of the lens body 52 installed in the endoscope 19, the center position of the effective region, etc. are specified based on the photographic image, and an evaluation value calculation target region, which is a region for calculating the AF evaluation value within the effective region, is set based on the specified information. In addition, the AF evaluation value is calculated for the evaluation value calculation target region to perform the autofocus process.

[0083] Since the AF evaluation value is calculated for the evaluation value calculation target region set within the effective region to perform the autofocus process, the CCU 12 can reliably focus on the surgical treatment portion imaged on the effective region.

[0083] A series of processes of the CCU 12 for performing the autofocus process by setting the evaluation value calculation target region according to the lens body 52 installed in the endoscope 19 in this way will be described below.

[0084] <<First Embodiment: Example of Detecting Mask Region Based on Sampling Value>>

[0085] <Exemplary Configuration of CCU and Endoscope>

[0086] Figure 5 is a block diagram showing an exemplary configuration of the CCU 12 and the endoscope 19.

[0087] As Figure 5 shown in the left half of

[0088] The imaging element 111 includes, for example, a CMOS image sensor or a CCD image sensor. The imaging element 111 converts an optical image focused on an imaging surface into an electric signal by photoelectric conversion, and outputs the electric signal to the CCU 12 as a photographing signal.

[0089] The imaging element driver 112 is a driver for driving the imaging element 111. The imaging element driver 112 allows the imaging element 111 to perform a predetermined operation such as a photographing operation or a reset operation by outputting a driving signal. For example, the shutter speed of the imaging element 111 is controlled by the driving signal output from the imaging element driver 112.

[0090] The lens driver 113 includes a processor such as a central processing unit (CPU) or a digital signal processor (DSP) and controls operations of the zoom lens driving unit 114 and the focus lens driving unit 115 according to a control signal supplied from the CCU 12 .

[0091] The zoom lens driving unit 114 adjusts the photographic magnification by moving the zoom lens 101 of the mirror body 52 along the optical axis.

[0092] The focus lens driving unit 115 performs focus adjustment by moving the focus lens 102 of the mirror body 52 along the optical axis.

[0093] like Figure 5 As shown in the right half of , the CCU 12 includes a camera signal processing unit 131, a sampling frame gate 132, a sampling unit 133, a mask detection unit 134, an AF sampling unit 135 and a lens controller 136.

[0094] The camera signal processing unit 131 applies various types of signal processing such as white balance processing and γ correction processing to the photographic signal supplied from the imaging element 111 .

[0095] The camera signal processing unit 131 outputs the imaging signal obtained by the signal processing as a video signal to the display device 11. Based on the video signal output from the camera signal processing unit 131, an image of the surgical treatment part is displayed on the display device 11. The imaging signal output from the camera signal processing unit 131 is also supplied to the sampling frame gate 132.

[0096] The sampling frame gate 132 sets the sampling frame in a predetermined area on the photographic image under the control of the lens controller 136. For example, before the mask area is detected, the sampling frame is set in the predetermined area of ​​the photographic image including the mask area. In addition, after the mask area is detected, the sampling frame is set in the effective area.

[0097] The sampling frame gate 132 outputs a photographic signal of pixels of a sampling frame among photographic signals supplied from the camera signal processing unit 131. The photographic signal output from the sampling frame gate 132 is supplied to the sampling unit 133 and the AF sampling unit 135.

[0098] The sampling unit 133 performs sampling on the photographic signal supplied from the sampling frame gate 132, and outputs the sampling value of each sampling frame to the mask detection unit 134. For example, the sampling unit 133 integrates the brightness value of the pixel of each sampling frame to obtain the integrated result as the sampling value.

[0099] The mask detection unit 134 detects the edge of the mask area based on the sampling values ​​supplied from the sampling unit 133. Although the mask detection unit 134 detects the edge of the mask area in the present description, the edge detection of the mask area also includes the edge detection of the effective area.

[0100] The mask detection unit 134 specifies the diameter of the mirror body 52 installed in the camera head 51 based on the position of the detection edge of the mask area. In addition, the mask detection unit 134 specifies the center position of the effective area and the position (range) of the mask area based on the edge position of the mask area.

[0101] As a result of the mask detection, the mask detection unit 134 outputs information about the diameter of the mirror body, the center position of the effective area, and the position of the mask area to the lens controller 136. As described below, in some cases, the detection of the mask area using the mask detection unit 134 may also be performed based on the AF evaluation value obtained by the AF sampling unit 135.

[0102] The AF sampling unit 135 calculates an AF evaluation value based on the photographic signal supplied from the sampling frame gate 132. For example, the AF sampling unit 135 calculates an AF evaluation value indicating contrast by calculating a second-order derivative for luminance signals of all pixels of the AF sampling frame. Note that, in general, the difference in luminance signals between adjacent pixels increases in a focused state compared to an unfocused state, and the contrast increases.

[0103] The AF evaluation value calculated by the AF sampling unit 135 is supplied to the lens controller 136 , and is also supplied to the mask detection unit 134 as appropriate.

[0104] The lens controller 136 adjusts the position of the zoom lens 101 by outputting a control signal to the lens driver 113 of the camera head 51 .

[0105] The lens controller 136 also outputs a control signal to the lens driver 113 of the camera head 51, and adjusts the position of the focus lens 102. The process of adjusting the position of the focus lens 102 by outputting the control signal corresponds to an automatic focus process for performing AF of the endoscope 19. The control signal in this case is a signal containing at least the position of the focus lens 102 of the lens driver 113 or the displacement of the position of the focus lens 102 as an AF control parameter.

[0106] The lens controller 136 adjusts the shutter speed or ISO sensitivity of the imaging element 111 by appropriately outputting a control signal to the imaging element driver 112 of the camera head 51. The process of adjusting the shutter speed or ISO sensitivity by outputting a control signal and controlling exposure regardless of the operator's manipulation corresponds to an automatic exposure process for performing AE. As described below, the AE function is realized based on the detection result of the mask area. The control signal in this case is a signal containing at least a speed value of the shutter speed or a sensitivity value of the ISO sensitivity as an AE control parameter.

[0107] In response to the operator's manipulation, a focus command signal, a zoom command signal, a manual / automatic focus switching signal, and the like are input to the lens controller 136. The zoom command signal is a signal indicating details of a zoom adjustment performed by the operator, and the focus command signal is a signal indicating details of a focus adjustment performed by the operator.

[0108] The manual / auto focus conversion signal is a conversion signal for indicating whether to perform focus adjustment in manual mode or in auto focus mode. A focus command signal is input when the option for performing focus adjustment in manual mode is selected. The CCU 12 and / or the camera head 51 are shown and described as including various units, processors, CPUs, controllers, drivers, etc. These elements and other elements of the present invention can be implemented using circuits configured to perform the functions disclosed herein. In addition, in some embodiments, electronic circuits or processing circuits including, for example, microprocessors, programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs) can be executed by using information from computer-readable program instructions to configure or customize electronic circuits so as to perform aspects of the present disclosure.

[0109] <Detection of Mask Area>

[0110] Figure 6 is a diagram showing an exemplary setting of a sampling frame.

[0111] For example, a sampling frame is set over the entire area of ​​a photographic image. Figure 6In the example of , 30 sampling frames set in the column (vertical) direction and 40 sampling frames set in the row (horizontal) direction are arranged in a matrix shape over the entire area of ​​the photographic image. Figure 6 The total size of the sampled frames in is equal to the size of the photographic image.

[0112] The mask detection unit 134 detects the edge of the mask area based on one thousand two hundred (1200) sampling values ​​obtained from the photographic signals of the pixels of each sampling frame.

[0113] In this manner, a sampling frame is set for the photographic image so that a resolution sufficient to detect the edge of the mask area can be provided.

[0114] Note that although Figure 6 In the example of , the total size of the sampling frames is set to be equal to the size of the photographic image, but the size of the sampling frames can be set to a range smaller than the size of the photographic image. In addition, the number of sampling frames can also be set arbitrarily.

[0115] Figure 7 is a diagram illustrating an example of edge detection in a mask area.

[0116] A series of letters "x" inserted into each sampling frame refer to predetermined sampling values, respectively. A sampling frame having a value "0" refers to a sampling frame having a sampling value of zero, which means a sampling frame including black pixels.

[0117] In the case where the sampling values ​​are obtained by the sampling unit 133 in this manner, Figure 5 The mask detection unit 134 obtains the maximum sampling value from the sampling values ​​of the sampling frame of each column, and obtains the maximum sampling value from the sampling values ​​of the sampling frame of each row.

[0118] In addition, the mask detection unit 134 obtains the difference between the sampling values ​​of every other column in the sequence of the maximum sampling values ​​of each column, as shown before the hollow arrow # 1. Similarly, for the row direction, the mask detection unit 134 obtains the difference between the sampling values ​​of every other row in the sequence of the maximum sampling values ​​of each row.

[0119] For example, the mask detection unit 134 sequentially calls the difference between the sample values ​​of every other column starting from the leftmost difference, and detects the position of the column that obtains a difference equal to or greater than the threshold as the left edge position of the mask area. In addition, the mask detection unit 134 sequentially calls the difference between the sample values ​​of every other column starting from the rightmost difference, and detects the position of the column that obtains a difference equal to or greater than the threshold as the right edge position of the mask area.

[0120] Similarly, for the row direction, the mask detection unit 134 sequentially calls the difference between the sampling values ​​of every other row starting from the highest difference, and detects the position of the row where the difference equal to or greater than the threshold is obtained as the upper edge position of the mask area. In addition, the mask detection unit 134 sequentially calls the difference between the sampling values ​​of every other row starting from the lowest difference, and detects the position of the row where the difference equal to or greater than the threshold is obtained as the lower edge position of the mask area.

[0121] Based on the upper edge position, the lower edge position, the left edge position and the right edge position and the fact that the effective area has a circular shape, the mask detection unit 134 detects all edges surrounding the effective area, such as Figure 8 shown.

[0122] exist Figure 8 In the example, the hatched sampling frame is the sampling frame at the position detected as the edge of the mask area. The sampling frames outside the hatched sampling frame belong to the mask area, and the inward sampling frames (including the hatched sampling frames) belong to the effective area.

[0123] Note that when the effective area has a large diameter and the upper and lower ends of the effective area are truncated, the left and right edges are detected based on the difference in the sampling values ​​of every other column to specify the mask area. In addition, when no edge is detected, it is specified that there is no mask area.

[0124] In the case where the mask area and the effective area are detected, the mask detection unit 134 specifies the average edge width as the diameter of the effective area, that is, as the mirror body diameter, based on the edge width of the effective area. In addition, the mask detection unit 134 specifies the position represented by the average median of the edge width as the center position of the effective area. Note that a table in which the range of the average edge width and the corresponding mirror body diameter are associated with each other may be stored in advance, and the mirror body diameter may be specified by referring to the table based on the obtained average edge width.

[0125] Information indicating the mirror diameter and the center position of the effective area is supplied together with information on the position of the mask area to the lens controller 136. The lens controller 136 performs setting of a sampling frame used in calculation of an AF evaluation value and the like based on the detection result of the mask area.

[0126] <<Second Embodiment: Example of Detecting a Mask Area Based on AF Evaluation Values>>

[0127] The mask area may be detected based on the AF evaluation value obtained by the AF sampling unit 135 instead of the sampling value obtained by the sampling unit 133 .

[0128] -First exemplary setting

[0129] Fig. 9is a diagram showing an exemplary setting of a sampling frame in the case of detecting a mask area based on an AF evaluation value.

[0130] like Fig. 9 As shown in the sampling frames F1 to F4 of the left photographic image, the sampling frame gate 132 sets the sampling frames having, for example, a narrow strip shape at the upper end, lower end, left end, and right end of the photographic image. For example, the sampling frames F1 to F4 are set under the control of the lens controller 136.

[0131] The sampling frames F1 and F2 indicated by dashed lines are sampling frames for detecting the upper edge and the lower edge of the mask region, respectively. In addition, the sampling frames F3 and F4 indicated by dashed lines are sampling frames for detecting the left edge and the right edge of the mask region, respectively.

[0132] In addition, as indicated by hollow arrows, the sampling frame gate 132 moves the positions of the sampling frames F1 to F4 toward the center of the photographic image.

[0133] The AF sampling unit 135 sequentially calculates AF evaluation values ​​based on photographic signals corresponding to pixels within the sampling frame set by changing the position in this manner.

[0134] In the case where a change equal to or larger than the threshold value is generated in the AF evaluation value calculated by the AF sampling unit 135, the mask detection unit 134 specifies the position where the change is detected as the edge position of the mask area. For example, as shown before arrow #2, when each of the sampling frames F1 to F4 is set as the edge position of the mask area, a change in the AF evaluation value equal to or larger than the threshold value is detected.

[0135] The mask detection unit 134 specifies the diameter of the mirror body installed in the camera head 51, the center position of the effective area, and the position of the mask area based on the distance L1 between the sampling frames F1 and F2 and the distance L2 between the sampling frames F3 and F4. For example, the average value of the distances L1 and L2 is specified as the mirror body diameter, and the position represented by the average median value of the edge is specified as the center position of the effective area.

[0136] - Second exemplary setting

[0137] Fig.10 is a diagram showing another exemplary setting of a sampling frame in the case of detecting a mask area based on an AF evaluation value.

[0138] Fig.10 The sampling frame setting method is similar to Fig. 9The difference from the setting method of the sampling frames of is that the sampling frames F1 to F4 are set so that the width is sequentially widened, instead of changing the positions of the sampling frames F1 to F4. The widths of the sampling frames F1 to F4 are sequentially widened by moving the inner edges of the narrow strip-shaped sampling frames F1 to F4 set at the upper end, lower end, left end, and right end of the photographic image toward the center of the photographic image, as shown by the hollow arrows.

[0139] The AF sampling unit 135 sequentially calculates AF evaluation values ​​based on photographic signals of pixels corresponding to the sampling frames set by changing the width.

[0140] In the case where a change equal to or greater than the threshold value occurs in the AF evaluation value calculated by the AF sampling unit 135, the mask detection unit 134 specifies the inner edge position of the sampling frame where the change is detected as the edge position of the mask area. For example, as shown before arrow #3, when the inner edges of the sampling frames F1 to F4 are set as the corresponding edge positions of the mask area, a change in the AF evaluation value equal to or greater than the threshold value is detected.

[0141] The mask detection unit 134 specifies the diameter of the scope installed in the camera head 51 , the center position of the effective area, and the position of the mask area based on the distance L1 between the sampling frames F1 and F2 and the distance L2 between the sampling frames F3 and F4 .

[0142] - Third exemplary setting

[0143] Fig.11 is a diagram showing still another exemplary setting of sampling frames in the case of detecting a mask area based on AF evaluation values.

[0144] Fig.11 The sampling frame setting method is similar to Fig. 9 The difference between the setting methods of the above is that a plurality of small sampling frames having a substantially square shape are set in the initial state, rather than narrow strip-shaped sampling frames.

[0145] That is, Fig.11 As shown in the left half of , the sampling frame gate 132 sets the sampling frames F1-1 to F1-3 having a substantially square shape at the upper end of the photographic image, and sets the sampling frames F2-1 to F2-3 having a substantially square shape at the lower end of the photographic image. The sampling frame gate 132 sets the sampling frames F3-1 to F3-3 having a substantially square shape at the left end of the photographic image, and sets the sampling frames F4-1 to F4-3 having a substantially square shape at the right end of the photographic image.

[0146] In addition, the sampling frame gate 132 moves the position of each sampling frame toward the center of the photographic image, or widens the width of the sampling frame toward the center of the photographic image.

[0147] The AF sampling unit 135 sequentially calculates AF evaluation values ​​based on photographic signals of pixels corresponding to sampling frames set by changing the position or width.

[0148] In the event that a change equal to or larger than the threshold value occurs in the AF evaluation value calculated by the AF sampling unit 135 , the mask detection unit 134 specifies the position where the change is detected as the edge position of the mask area.

[0149] For example, as shown before arrow #4, when sample frames F1-1 to F1-3 and F2-1 to F2-3 having a substantially square shape are set as respective edge positions of the mask area, a change in the AF evaluation value equal to or greater than the threshold is detected.

[0150] In addition, when the inner edges of the sampling frames F3 - 1 to F3 - 3 and F4 - 1 to F4 - 3 reach the corresponding edge positions of the mask area, a change in the AF evaluation value equal to or greater than the threshold value is detected.

[0151] The mask detection unit 134 specifies the diameter of the mirror body installed in the camera head 51, the center position of the effective area, and the position of the mask area based on the distance between the relative sampling frames.

[0152] Despite Fig.11 In the example of , the sampling frames F1-1 to F1-3 and F2-1 to F2-3 set at the upper and lower ends of the photographic image are set by changing the position instead of the shape, but they can also be set by changing the width. In addition, although the sampling frames F3-1 to F3-3 and F4-1 to F4-3 respectively set at the left and right ends of the photographic image are set by changing the width, they can also be set by changing the position instead of the shape.

[0153] The method of setting the sampling frame by changing the shape and the method of setting the sampling frame by changing the width may also be used in combination. A specific shape of the edge of the mask area may be detected by changing the position or width of the small sampling frame.

[0154] Note that, in the case where the diameter of the effective area is large and the effective area is vertically disconnected, the mask area is detected based only on the AF evaluation values ​​calculated from the sampling frames set on the left and right sides. In addition, in the case where no edge is found, it is determined that there is no mask area.

[0155] Information indicating the mirror diameter specified from the AF evaluation value and the center position of the effective area is supplied together with information on the position of the mask area to the lens controller 136. The lens controller 136 sets a sampling frame used in calculation of the AF evaluation value or performs other control based on the detection result of the mask area.

[0156] <<Third Embodiment: First Exemplary Setting of Evaluation Value Calculation Target Area>>

[0157] Fig.12 A and Fig.12 B is a diagram showing an exemplary setting of an evaluation value calculation target area.

[0158] like Fig.12 A and Fig.12 As shown in FIG. 1B , the lens controller 136 sets the evaluation value calculation target area used as the target area for calculating the AF evaluation value within the effective area so as not to overlap with the mask area. For example, based on the detection result of the mask area, the evaluation value calculation target area is set by enlarging or reducing the size of the default area and moving the default center position.

[0159] Fig.12 The rectangular area A1 of A is an evaluation value calculation target area set within an effective area having a diameter shorter than the vertical length of the photographic image. Fig.12 The area A2 of B is an evaluation value calculation target area set within the effective area having a diameter longer than the vertical length of the photographic image.

[0160] Any evaluation value calculation target region is set so that the entire region is included in the effective region. Fig.12 A and Fig.12 In B, two oblong rectangles indicating the evaluation value calculation target area are inserted into the effective area to show that any size can be set for the evaluation value calculation target area as long as it is included in the effective area.

[0161] Note that although Fig.12 A and Fig.12 The evaluation value calculation target area in the example of B has a rectangular shape, but other shapes such as a square shape and a circular shape may be adopted.

[0162] Information on such an evaluation value calculation target area is supplied from the lens controller 136 to the sampling frame gate 132 so that a sampling frame serving as a calculation target of an AF evaluation value is set within the evaluation value calculation target area.

[0163] The AF sampling unit 135 calculates an AF evaluation value based on a photographic signal of pixels of a sampling frame set in the evaluation value calculation target area. In addition, the lens controller 136 also performs an automatic focusing process based on the calculated AF evaluation value.

[0164] Therefore, the CCU 12 can reliably focus on the surgical treatment portion imaged on the effective area.

[0165] <<Fourth Embodiment: Second Exemplary Setting of Evaluation Value Calculation Target Area>>

[0166] Fig.13 A and Fig.13 B is a diagram showing another exemplary setting of the evaluation value calculation target area.

[0167] exist Fig.13 A and Fig.13 Each segment of the grid pattern superimposed on the photographic image of B represents a sampling frame. Fig.13 A and Fig.13 In the example of B, a plurality of sampling frames (eight sampling frames in the vertical direction and eight frames in the horizontal direction) are arranged side by side in a matrix shape around the center of the photographic image. In this example, the positions of the sampling frames are fixed regardless of the range of the effective area. The photographic signal of the pixels of each sampling frame is provided from the sampling frame gate 132 to the AF sampling unit 135.

[0168] The lens controller 136 selects a sampling frame that is completely included in the effective area without overlapping the mask area from among the sampling frames fixedly set in this manner as an evaluation value calculation target area serving as a calculation target of the AF evaluation value. Fig.13 A and Fig.13 The colored sampling frames in B are the sampling frames selected as the target area for evaluating the value. Meanwhile, the sampling frames overlapping the mask area are regarded as invalid sampling frames (with a weight of zero).

[0169] The lens controller 136 outputs information on the sampling frame selected as the evaluation value calculation target area to the AF sampling unit 135 to calculate the AF evaluation value for the sampling frame selected as the evaluation value calculation target area.

[0170] That is, in Fig.12 A and Fig.12 In the example of B of FIG. 1 , the sampling frame used as the calculation target of the AF evaluation value is set based on the detection result of the mask area. Fig.13 A and Fig.13 In the example of B, a sampling frame serving as a calculation target of an AF evaluation value is selected from sampling frames set in advance.

[0171] exist Fig.13 In the example of A of , among the preset sampling frames, a part of the sampling frame included in the valid area is set as the evaluation value calculation target area. Fig.13 In the example of B, since all the sampling frames set in advance are included in the valid area, all the sampling frames are set as the evaluation value calculation target area.

[0172] Note that although Fig.13 A and Fig.13In the example of B, all the sampling frames included in the effective region are set as the target region for evaluating value calculation. However, a part of the sampling frames included in the effective region can also be set as the target region for evaluating value calculation.

[0173] Information about such a target region for evaluating value calculation is provided from the lens controller 136 to the AF sampling unit 135, and the AF evaluation value is calculated based on the pixel signals of the pixels of the sampling frames set as the target region for evaluating value calculation. In addition, the lens controller 136 performs autofocus processing based on the calculated AF evaluation value.

[0174] Therefore, the CCU 12 can reliably focus on the surgical treatment part imaged on the effective region.

[0175] <<Fifth Embodiment: Exemplary Autofocus Processing>>

[0176] The F-number of the lens body 52 can be estimated based on the lens body diameter, the center position of the effective region, and the position of the mask region specified as described above, and the depth of focus can be obtained based on the estimated F-number.

[0177] For example, the lens controller 136 uses the F-number and the depth of focus of the lens body 52 to set parameters for defining the details of the autofocus processing, such as the AF speed, the focusing accuracy, and the swing amplitude. The lens controller 136 calculates each of the AF speed, the focusing accuracy, and the swing amplitude based on the F-number and the depth of focus of the lens body 52, and performs autofocus processing based on the calculation results.

[0178] Therefore, the lens controller 136 can perform autofocus processing with higher accuracy. Note that a table regarding the relationship between the F-number of the lens body, the depth of focus, and the lens body diameter can be stored in advance, and the F-number and the depth of focus can be obtained by referring to this table.

[0179] <<Operations of the CCU>>

[0180] <AF Processing>

[0181] Reference will be made to Fig.14 the flowchart to describe the AF processing of the CCU 12.

[0182] For example, when the endoscope 19 photographs the surgical treatment part and provides a photographic signal from the imaging element 111, Fig.14 the processing starts.

[0183] In step S1, the camera signal processing unit 131 applies various types of signal processing, such as white balance processing, to the photographic signal provided from the imaging element 111.

[0184] In step S2 , the sampling frame gate 132 outputs an imaging signal of pixels for each sampling frame.

[0185] For example, in combination with Figure 7 and Figure 8 In the case where the mask area is detected as described, a photographic signal of pixels of each sampling frame set for the entire photographic image is output from the sampling frame gate 132 , and the photographic signal is supplied to the sampling unit 133 .

[0186] In addition, in combination with Fig. 9 , Fig.10 and Fig.11 In the case where the mask area is detected as described, a photographic signal of pixels of each sampling frame set in a predetermined position of a photographic image is output from the sampling frame gate 132 , and the photographic signal is supplied to the AF sampling unit 135 .

[0187] In step S3, a mask area detection process is performed. Information about the mirror diameter, the center position of the effective area, and the position of the mask area specified in the mask area detection process is provided from the mask detection unit 134 to the lens controller 136. Fig.15 and Fig.16 The flowchart describes the details of the mask area detection process.

[0188] In step S4 , the lens controller 136 sets an evaluation value calculation target area based on the detection result of the mask area.

[0189] In combination with Fig.12 A and Fig.12 In the case of setting the evaluation value calculation target area as described in B, the lens controller 136 outputs information on the evaluation value calculation target area to the sampling frame gate 132 and sets the sampling frame in the evaluation value calculation target area.

[0190] In addition, in combination with Fig.13 A and Fig.13 In the case of setting the evaluation value calculation target area as described in B, the lens controller 136 outputs information on the evaluation value calculation target area to the AF sampling unit 135, and calculates the AF evaluation value of the sampling frame selected as the evaluation value calculation target area.

[0191] In step S5 , the AF sampling unit 135 calculates the AF evaluation value of the sampling frame of the evaluation value calculation target area as a target based on the photographic signal supplied from the sampling frame gate 132 .

[0192] In step S6, the lens controller 136 performs automatic focusing processing based on the AF evaluation value calculated by the AF sampling unit 135. A control signal is output from the lens controller 136 to the lens driver 113 of the camera head 51 to adjust the position of the focus lens 102. Thus, AF is achieved.

[0193] The above-described processing is repeated while a photographic signal is supplied from the imaging element 111 .

[0194] <Mask Area Detection Processing>

[0195] Next, we will refer to Fig.15 The flowchart is described in Fig.14 The mask area detection processing is performed in step S3.

[0196] Fig.15 The processing is to detect the mask area using the sampling value obtained by the sampling unit 133. Figure 7 and Figure 8 As described, the photographic signal of the pixels of each sampling frame set for the entire photographic image is supplied from the sampling frame gate 132 to the sampling unit 133 .

[0197] In step S11 , the sampling unit 133 samples the photographic signal supplied from the sampling frame gate 132 , and outputs a sampling value for each sampling frame.

[0198] In step S12, the mask detection unit 134 detects the maximum sample value from the sample values ​​of the sample frame of each column. In addition, the mask detection unit 134 detects the maximum sample value from the sample values ​​of the sample frame of each row.

[0199] In step S13, the mask detection unit 134 obtains the difference between the sampling values ​​of every other column in the array of the maximum sampling value of each column. In addition, the mask detection unit 134 obtains the difference between the sampling values ​​of every other row in the array of the maximum sampling value of each row.

[0200] In step S14, the mask detection unit 134 sequentially calls the difference between the sampling values ​​of every other column, and detects the positions where the difference equal to or greater than the threshold is obtained as the left edge position and the right edge position of the mask area. In addition, the mask detection unit 134 sequentially calls the difference between the sampling values ​​of every other row, and detects the positions where the difference equal to or greater than the threshold is obtained as the upper edge position and the lower edge position of the mask area.

[0201] In step S15, the mask detection unit 134 specifies the mirror diameter and the center position of the effective area based on the edge width of the effective area.

[0202] In step S16, the mask detection unit 134 outputs information about the mirror diameter, the center position of the effective area, and the position of the mask area to the lens controller 136 as the detection result of the mask area. Then, the process returns to Fig.14 Step S3 is performed, and subsequent processing is performed.

[0203] Next, we will refer to Fig.16 The flowchart is described in Fig.14 Another mask area detection process is performed in step S3.

[0204] Fig.16 The process of is a process of detecting a mask area using the AF evaluation value obtained by the AF sampling unit 135 .

[0205] In step S21, the lens controller 136 outputs information about the position of the sampling frame to the sampling frame gate 132, and sets the sampling frame. Fig. 9 , Fig.10 and Fig.11 As described, information for setting a sampling frame in each position of a photographic image is supplied from the lens controller 136 to the sampling frame gate 132. When the sampling frame is set, a photographic signal corresponding to a pixel of the sampling frame is supplied from the sampling frame gate 132 to the AF sampling unit 135.

[0206] In step S22, the AF sampling unit 135 calculates an AF evaluation value based on the photographic signal supplied from the sampling frame gate 132. The calculated AF evaluation value is supplied to the mask detection unit 134.

[0207] In step S23, the mask detection unit 134 determines whether a change equal to or greater than the threshold value is generated in the AF evaluation value. If it is determined in step S23 that a change equal to or greater than the threshold value is not generated, the process returns to step S21 and the above process is repeated after setting the sampling frame by changing the position or width.

[0208] Otherwise, if it is determined in step S23 that a change equal to or larger than the threshold value is generated in the AF evaluation value, then in step S24 the mask detection unit 134 specifies the position where a change equal to or larger than the threshold value is generated in the AF evaluation value as the edge position of the mask area.

[0209] The processing after specifying the edge position of the mask area is similar to Fig.15 Specifically, in step S25, the mask detection unit 134 specifies the mirror body diameter and the center position of the effective area based on the edge width of the effective area.

[0210] In step S26, the mask detection unit 134 outputs information regarding the lens body diameter, the center position of the effective area, and the position of the mask area to the lens controller 136 as a detection result of the mask area. Then, the process returns to Fig.14 step S3 of

[0211] Through the above processing, the CCU 12 can set, according to the type of the lens body 52 installed in the endoscope 19 which is a rigid endoscope, a calculation target area for the AF evaluation value at an appropriate position in the effective area in an appropriate size.

[0212] In addition, the CCU 12 can appropriately set parameters such as the AF speed or the swing amplitude according to the specifications of the lens body 52, and thus improve the AF performance. Since the AF speed and the swing amplitude are set according to the specifications of the lens body 52, deterioration of the image quality such as deviation in the AF operation, the defocus stop phenomenon, and visualization of the swing operation can be avoided.

[0213] For example, if a large-diameter lens body is installed and the AF operation is performed using an F-number and a depth of field greater than appropriate values, the AF speed becomes too fast and deviation occurs in the AF operation. In addition, for example, minute vibrations in the swing operation are unfavorably visualized on the output image.

[0214] In contrast, if a small-diameter lens body is installed and the AF operation is performed using an F-number and a depth of field smaller than appropriate values, the AF speed becomes too slow and focusing is unfavorably delayed. In addition, since the amplitude of the swing operation is short, it is difficult to obtain the focusing direction, and so-called defocus stop occurs unfavorably, in which the AF operation stops in a defocused screen state.

[0215] If the AF operation is performed using appropriate values according to the specifications of the lens body, such drawbacks that may occur due to inappropriate specifications of the lens body can be avoided.

[0216] That is, the endoscope system 1 can provide an endoscope image suitable for a surgical operation to the operator.

[0217] <<Other examples>>

[0218] <Application example of AE>

[0219] This embodiment is also applicable to automatic exposure (AE) processing for performing AE based on the detection result of the mask area. The AE is performed by automatically adjusting parameters such as the shutter speed and the ISO sensitivity without the operation of the operator.

[0220] Fig.17 is a block diagram showing an exemplary configuration of the CCU 12 for performing AE.

[0221] exist Fig.17 In the Figure 5 Some components will not be described repeatedly. Fig.17 The CCU 12 is configured with Figure 5 The configuration of the CCU 12 is different in that an exposure detection unit 141 is provided.

[0222] Of the photographic signals supplied from the camera signal processing unit 131 , the sampling frame gate 132 outputs photographic signals of pixels of a sampling frame for exposure evaluation to the exposure detection unit 141 .

[0223] The exposure detection unit 141 calculates an AE evaluation value as an evaluation value for exposure evaluation based on the photographic signal of the pixels of the sampling frame, and outputs the AE evaluation value to the lens controller 136 .

[0224] The lens controller 136 outputs a control signal for adjusting the shutter speed or ISO sensitivity to the imaging element driver 112 based on the AE evaluation value calculated by the exposure detection unit 141 to perform automatic exposure processing.

[0225] Fig.18 : is a diagram showing an exemplary setting of an evaluation value calculation target area for an AE evaluation value.

[0226] Fig.18 The setting of the target area for evaluating the value calculation corresponds to the combination of Fig.12 A and Fig.12 B describes the setting of the evaluation value calculation target area.

[0227] like Fig.18 As shown in the right half of , the lens controller 136 sets the evaluation value calculation target area serving as the calculation target of the AE evaluation value within the effective area so as not to overlap with the mask area. For example, based on the detection result of the mask area, the evaluation value calculation target area is set by enlarging or reducing the size of the default area and moving the default center position.

[0228] Fig.18 The rectangular area A11 shown in the right half of is an evaluation value calculation target area set in an effective area having a diameter shorter than the vertical length of the photographic image. Fig.18 In the example, for example, by reducing Fig.18 The default size shown in the left half is used to set the target area for evaluation value calculation.

[0229] Information on such an evaluation value calculation target area is supplied from the lens controller 136 to the sampling frame gate 132 , and a sampling frame serving as a calculation target of an AE evaluation value is set within the evaluation value calculation target area.

[0230] The exposure detection unit 141 calculates an AE evaluation value based on the photographic signal of the pixels of the sampling frame set in the evaluation value calculation target area. In addition, the lens controller 136 performs automatic exposure processing based on the calculated AE evaluation value.

[0231] Therefore, the CCU 12 can appropriately adjust the exposure of the surgical treatment portion imaged on the effective area.

[0232] For example, in the case where the sampling frame for exposure evaluation is set in the mask area, control for increasing exposure is performed in AE, and therefore, the exposure may become excessive in some cases. By evaluating the exposure using only the sampling frame in the effective area, the CCU 12 can adjust the brightness of the surgical treatment part to a suitable exposure.

[0233] Fig.19 : is a diagram showing another exemplary setting of the evaluation value calculation target area for the AE evaluation value.

[0234] Fig.19 The setting of the target area for evaluating the value calculation corresponds to the combination of Fig.13 A and Fig.13 B describes the setting of the target area for evaluating the value calculation.

[0235] exist Fig.19 Each segment of the grid pattern superimposed on the left half of the photographic image represents a sample frame. Fig.19 In the example of , a plurality of sampling frames (ten sampling frames in the vertical direction and ten frames in the horizontal direction) are arranged side by side in a matrix shape around the center of the photographic image. In this example, the positions of the sampling frames are fixed regardless of the range of the effective area. The photographic signal of the pixels of each sampling frame is provided from the sampling frame gate 132 to the exposure detection unit 141.

[0236] The lens controller 136 selects a sampling frame that is completely included in the effective area without overlapping the mask area from among the sampling frames fixedly set in this manner as an evaluation value calculation target area serving as a calculation target of the AE evaluation value. Fig.19 The sampling frames colored in the right half of are the sampling frames selected as the target area for evaluating the value. Meanwhile, the sampling frames overlapping the mask area are regarded as invalid sampling frames (with a weight of zero).

[0237] The lens controller 136 outputs information on the sampling frame selected as the evaluation value calculation target area to the exposure detection unit 141 to calculate the AE evaluation value for the sampling frame selected as the evaluation value calculation target area.

[0238] Information about the target region for calculating such an evaluation value is provided from the lens controller 136 to the exposure detection unit 141, and an AE evaluation value is calculated based on the pixel signals of the pixels of the sampling frame set as the target region for calculating the evaluation value. In addition, the lens controller 136 performs automatic exposure processing based on the calculated AE evaluation value.

[0239] Therefore, the CCU 12 can appropriately adjust the exposure of the surgical treatment part imaged on the effective region.

[0240] The automatic exposure processing can be performed in combination with the above-described autofocus processing. Specifically, the control processing of the lens controller 136 is a process including at least one of the automatic exposure processing and the autofocus processing.

[0241] <Application Example of AWB>

[0242] The white balance processing for performing the automatic white balance (AWB) of the endoscope system 1 can be performed by the camera signal processing unit 131 based on the detection result of the mask region.

[0243] In this case, the detection result of the mask region is provided from the mask detection unit 134 to the camera signal processing unit 131, and the white balance processing is performed based on the photographic signal of the pixels of the effective region.

[0244] The white balance processing is a process of correcting the color of the photographed image to image the surgical treatment part in a suitable tone. For example, the photographic environment is estimated based on the photographic signal (color signal) of the pixels of the effective region, and the color generated from the photographic signal is corrected.

[0245] In addition, the white balance processing can be performed such that the color temperature of the light source is estimated from the photographic signal of the pixels of the effective region, and the color is corrected according to the color temperature of the light source stored in advance.

[0246] In addition, if it is determined that the red light in the effective region is weak, the white balance processing can be performed to emphasize the red light in order to highlight blood vessels.

[0247] If the white balance processing is performed using the photographic signal of the pixels of the effective region in this way, a photographed image that images the surgical treatment part in an appropriate tone can be obtained.

[0248] <Other Examples>

[0249] Although the case where AF, AE, and AWB based on the detection result of the mask region are applied to the endoscope system 1 has been described, the present technology can also be applied to the case where AF, AE, and AWB are performed in a microscope system.

[0250] In the above description, the mask area is detected based on the sampling values ​​obtained by the sampling unit 133 or the AF evaluation values ​​obtained by the AF sampling unit 135. Alternatively, the mask area may be detected based on both the sampling values ​​and the AF evaluation values.

[0251] The above-described series of processes can be executed using hardware or software. In the case of executing a series of processes using software, a program included in the software is installed from a program recording medium to a computer integrated into dedicated hardware, a general-purpose personal computer, or the like.

[0252] Fig. 20 : is a block diagram showing an exemplary hardware configuration of a computer for executing the above-described series of processes using a program.

[0253] A central processing unit (CPU) 1001 , a read only memory (ROM) 1002 , and a random access memory (RAM) 1003 are connected to one another via a bus 1004 .

[0254] The input / output interface 1005 is also connected to the bus 1004. An input unit 1006 such as a keyboard or a mouse and an output unit 1007 such as a display or a speaker are connected to the input / output interface 1005. In addition, a storage unit 1008 such as a hard disk or a nonvolatile memory, a communication unit 1009 such as a network interface, and a drive 1010 for driving a removable medium 1011 are connected to the input / output interface 1005.

[0255] In the computer configured in this manner, the CPU 1001 performs the above-described series of processing by loading and executing, for example, a program stored in the storage unit 1008 on the RAM 1003 via the input / output interface 1005 and the bus 1004 .

[0256] The program executed by the CPU 1001 is recorded on, for example, the removable medium 1011 , or provided via a wired or wireless transmission medium such as a local area network, the Internet, and digital broadcasting, and installed in the storage unit 1008 .

[0257] Note that the program executed by the computer may be a program that is processed in a time-series manner according to the sequence described herein, or a program that is processed in parallel or at a necessary timing such as in response to a call.

[0258] Note that in this article, a system refers to a collection of multiple constituent elements (devices, modules (components), etc.), regardless of whether they are all integrated into the same housing. Therefore, the system includes multiple devices housed in separate housings and connected via a network, a single device with multiple modules housed in a single housing, etc.

[0259] Note that the advantageous effects described herein are for exemplary purposes only and are not to be construed in a limiting sense. Another advantageous effect may also be included.

[0260] The embodiments of the present technology are not limited to the above-described embodiments, and various changes or modifications are possible without departing from the scope and spirit of the present technology.

[0261] For example, the present technology can be applied to a cloud computing environment in which a single function is processed in a distributed and collaborative manner across a plurality of devices connected via a network.

[0262] In addition, each step of the above-described flowchart may be performed using a single device or using a plurality of devices in a distributed manner.

[0263] In addition, in the case where a plurality of processes are included in a single step, they may be executed using a single device or using a plurality of devices in a distributed manner.

[0264] <Configuration combination>

[0265] The present technology may also include the following configurations.

[0266] (1) According to one aspect, a system includes an endoscope, the endoscope including a scope body and an image sensor, the image sensor being configured to capture medical image data including effective image portion data and mechanical vignetting portion data, the mechanical vignetting portion data of the medical image data being generated due to mechanical vignetting caused by a difference between the image sensor generating the medical image data and the scope body; and a circuit configured to determine evaluation information from image data from the effective image portion data, and to perform control processing based on the evaluation information to at least partially control at least one of an autofocus process and an auto white balance process on the endoscope.

[0267] (2) A system according to (1), wherein the circuit determining the evaluation information determines the evaluation information only from the medical image data from the valid image portion data.

[0268] (3) A system according to (2), wherein the difference is due to different shapes of the image sensor and the light passing through the mirror body.

[0269] (4) The system of (3), wherein the image sensor is rectangular and the effective image portion data is a circular image.

[0270] (5) A system according to (2), wherein the difference is due to different sizes of the image sensor and the mirror body.

[0271] (6) A system according to (5), wherein the image from the mirror body used to generate effective image portion data exceeds the size of the effective area of ​​the image sensor in a first dimension of the image sensor, is smaller than the size of the effective area of ​​the image sensor in a second dimension of the image sensor perpendicular to the first dimension, and both the first dimension and the second dimension are in the imaging sensing plane of the image sensor.

[0272] (7) The system according to (2), further comprising light that illuminates a target corresponding to effective image portion data.

[0273] (8) The system according to (2), further comprising a lens system, wherein the control process performed by the circuit generates information to focus the lens system based on the evaluation information.

[0274] (9) The system according to (2), wherein the white balance information is generated by the circuit performing control processing to set the white balance of the medical image.

[0275] (10) The system of (1), wherein the circuit is further configured to sample a brightness signal from the image sensor and use the brightness signal to determine a location where the valid image portion data exists and the valid image portion data.

[0276] (11) A system according to (10), wherein the location where the effective image portion data exists is determined based on a brightness signal that has been sampled and is in a matrix shape to detect the edge of the effective image portion data, and the diameter of the mirror body and the center position of the effective image portion data are specified.

[0277] (12) A system according to (1), wherein the circuit is further configured to perform sampling in a sampling frame set on the medical image data to obtain evaluation information for autofocus processing, and use the evaluation information for autofocus processing to determine the location where valid image portion data exists and the valid image portion data, wherein control processing is performed to at least partially control the autofocus processing based on the evaluation information.

[0278] (13) The system of (12), wherein performing sampling in a sampling frame changes at least one of a position and a size of the sampling frame.

[0279] (14) A system according to (12), wherein determining the position where the effective image portion data exists specifies the diameter of the mirror body and the center position of the effective image portion data.

[0280] (15) A system according to (1), wherein the circuit is further configured to set an evaluation value calculation target area used as the effective image portion using a diameter of the mirror body and a center position of the effective image portion data.

[0281] (16) A system according to (1), wherein control processing is performed based on evaluation information, the evaluation information being determined based on effective image portion data represented by the diameter of a scope and the center position of the effective image portion data in a target area of ​​a calculation based on evaluation values ​​set in a matrix shape on medical image data serving as a calculation target for the evaluation information.

[0282] (17) A system according to (1), wherein the evaluation information is determined based on at least one of an F number and a depth of focus of a mirror estimated using image data from effective image portion data to determine information for autofocus processing.

[0283] (18) A system according to (1), wherein control processing is performed based on a determination result of determining evaluation information with reference to a table containing at least one of a pre-stored F number and a depth of focus of a lens body, and parameters for defining autofocus processing are set based on the reference result.

[0284] (19) A system for processing medical images, comprising a circuit configured to obtain medical image data through an endoscope including an imager head and a scope attached to the imager head, determine evaluation information using effective image area data of the medical image data instead of mechanical vignetting area data of the medical image data, wherein the effective area of ​​the medical image data is generated due to mechanical vignetting caused by the scope, and perform control processing including at least one of automatic focus processing and automatic white balance processing based on the evaluation information.

[0285] (20) According to the system of (19), it also includes an imager head, which includes an image sensor; and a mirror body as a medical device, wherein the mechanical vignetting area data is caused by the different shapes of the image sensor and the mirror body.

[0286] (21) A system according to (20), wherein the image sensor is rectangular and the medical image data generated by the scope is a circular image.

[0287] (22) The system according to (19) further includes an imager head, which includes an image sensor; and a mirror body as a medical device, wherein the mechanical vignetting area data is caused by the different sizes of the image sensor and the mirror body.

[0288] (23) A system according to (22), wherein the medical image produced by the endoscope exceeds the size of the image sensor in a first dimension of the image sensor, is smaller than the size of the image sensor in a second dimension of the image sensor perpendicular to the first dimension, and both the first dimension and the second dimension are in an imaging sensing plane of the image sensor.

[0289] (24) The system according to (19) also includes light that illuminates a target corresponding to the medical image data.

[0290] (25) The system according to (19), further including a lens system attached to the mirror body, wherein the circuit configured to perform the control processing generates information to focus the lens system based on the evaluation information.

[0291] (26) A system according to (19), wherein the circuit configured to perform control processing generates white balance information to set the white balance of the medical image.

[0292] (27) A method for processing medical image information, comprising determining evaluation information using effective image portion data of the medical image data, the medical image data comprising effective image portion data and mechanical vignetting portion data, the mechanical vignetting portion data of the medical image data being generated due to mechanical vignetting caused by a difference between an image sensor generating the medical image data and a medical device, and performing control processing including at least one of autofocus processing and auto white balance processing based on the evaluation information.

[0293] (28) A method according to (27), wherein the evaluation information is determined only from valid image portion data of the medical image data without using mechanical vignetting portion data.

[0294] (29) The method according to (28) also includes generating medical image data using an image sensor and a medical device, wherein the difference is caused by different shapes of the image sensor and the medical device.

[0295] (30) The method of (29), wherein the image sensor is rectangular and the image corresponding to the effective image portion data generated by the medical device is circular.

[0296] (31) The method according to (28) also includes generating medical image data using an image sensor and a medical device, wherein the difference is caused by different sizes of the image sensor and the medical device.

[0297] (32) The method according to (31), wherein

[0298] An image from a medical device used to generate effective image portion data exceeds the size of the image sensor in a first dimension of the image sensor, is smaller than the size of the image produced by the medical device in a second dimension of the image sensor perpendicular to the first dimension, and both the first dimension and the second dimension are in an imaging sensing plane of the image sensor.

[0299] (33) The method of (28), wherein the medical device comprises a mirror body.

[0300] (34) The method according to (28) also includes generating medical image data using an image sensor and a medical device including a scope.

[0301] (35) The method according to (34), further comprising

[0302] Light is used to illuminate an object corresponding to the medical image.

[0303] (36) The method of (27), wherein the control process is performed to perform focusing of the lens system using the evaluation information.

[0304] (37) The method according to (27), wherein the execution control process executes the automatic white balance process using the evaluation information.

[0305] (38) The method according to (27) also includes sampling a brightness signal from an image sensor, and using the brightness signal to determine a location where valid image portion data exists and the valid image portion data.

[0306] (39) A method according to (38), wherein the location where the effective image portion data exists is determined based on a brightness signal that has been sampled and is in a matrix shape to detect the edge of the effective image portion data, and the diameter of the mirror body and the center position of the effective image portion data are specified.

[0307] (40) The method according to (27), further comprising

[0308] Sampling is performed in a sampling frame set on the medical image data to obtain evaluation information for automatic focus processing, and the location where valid image portion data exists and the valid image portion data are determined using the evaluation information for the automatic focus processing, wherein control processing is performed to at least partially control the automatic focus processing based on the evaluation information.

[0309] (41) The method according to (40), wherein:

[0310] Performing sampling in the sampling frame changes at least one of a position and a size of the sampling frame.

[0311] (42) The method according to (40), wherein:

[0312] Determine the location where the effective image portion data exists by specifying the diameter of the mirror body and the center position of the effective image portion data.

[0313] (43) The method according to (27), further comprising:

[0314] The evaluation value calculation target area used as the effective image portion is set using the diameter of the mirror body and the center position of the effective image portion data.

[0315] (44) A method according to (27), wherein control processing is performed based on evaluation information, the evaluation information being determined based on effective image part data represented by the diameter of the scope and the center position of the effective image part data in a target area of ​​a calculation based on an evaluation value set in a matrix shape on medical image data which is a calculation target for the evaluation information.

[0316] (45) A method according to (27), wherein the evaluation information is determined based on at least one of an F-number and a depth of focus of a mirror estimated using image data from a valid image portion of data to determine information for autofocus processing.

[0317] (46) A method according to (27), wherein control processing is performed based on a determination result of determining evaluation information with reference to a table containing at least one of a pre-stored F number and a depth of focus of the lens body, and parameters for defining autofocus processing are set based on the reference result.

[0318] <Configuration combination>

[0319] The present technology may also include the following configurations. (1)

[0321] An endoscope system, comprising:

[0322] a light source device configured to irradiate light onto a surgical field of view;

[0323] an image sensing device configured to photograph a surgical field of view using a detachably mounted scope; and

[0324] An information processing device is connected to the image sensing device and the light source device and is provided with

[0325] a detection unit configured to detect an effective area of ​​the scope from a photographic image captured by the image sensing device, and

[0326] A control unit is configured to execute a control process including at least one of an automatic focus process, an automatic exposure process, and an automatic white balance process based on the evaluation value of the effective area. (2)

[0328] An endoscope system according to (1), wherein the effective area has no vignetting caused by the scope body. (3)

[0330] The endoscope system according to (1) or (2), further comprising a first sampling unit configured to sample a brightness signal of each area set in the photographic image,

[0331] The detection unit detects the effective area based on the sampling value of each area of ​​the photographic image. (4)

[0333] An endoscope system according to (3), wherein the detection unit detects an edge of the effective area based on a sampling value of each area arranged in a matrix shape on a photographic image, and specifies a diameter of the scope and a center position of the effective area. (5)

[0335] The endoscope system according to (1), further comprising a second sampling unit configured to perform sampling in a sampling frame set on the photographic image and calculate an evaluation value for autofocus processing,

[0336] wherein the detection unit detects the effective area based on the evaluation value for the automatic focusing process, and

[0337] The control unit performs the automatic focusing process as the control process based on the evaluation value for the automatic focusing process. (6)

[0339] The endoscope system according to (5), wherein the second sampling unit calculates the evaluation value for the automatic focusing process used in detecting the effective area by changing at least one of a position and a size of the sampling frame. (7)

[0341] The endoscope system according to (6), wherein the detection unit detects an edge of the effective area based on an evaluation value for automatic focusing processing, and specifies a diameter of the scope and a center position of the effective area. (8)

[0343] An endoscope system according to any one of (1) to (7), wherein the control unit sets an evaluation value calculation target area serving as a calculation target for the evaluation value in the effective area represented by a diameter of the scope and a center position of the effective area. (9)

[0345] An endoscope system according to any one of (1) to (8), wherein a control unit performs control processing based on an evaluation value calculated by an evaluation value calculation target area of ​​an effective area represented by a diameter of a scope body and a center position of the effective area in an evaluation value calculation target area set in a matrix shape on a photographic image as a calculation target for an evaluation value. (10)

[0347] An endoscope system according to any one of (1) to (9), wherein the control unit sets parameters for defining the automatic focusing process based on at least one of an F number and a depth of focus of the scope estimated based on a detection result of the detection unit. (11)

[0349] An endoscope system according to any one of (1) to (9), wherein the control unit refers to a table containing at least one of the F number and focal depth of the scope stored in advance based on the detection result of the detection unit, and sets parameters for defining the automatic focusing processing based on the reference result. (12)

[0351] A method for controlling an endoscope system, the method comprising:

[0352] Using a light source device to shine light onto the surgical field;

[0353] Using an image sensing device to photograph a surgical field of view through a detachably mounted mirror body; and

[0354] Using an information processing device connected to an image sensing device and a light source device, an effective area of ​​a mirror body is detected from a photographic image captured by the image sensing device, and a control process including at least one of automatic focusing processing, automatic exposure processing, and automatic white balance processing is performed based on an evaluation value of the effective area. (13)

[0356] An information processing device of an endoscope system, the information processing device is connected to a light source device and an image sensing device, the light source device is configured to irradiate light onto a surgical field of view, the image sensing device is configured to photograph the surgical field of view through a detachably mounted scope,

[0357] The information processing device comprises:

[0358] a detection unit configured to detect an effective area of ​​the scope from a photographic image captured by the image sensing device; and

[0359] A control unit is configured to execute a control process including at least one of an automatic focus process, an automatic exposure process, and an automatic white balance process based on the evaluation value of the effective area. (14)

[0361] A program for causing a computer of an information processing device used as an endoscope system to execute processing, the information processing device being connected to a light source device configured to irradiate light onto a surgical field of view and an image sensing device configured to photograph the surgical field of view through a detachably mounted scope,

[0362] This processing includes:

[0363] detecting an effective area of ​​the scope from a photographic image captured by an image sensing device; and

[0364] A control process including at least one of an automatic focus process, an automatic exposure process, and an automatic white balance process is performed based on the evaluation value of the effective area.

[0365] Reference Mark List

[0366] 1 Endoscopic system

[0367] 12 CCU

[0368] 19 Endoscope

[0369] 51 Camera Head

[0370] 52 Mirror

[0371] 111 Imaging Components

[0372] 112 Imaging Element Driver

[0373] 113 Lens Driver

[0374] 114 Zoom lens drive unit

[0375] 115 Focus lens drive unit

[0376] 131 Camera signal processing unit

[0377] 132 Sample Frame Gate

[0378] 133 Sampling Unit

[0379] 134 Mask detection unit

[0380] 135 AF sampling unit

[0381] 136 Lens Controller

[0382] 141 Exposure detection unit.

Claims

1. A system comprising: An endoscope comprising a scope body and an image sensor, the image sensor being configured to capture medical image data comprising effective image portion data and mechanical vignetting portion data, the mechanical vignetting portion data of the medical image data being generated due to mechanical vignetting caused by a difference between the image sensor generating the medical image data and the scope body; as well as circuitry configured to determine evaluation information from only image data of the effective image portion data from the medical image data without using the mechanical vignetting portion data, and A control process is performed based on the evaluation information to at least partially control at least one of an auto focus process and an auto white balance process on the endoscope.

2. The system according to claim 1, wherein: The difference is due to the different shapes of the image sensor and the light passing through the mirror body.

3. The system according to claim 2, wherein: The image sensor is rectangular, and the effective image portion data is a circular image.

4. The system according to claim 1, wherein: The difference is due to the different sizes of the image sensor and the mirror body.

5. The system according to claim 4, wherein: The image from the mirror body used to generate the effective image portion data exceeds the size of the effective area of ​​the image sensor in a first dimension of the image sensor, is smaller than the size of the effective area of ​​the image sensor in a second dimension of the image sensor perpendicular to the first dimension, and both the first dimension and the second dimension are in the imaging sensing plane of the image sensor.

6. The system according to claim 1, further comprising: Light is used to illuminate a target corresponding to the effective image portion data.

7. The system of claim 1, further comprising: Lens system, wherein the control process performed by the circuit generates information to focus the lens system based on the evaluation information.

8. The system according to claim 1, wherein: The control process performed by the circuit generates white balance information to set the white balance of the medical image.

9. The system according to claim 1, wherein: The circuit is also configured to: sampling a brightness signal from the image sensor, and The location where the effective image portion data exists and the effective image portion data are determined using the brightness signal.

10. The system according to claim 9, wherein: The determination of the position where the effective image portion data exists detects the edge of the effective image portion data based on the brightness signal that has been sampled and is in a matrix shape, and specifies the diameter of the mirror body and the center position of the effective image portion data.

11. The system according to claim 1, wherein: The circuit is also configured to: performing sampling in a sampling frame set on the medical image data to obtain evaluation information for the autofocus process, and using the evaluation information for the autofocus process to determine the location where the valid image portion data exists and the valid image portion data, Wherein the control process is performed to at least partially control the autofocus process based on the evaluation information.

12. The system according to claim 11, wherein: Performing sampling in the sampling frame changes at least one of a position and a size of the sampling frame.

13. The system according to claim 11, wherein: The determination of the position where the effective image portion data exists specifies the diameter of the mirror body and the center position of the effective image portion data.

14. The system of claim 1, wherein: The circuit is also configured to: An evaluation value calculation target area serving as the effective image portion is set using the diameter of the scope and the center position of the effective image portion data.

15. The system of claim 1, wherein: The control processing is performed based on the evaluation information, and the evaluation information is determined based on the effective image part data represented by the diameter of the scope and the center position of the effective image part data in the evaluation value calculation target area set in a matrix shape on the medical image data which is a calculation target for the evaluation information.

16. The system of claim 1, wherein: The evaluation information is determined based on at least one of the F-number and the depth of focus of the mirror estimated using the image data from the effective image portion data to determine information used for the autofocus processing.

17. The system of claim 1, wherein: The control processing is performed based on a determination result of determining the evaluation information with reference to a table containing at least one of the F number and the focal depth of the mirror body stored in advance, and parameters for defining the automatic focusing processing are set based on a result of the reference.

18. A system for processing medical images, comprising: A circuit configured to obtain medical image data through an endoscope including an imager head and a scope attached to the imager head, determining evaluation information using only effective image area data of the medical image data without using mechanical vignetting area data of the medical image data, the mechanical vignetting area of ​​the medical image data being generated due to mechanical vignetting caused by the scope, and A control process including at least one of an automatic focus process and an automatic white balance process is performed based on the evaluation information.

19. The system of claim 18, further comprising: said imager head comprising an image sensor; as well as As the mirror body of a medical device, Among them, the mechanical vignetting area data is caused by the different shapes of the image sensor and the mirror body.

20. The system of claim 19, wherein: The image sensor is rectangular and the medical image data generated by the scope is a circular image.

21. The system of claim 18, further comprising: said imager head comprising an image sensor; as well as As the mirror body of a medical device, Among them, the mechanical vignetting area data is caused by the different sizes of the image sensor and the mirror body.

22. The system of claim 21, wherein: The medical image produced by the endoscope exceeds the size of the image sensor in a first dimension of the image sensor, is smaller than the size of the image sensor in a second dimension of the image sensor perpendicular to the first dimension, and both the first dimension and the second dimension are in an imaging sensing plane of the image sensor.

23. The system of claim 18, further comprising: a lens system attached to the mirror body, Wherein the circuitry configured to perform the control process generates information to focus the lens system based on the evaluation information.

24. The system of claim 18, wherein: The circuit configured to perform the control process generates white balance information to set a white balance of the medical image.

25. A method for processing medical image information, comprising: determining evaluation information using only valid image portion data of medical image data without using mechanical vignetting portion data, the medical image data including the valid image portion data and mechanical vignetting portion data generated due to mechanical vignetting caused by a difference between an image sensor generating the medical image data and a medical device; and A control process including at least one of an automatic focus process and an automatic white balance process is performed based on the evaluation information.

26. The method according to claim 25, further comprising: generating the medical image data using the image sensor and the medical device, The difference is caused by different shapes of the image sensor and the medical device.

27. The method of claim 25, further comprising: generating the medical image data using the image sensor and the medical device, The difference is caused by the different sizes of the image sensor and the medical device.

28. The method according to claim 27, wherein: The image from the medical device used to generate the effective image portion data exceeds the size of the image sensor in a first dimension of the image sensor, is smaller than the size of the image produced by the medical device in a second dimension of the image sensor perpendicular to the first dimension, and both the first dimension and the second dimension are in an imaging sensing plane of the image sensor.