TWI597042B - Endoscopic with distance measuring function and distance measuring method - Google Patents

Endoscopic with distance measuring function and distance measuring method Download PDF

Info

Publication number
TWI597042B
TWI597042B TW105120513A TW105120513A TWI597042B TW I597042 B TWI597042 B TW I597042B TW 105120513 A TW105120513 A TW 105120513A TW 105120513 A TW105120513 A TW 105120513A TW I597042 B TWI597042 B TW I597042B
Authority
TW
Taiwan
Prior art keywords
distance
bright
order
zero
image
Prior art date
Application number
TW105120513A
Other languages
Chinese (zh)
Other versions
TW201800049A (en
Inventor
Zhi-Jun Zhan
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed filed Critical
Priority to TW105120513A priority Critical patent/TWI597042B/en
Priority to DE102017111188.3A priority patent/DE102017111188B4/en
Priority to JP2017103518A priority patent/JP6373452B2/en
Priority to CN201710386601.4A priority patent/CN107544135B/en
Priority to US15/612,161 priority patent/US10151913B2/en
Application granted granted Critical
Publication of TWI597042B publication Critical patent/TWI597042B/en
Publication of TW201800049A publication Critical patent/TW201800049A/en

Links

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B23/00Telescopes, e.g. binoculars; Periscopes; Instruments for viewing the inside of hollow bodies; Viewfinders; Optical aiming or sighting devices
    • G02B23/24Instruments or systems for viewing the inside of hollow bodies, e.g. fibrescopes
    • G02B23/2407Optical details
    • G02B23/2423Optical details of the distal end
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • G01B11/022Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness by means of tv-camera scanning
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • G01B11/03Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness by measuring coordinates of points
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B23/00Telescopes, e.g. binoculars; Periscopes; Instruments for viewing the inside of hollow bodies; Viewfinders; Optical aiming or sighting devices
    • G02B23/24Instruments or systems for viewing the inside of hollow bodies, e.g. fibrescopes
    • G02B23/2407Optical details
    • G02B23/2461Illumination
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B23/00Telescopes, e.g. binoculars; Periscopes; Instruments for viewing the inside of hollow bodies; Viewfinders; Optical aiming or sighting devices
    • G02B23/24Instruments or systems for viewing the inside of hollow bodies, e.g. fibrescopes
    • G02B23/2476Non-optical details, e.g. housings, mountings, supports
    • G02B23/2484Arrangements in relation to a camera or imaging device
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B27/00Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
    • G02B27/42Diffraction optics, i.e. systems including a diffractive element being designed for providing a diffractive effect
    • G02B27/4233Diffraction optics, i.e. systems including a diffractive element being designed for providing a diffractive effect having a diffractive element [DOE] contributing to a non-imaging application
    • G02B27/425Diffraction optics, i.e. systems including a diffractive element being designed for providing a diffractive effect having a diffractive element [DOE] contributing to a non-imaging application in illumination systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • G06T7/521Depth or shape recovery from laser ranging, e.g. using interferometry; from the projection of structured light
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/54Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/55Optical parts specially adapted for electronic image sensors; Mounting thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/56Cameras or camera modules comprising electronic image sensors; Control thereof provided with illuminating means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10068Endoscopic image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/555Constructional details for picking-up images in sites, inaccessible due to their dimensions or hazardous conditions, e.g. endoscopes or borescopes

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Optics & Photonics (AREA)
  • Multimedia (AREA)
  • Astronomy & Astrophysics (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Endoscopes (AREA)
  • Instruments For Viewing The Inside Of Hollow Bodies (AREA)
  • Measurement Of Optical Distance (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Description

具有測距功能的內視鏡及測距方法Endoscope and ranging method with ranging function

本發明係與內視鏡之距離量測技術有關,特別是指使用光干涉技術的一種具有測距功能的內視鏡及測距方法。 The invention relates to the distance measuring technology of the endoscope, in particular to an endoscope and a distance measuring method with a distance measuring function using optical interference technology.

習知使用於內視鏡的測距方法,例如WO 2015/098353 A1號專利,其揭露了一種利用可移動的連接關節(movable joint)以及可視軸(visual axis)來進行測距的技術。此種技術雖可進行距離量測,但在結構上需要使用實體的連接關節,且又是可動的,因此在控制及量測上都較為複雜。 Ranging methods for endoscopes are known, for example, from WO 2015/098353 A1, which discloses a technique for performing ranging using a movable joint and a visual axis. Although this technique can perform distance measurement, it is structurally required to use solid joint joints, and it is movable, so it is complicated in control and measurement.

美國US 2010/0324366 A1號專利,揭露了另一種內視鏡的測距技術,其主要利用一量測用光源(measurement light)在一被測物體的表面投射出一個預定形狀,再對該形狀取像後,計算該形狀的大小,最後再計算出內視鏡與該被測物體之間的距離以及角度。 U.S. Patent No. 2010/0324366 A1 discloses another endoscope mirroring technique which mainly utilizes a measuring light to project a predetermined shape on the surface of an object to be measured, and then shape the shape. After taking the image, calculate the size of the shape, and finally calculate the distance and angle between the endoscope and the measured object.

本案將提出一種在內視鏡上以光干涉/繞射的方式來量測距離的技術,而與先前技術有所不同。 This case will propose a technique for measuring the distance by means of optical interference/diffraction on the endoscope, which is different from the prior art.

本發明之主要目的乃在於提供一種具有測距功能的內視鏡,其提供以光干涉/繞射的方式來量測距離的技術,而與先前技術有所不同。 SUMMARY OF THE INVENTION A primary object of the present invention is to provide an endoscope having a ranging function that provides a technique for measuring distance by means of optical interference/diffraction, which is different from the prior art.

為了達成上述目的,本發明提出一種具有測距功能的內視鏡,包含有:一主機,藉由一管體連接於一觀察單元,該觀察單元主要具有一座管以及設於該座管內的一單波長光源、一繞射光柵(diffraction grating)、一取像單元以及一遮光隔板;該座管,前端具有一開口;該單波長光源,設於該座管內,用以經由該開口向前發出一預定波長之光;該繞射光柵,具有複數縫隙,該繞射光柵設於該座管內且位於該單波長光源與該開口之間,使通過該等縫隙的單波長光產生繞射現象,並經由該開口投射在一待測物體上而顯示出一個零階亮點,以及分別位於該零階亮點兩側之一正一階亮點以及一負一階亮點,其中由該單波長光源發射至該零階亮點與其兩側相鄰亮點之間的向量夾角係依該預定波長以及該繞射光柵的縫隙寬度計算而得;該取像單元,設於該座管內,具有一影像感測器與一透鏡組,其中該透鏡組具有一鏡頭放大率,該取像單元係經由該開口向前方取像而取得一影像,且該取像單元的取像範圍係涵蓋該零階亮點及該正一階亮點以及該負一階亮點;該遮光隔板,設於該座管內,將該取像單元隔開於該單波長光源與該繞射光柵的組合,使該單波長光源所發出之單波長光不會在該座管內部反射或折射至該取像單元;該主機具有一計算單元,該計算單元係內建有一標準亮點像素數量,且該計算單元具有三種運算邏輯,其第一運算邏輯係為藉由該鏡頭放大率與該影像上的任一亮點的像素數量與該標準亮點像素數量進行計算,而取得一距離放大率;其第二運算邏輯係為藉由該距離放大率來計算該影像上的兩相鄰亮點之間的距離,進而取得投射於該待測物體上的兩相鄰亮點之間的實際距離;其第三運算邏輯係為藉由該兩相鄰亮點之間的實際距離配合該向量夾角來計算出該繞射光柵與該零階亮點之間的距離。 In order to achieve the above object, the present invention provides an endoscope having a distance measuring function, comprising: a host connected to an observation unit by a tube body, the observation unit mainly having a tube and being disposed in the seat tube a single-wavelength light source, a diffraction grating, an image capturing unit, and a light-shielding partition; the seat tube has an opening at the front end; the single-wavelength light source is disposed in the seat tube for passing through the opening Generating a predetermined wavelength of light forward; the diffraction grating has a plurality of slits disposed in the seat tube and between the single-wavelength light source and the opening to generate single-wavelength light passing through the slits Diffraction phenomenon, and projecting on an object to be tested through the opening to display a zero-order bright spot, and one of the positive first-order bright spots and one negative first-order bright spot respectively on the two sides of the zero-order bright point, wherein the single wavelength The vector angle between the light source emitted to the zero-order bright point and the adjacent bright spots on both sides is calculated according to the predetermined wavelength and the slit width of the diffraction grating; the image capturing unit is disposed in the seat tube and has An image sensor and a lens group, wherein the lens group has a lens magnification, and the image capturing unit obtains an image by taking an image forward through the opening, and the image capturing range of the image capturing unit covers the zero order a bright spot and the positive first-order bright spot and the negative first-order bright spot; the light-shielding partition is disposed in the seat tube, and the image capturing unit is separated from the single-wavelength light source and the diffraction grating to make the single wavelength The single-wavelength light emitted by the light source is not reflected or refracted inside the seat tube to the image capturing unit; the host has a computing unit having a standard number of bright pixels, and the computing unit has three kinds of arithmetic logic The first operation logic is to calculate a distance between the brightness of the lens and the number of pixels of any bright spot on the image and the number of pixels of the standard bright spot to obtain a distance magnification; the second operation logic is The distance magnification is used to calculate the distance between two adjacent bright spots on the image, thereby obtaining the actual distance between two adjacent bright spots projected on the object to be tested; the third operation logic is borrowing The actual distance between adjacent two bright spots with the vector angle calculated a distance between the zero-order diffraction grating with the highlights.

藉此,本發明係以光干涉/繞射的技術為基礎,藉由判斷繞射亮點來量測出待測物體的距離,而與先前技術有所不同。 Accordingly, the present invention is based on the technique of optical interference/diffraction, and the distance of the object to be measured is measured by judging the diffraction bright spot, which is different from the prior art.

本發明之再一目的則在於提供一種內視鏡之測距方法,其提供以光干涉/繞射的方式來量測距離的技術,而與先前技術有所不同。 Still another object of the present invention is to provide a method of ranging from an endoscope that provides a technique for measuring distance by means of optical interference/diffraction, which is different from the prior art.

為了達成上述目的,本發明提出一種內視鏡之測距方法,包含有下列步驟:A)以一內視鏡之管體前端的觀察單元內所設置之單波長光源發射一預定波長的光,經由一繞射光柵向一待測物體投射,而於該待測物體表面投射出一個零階亮點以及分別位於該零階亮點兩側之一正一階亮點以及一負一階亮點,其中由該單波長光源發射至該零階亮點與其兩側相鄰亮點之間的向量夾角係依該預定波長以及該繞射光柵的縫隙寬度計算而得;B)以該內視鏡之取像單元對該待測物體取像,而取得包含該零階亮點、該正一階亮點以及該負一階亮點的一影像;以及C)以該內視鏡之主機所具有的一計算單元來計算該影像中的該零階亮點、該正一階亮點以及該負一階亮點之像素數量,參考該計算單元所預設的一標準亮點像素數量,依一第一運算邏輯以及該取像單元本身所具有的鏡頭放大率來計算出一距離放大率;再依一第二運算邏輯來對該距離放大率及該影像上的兩相鄰亮點之間的距離進行計算,進而得到投射於該待測物體上的兩相鄰亮點之間的實際距離;最後再依一第三運算邏輯來對該兩相鄰亮點之間的實際距離及該向量夾角進行計算,進而得到該繞射光柵與該零階亮點之間的距離。 In order to achieve the above object, the present invention provides a method for ranging of an endoscope, comprising the following steps: A) emitting a predetermined wavelength of light by a single wavelength light source disposed in an observation unit at the front end of a tube of an endoscope, Projecting through a diffraction grating to an object to be measured, and projecting a zero-order bright spot on the surface of the object to be tested and a positive first-order bright spot and a negative first-order bright spot respectively on both sides of the zero-order bright spot, wherein The vector angle emitted by the single-wavelength light source to the zero-order bright point and the adjacent bright spots on both sides is calculated according to the predetermined wavelength and the slit width of the diffraction grating; B) the image capturing unit of the endoscope Taking an image of the object to be measured, and obtaining an image including the zero-order bright spot, the positive first-order bright spot, and the negative first-order bright spot; and C) calculating the image by using a computing unit of the host of the endoscope The number of pixels of the zero-order bright point, the positive first-order bright point, and the negative first-order bright point, refer to the number of standard bright-point pixels preset by the calculating unit, according to a first operation logic and the image-taking unit itself The head magnification is used to calculate a distance magnification; and the second operation logic is used to calculate the distance magnification and the distance between two adjacent bright spots on the image, thereby obtaining a projection onto the object to be tested. The actual distance between two adjacent bright points; finally, according to a third operation logic, the actual distance between the two adjacent bright points and the angle between the vectors are calculated, thereby obtaining the diffraction grating and the zero-order bright point the distance.

