Measurement support device, endoscope system, processor for endoscope system
10708553 ยท 2020-07-07
Assignee
Inventors
Cpc classification
G06T7/246
PHYSICS
G02B23/24
PHYSICS
A61B5/1076
HUMAN NECESSITIES
A61B1/07
HUMAN NECESSITIES
A61B1/0005
HUMAN NECESSITIES
International classification
H04N7/18
ELECTRICITY
G02B23/24
PHYSICS
A61B1/00
HUMAN NECESSITIES
A61B1/04
HUMAN NECESSITIES
A61B5/107
HUMAN NECESSITIES
Abstract
The invention aims at providing a measurement support device, an endoscope system, and a processor for an endoscope system capable of displaying an accurate indicator with a simple configuration. In a measurement support device related to one aspect of the invention, the coordinates of a spot, and coordinates of points indicating an actual size of a measurement target in a subject and indicating a circular marker distorted in accordance with distortion aberration of an imaging optical system are stored in association with each other in a storage unit, the coordinates of the points indicating the circular marker are acquired with reference to the storage unit on the basis of the measured coordinates of the spot, and the circular marker is displayed on the basis of the acquired coordinates. Thus, the distance measurement is unnecessary, the configuration is simple, and the processing load is low. Additionally, since the circular marker is displayed in the vicinity of the spot (for example, centering on a spot position), there is little deviation between the spot position and a marker position, the circular marker is accurate as an indicator. Additionally, since the indicator is not widely displayed, there is little processing load.
Claims
1. A measurement support device comprising: a head that emits measurement auxiliary light; an imaging unit that captures an image of a subject on which a spot is formed with the measurement auxiliary light via an imaging optical system and an imaging element; a measurement unit that measures coordinates of the spot in the image; a storage unit that stores the coordinates of the spot and coordinates of points indicating an actual size of a measurement target in the subject and indicating a circular marker distorted in accordance with distortion aberration of the imaging optical system in association with each other and that stores the coordinates of the points indicating the circular marker with respect to a plurality of points in a trajectory along which the spot moves on the image in a case where an imaging distance of the image is changed; a coordinate acquisition unit that refers the storage unit on the basis of the measured coordinates of the spot and acquires the coordinates of the points indicating the circular marker corresponding to the coordinates of the spot; and a display control unit that causes the circular marker to be displayed in the vicinity of the spot in the image on the basis of the acquired coordinates, wherein the head emits the measurement auxiliary light that has an inclination angle that is not 0 degrees with respect to an optical axis of the imaging optical system and crosses an angle of view of the imaging optical system, in a case where an optical axis of the measurement auxiliary light is projected on a plane including the optical axis of the imaging optical system.
2. The measurement support device according to claim 1, wherein the coordinate acquisition unit acquires the coordinates of the points indicating the circular marker corresponding to a point of which a distance from the spot is equal to or smaller than a threshold value, among the plurality of points.
3. The measurement support device according to claim 1, wherein the coordinate acquisition unit acquires the coordinates of the points indicating the circular marker by interpolating coordinates corresponding to two or more points sandwiching the spot, among the plurality of points.
4. The measurement support device according to claim 1, wherein the coordinate acquisition unit acquires the coordinates of the points indicating the circular marker by extrapolating coordinates corresponding to two or more points that do not sandwich the spot, among the plurality of points.
5. The measurement support device according to claim 1, wherein the storage unit stores the coordinates of the points indicating the circular marker in correspondence with a range where size measurement of the measurement target by the circular marker is effective, in the image.
6. The measurement support device according to claim 1, wherein the storage unit stores coordinates of a plurality of first points, which are actually measured in correspondence with a circle centering on the spot, and coordinates of a plurality of second points generated by interpolating the plurality of first points as the coordinates of the points indicating the circular marker, and wherein the coordinate acquisition unit acquire the coordinates of the plurality of first points and the coordinates of the plurality of second points as the coordinates of the points indicating the circular marker.
7. The measurement support device according to claim 6, wherein the storage unit stores coordinates of points, which are obtained by linearly interpolating the plurality of first points in an angular direction and a radial direction of the circle, as the coordinates of the plurality of second points.
8. The measurement support device according to claim 1, wherein the storage unit stores a transformation matrix for projectively transform a distorted lattice region including the circular marker centering on the spot to a square lattice region, in the image, and wherein the coordinate acquisition unit acquires the coordinates of the points indicating the circular marker in the square lattice region transformed by the transformation matrix, and acquires the coordinates of the points indicating the circular marker in the distorted lattice region by inversely transforming the acquired coordinates by an inverse matrix of the transformation matrix.
9. The measurement support device according to claim 8, wherein the storage unit stores the transformation matrix for each of a plurality of small regions obtained by dividing the distorted lattice region and the square lattice region into 2mn pieces in a case where m and n are positive integers, and wherein the coordinate acquisition unit applies a same transformation matrix out of the plurality of transformation matrices and a same inverse matrix out of the plurality inverse matrices to pixels, which belong to a same small region, among pixels of the image.
10. The measurement support device according to claim 9, wherein the storage unit stores the transformation matrices, using a plurality of regions, which include the distorted lattice region in a case where the imaging distance is a farthest end of a measurement distance range, and the distorted lattice region in a case where the imaging distance is a nearest end of the measurement distance range, and are obtained by dividing a partial region in the image, and which are divided to be smaller than a size of lattice cells of the distorted lattice region in the farthest end, as the plurality of small regions, and wherein the coordinate acquisition unit acquires the coordinates of the points indicating the circular marker, using the transformation matrices stored for the plurality of small regions.
11. The measurement support device according to claim 8, wherein the transformation matrix is an affine transformation matrix.
12. An endoscope system comprising: the measurement support device according to claim 1.
13. The endoscope system according to claim 12, further comprising: an endoscope having an insertion part to be inserted into a subject, the insertion part having a distal end hard part and a bending part connected to a proximal end side of the distal end hard part, and a flexible part connected to a proximal end side of the bending part, and an operating part connected to a proximal end side of the insertion part, wherein the distal end hard part is provided with the head, and an imaging lens for forming an optical image of the spot on the imaging element.
14. A processor for the endoscope system according to claim 12, the processor comprising the measurement unit, the storage unit, the coordinate acquisition unit, and the display control unit.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
(24)
(25)
(26)
(27)
(28)
(29)
DESCRIPTION OF THE PREFERRED EMBODIMENTS
(30) Hereinafter, embodiments of a measurement support device, an endoscope system, and a processor for an endoscope system related to the invention will be described in detail, referring to the accompanying drawings.
First Embodiment
(31)
(32) <Configuration of Endoscope Body>
(33) The endoscope body 100 comprises a proximal operating part 102 (operating part), and an insertion part 104 (insertion part) provided continuously with at the proximal operating part 102. An operator grips the proximal operating part 102 to operate the endoscope body 100, and inserts the insertion part 104 into the body of a subject to observe the body. The insertion part 104 is constituted of a flexible part 112 (flexible part), a bending part 114 (bending part), and a distal end hard part 116 (distal end hard part) sequentially from the proximal operating part 102 side. By operating the proximal operating part 102, the bending part 114 can be bent to change the orientation of the distal end hard part 116 vertically and horizontally. The distal end hard part 116 is provided with an imaging optical system 130 (imaging unit), an illumination unit 123, a forceps port 126, and a laser module 500, and the like (refer to
(34) During observation or treatment, visible light, infrared light, or both can be radiated from illumination lenses 123A and 123B of the illumination unit 123 by the operation of an operating part 208 (refer to
(35) As illustrated in
(36) In addition, in the first embodiment, a case where the imaging element 134 is a CMOS type imaging element is described. However, the imaging element 134 may be of charge coupled device (CCD) type.
(37) An image of the subject (a tumor region or an affected region) or an optical image of a spot (to be described below) is formed on a light-receiving surface (imaging surface) of the imaging element 134 by the imaging lens 132, is converted into electrical signals, is output to the endoscope processor 200 via a signal cable (not illustrated), and is converted into video signals. Accordingly, an observation image, a distorted circular marker, and the like are displayed on the monitor 400 connected to the processor 200.
(38) Additionally, the illumination lenses 123A (for visible light) and 123B (for infrared light) of the illumination unit 123 are provided adjacent to the imaging lens 132 on the distal-end-side end surface 116A of the distal end hard part 116. An exit end of a light guide 170 to be described below is disposed at the back of the illumination lenses 123A and 123B, the light guide 170 is inserted through the insertion part 104, the proximal operating part 102, and an universal cable 106, and an incidence end of the light guide 170 is disposed within a light guide connector 108.
(39) The distal-end-side end surface 116A is further provided with a laser head 506 of the laser module 500 and is irradiated with spot light (measurement auxiliary light) via a prism 512 (refer to
(40) <Configuration of Laser Module>
(41) As illustrated in
(42) In the laser head 506, for example, one having a diameter of 0.8 mm to 1.25 mm can be used as the ferrule 508. A fine-diameter ferrule is more preferable for downsizing. By virtue of the above-described configuration, the total diameter of the laser head 506 can be 1.0 mm to 1.5 mm.
(43) The laser module 500 configured in this way is mounted on the insertion part 104. Specifically, as illustrated in
(44) As illustrated in
(45) In the first embodiment, the laser light emitted by the VLD can be red laser light with a wavelength of 650 nm by a semiconductor laser. However, the wavelength of the laser light in the invention is not limited to this aspect. The laser light condensed by the condensing lens 503 is guided up to the GRIN lens 510 by the optical fiber 504. The optical fiber 504 is an optical fiber that propagates the laser light in a single transverse mode, and can form a spot with a small clear diameter, so that the size of the subject (measurement target) can be accurately measured. A relay connector may be provided in the middle of the optical fiber 504. In addition, in a case where the size of spot diameter or clearness does not pose a measurement problem depending on observation conditions, such as the type or size of the subject, an optical fiber that propagates the laser light in a multi-mode may be used as the optical fiber 504. Additionally, as the light source, a light-emitting diode (LED) may be used instead of the semiconductor laser, or the semiconductor laser may be used in an LED light emission state equal to or less than an oscillation threshold value.
(46) The GRIN lens 510 is a cylindrical graded index type lens (radial type) of which the refractive index is highest on the optical axis and decrease radially outward, and functions as a collimator that makes the laser light, which is guided by the optical fiber 504 and enters, into a parallel beam and emits the parallel beam. The spread of the beam emitted from the GRIN lens 510 can be adjusted by adjusting the length of the GRIN lens 510, and about /4 pitch ( is the wavelength of the laser light) or the like may be used to emit the laser light as the parallel beam.
(47) The prism 512 is mounted on a distal end side of the GRIN lens 510. The prism 512 is an optical member for changing the emission direction of the measurement auxiliary light. By changing the emission direction, in a case where the optical axis of the measurement auxiliary light is projected on a plane including the optical axis of the imaging optical system, the optical axis of the measurement auxiliary light has an inclination angle, which is not 0 degrees with respect to the optical axis of the imaging optical system, and the measurement auxiliary light crosses the angle of view of the imaging optical system. The prism 512 is formed with a size near the lens diameter of the GRIN lens 510, and a distal end surface thereof is cut obliquely and has an apex angle AL1 according to the above-described inclination angle. The value of the apex angle AU can be set in accordance with the emission direction of the laser light and other conditions.
(48) <Relationship Between Optical Axis of Imaging Optical System and Optical Axis of Measurement Auxiliary Light>
(49)
(50) In addition, the relationship between the optical axis L1 of the measurement auxiliary light and the optical axis L2 of the imaging optical system in the invention may not be limited to the above-described aspect in which the optical axis of the measurement auxiliary light and the optical axis of the imaging optical system are present on the same plane and intersect each other on the same plane, and the optical axis of the measurement auxiliary light may not be present on the same plane as the optical axis of the imaging optical system. However, even in such a case, in a case where the optical axis of the measurement auxiliary light is projected on the plane including the optical axis of the imaging optical system, the optical axis of the measurement auxiliary light has the inclination angle, which is not 0 degrees with respect to the optical axis of the imaging optical system, and crosses the angle of view of the imaging optical system.
(51) In a case where the measurement using the measurement auxiliary light is performed, and in a case where the optical axis of the measurement auxiliary light is parallel to the optical axis of the imaging optical system (the inclination angle is 0 degrees), the distance up to a point where the optical axis of the measurement auxiliary light crosses the angle of view of the imaging optical system becomes long depending on the spacing between the optical axes. As a result, a spot cannot be imaged in an closest range, and the measurement becomes difficult. Additionally, in a case where the optical axis of the measurement auxiliary light is parallel to the optical axis of the imaging optical system, there is a case where the sensitivity of spot positions change with respect to a change in observation distance is low and sufficient measurement accuracy is not obtained. In contrast, according to the configuration in which, in a case where the optical axis of the measurement auxiliary light is projected on the plane including the optical axis of the imaging optical system, the optical axis of the measurement auxiliary light has the inclination angle, which is not 0 degrees with respect to the optical axis of the imaging optical system, and crosses the angle of view of the imaging optical system as in the first embodiment, the measurement can be made at an observation distance of a wide range from the closest range to a long range. Additionally, since the sensitivity of the spot positions changes with respect to the distance change is high, the measurement can be made with high accuracy.
(52) <Configuration of Light Source Device>
(53) As illustrated in
(54) By coupling the light guide connector 108 (refer to
(55) <Configuration of Processor>
(56) Next, the configuration of the endoscope processor 200 (a measurement unit, a storage unit, a coordinate acquisition unit, and a display control unit) will be described with reference to
(57) Additionally, the endoscope processor 200 comprises the operating part 208. The operating part 208 comprises an operation mode setting switch, a water supply instruction button, and the like that are not illustrated, and can operate radiation of the visible light and/or the infrared light. Additionally, the operating part 208 includes devices, such as a keyboard and a mouse, which are not illustrated, and can input various processing conditions, display conditions, and the like via these devices.
(58) <Observation by Endoscope>
(59)
(60) <Flow of Measurement Processing>
(61) Next, the measurement support method for the subject using the endoscope system 10 will be described.
(62) First, the insertion part 104 of the endoscope body 100 is inserted into the subject, and the endoscope system 10 is set to a normal observation mode (Step S10). The normal observation mode is a mode in which the subject is irradiated with the illumination light radiated from the light source device 300 to acquire an image and the subject is observed. The setting to the normal observation mode may be automatically performed by the endoscope processor 200 at the time of the startup of the endoscope system 10 or may be performed in accordance with the operation of the operating part 208 by a user.
(63) In a case where the endoscope system 10 is set to the normal observation mode, the illumination light is radiated to image the subject, and the obtained image is displayed on the monitor 400 (Step S12). As the image of the subject, a still image may be captured or a moving image may be captured. During the imaging, it is preferable to switch the type (the visible light or the infrared light) of the illumination light in accordance with the type of the subject, the purposes of observation, or the like. The user moves the insertion part 104 forward or backward and/or operates to bend the insertion part 104 to direct the distal end hard part 116 to an observation target while viewing an image displayed on the monitor 400 so that the subject to be measured is imaged.
(64) Next, whether or not the normal observation mode shifts to a measurement mode is determined (Step S14). This determination may be performed on the basis of the presence or absence of a user's operation via the operating part 208, or may be performed on the basis of the presence or absence of a switching command from the endoscope processor 200. Additionally, the endoscope processor 200 may alternately set the normal observation mode and the measurement mode at certain fixed frame intervals (such as every one frame or every two frames). In a case where the determination of Step S14 is negative, the process returns to Step S12 and the imaging in the normal observation mode is continued, and in a case where the determination is positive, the process proceeds to Step S16 where switching to the measurement mode is performed.
(65) The measurement mode is a mode in which the laser light (measurement auxiliary light) is radiated from the laser head 506 to form a spot on the subject, and a marker for measuring the size (length) of the subject on the basis of the image of the subject on which the spot is formed is generated and displayed. In the first embodiment, the red laser light is used as the measurement auxiliary light. However, since much of a digestive tract is reddish in an endoscope image, there is a case where the spot is not easily recognized depending on measurement conditions. Thus, in the measurement mode, the illumination light is turned off during the image acquisition and the position measurement of the spot, or the illuminance is lowered to such a degree that the recognition of the spot is not affected (Step S18), and the measurement auxiliary light is radiated from the laser head 506 (Step S20). Such control can be performed by the endoscope processor 200 and the light source control unit 350.
(66) In Step S22, an image of the subject on which the spot is formed with the measurement auxiliary light is captured. In a case where the observation distance is within a measurement range, the spot is formed within the imaging angle of view of the imaging optical system 130. As will be described in detail below, the positions of spots (on the imaging element) within an image are different in accordance with the observation distance, and the sizes (the numbers of pixels) of markers to be displayed are different in accordance with the positions of the spots.
(67) <Changes in Spot Positions According to Observation Distance>
(68) In the first embodiment, in a case where the optical axis L1 of the measurement auxiliary light is projected on the plane including the optical axis L2 of the imaging optical system, the optical axis L1 has the inclination angle, which is not 0 degrees with respect to the optical axis L2, and crosses the angle of view of the imaging optical system 130. Hence, the positions of spots in an image (imaging element) are different depending on distances up to subjects. For example, as illustrated in
(69)
(70) As illustrated in
(71) In this way, although the spot positions within the captured image (on the imaging element 134) are different in accordance with the relationship between the optical axis L2 of the imaging optical system 130 and the optical axis L1 of the measurement auxiliary light, and the observation distance. However, the number of pixels showing the same actual size (for example, diameter of 5 mm) increases in a case where the observation distance is near, and the number of pixels decreases in a case where the observation distance is far. Hence, as will be described below in detail, coordinates of points indicating a circular marker can be acquired by storing the position (coordinates) of a spot, and coordinates of points indicating an actual size of a measurement target in a subject and indicating the circular marker distorted in accordance with the distortion aberration of the imaging optical system 130 in association with each other, and referring to information stored in accordance with the measured spot positions (coordinates). Since it is not necessary to measure the observation distance itself in a case where the coordinates of the points indicating the circular marker are acquired, the configuration is simple, and the processing load is low.
(72) Referring to the flowchart of
(73) In addition, in the measurement mode, as described above, the illumination light is turned off during the image acquisition (Step S22) and the position measurement (Step S24) of the spot, or the illuminance is lowered to such a degree that the recognition of the spot is not affected (Step S18), and the measurement auxiliary light is radiated from the laser head 506 (Step S20). Accordingly, an image with a clear spot can be acquired, the position of the spot can be accurately measured, and a marker of a suitable size can be generated and displayed.
(74) In Step S26, the processor 200 (the CPU 210, the image processing unit 204) acquires the coordinates of the points indicating the actual size of the measurement target in the subject and indicating the circular marker (distorted circular marker) distorted in accordance with the distortion aberration of the imaging optical system 130. As described above, the sizes of markers on the monitor 400 are different in accordance with on the positions of spots within an image (namely, on the imaging surface of the imaging element 134). Thus, coordinates of a spot, and coordinates of points indicating an actual size of a measurement target in a subject and indicating the circular marker distorted in accordance with the distortion aberration of the imaging optical system 130 are stored in association with each other in the memory 212, the processor 200 refers to the memory 212 in accordance with the spot positions measured in Step S24, and the coordinates of the points indicating the distorted circular marker are acquired. A procedure of obtaining a relationship between the spot positions and the coordinates of the points indicating the distorted circular marker will be described below in detail.
(75) In Step S28, the observation image and the distorted circular marker are displayed on the monitor 400 (refer to an example of
(76) In Step S30, whether or not the measurement mode is ended is determined. This determination may be performed on the basis of a user's operation via the operating part 208, or may be performed on the basis of a switching command from the endoscope processor 200. Additionally, similarly to during the shift to the measurement mode, in a case where a certain number of frames have elapsed, the measurement mode may be automatically ended and may return to the normal observation mode. In a case where the determination of Step S30 is negative, the process return to Step S20 and the processing of Step S20 to Step S28 is repeated. In a case where the determination of Step S30 is positive, the process proceeds to Step S32 where the measurement auxiliary light is turned off, subsequently the illuminance of the illumination light is returned to normal illuminance in Step S34, and the process returns to the normal observation mode (returns to Step S10). In addition, in a case where there is no hindrance in the observation in the normal observation mode, the measurement auxiliary light may not be turned off.
(77) As described above, in the endoscope system 10 related to the first embodiment, an accurate indicator (distorted circular marker) can be displayed with a simple configuration, and thereby, the size of the subject can be accurately and easily measured.
(78) <Coordinates of Points Indicating Distorted Circular Marker>
(79) In the first embodiment, coordinates of a spot, and coordinates of points indicating an actual size of a measurement target in a subject and indicating the distorted circular marker in the imaging surface of the imaging element 134 are stored in association with each other in the memory 212, and coordinates are acquired with reference to the memory 212 in accordance with the measured spot positions. Hereinafter, the storage of the coordinates will be described.
(80) <Storage of Marker Coordinates>
(81) In the first embodiment, in a case where the observation distance (imaging distance) has been changed, the coordinates of the points indicating the distorted circular marker are stored with respect to a plurality of points in a trajectory along which the spot moves on the captured image. The movement trajectory of the spot in the captured image in a case where the imaging distance has been changed is determined depending on the relationship between the optical axis L1 of the measurement auxiliary light and the optical axis L2 of the imaging optical system 130, and is a straight line in the case of the relationship illustrated in
(82)
(83) There are problems such that the distortion aberration becomes large in a case where the spot is present at dotted line portions (peripheral portions of the captured image) of the trajectory T1, a portion of the distorted circular marker is outside the image in a case where the spot is present on the nearest end side (dotted line T1N portion) of the trajectory T1, or the marker becomes small in a case where the spot is present on the farthest end side (dotted line T1F portion), and any of these cases is not suitable for measurement. Thus, in the first embodiment, coordinates are stored in correspondence with the range of the spot position where the size measurement of the measurement target by the distorted circular marker is effective.
(84)
(85) <Acquisition of Coordinates>
(86) In a case where the distorted circular marker is displayed, the processor 200 (the CPU 210, the image processing unit 204) acquires the coordinates of the points indicating the distorted circular marker with reference to the memory 212 (storage unit) on the basis of the coordinates of a measured spot. The acquisition herein includes using the stored coordinates and using the coordinates generated on the basis of the stored coordinates. Hereinafter, specific aspects of the coordinate acquisition will be described.
(87) <Aspect 1 of Coordinate Acquisition>
(88)
(89) <Aspect 2 of Coordinate Acquisition>
(90) In Aspect 2, coordinates corresponding to two or more points sandwiching a measured spot among a plurality of points in a trajectory along which a spot moves are interpolated, and coordinates of points indicating a distorted circular marker are acquired. In an example of
(91) <Aspect 3 of Coordinate Acquisition>
(92) In Aspect 3, coordinates corresponding to two or more points that do not sandwich a spot among a plurality of points in a trajectory are extrapolated, and coordinates of points indicating a distorted circular marker are acquired. In an example of
(93) <Other Aspects>
(94) In the above-described Aspects 1 to 3, coordinates of points indicating a distorted circular marker may be stored for some points on a trajectory. In contrast, coordinates may be stored with respect to all points (pixels) on a trajectory, and the stored coordinates may be acquired as they are. In the case of such aspects, distance calculation, interpolation calculation, and the like between the points can be omitted.
(95) <Coordinate Generation and Storage of Points Indicating Distorted Circular Marker>
(96) Next, specific aspects of the coordinate generation and storage of points indicating a distorted circular marker will be described.
Example 1
(97) <Coordinate Generation and Storage by Interpolation of Actual Measurement Points>
(98)
(99) First, the measurement auxiliary light is radiated at the imaging distance set in the distance range (refer to the range R1 of
(100) Next, the position of the spot in the captured image is measured (Step S102).
(101) In a case where the coordinates of the first point are measured, the coordinates of the first point are interpolated, and coordinates of the second point are generated (Step S106).
a=arc tan(Ya/Xa)
b=arc tan(Yb/Xb)
i=a+(ba)/ni
r(i)={square root over (Xa.sup.2+Ya.sup.2)}+({square root over (Xb.sup.2+Yb.sup.2)}{square root over (Xa.sup.2+Ya.sup.2)})/ni
Xi=r(i)cos i
Yi=r(i)sin i[Equation 1]
(102) Similarly, coordinates of second points can be generated by the interpolation also between the point SPb and the point SPc, between the point SPc and the point SPd, and between the point SPd and the point SPa. In a case where the coordinates of the second points are generated, the coordinates of the first points and the second points as the coordinates of the points indicating the distorted circular marker are associated with the position (the actual position of the point SP1 in the example of
Example 2
(103) <Coordinate Generation and Storage by Projective Transformation>
(104) Next, Example 2 of the coordinate generation and storage of the points indicating the distorted circular marker will be described. In Example 2, the coordinates of the circular marker are calculated in the region transformed to the square lattice by projective transformation, the calculated coordinates are inversely transformed, and the coordinates of the distorted circular marker in the distorted lattice region are acquired. Processing, such as generation, transformation (respective kinds of processing in the flowchart of
(105)
(106) <Transformation to Square Lattice Region by Transformation Matrix>
(107) In Step S204, the distorted lattice region (the distorted lattice region QN in the example of
(108) In Example 2, such a lattice region QD is divided into 2mn (m, n: integer) small triangular regions (refer to
(109) In addition, in Example 2, a case where the transformation from the distorted lattice to the square lattice is performed by the affine transformation matrix is described. However, the transformation may be performed by a homography matrix. As described above, the small regions are triangular (constituted of three points) in the affine transformation matrix, whereas the small regions can be quadrangular (constituted of four points). Therefore, the number of small regions can be reduced.
(110) <Coordinate Calculation of Circular Marker>
(111) In a case where the distorted lattice region QN is transformed to the square lattice region SQ by Step S204, coordinates of points indicating a circular marker M1 in the square lattice region SQ are calculated as illustrated in
(112) <Transformation of Coordinates of Circular Marker to Distortion Coordinates>
(113) In a case where the coordinates of the circular marker are obtained, the circular marker is transformed to a distorted circular marker M1A, using an inverse matrix of the above-described transformation matrix (Step S208; refer to
(114) In a case where the coordinates of the distorted circular marker M1A are generated, the coordinates are associated with the position (the point SP2 in the example of
(115) <Others>
(116) The measurement support device, the endoscope system, the processor for an endoscope system, the measurement support method in the invention can also be applied to cases where subjects, which are not living bodies, such as a pipe, are measured in addition to measuring the subject that is a living body. Additionally, the measurement support device of the invention can be applied not only to the endoscope but also to cases where the dimensions and shapes of industrial parts are measured.
(117) Although the embodiments and examples of the invention have been described above, it is obvious that the invention is not limited to the above-described aspects, and various modifications can be made without departing from the spirit of the invention.
EXPLANATION OF REFERENCES
(118) 10: endoscope system 100: endoscope body 102: proximal operating part 104: insertion part 106: universal cable 108: light guide connector 112: flexible part 114: bending part 116: distal end hard part 116A: distal-end-side end surface 123: illumination unit 123A: illumination lens 123B: illumination lens 126: forceps port 130: imaging optical system 132: imaging lens 134: imaging element 136: driving circuit 138: AFE 170: light guide 200: processor 202: image input controller 204: image processing unit 206: video output unit 208: operating part 210: CPU 212: memory 300: light source device 310: light source 310A: visible light source 310B: infrared light source 330: stop 340: condensing lens 350: light source control unit 400: monitor 500: laser module 501: fiber covering 502: laser light source module 503: condensing lens 504: optical fiber 506: laser head 507: reinforcing material 508: ferrule 509: housing 510: GRIN lens 512: prism AL1: apex angle E1: nearest end E2: distance E3: farthest end IA: imaging range L1: optical axis L2: optical axis M1: circular marker M1A: distorted circular marker P1: point P2: point P3: point Pi: point Pi1: point Pi2: point Pij: point PiL: point PK: point P4: spot positions P5: spot positions P6: spot positions Q1: arrow Q2: arrow Q3: arrow QD: lattice region QF: lattice region QN: distorted lattice region R1: range R2: imaging range S10 to S210: respective steps of measurement support method SQ: square lattice region T1: trajectory T2: trajectory tm: tumor