藉此,本發明之前述測距方法係以光干涉/繞射的技術為基礎,藉由判斷繞射亮點來量測出待測物體的距離,而與先前技術有所不同。 Thereby, the foregoing ranging method of the present invention is based on the optical interference/diffraction technique, and the distance of the object to be measured is measured by judging the diffraction bright spot, which is different from the prior art.

10‧‧‧具有測距功能的內視鏡 10‧‧‧Endoscope with ranging function

11‧‧‧主機 11‧‧‧Host

12‧‧‧計算單元 12‧‧‧Computation unit

121‧‧‧第一運算邏輯 121‧‧‧First operational logic

122‧‧‧第二運算邏輯 122‧‧‧Second operational logic

123‧‧‧第三運算邏輯 123‧‧‧ Third operational logic

21‧‧‧管體 21‧‧‧ tube body

31‧‧‧觀察單元 31‧‧‧ observation unit

32‧‧‧座管 32‧‧‧ seat tube

33‧‧‧開口 33‧‧‧ openings

34‧‧‧單波長光源 34‧‧‧Single wavelength light source

36‧‧‧繞射光柵 36‧‧‧Diffraction grating

361‧‧‧縫隙 361‧‧‧ gap

38‧‧‧取像單元 38‧‧‧Image capture unit

381‧‧‧影像感測器 381‧‧‧Image sensor

382‧‧‧透鏡組 382‧‧‧ lens group

39‧‧‧遮光隔板 39‧‧‧Lighting partition

99‧‧‧待測物體 99‧‧‧ objects to be tested

D‧‧‧繞射光柵與零階亮點之間的距離 D‧‧·Distance between the diffraction grating and the zero-order bright spot

I‧‧‧影像 I‧‧‧ images

L0‧‧‧零階亮點 L0‧‧‧ zero-order highlights

L1‧‧‧正一階亮點 L1‧‧‧ first-order highlights

L-1‧‧‧負一階亮點 L-1‧‧‧ negative first-order highlights

s‧‧‧縫隙寬度 S‧‧‧ gap width

θ‧‧‧向量夾角 Θ‧‧‧ vector angle

△X‧‧‧待測物體上的兩相鄰亮點之間的實際距離 △X‧‧‧The actual distance between two adjacent bright spots on the object to be tested

△X’‧‧‧影像上兩相鄰亮點之間的距離 ΔX’‧‧‧The distance between two adjacent bright spots on the image

10’‧‧‧具有測距功能的內視鏡 10’‧‧‧Endoscope with ranging function

12’‧‧‧計算單元 12’‧‧‧Computation unit

121’‧‧‧第一運算邏輯 121’‧‧‧First operational logic

122’‧‧‧第二運算邏輯 122’‧‧‧Second operational logic

123’‧‧‧第三運算邏輯 123’‧‧‧ Third operational logic

124’‧‧‧第四運算邏輯 124’‧‧‧ fourth operational logic

34’‧‧‧單波長光源 34'‧‧‧ single wavelength source

36’‧‧‧繞射光柵 36'‧‧‧Diffractive grating

42’‧‧‧準直鏡 42'‧‧‧ collimation mirror

d1‧‧‧零階亮點與正一階亮點之間的距離 D1‧‧‧Distance between the zero-order bright spot and the positive first-order bright spot

d2‧‧‧零階亮點與負一階亮點之間的距離 The distance between the d2‧‧ ‧ zero-order bright spot and the negative first-order bright spot

第1圖係本發明第一較佳實施例之結構示意圖。 BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a schematic view showing the structure of a first preferred embodiment of the present invention.

第2圖係本發明第一較佳實施例之部分元件之局部剖視示意圖,顯示觀察單元之內部狀態。 Figure 2 is a partial cross-sectional view showing a portion of the components of the first preferred embodiment of the present invention, showing the internal state of the viewing unit.

第3圖係本發明第一較佳實施例之元件示意圖,顯示繞射光柵。 Figure 3 is a schematic view of the components of the first preferred embodiment of the present invention showing a diffraction grating.

第4圖係本發明第一較佳實施例之電路方塊圖。 Figure 4 is a block diagram of a circuit of a first preferred embodiment of the present invention.

第5圖係本發明第一較佳實施例之動作示意圖。 Figure 5 is a schematic view showing the operation of the first preferred embodiment of the present invention.

第6圖係本發明第一較佳實施例之另一動作示意圖。 Figure 6 is a schematic view showing another operation of the first preferred embodiment of the present invention.

第7圖係本發明第二較佳實施例之部分元件之局部剖視示意圖。 Figure 7 is a partial cross-sectional view showing a part of the components of the second preferred embodiment of the present invention.

第8圖係本發明第二較佳實施例之電路方塊圖。 Figure 8 is a block diagram of a circuit of a second preferred embodiment of the present invention.

第9圖係本發明第二較佳實施例之動作示意圖。 Figure 9 is a schematic view showing the operation of the second preferred embodiment of the present invention.

為了詳細說明本發明之技術特點所在,茲舉以下之較佳實施例並配合圖式說明如後,其中:如第1圖至第6圖所示,本發明第一較佳實施例所提供之一種具有測距功能的內視鏡10,主要由一主機11、一管體21以及一觀察單元31所組成,其中:該主機11,藉由該管體21連接於該觀察單元31,該觀察單元31主要具有一座管32以及設於該座管32內的一單波長光源34、一繞射光柵36、一取像單元38以及一遮光隔板39。 In order to explain in detail the technical features of the present invention, the following preferred embodiments are described with reference to the accompanying drawings, wherein: FIG. 1 to FIG. 6 are provided to provide a first preferred embodiment of the present invention. An endoscope 10 having a distance measuring function is mainly composed of a main body 11, a tube body 21 and an observation unit 31, wherein the main body 11 is connected to the observation unit 31 by the tube body 21, the observation The unit 31 mainly has a tube 32, a single-wavelength light source 34 disposed in the seat tube 32, a diffraction grating 36, an image capturing unit 38, and a light shielding partition 39.

該座管32,前端具有一開口33。 The seat tube 32 has an opening 33 at its front end.

該單波長光源34,設於該座管32內,用以經由該開口33向前發出一預定波長λ之光。在實際實施時,該單波長光源34可以選用雷射光源、紅外線光源或紫外線光源,亦可選用特定波長之可見光光源;此外,該單波長光源34在元件的選擇上可以選自一發光二極體(LED),此時該發光二極體可以直接設置在該座管31內;該單波長光源34也可以選自一光纖與一發光光源之組合,而使該發光光源設置於該主機11,並使該光纖設置於該主機11並穿過該管體21而使末端位於該座管31內。由於設置光纖來導引光源所發出的光已是甚為習知的技術,因此其詳細設置方式容不再予贅述,亦請容不以圖式表示之。 The single-wavelength light source 34 is disposed in the seat tube 32 for emitting light of a predetermined wavelength λ forward through the opening 33. In actual implementation, the single-wavelength light source 34 may be a laser light source, an infrared light source or an ultraviolet light source, or a visible light source of a specific wavelength may be selected; in addition, the single-wavelength light source 34 may be selected from a light-emitting diode in the selection of components. The LED (LED), the LED can be directly disposed in the seat tube 31; the single-wavelength source 34 can also be selected from a combination of an optical fiber and an illuminating source, and the illuminating source is disposed on the host 11 And placing the optical fiber on the main body 11 and passing through the tubular body 21 so that the end is located in the seat tube 31. Since it is a well-known technique to set the optical fiber to guide the light emitted by the light source, the detailed setting method will not be described again, and it is not allowed to express it in the figure.

該繞射光柵36,具有複數縫隙361,該繞射光柵36設於該座管32內且位於該單波長光源34與該開口33之間,使通過該等縫隙361的單波長光產生繞射現象,並經由該開口33投射在一待測物體99上而顯示出一個零階亮點L0,以及分別位於該零階亮點L0兩側之一正一階亮點L1以及一負一階亮點L-1,其中由該單波長光源34發射至該零階亮點L0與其兩側相鄰亮點L1,L-1之間的向量夾角θ係依該預定波長λ以及該繞射光柵36的縫隙寬度s計算而得。其中,該向量夾角θ係藉由該縫隙361之寬度s與該單波長光之波長λ依算式s sin θ=λ來求得。由於實際上該等縫隙361是很多很密的,難以在圖式上表示清楚,因此在圖式中之該繞射光柵36之該等縫隙361乃是為了表示上的方便而顯示,而並未依實際比例繪製。 The diffraction grating 36 has a plurality of slits 361. The diffraction gratings 36 are disposed in the seat tube 32 and located between the single-wavelength light source 34 and the opening 33 to cause diffraction of single-wavelength light passing through the slits 361. The phenomenon is displayed on the object to be tested 99 through the opening 33 to display a zero-order bright point L0, and one of the first-order bright point L1 and one negative first-order bright point L-1 respectively located on the two sides of the zero-order bright point L0. The vector angle θ emitted by the single-wavelength light source 34 to the zero-order bright point L0 and the adjacent bright spots L1, L-1 on both sides is calculated according to the predetermined wavelength λ and the slit width s of the diffraction grating 36. Got it. The vector angle θ is obtained by the width s of the slit 361 and the wavelength λ of the single-wavelength light by the equation s sin θ = λ . Since the slits 361 are actually a lot of dense and difficult to express clearly in the drawings, the slits 361 of the diffraction grating 36 in the drawing are displayed for convenience of display, and are not Draw according to the actual scale.

該取像單元38,設於該座管32內,具有一影像感測器381與一透鏡組382,其中該透鏡組382具有一鏡頭放大率m,該取像單元38係經由該開口33向前方取像而取得一影像I,且該取像單元38的取像範圍係涵蓋該零階亮點L0及該正一階亮點L1以及該負一階亮點L-1。 The image capturing unit 38 is disposed in the seat tube 32 and has an image sensor 381 and a lens group 382. The lens unit 382 has a lens magnification m, and the image capturing unit 38 is oriented through the opening 33. The image is taken in front to obtain an image I, and the image capturing range of the image capturing unit 38 covers the zero-order bright point L0 and the positive first-order bright point L1 and the negative first-order bright point L-1.

該遮光隔板39,設於該座管32內,將該取像單元38隔開於該單波長光源34與該繞射光柵36的組合,使該單波長光源34所發出之單波長光不會在該座管32內部反射或折射至該取像單元38。 The light shielding plate 39 is disposed in the seat tube 32, and the imaging unit 38 is separated from the combination of the single wavelength light source 34 and the diffraction grating 36, so that the single wavelength light emitted by the single wavelength light source 34 is not It will be reflected or refracted inside the seat tube 32 to the image taking unit 38.

該主機11具有一計算單元12,該計算單元12係內建有一標準亮點像素數量P,且該計算單元12具有三種運算邏輯121,122,123,其第一運算邏輯121係為藉由該鏡頭放大率m與該影像I上的任一亮點的像素數量△P(x)與該標準亮點像素數量P進行計算,而取得一距離放大率M;其第二運算邏輯122係為藉由該距離放大率M來計算該影像I上的兩相鄰亮點之間的距離△X’(於本實施例中,距離的單位以毫米為例,以下同),進而取得投射於該待測物體99上的兩相鄰亮點之間的實際距離△X;其第三運算邏輯123係為藉由該兩相鄰亮點之間的實際距離△X配合該向量夾角θ來計算出該繞射光柵36與該零階亮點L0之間的距離D。其中,由於內視鏡在檢視待測物體99時,其檢視距離很短,一般不會超過20公分,因此在檢視距離內無論如何移動內視鏡之觀察單元31,該單波長光投射於該待測物體99上的亮點之大小幾乎不會有所變化,因此製造者可設定一標準條件(例如一固定距離),在該標準條件下所取像之單波長光亮點的像素數量,即定義為該標準亮點像素數量P。 The computing unit 12 has a computing unit 12 having a standard number of bright pixels P, and the computing unit 12 has three kinds of computing logic 121, 122, 123, and the first computing logic 121 is based on the lens magnification m and The number of pixels ΔP(x) of any bright spot on the image I and the number of standard bright pixel P are calculated to obtain a distance magnification M; the second operation logic 122 is obtained by the distance magnification M. Calculating the distance ΔX′ between the two adjacent bright spots on the image I (in the embodiment, the unit of the distance is in the form of a millimeter, the same applies hereinafter), and then the two adjacent objects projected on the object to be tested 99 are obtained. The actual distance ΔX between the bright points; the third operation logic 123 is to calculate the diffraction grating 36 and the zero-order bright point L0 by the actual distance ΔX between the two adjacent bright points and the vector angle θ. The distance between D. Wherein, since the endoscope is inspecting the object 99 to be tested, the viewing distance is short, generally not exceeding 20 cm, so that the observation unit 31 of the endoscope is moved anyway within the viewing distance, and the single-wavelength light is projected on the object. The size of the bright spot on the object to be tested 99 hardly changes, so the manufacturer can set a standard condition (for example, a fixed distance), and the number of pixels of the single-wavelength bright spot taken under the standard condition is defined. The number of pixels P is highlighted for this standard.

於本第一實施例中,該第一運算邏輯121係定義該鏡頭放大率為m,而該距離放大率為M,該影像I上的任一亮點的像素數量為△P(x),該標準亮點像素數量則為P,而藉由下述式(1)進行計算來取得該距離放大率M。 In the first embodiment, the first operation logic 121 defines the lens magnification as m, and the distance magnification is M, and the number of pixels of any bright spot on the image I is ΔP(x), The number of standard bright spot pixels is P, and the distance magnification M is obtained by calculation by the following formula (1).

藉此,在該鏡頭放大率m及該標準亮點像素數量P為固定值時,該影像I上的任一亮點的像素數量△P(x)的改變即會改變該距離放大率M的數值。 Therefore, when the lens magnification m and the standard bright spot pixel number P are fixed values, the change of the pixel number ΔP(x) of any bright spot on the image I changes the value of the distance magnification M.

而該第二運算邏輯122中,則定義該影像I上的兩相鄰亮點之間的距離為△X’,並定義兩相鄰亮點之間的實際距離為△X,而藉由下述式(2)進行計算來取得相鄰亮點之間的實際距離△X。 In the second operation logic 122, the distance between two adjacent bright spots on the image I is defined as ΔX′, and the actual distance between two adjacent bright points is defined as ΔX, and the following formula is used. (2) Perform a calculation to obtain the actual distance ΔX between adjacent bright spots.

△X=△X'×M.........式(2) △X=△X ' ×M.........(2)

藉此,經由取得該影像I上的兩相鄰亮點之間的距離△X’,配合該距離放大率M,即可計算得到該兩相鄰亮點之間的實際距離△X。 Thereby, the actual distance ΔX between the two adjacent bright spots can be calculated by obtaining the distance ΔX' between the two adjacent bright spots on the image I and matching the distance magnification M.

至於該第三運算邏輯123,則定義該向量夾角為θ,以及定義該繞射光柵36與該零階亮點L0之間的距離為D,而藉由下述式(3)進行計算來取得該繞射光柵36與該零階亮點L0之間的距離D。 As for the third operation logic 123, the vector angle is defined as θ, and the distance between the diffraction grating 36 and the zero-order bright point L0 is defined as D, and the calculation is performed by the following formula (3). The distance D between the diffraction grating 36 and the zero-order bright point L0.

在將該繞射光柵36視為該觀察單元31的情況下,該距離D即可視為該觀察單元31與該待測物體99之間的距離。 In the case where the diffraction grating 36 is regarded as the observation unit 31, the distance D can be regarded as the distance between the observation unit 31 and the object 99 to be tested.

以上說明了本第一實施例之架構,接下來以本發明所提供之內視鏡之測距方法配合前述第一實施例之架構來說明測距動作。 The architecture of the first embodiment has been described above. Next, the ranging method of the endoscope provided by the present invention is combined with the architecture of the first embodiment to describe the ranging operation.

請參閱第1圖至第6圖,本發明之內視鏡之測距方法,包含有下列步驟: Referring to FIG. 1 to FIG. 6 , the method for measuring the distance of the endoscope of the present invention comprises the following steps:

A)以該內視鏡之管體21前端的觀察單元31內設置之單波長光源34發射該預定波長λ的光,經由該繞射光柵36向該待測物體99投射,而於該待測物體99表面投射出該零階亮點L0以及分別位於該零階亮點L0兩側之該正一階亮點L1以及該負一階亮點L-1,其中由該單波長光源34發射至該零階亮點L0與其兩側亮點之間的向量夾角θ係依該預定波長λ以及該繞射光柵36的縫隙寬度s計算而得。 A) the light of the predetermined wavelength λ is emitted by the single-wavelength light source 34 disposed in the observation unit 31 at the front end of the tube 21 of the endoscope, and is projected to the object 99 to be measured via the diffraction grating 36, and the object to be tested is to be tested. The surface of the object 99 projects the zero-order bright point L0 and the positive first-order bright point L1 and the negative first-order bright point L-1 respectively located on the two sides of the zero-order bright point L0, wherein the single-wavelength light source 34 is emitted to the zero-order bright point The vector angle θ between L0 and its bright spots on both sides is calculated based on the predetermined wavelength λ and the slit width s of the diffraction grating 36.

B)以該內視鏡之取像單元38對該待測物體99取像,而取得包含該零階亮點L0、該正一階亮點L1以及該負一階亮點L-1的該影像I。 B) Taking the object 99 to be measured by the image capturing unit 38 of the endoscope to obtain the image I including the zero-order bright point L0, the positive first-order bright point L1, and the negative first-order bright point L-1.

C)以內視鏡之主機11所具有的該計算單元12來計算該影像I中的該零階亮點L0、該正一階亮點L1以及該負一階亮點L-1之像素數量,參考該計算單元12所預設的該標準亮點像素數量P,依該第一運算邏輯121以及該取像單元38本身所具有的該鏡頭放大率m來計算出該距離放大率M;再依該第二運算邏輯122來對該距離放大率M及該影像I上的兩相鄰亮點之間的距離△X’進行計算,進而得到投射於該待測物體99上的兩相鄰亮點之間的實際距離△X;最後再依該第三運算邏輯123來對該兩相鄰亮點之間的實際距離△X及該向量夾角θ進行計算,進而得到該繞射光柵36與該零階亮點L0之間的距離D。其中,該第一、第二及第三運算邏輯121,122,123之運算式可參考前述第一實施例所載。 C) calculating, by the calculation unit 12 of the host 11 of the endoscope, the number of pixels of the zero-order bright point L0, the positive first-order bright point L1, and the negative first-order bright point L-1 in the image I, refer to the calculation The number of the standard bright pixels P set by the unit 12 is calculated according to the first operation logic 121 and the lens magnification m of the image capturing unit 38 itself; and the second operation is performed according to the second operation The logic 122 calculates the distance magnification M and the distance ΔX′ between two adjacent bright spots on the image I, thereby obtaining the actual distance between two adjacent bright spots projected on the object 99 to be tested. X; finally, according to the third operation logic 123, the actual distance ΔX between the two adjacent bright points and the vector angle θ are calculated, thereby obtaining the distance between the diffraction grating 36 and the zero-order bright point L0. D. The calculation formulas of the first, second, and third operation logics 121, 122, and 123 can be referred to the foregoing first embodiment.

由上可知,本發明以光干涉的方式來量測距離的技術,可準確的測得內視鏡之觀察單元31與待測物體99之間的距離,本發明之技術特徵係不同於先前技術。 It can be seen from the above that the technique of measuring the distance by means of optical interference can accurately measure the distance between the observation unit 31 of the endoscope and the object 99 to be tested, and the technical features of the present invention are different from the prior art. .

請再參閱第7圖至第9圖,本發明第二實施例所提供之一種具有測距功能的內視鏡10’,主要概同於前揭第一實施例,不同之處在於:本第二實施例更包含有一準直鏡42’,且該計算單元12’更包含有一第四運算邏輯124’。 Referring to FIG. 7 to FIG. 9 again, an endoscope 10' having a ranging function according to a second embodiment of the present invention is mainly similar to the first embodiment disclosed above, except that: The second embodiment further includes a collimating mirror 42', and the computing unit 12' further includes a fourth operational logic 124'.

該準直鏡42’,設於該單波長光源34’與該繞射光柵36’之間,該單波長光源34’所發出之單波長光係穿透該準直鏡42’再照射至該繞射光柵36’。該準直鏡42’係用以調整該單波長光之光形而使其呈平行不擴散的狀態。 The collimating mirror 42' is disposed between the single-wavelength light source 34' and the diffraction grating 36'. The single-wavelength light emitted by the single-wavelength light source 34' penetrates the collimating mirror 42' and is irradiated thereto. Diffraction grating 36'. The collimating mirror 42' is for adjusting the light shape of the single-wavelength light so as to be in a state of being non-diffused in parallel.

該第四運算邏輯124’,主要係藉由該零階亮點L0與該正一階亮點L1之間的距離d1相對於該零階亮點L0與負一階亮點L-1之間的距離d2的差值,計算出該待測物體99表面相對於該單波長光投射該零階亮點L0方向之垂直面的傾斜角度α。 The fourth operation logic 124' is mainly caused by the distance d1 between the zero-order bright point L0 and the positive first-order bright point L1 relative to the distance d2 between the zero-order bright point L0 and the negative first-order bright point L-1. The difference value is calculated as an inclination angle α of the surface of the object 99 to be measured with respect to the vertical plane of the single-wavelength light projecting the zero-order bright point L0.

於該第四運算邏輯124’中,係定義該零階亮點L0與該正一階亮點L1之間的距離為d1,該零階亮點L0與該負一階亮點L-1之間的距離為d2,該待測物體99表面相對於該單波長光投射零階亮點L0方向之垂直面的傾斜角度為α,而藉由下述式(4)進行計算來取得該傾斜角度α。 In the fourth operation logic 124', the distance between the zero-order bright point L0 and the positive first-order bright point L1 is defined as d1, and the distance between the zero-order bright point L0 and the negative first-order bright point L-1 is D2, the inclination angle of the surface of the object 99 to be measured with respect to the vertical plane of the zero-order bright point L0 direction of the single-wavelength light projection is α, and the inclination angle α is obtained by calculation by the following formula (4).

藉此,可求得該傾斜角度α,進而可供使用者判斷待測物體99的表面是否與觀察方向不垂直而有所傾斜。 Thereby, the inclination angle α can be obtained, and then the user can judge whether the surface of the object to be tested 99 is not perpendicular to the observation direction and is inclined.

而在執行該第一、第二及第三運算邏輯121’,122’,123’時,由於該待測物體99表面有所傾斜,因此僅需將在影像中的該零階亮點L0與該正一階亮點L1之間的距離以及該零階亮點L0與該負一階亮點L-1之間的距離加以平均,即可做為兩相鄰亮點之間的距離,藉以進行運算而取得該繞射光柵36’與零階亮點L0之間的距離D。 When the first, second, and third arithmetic logics 121', 122', 123' are executed, since the surface of the object to be tested 99 is inclined, it is only necessary to set the zero-order bright point L0 in the image with the The distance between the first-order bright point L1 and the distance between the zero-order bright point L0 and the negative first-order bright point L-1 are averaged, which can be used as the distance between two adjacent bright points, thereby obtaining the operation The distance D between the diffraction grating 36' and the zero-order bright point L0.

本第二實施例之其餘結構及所能達成之功效係概同於前揭第一實施例,容不再予贅述。 The remaining structure of the second embodiment and the achievable functions are the same as those of the first embodiment, and will not be further described.

10‧‧‧具有測距功能的內視鏡 10‧‧‧Endoscope with ranging function

31‧‧‧觀察單元 31‧‧‧ observation unit

32‧‧‧座管 32‧‧‧ seat tube

33‧‧‧開口 33‧‧‧ openings

34‧‧‧單波長光源 34‧‧‧Single wavelength light source

36‧‧‧繞射光柵 36‧‧‧Diffraction grating

38‧‧‧取像單元 38‧‧‧Image capture unit

381‧‧‧影像感測器 381‧‧‧Image sensor

382‧‧‧透鏡組 382‧‧‧ lens group

39‧‧‧遮光隔板 39‧‧‧Lighting partition

99‧‧‧待測物體 99‧‧‧ objects to be tested

D‧‧‧繞射光柵與零階亮點之間的距離 D‧‧·Distance between the diffraction grating and the zero-order bright spot

L0‧‧‧零階亮點 L0‧‧‧ zero-order highlights

L1‧‧‧正一階亮點 L1‧‧‧ first-order highlights

L-1‧‧‧負一階亮點 L-1‧‧‧ negative first-order highlights

θ‧‧‧向量夾角 Θ‧‧‧ vector angle

ΔX‧‧‧待測物體上的兩相鄰亮點之間的實際距離 ΔX‧‧‧The actual distance between two adjacent bright spots on the object to be tested

Claims (13)

一種具有測距功能之內視鏡,包含有:一主機,藉由一管體連接於一觀察單元,該觀察單元主要具有一座管以及設於該座管內的一單波長光源、一繞射光柵(diffraction grating)、一取像單元以及一遮光隔板;該座管,前端具有一開口;該單波長光源,設於該座管內,用以經由該開口向前發出一預定波長之光;該繞射光柵,具有複數縫隙,該繞射光柵設於該座管內且位於該單波長光源與該開口之間,使通過該等縫隙的單波長光產生繞射現象,並經由該開口投射在一待測物體上而顯示出一個零階亮點,以及分別位於該零階亮點兩側之一正一階亮點以及一負一階亮點,其中由該單波長光源發射至該零階亮點與其兩側相鄰亮點之間的向量夾角係依該預定波長以及該繞射光柵的縫隙寬度計算而得;該取像單元,設於該座管內,具有一影像感測器與一透鏡組,其中該透鏡組具有一鏡頭放大率,該取像單元係經由該開口向前方取像而取得一影像,且該取像單元的取像範圍係涵蓋該零階亮點及該正一階亮點以及該負一階亮點;該遮光隔板,設於該座管內,將該取像單元隔開於該單波長光源與該繞射光柵的組合,使該單波長光源所發出之單波長光不會在該座管內部反射或折射至該取像單元;該主機具有一計算單元,該計算單元係內建有一標準亮點像素數量,且該計算單元具有三種運算邏輯,其第一運算邏輯係為藉由該鏡頭放大率與該影像上的任一亮點的像素數量與該標準亮點像素數量進行計算,而取得一距離放大 率;其第二運算邏輯係為藉由該距離放大率來計算該影像上的兩相鄰亮點之間的距離,進而取得投射於該待測物體上的兩相鄰亮點之間的實際距離;其第三運算邏輯係為藉由該兩相鄰亮點之間的實際距離配合該向量夾角來計算出該繞射光柵與該零階亮點之間的距離;其中,該第一運算邏輯中,係定義該鏡頭放大率為m,而該距離放大率為M,該影像上的任一亮點的像素數量為△P(x),該標準亮點像素數量則為P,而藉由下述式(1)進行計算來取得該距離放大率M; 藉此,在該鏡頭放大率及該標準亮點像素數量為固定值時,該影像上的任一亮點的像素數量的改變即會改變該距離放大率的數值。 An endoscope with a distance measuring function includes: a main body connected to an observation unit by a tube body, the observation unit mainly has a tube and a single wavelength light source and a diffraction disposed in the seat tube a grating (diffraction grating), an image capturing unit and a light shielding partition; the seat tube has an opening at the front end; the single wavelength light source is disposed in the seat tube for emitting a predetermined wavelength of light through the opening The diffraction grating has a plurality of slits, and the diffraction grating is disposed in the seat tube and located between the single-wavelength light source and the opening to cause a diffraction phenomenon of single-wavelength light passing through the slits, and through the opening Projecting on an object to be measured to display a zero-order bright spot, and a positive first-order bright spot and a negative first-order bright spot respectively on both sides of the zero-th order bright spot, wherein the single-wavelength light source is emitted to the zero-order bright spot and The vector angle between adjacent bright spots on both sides is calculated according to the predetermined wavelength and the slit width of the diffraction grating; the image capturing unit is disposed in the seat tube and has an image sensor and a lens group. among them The lens unit has a lens magnification, and the image capturing unit obtains an image by taking an image forward through the opening, and the image capturing range of the image capturing unit covers the zero-order bright spot and the positive first-order bright spot and the negative one a light-blocking partition, disposed in the seat tube, separating the image capturing unit from the combination of the single-wavelength light source and the diffraction grating, so that the single-wavelength light emitted by the single-wavelength light source does not The interior of the seat tube is internally reflected or refracted to the image capturing unit; the host has a computing unit having a standard number of bright pixels, and the computing unit has three kinds of arithmetic logic, and the first computing logic is The lens magnification is calculated by the number of pixels of any bright spot on the image and the number of standard bright pixels, and a distance magnification is obtained; the second operation logic is to calculate the two on the image by the distance magnification. The distance between adjacent bright spots, and then the actual distance between two adjacent bright spots projected on the object to be tested; the third operation logic is the actual distance between the two adjacent bright points Combining the vector angle to calculate a distance between the diffraction grating and the zero-order bright point; wherein, in the first operation logic, the lens magnification is defined as m, and the distance magnification is M, and the image is on the image. The number of pixels of any bright spot is ΔP(x), and the number of standard bright spot pixels is P, and the distance magnification M is obtained by calculation by the following formula (1); Thereby, when the lens magnification and the number of standard bright spot pixels are fixed values, the change in the number of pixels of any bright spot on the image changes the value of the distance magnification. 依據申請專利範圍第1項之具有測距功能之內視鏡,其中:更包含有一準直鏡,設於該單波長光源與該繞射光柵之間,該單波長光源所發出之單波長光係穿透該準直鏡再照射至該繞射光柵,並藉由該準直鏡之作用而使單波長光準直而呈不擴散狀態。 An endoscope having a ranging function according to claim 1 of the patent application, further comprising: a collimating mirror disposed between the single-wavelength light source and the diffraction grating, the single-wavelength light emitted by the single-wavelength light source The collimating mirror is penetrated to the diffraction grating, and the single-wavelength light is collimated by the action of the collimating mirror to be in a non-diffusion state. 依據申請專利範圍第2項之具有測距功能之內視鏡,其中:該第二運算邏輯中,係定義該影像上的兩相鄰亮點之間的距離為△X’,並定義兩相鄰亮點之間的實際距離為△X,而藉由下述式(2)進行計算來取得兩相鄰亮點之間的實際距離△X;△X=△X'×M.........式(2)藉此,經由取得該影像上的兩相鄰亮點之間的距離,配合該距離放大率,即可計算得到該兩相鄰亮點之間的實際距離。 According to the second aspect of the patent application scope, the endoscope has a ranging function, wherein: in the second operation logic, the distance between two adjacent bright spots on the image is defined as ΔX′, and two adjacent The actual distance between the bright points is ΔX, and the actual distance ΔX between the two adjacent bright points is obtained by the following formula (2); ΔX = ΔX ' × M....... By formula (2), the actual distance between the two adjacent bright points can be calculated by obtaining the distance between two adjacent bright spots on the image and matching the distance magnification. 依據申請專利範圍第3項之具有測距功能之內視鏡,其中:該第三運算邏輯中,係定義該向量夾角為θ,以及定義該繞射光柵與該零階亮點之間的距離為D,而藉由下述式(3)進行計算來取得該繞射光柵與該零階亮點之間的距離; According to the third aspect of the patent application scope, the endoscope has a ranging function, wherein: in the third operation logic, the vector angle is defined as θ, and the distance between the diffraction grating and the zero-order bright point is defined as D, and calculating by the following formula (3) to obtain the distance between the diffraction grating and the zero-order bright point; 依據申請專利範圍第1項之具有測距功能之內視鏡,其中:該計算單元更包含有一第四運算邏輯,藉由該零階亮點與該正一階亮點之間的距離相對於該零階亮點與該負一階亮點之間的距離差,計算出該待測物體表面相對於該單波長光投射該零階亮點方向之垂直面的傾斜角度。 An endoscope having a ranging function according to claim 1 of the patent application, wherein: the calculating unit further comprises a fourth operation logic, wherein a distance between the zero-order bright point and the positive first-order bright point is relative to the zero And a distance difference between the step bright point and the negative first-order bright point, and calculating an inclination angle of the surface of the object to be tested relative to a vertical plane of the single-wavelength light projecting the zero-order bright point direction. 依據申請專利範圍第5項之具有測距功能之內視鏡,其中:該第四運算邏輯中,係定義該零階亮點與該正一階亮點之間的距離為d1,該零階亮點與該負一階亮點之間的距離為d2,該待測物體表面相對於該單波長光投射該零階亮點方向之垂直面的傾斜角度為α,而藉由下述式(4)進行計算來取得該傾斜角度α; 藉由上述式(4),可求得該傾斜角度α。 According to the fifth aspect of the patent application scope, there is an endoscope with a ranging function, wherein: in the fourth operation logic, a distance between the zero-order bright point and the positive first-order bright point is defined as d1, and the zero-order bright point is The distance between the negative first-order bright points is d2, and the inclination angle of the surface of the object to be tested relative to the vertical plane of the single-wavelength light projecting the zero-order bright point direction is α, and is calculated by the following formula (4). Obtaining the tilt angle α; The inclination angle α can be obtained by the above formula (4). 依據申請專利範圍第1項之具有測距功能之內視鏡,其中:該單波長光源係選自一發光二極體(LED)或一光纖與一發光光源之組合。 An endoscope having a ranging function according to claim 1 wherein the single wavelength source is selected from a light emitting diode (LED) or a combination of an optical fiber and an illuminating light source. 一種內視鏡之測距方法,包含有下列步驟:A)以一內視鏡之管體前端的觀察單元內所設置之單波長光源發射一預定波長的光,經由一繞射光柵向一待測物體投射,而於該待測物體表面投射出一個零階亮點以及分別位於該零階亮點兩側之一正一階亮點以及一負一階亮點,其 中由該單波長光源發射至該零階亮點與其兩側相鄰亮點之間的向量夾角係依該預定波長以及該繞射光柵的縫隙寬度計算而得;B)以該內視鏡之取像單元對該待測物體取像,而取得包含該零階亮點、該正一階亮點以及該負一階亮點的一影像;以及C)以該內視鏡之主機所具有的一計算單元來計算該影像中的該零階亮點、該正一階亮點以及該負一階亮點之像素數量,參考該計算單元所預設的一標準亮點像素數量,依一第一運算邏輯以及該取像單元本身所具有的鏡頭放大率來計算出一距離放大率;再依一第二運算邏輯來對該距離放大率及該影像上的兩相鄰亮點之間的距離進行計算,進而得到投射於該待測物體上的兩相鄰亮點之間的實際距離;最後再依一第三運算邏輯來對該兩相鄰亮點之間的實際距離及該向量夾角進行計算,進而得到該繞射光柵與該零階亮點之間的距離;其中:該第一運算邏輯中,係定義該鏡頭放大率為m,而該距離放大率為M,該影像上的任一亮點的像素數量為△P(x),該標準亮點像素數量則為P,而藉由下述式(1)進行計算來取得該距離放大率M; 藉此,在該鏡頭放大率及該標準亮點像素數量為固定值時,該影像上的任一亮點的像素數量的改變即會改變該距離放大率的數值。。 A method for ranging of an endoscope includes the following steps: A) emitting a predetermined wavelength of light by a single-wavelength light source disposed in an observation unit at the front end of a tube of an endoscope, and waiting through a diffraction grating Measuring the object projection, and projecting a zero-order bright spot on the surface of the object to be tested and a positive first-order bright spot and a negative first-order bright spot respectively on both sides of the zero-th order bright spot, wherein the single-wavelength light source is emitted to the zero-order light point The angle between the bright spot and the adjacent bright spot on both sides is calculated according to the predetermined wavelength and the slit width of the diffraction grating; B) taking the image of the object to be measured by the image capturing unit of the endoscope, and obtaining An image including the zero-order bright point, the positive first-order bright point, and the negative first-order bright point; and C) calculating, by the computing unit of the host of the endoscope, the zero-order bright point in the image, the positive The first-order bright point and the number of pixels of the negative first-order bright point refer to a standard bright-point pixel number preset by the calculating unit, and calculate a distance according to a first operation logic and a lens magnification of the image capturing unit itself. amplification And calculating a distance between the distance magnification and the distance between two adjacent bright spots on the image according to a second operation logic, thereby obtaining an actual distance between two adjacent bright spots projected on the object to be tested; Finally, according to a third operation logic, the actual distance between the two adjacent bright points and the angle of the vector are calculated, thereby obtaining a distance between the diffraction grating and the zero-order bright point; wherein: the first operation logic In the middle, the lens magnification is m, and the distance magnification is M, the number of pixels of any bright spot on the image is ΔP(x), and the number of standard bright pixels is P, and by the following Equation (1) is calculated to obtain the distance magnification M; Thereby, when the lens magnification and the number of standard bright spot pixels are fixed values, the change in the number of pixels of any bright spot on the image changes the value of the distance magnification. . 依據申請專利範圍第8項之內視鏡之測距方法,其中:該第二運算邏輯中,係定義該影像上的兩相鄰亮點之間的距離為△X’,並定義兩相鄰亮點之間的實際距離為△X,而藉由下述式(2)進行計算來取得兩相鄰亮點之間的實際距離△X;△X=△X'×M.........式(2) 藉此,經由取得該影像上的兩相鄰亮點之間的距離,配合該距離放大率,即可計算得到該兩相鄰亮點之間的實際距離。 According to the method for measuring the endoscope according to Item 8 of the patent application scope, wherein: in the second operation logic, the distance between two adjacent bright spots on the image is defined as ΔX′, and two adjacent bright spots are defined. The actual distance between them is ΔX, and the actual distance ΔX between two adjacent bright points is obtained by the following formula (2); ΔX=ΔX ' ×M........ Equation (2) Thereby, the actual distance between the two adjacent bright points can be calculated by obtaining the distance between two adjacent bright spots on the image and matching the distance magnification. 依據申請專利範圍第9項之內視鏡之測距方法,其中:該第三運算邏輯中,係定義該向量夾角為θ,以及定義該繞射光柵與該零階亮點之間的距離為D,而藉由下述式(3)進行計算來取得該繞射光柵與該零階亮點之間的距離; According to the method for measuring the endoscope of the ninth application patent, wherein: in the third operation logic, the vector angle is defined as θ, and the distance between the diffraction grating and the zero-order bright point is defined as D And calculating by the following formula (3) to obtain the distance between the diffraction grating and the zero-order bright point; 依據申請專利範圍第8項之內視鏡之測距方法,其中:該計算單元更包含有一第四運算邏輯,藉由該零階亮點與該正一階亮點之間的距離相對於該零階亮點與該負一階亮點之間的距離差,計算出該待測物體表面相對於該單波長光投射該零階亮點方向之垂直面的傾斜角度。 According to the distance measuring method of the endoscope according to claim 8 , the calculating unit further includes a fourth operation logic, wherein the distance between the zero-order bright point and the positive first-order bright point is relative to the zero-order A distance difference between the bright point and the negative first-order bright point is calculated, and an inclination angle of the surface of the object to be tested relative to a vertical plane in which the single-wavelength light projects the direction of the zero-order bright point is calculated. 依據申請專利範圍第11項之內視鏡之測距方法,其中:該第四運算邏輯中,係定義該零階亮點與該正一階亮點之間的距離為d1,該零階亮點與該負一階亮點之間的距離為d2,該待測物體表面相對於該單波長光投射該零階亮點方向之垂直面的傾斜角度為α,而藉由下述式(4)進行計算來取得該傾斜角度α; 藉由上述式(4),可求得該傾斜角度α。 According to the method for measuring the endoscope of the eleventh application patent, wherein: in the fourth operation logic, the distance between the zero-order bright point and the positive first-order bright point is defined as d1, and the zero-order bright point and the The distance between the negative first-order bright points is d2, and the inclination angle of the surface of the object to be tested relative to the vertical plane of the zero-order bright point is α, and is calculated by the following formula (4). The inclination angle α; The inclination angle α can be obtained by the above formula (4). 依據申請專利範圍第8項之內視鏡之測距方法,其中:該單波長光源係選自一發光二極體(LED)或一光纖與一發光光源之組合。 According to the distance measuring method of the endoscope of claim 8, wherein the single wavelength source is selected from a light emitting diode (LED) or a combination of an optical fiber and an illuminating light source.
TW105120513A 2016-06-29 2016-06-29 Endoscopic with distance measuring function and distance measuring method TWI597042B (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
TW105120513A TWI597042B (en) 2016-06-29 2016-06-29 Endoscopic with distance measuring function and distance measuring method
DE102017111188.3A DE102017111188B4 (en) 2016-06-29 2017-05-23 Endoscope with distance determining function and distance determining method used therein
JP2017103518A JP6373452B2 (en) 2016-06-29 2017-05-25 Endoscope with distance measuring function and distance measuring method
CN201710386601.4A CN107544135B (en) 2016-06-29 2017-05-26 Endoscope with distance measuring function and distance measuring method
US15/612,161 US10151913B2 (en) 2016-06-29 2017-06-02 Endoscope with distance measurement function and distance measurement method used in same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105120513A TWI597042B (en) 2016-06-29 2016-06-29 Endoscopic with distance measuring function and distance measuring method

Publications (2)

Publication Number Publication Date
TWI597042B true TWI597042B (en) 2017-09-01
TW201800049A TW201800049A (en) 2018-01-01

Family

ID=60662363

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105120513A TWI597042B (en) 2016-06-29 2016-06-29 Endoscopic with distance measuring function and distance measuring method

Country Status (5)

Country Link
US (1) US10151913B2 (en)
JP (1) JP6373452B2 (en)
CN (1) CN107544135B (en)
DE (1) DE102017111188B4 (en)
TW (1) TWI597042B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112740666A (en) 2018-07-19 2021-04-30 艾科缇弗外科公司 System and method for multi-modal depth sensing in an automated surgical robotic vision system
JP2022526626A (en) 2019-04-08 2022-05-25 アクティブ サージカル, インコーポレイテッド Systems and methods for medical imaging
KR102605924B1 (en) * 2021-04-29 2023-11-24 자이메드 주식회사 Method for determining location of lesion and endoscopic system therefor
CN115143929A (en) * 2022-03-28 2022-10-04 南京大学 Endoscopic range finder based on optical fiber bundle

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3817619A (en) 1967-08-08 1974-06-18 Olympus Optical Co Device for measuring distance of an object from the forward end portion of an endoscope
JPS6079109U (en) * 1983-11-08 1985-06-01 オムロン株式会社 distance measuring device
JPH0282104A (en) * 1988-09-20 1990-03-22 Toshiba Corp Measuring endoscope device
US4980763A (en) * 1989-06-12 1990-12-25 Welch Allyn, Inc. System for measuring objects viewed through a borescope
GB9713680D0 (en) * 1997-06-27 1997-09-03 Keymed Medicals & Ind Equip Improvements in or relating to optical scopes with measuring systems
WO2003050590A1 (en) * 2001-12-10 2003-06-19 University Of Pittsburgh Endoscopic imaging system
US7720554B2 (en) * 2004-03-29 2010-05-18 Evolution Robotics, Inc. Methods and apparatus for position estimation using reflected light sources
JP4377745B2 (en) * 2004-05-14 2009-12-02 オリンパス株式会社 Electronic endoscope
JP2011000258A (en) 2009-06-18 2011-01-06 Fujifilm Corp Endoscope system, endoscope, and distance-irradiation angle measuring method
JP5437087B2 (en) * 2010-01-15 2014-03-12 オリンパス株式会社 Endoscope apparatus and program
CN201725085U (en) * 2010-04-12 2011-01-26 全崴科技有限公司 Handheld endoscopic device with steering control
US8878920B2 (en) * 2011-07-12 2014-11-04 Karl Storz Imaging, Inc. Method and apparatus for protection from high intensity light
JP2013048693A (en) * 2011-08-30 2013-03-14 Olympus Corp Endoscope device
CN104061901B (en) * 2013-03-19 2016-08-31 力诚仪器有限公司 Three-dimensional method for measuring distance and system thereof
JP6091410B2 (en) 2013-12-26 2017-03-08 オリンパス株式会社 Endoscope apparatus operating method and endoscope system
JP6257371B2 (en) * 2014-02-21 2018-01-10 オリンパス株式会社 Endoscope system and method for operating endoscope system
EP3113666A4 (en) * 2014-03-02 2017-12-27 V.T.M. (Virtual Tape Measure) Technologies Ltd. Endoscopic measurement system and method
TWI502186B (en) * 2014-05-08 2015-10-01 Utechzone Co Ltd A bright spot detection device for filtering foreign matter noise and its method
EP3236652A4 (en) * 2014-12-19 2018-07-11 Olympus Corporation Endoscope and endoscope system
CN205198154U (en) * 2015-09-16 2016-05-04 广州乔铁医疗科技有限公司 3D cholangioscope system with range finding function

Also Published As

Publication number Publication date
CN107544135B (en) 2020-04-17
CN107544135A (en) 2018-01-05
JP6373452B2 (en) 2018-08-15
JP2018004624A (en) 2018-01-11
US10151913B2 (en) 2018-12-11
DE102017111188A1 (en) 2018-01-04
US20180003943A1 (en) 2018-01-04
TW201800049A (en) 2018-01-01
DE102017111188B4 (en) 2022-08-18

Similar Documents

Publication Publication Date Title
US10383549B2 (en) Intraoral three-dimensional measuring device, intraoral three-dimensional measuring method, and intraoral three-dimensional measurement result display method
TWI597042B (en) Endoscopic with distance measuring function and distance measuring method
JP6779199B2 (en) Equipment for dental confocal imaging
JP6818702B2 (en) Optical inspection equipment and optical inspection method
JP6661221B2 (en) System, method, and computer program for 3D contour data collection and caries detection
TWI454746B (en) Optical characteristic measuring apparatus using light reflected from object to be measured and focus adjusting method therefor
WO2012147679A1 (en) Endoscopic device and measurement method
WO2017168984A1 (en) Imaging device, imaging method
CN104520669B (en) For measuring measurement apparatus, the device and method of measurement object
JP4774517B2 (en) Particle measuring apparatus and method
JP2017138251A (en) Chromatic confocal sensor and measurement method
JP4133753B2 (en) Method of measuring optical interference of detour surface and interferometer device for detour surface measurement
JP6891345B2 (en) An endoscope that uses structured light to measure the size of physiological features
US9250186B2 (en) Profilometry systems and methods based on absorption and optical frequency conversion
CN106576136B (en) The working method of photographic device, photographic device
JP5839990B2 (en) Contrast light source device and method for forming contrast light source
JP2009250909A (en) Measuring device
JP2012228459A (en) Endoscopic apparatus, and measuring method
JP6688712B2 (en) Method of measuring reflection spectrum
US20230000331A1 (en) Endoscope system, endoscope, and distance calculation method
JP7043577B2 (en) Optical inspection equipment, methods and programs
JP6210832B2 (en) Measuring method and measuring device
JP5385206B2 (en) Photometric device
JP2020005745A (en) Endoscope apparatus
JP2013083509A (en) Shape measuring apparatus and adjusting method for shape measuring apparatus