CN111161852B - Endoscope image processing method, electronic equipment and endoscope system - Google Patents
Endoscope image processing method, electronic equipment and endoscope system Download PDFInfo
- Publication number
- CN111161852B CN111161852B CN201911399032.2A CN201911399032A CN111161852B CN 111161852 B CN111161852 B CN 111161852B CN 201911399032 A CN201911399032 A CN 201911399032A CN 111161852 B CN111161852 B CN 111161852B
- Authority
- CN
- China
- Prior art keywords
- image
- images
- specific area
- series
- alignment
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 27
- 238000005286 illumination Methods 0.000 claims abstract description 35
- 238000013507 mapping Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 3
- 238000012937 correction Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 12
- 238000001228 spectrum Methods 0.000 abstract description 11
- 230000004927 fusion Effects 0.000 abstract description 4
- 238000010827 pathological analysis Methods 0.000 abstract description 4
- 230000009466 transformation Effects 0.000 description 44
- 238000010586 diagram Methods 0.000 description 33
- 238000000034 method Methods 0.000 description 21
- 230000003595 spectral effect Effects 0.000 description 21
- 239000011159 matrix material Substances 0.000 description 18
- 238000006073 displacement reaction Methods 0.000 description 15
- 208000037062 Polyps Diseases 0.000 description 10
- 238000004422 calculation algorithm Methods 0.000 description 9
- 238000003384 imaging method Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000003745 diagnosis Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 238000007689 inspection Methods 0.000 description 3
- 210000000056 organ Anatomy 0.000 description 3
- 230000008855 peristalsis Effects 0.000 description 3
- 210000002784 stomach Anatomy 0.000 description 3
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000002496 gastric effect Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012634 optical imaging Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 230000029058 respiratory gaseous exchange Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 238000002834 transmittance Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000001072 colon Anatomy 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 201000010099 disease Diseases 0.000 description 1
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 1
- 238000003708 edge detection Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 210000000936 intestine Anatomy 0.000 description 1
- 230000003902 lesion Effects 0.000 description 1
- 230000035772 mutation Effects 0.000 description 1
- 231100000915 pathological change Toxicity 0.000 description 1
- 230000036285 pathological change Effects 0.000 description 1
- 230000001575 pathological effect Effects 0.000 description 1
- 230000007170 pathology Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 238000011524 similarity measure Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
- WFKWXMTUELFFGS-UHFFFAOYSA-N tungsten Chemical compound [W] WFKWXMTUELFFGS-UHFFFAOYSA-N 0.000 description 1
- 229910052721 tungsten Inorganic materials 0.000 description 1
- 239000010937 tungsten Substances 0.000 description 1
- 230000009278 visceral effect Effects 0.000 description 1
- 229910052724 xenon Inorganic materials 0.000 description 1
- FHNFHKCVQCLJFQ-UHFFFAOYSA-N xenon atom Chemical compound [Xe] FHNFHKCVQCLJFQ-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H30/00—ICT specially adapted for the handling or processing of medical images
- G16H30/20—ICT specially adapted for the handling or processing of medical images for handling medical images, e.g. DICOM, HL7 or PACS
Landscapes
- Health & Medical Sciences (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Radiology & Medical Imaging (AREA)
- Engineering & Computer Science (AREA)
- Epidemiology (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Primary Health Care (AREA)
- Public Health (AREA)
- Endoscopes (AREA)
Abstract
Description
技术领域technical field
本发明涉及医疗器械领域,尤其涉及一种内窥镜图像处理方法、电子设备及内窥镜系统。The invention relates to the field of medical instruments, in particular to an endoscope image processing method, electronic equipment and an endoscope system.
背景技术Background technique
内窥镜系统是人体腔道早期疾病诊断和治疗的重要医疗器械,其包括内窥镜镜体和照明单元。使用时,将软质或硬质管状的内窥镜镜体插入人体内部,在照明单元的照射下进行摄像,以借助图像观察人体脏器的组织形态和病变情况,进行诊断。由于人体组织(包括病变组织)对某些特定波长的光很敏感,对某些特定波长的光不敏感,因此,为了凸显白光照射下被淹没的特征信息,常使用多种不同波长的光分别照射在被检查对象上,摄取一系列图像,获得人体组织(包括病变组织)的光谱图谱或光谱数据立方体,通过研究光谱曲线特性并分析光谱病理,减少诊断中对取样和病理检验的依赖。The endoscope system is an important medical device for the diagnosis and treatment of early diseases of the human cavity, which includes an endoscope body and a lighting unit. When in use, the soft or hard tubular endoscope body is inserted into the human body, and the camera is taken under the illumination of the lighting unit, so as to observe the tissue morphology and pathological changes of human organs with the help of images for diagnosis. Since human tissues (including diseased tissues) are sensitive to certain specific wavelengths of light but not sensitive to certain specific wavelengths of light, in order to highlight the submerged characteristic information under white light irradiation, a variety of different wavelengths of light are often used Irradiate on the object to be inspected, take a series of images, and obtain the spectral atlas or spectral data cube of human tissue (including diseased tissue). By studying the characteristics of the spectral curve and analyzing the spectral pathology, the dependence on sampling and pathological testing in diagnosis can be reduced.
目前,对一系列图像进行分析处理的方式是先从这些图像中任意选取多幅图像进行图像识别、对准和伪彩色赋值,最终形成一幅彩色图像。但是,连续摄取被检查对象的一系列图像时,两次照明成像的间隔时间内,人体呼吸、心跳、胃肠蠕动等会造成被检查对象的移动或变形,而且用户在远端操作内窥镜会使内窥镜发生抖动或旋转,导致连续摄取的一系列图像中,每幅图像间存在明显的偏移;另外,内窥镜的视场角很大,具有桶形畸变,增大了图像间的偏移。当前直接在整幅图像范围内对选取的图像进行对准,计算量大且难以保证关注区域的对准效果,进而导致无法获取某个位置准确的光谱曲线,致使后续光谱病理分析的准确性大大降低,甚至完全错误。At present, the way to analyze and process a series of images is to select multiple images randomly from these images for image recognition, alignment and false color assignment, and finally form a color image. However, when a series of images of the inspected object are taken continuously, human respiration, heartbeat, gastrointestinal peristalsis, etc. will cause the object to be inspected to move or deform during the interval between two illumination imaging, and the user operates the endoscope at the far end It will cause the endoscope to vibrate or rotate, resulting in a significant offset between each image in a series of images taken continuously; in addition, the endoscope has a large field of view with barrel distortion, which increases the image quality. offset between. At present, the selected images are directly aligned within the entire image range, which requires a large amount of calculation and it is difficult to ensure the alignment effect of the area of interest, which leads to the inability to obtain an accurate spectral curve at a certain position, resulting in a significant increase in the accuracy of subsequent spectral pathological analysis. lower, or even outright wrong.
发明内容Contents of the invention
鉴于上述背景技术的缺陷,本发明的目的是提供一种内窥镜图像处理方法、电子设备及内窥镜系统,用以解决现有内窥镜系统使用中图像处理效果差,无法为后续研究提供准确的数据和良好的图像的问题。In view of the above-mentioned defects in the background technology, the purpose of the present invention is to provide an endoscope image processing method, electronic equipment and an endoscope system to solve the problem of poor image processing effect in the use of the existing endoscope system, which cannot be used for follow-up research. Provide accurate data and a good image of the problem.
为了解决上述技术问题,本发明提供了一种内窥镜图像处理方法,包括:In order to solve the above technical problems, the present invention provides a method for processing endoscopic images, including:
在目标图像中标识特定区域,其中,目标图像是从被检查对象在照明单元照射下所拍摄的一系列图像中任意选取的一幅图像;计算所述特定区域在所述一系列图像中的其他幅图像内所能产生的偏移范围;在所述偏移范围内将所述一系列图像按照所述特定区域进行对准。Identify a specific area in the target image, wherein the target image is an image selected arbitrarily from a series of images taken by the inspected object under the illumination of the lighting unit; calculate other values of the specific area in the series of images A range of offsets that can be generated within the images; aligning the series of images according to the specific area within the offset range.
为了解决上述技术问题,本发明还提供了一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述程序时实现如上所述的内窥镜图像处理方法的步骤。In order to solve the above-mentioned technical problems, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, The steps of the above-mentioned endoscopic image processing method are realized.
为了解决上述技术问题,本发明又提供了一种内窥镜系统,包括内窥镜镜体,还包括如上所述的电子设备,所述处理器与所述内窥镜镜体内的摄像模块通信连接。In order to solve the above technical problems, the present invention further provides an endoscope system, which includes an endoscope body, and also includes the above-mentioned electronic device, the processor communicates with the camera module in the endoscope body connect.
本发明的上述技术方案具有以下有益效果:The technical scheme of the present invention has the following beneficial effects:
本发明的内窥镜图像处理方法,在拍摄的一系列图像中任意选取的一幅图像内标识特定区域,计算特定区域在一系列图像中的其他幅图像内所能产生的偏移范围,在偏移范围内将一系列图像按特定区域进行对准;该内窥镜图像处理方法,计算特定区域在一系列图像中的其他幅图像内的偏移范围,在所能产生的偏移范围内将所述一系列图像按特定区域进行对准,大大降低了计算量,提高了特定区域的对准效果;使用对准后的图像,可生成准确的光谱数据立方体或光谱曲线,为诊断、研究提供准确的数据;对准后,还可将特征信息丰富的图像进行融合,融合后的图像,特征鲜明,利于快速、准确地诊断。In the endoscopic image processing method of the present invention, a specific area is identified in an image randomly selected in a series of images, and the offset range that the specific area can produce in other images in the series of images is calculated. Align a series of images according to a specific area within the offset range; the endoscopic image processing method calculates the offset range of a specific area in other images in a series of images, within the offset range that can be generated Aligning the series of images according to specific areas greatly reduces the amount of calculation and improves the alignment effect of specific areas; using the aligned images, accurate spectral data cubes or spectral curves can be generated for diagnosis and research Provide accurate data; after alignment, images with rich feature information can also be fused, and the fused images have distinct features, which is conducive to rapid and accurate diagnosis.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明内窥镜图像处理方法一实施方案的流程图;Fig. 1 is the flow chart of an embodiment of endoscopic image processing method of the present invention;
图2是图1所示的实施方案中照明单元照射的多种照明光的一种组合的光谱示意图;Fig. 2 is a schematic diagram of the spectrum of a combination of multiple illumination lights irradiated by the illumination unit in the embodiment shown in Fig. 1;
图3是图1所示的实施方案中照明单元照射的多种照明光的另一种组合的光谱示意图;3 is a schematic diagram of the spectrum of another combination of multiple illumination lights irradiated by the illumination unit in the embodiment shown in FIG. 1;
图4是图1中一系列图像与图2所示的多种照明光的对应图;Fig. 4 is a corresponding diagram of a series of images in Fig. 1 and various illumination lights shown in Fig. 2;
图5是在目标图像中标识特定区域的一实施例的示意图;Fig. 5 is a schematic diagram of an embodiment of identifying a specific region in a target image;
图6是在目标图像中人工指定的某一区域只有一个像素点时的示意图;Fig. 6 is a schematic diagram when there is only one pixel in a certain area artificially specified in the target image;
图7是在目标图像中标识特定区域的另一实施例的示意图;Fig. 7 is a schematic diagram of another embodiment of identifying a specific region in a target image;
图8是在目标图像中标识特定区域的又一实施例的流程图;Fig. 8 is a flowchart of yet another embodiment for identifying a specific region in a target image;
图9是图8所示流程所对应的处理结果示意图;Fig. 9 is a schematic diagram of processing results corresponding to the process shown in Fig. 8;
图10是在目标图像中标识出多个特定区域的示意图;Fig. 10 is a schematic diagram of identifying multiple specific regions in a target image;
图11是计算图5所示的特定区域的偏移范围的一种实施方案的示意图;Fig. 11 is a schematic diagram of an embodiment of calculating the offset range of the specific region shown in Fig. 5;
图12是计算图5所示的特定区域的偏移范围的另一种实施方案的示意图;Fig. 12 is a schematic diagram of another embodiment for calculating the offset range of the specific region shown in Fig. 5;
图13是在实时图像范围内选定的待标定像素点;Fig. 13 is the selected pixel points to be marked in the real-time image range;
图14是待标定像素点在Δt时间的偏移范围圆的标定过程示意图;Fig. 14 is a schematic diagram of the calibration process of the offset range circle of the pixel point to be calibrated at time Δt;
图15是图1所示对准步骤一实施例的流程图;Fig. 15 is a flowchart of an embodiment of the alignment step shown in Fig. 1;
图16是按照图15所示的方法进行对准的示意图;Fig. 16 is a schematic diagram of alignment according to the method shown in Fig. 15;
图17是图1所示对准步骤另一实施例的流程图;Figure 17 is a flowchart of another embodiment of the alignment step shown in Figure 1;
图18是本发明内窥镜图像处理方法另一实施例的流程图;Fig. 18 is a flowchart of another embodiment of the endoscopic image processing method of the present invention;
图19是按照图18所示方式对一系列图像进行初步对准的示意图;Fig. 19 is a schematic diagram of preliminary alignment of a series of images in the manner shown in Fig. 18;
图20是相似变换包含的位移变换的示意图;Fig. 20 is a schematic diagram of the displacement transformation included in the similarity transformation;
图21是相似变换包含的旋转变换的示意图;Fig. 21 is a schematic diagram of the rotation transformation included in the similarity transformation;
图22是相似变换包含的缩放变换的示意图;Fig. 22 is a schematic diagram of scaling transformation included in similarity transformation;
图23是图18所示图像对准调整步骤一实施例的流程图;FIG. 23 is a flowchart of an embodiment of the image alignment adjustment step shown in FIG. 18;
图24是图19所示的一组图像初步对准后的位移轨迹示意图;Fig. 24 is a schematic diagram of displacement trajectories after preliminary alignment of a group of images shown in Fig. 19;
图25是图19所示的一组图像初步对准后的旋转轨迹示意图;Fig. 25 is a schematic diagram of the rotation trajectory after the initial alignment of a group of images shown in Fig. 19;
图26是图19所示的一组图像初步对准后的缩放轨迹示意图;Fig. 26 is a schematic diagram of the zooming trajectory after a group of images shown in Fig. 19 are initially aligned;
图27是本发明内窥镜系统一实施例的结构示意图。Fig. 27 is a schematic structural view of an embodiment of the endoscope system of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
在本发明实施例的描述中,需要说明的是,除非另有明确的规定和限定,术语“第一”“第二”是为了清楚说明产品部件进行的编号,不代表任何实质性区别。“上”“下”“左”“右”的方向均以附图所示方向为准。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明实施例中的具体含义。In the description of the embodiments of the present invention, it should be noted that, unless otherwise specified and limited, the terms "first" and "second" are for the purpose of clearly describing the numbering of product components and do not represent any substantial difference. The directions of "up", "down", "left" and "right" are all subject to the directions shown in the attached drawings. Those of ordinary skill in the art can understand the specific meanings of the above terms in the embodiments of the present invention according to specific situations.
在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In the description of the present invention, it should be noted that unless otherwise specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection. Connected, or integrally connected; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediary, and it can be the internal communication of two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention in specific situations.
图1是本发明内窥镜图像处理方法一实施方案的流程图,图1所示的内窥镜图像处理方法包括步骤:Fig. 1 is the flowchart of an embodiment of the endoscope image processing method of the present invention, and the endoscope image processing method shown in Fig. 1 comprises steps:
步骤S110,在目标图像中标识特定区域,其中,目标图像是从被检查对象在照明单元照射下所拍摄的一系列图像中任意选取的一幅图像。Step S110, identifying a specific area in the target image, wherein the target image is an image randomly selected from a series of images taken by the object under inspection under the illumination of the lighting unit.
步骤S120,计算特定区域在一系列图像中的其他幅图像内所能产生的偏移范围。Step S120, calculating the offset range that the specific area can produce in other images in the series of images.
步骤S130,在偏移范围内将一系列图像按照特定区域进行对准。Step S130, aligning a series of images according to specific regions within the offset range.
其中,照明单元可以采用氙灯作为光源,也可以使用宽光谱LED或钨灯或其他宽光谱作为光源。光源经滤光片组、滤光片轮和滤光片组控制机构,依次滤出多种照明光。具体地,可以按需选用具有不同中心波长的窄带滤光片或具有不同波长范围的宽带滤光片或不安装滤光片,组成滤光片组;滤光片按一定顺序,比如中心波长从小到大,镶嵌在滤光片轮上;滤光片的透光率可以不同,以调整每种照明光的强度;滤光片控制机构控制滤光片轮旋转,切换滤光片,即可滤出所需的多种照明光。图2是图1所示的实施方案中照明单元照射的多种照明光的一种组合的光谱示意图,其包括25种只有一个中心波长的窄带光201~225,共连续覆盖400-760nm可见光范围,滤光片设计成不同的透光率,对照明强度进行调整,以使内窥镜镜体内的摄像单元摄取的一系列图像的亮度尽量均衡。Wherein, the lighting unit may use a xenon lamp as a light source, or may use a wide-spectrum LED or a tungsten lamp or other wide-spectrum light sources as a light source. The light source passes through the optical filter group, the optical filter wheel and the optical filter group control mechanism to successively filter out various illumination lights. Specifically, narrow-band filters with different central wavelengths or broadband filters with different wavelength ranges or no filters can be selected as required to form a filter group; the filters are in a certain order, such as the central wavelength is small To large, it is inlaid on the filter wheel; the light transmittance of the filter can be different to adjust the intensity of each illumination light; the filter control mechanism controls the rotation of the filter wheel, and the filter can be switched to filter Various lighting lights required. Fig. 2 is a schematic diagram of the spectrum of a combination of various illumination lights irradiated by the illumination unit in the embodiment shown in Fig. 1, which includes 25 kinds of narrow-band light 201-225 with only one central wavelength, covering the visible light range of 400-760nm continuously in total , the filters are designed with different light transmittances, and the illumination intensity is adjusted so that the brightness of a series of images captured by the camera unit in the endoscope body is as balanced as possible.
除此之外,照明单元的光源还可以使用对应所需多种照明光的多种LED实现,这种实施方案,可省去滤光片,通过电子控制方式依次点亮照明光路中的每种LED,或通过机械方式依次将每种LED切换进照明光路。另外,采用LED作为光源时,可以将LED安装在内窥镜镜体的顶端,但内窥镜镜体的顶端空间狭小,能安装的LED的数量受到限制。In addition, the light source of the lighting unit can also be realized by using a variety of LEDs corresponding to the required lighting lights. In this implementation, the filter can be omitted, and each light in the lighting path can be illuminated sequentially by electronic control. LEDs, or mechanically switch each LED into the lighting path in turn. In addition, when LEDs are used as the light source, the LEDs can be installed on the top of the endoscope body, but the space at the top of the endoscope body is narrow, and the number of LEDs that can be installed is limited.
需要说明的是,上述提及的多种照明光并不局限于图2所示的25种窄带光,除此之外,每种照明光可以具有一个以上的中心波长及带宽,即每种照明光可以是具有一个或多个中心波长的窄带光,和/或具有一个或多个波长范围的宽带光的任意组合,尤其是可能对特定病症敏感或可能会凸显被检查对象某方面特征的照明光。在一系列图像的摄取中,每种照明光可以以不同的强度出现多次。图3是照明单元照射的多种照明光的另一种组合的光谱示意图,包括一种具有一个中心波长的窄带光201、一种具有两个中心波长的窄带光226、一种具有一个波长范围的宽带光227和一种具有两个波长范围的宽带光228。It should be noted that the various illumination lights mentioned above are not limited to the 25 kinds of narrow-band lights shown in Figure 2. In addition, each illumination light can have more than one central wavelength and bandwidth, that is, each illumination light The light can be any combination of narrowband light with one or more central wavelengths, and/or broadband light with one or more wavelength ranges, especially illumination that may be sensitive to a particular condition or may accentuate an aspect of the subject being examined Light. Each illumination light can appear multiple times at different intensities during the capture of a series of images. 3 is a schematic diagram of the spectrum of another combination of various illumination lights irradiated by the lighting unit, including a narrow-band light 201 with one central wavelength, a narrow-band light 226 with two central wavelengths, and a narrow-band light 226 with a wavelength range A broadband light 227 and a broadband light 228 having two wavelength ranges.
图4是图1中一系列图像与图2所示的多种照明光的对应图。照明光201经内窥镜镜体引导,照射在被检查对象上,摄像模块摄取对应的一幅图像301,完成一次照明成像;照明单元切换下一种照明光202,摄像模块摄取对应的另一幅图像302,完成另一次照明成像;照明单元继续切换下一种照明光203,摄像模块摄取对应的一幅图像303,完成再一次照明成像;如此往复,照明单元依次切换照明光,摄像模块依次摄取对应的一幅图像,直至照明单元切换到照明光225,摄像模块摄取完对应的一幅图像325,完成一系列图像的照明成像,这一系列图像构成一组图像330。设相邻两次照明成像的时间间隔为Δt。需要说明的是,本发明提供的内窥镜图像处理方法同样适用于单一波长照明下摄取的多幅图像。FIG. 4 is a corresponding diagram of a series of images in FIG. 1 and various illumination lights shown in FIG. 2 . The illuminating light 201 is guided by the endoscope mirror body and irradiates on the object to be inspected. The camera module captures a corresponding image 301 to complete one illumination imaging; the illuminating unit switches to the next illumination light 202, and the camera module captures the corresponding another image 302 to complete another lighting imaging; the lighting unit continues to switch the next lighting light 203, and the camera module captures a corresponding image 303 to complete another lighting imaging; in this way, the lighting unit switches the lighting light sequentially, and the camera module sequentially A corresponding image is captured until the lighting unit switches to the illumination light 225 , and the camera module captures the corresponding image 325 to complete the lighting imaging of a series of images, and the series of images constitute a group of images 330 . Let the time interval between two adjacent lighting imaging be Δt. It should be noted that the endoscopic image processing method provided by the present invention is also applicable to multiple images taken under single-wavelength illumination.
按照图像拍摄的时间顺序,若目标图像为拍摄的第一幅图像,则可以先计算特定区域在第二幅图像的偏移范围,在计算出的偏移范围内将第二幅图像与目标图像对准,获得特定区域在第二幅图像中准确的对应区域,接着计算第三幅图像相比于该对应区域的偏移范围,在该偏移范围内将第三幅图像对准至目标图像,如此往复至所有图像均对准至目标图像。除此之外,也可以先计算出目标图像外的其他每一幅图像相对于目标图像的偏移范围,然后再将这些图像在偏移范围内逐一对准至目标图像。当然,若目标图像为拍摄的第i幅图像,采用与上一致的方法对第i+1之后的图像计算偏移范围并进行对准,计算前i-1幅图像的偏移范围时采用逆向运算的方式进行。According to the time sequence of image capture, if the target image is the first image captured, the offset range of the specific area in the second image can be calculated first, and the second image can be compared with the target image within the calculated offset range Align to obtain the exact corresponding area of a specific area in the second image, then calculate the offset range of the third image compared to the corresponding area, and align the third image to the target image within the offset range , and so on until all images are aligned to the target image. In addition, the offset range of each image other than the target image relative to the target image can also be calculated first, and then these images are aligned to the target image within the offset range one by one. Of course, if the target image is the i-th image captured, use the method consistent with the above to calculate the offset range and align the image after the i+1th image, and use the reverse direction when calculating the offset range of the first i-1 image way of operation.
为了叙述方便,后续结合图4中的一系列图像并均以第一幅图像作为目标图像进行具体说明,对于采用其他图像作为目标对象的情形不再赘述。For the convenience of description, a series of images in FIG. 4 will be combined and the first image will be used as the target image for specific description later, and the situation of using other images as the target object will not be repeated.
图5是在目标图像中标识特定区域的一实施例的示意图。在目标图像中人工指定某一区域作为特定区域。具体地,借助鼠标401在一组图像330的第一幅图像301中划定一个区域403,以该区域403作为特定区域。其中,区域403包含关注的一颗息肉402。指定了特定区域的图像作为后续对准的目标图像。另外,也可以在一组图像330的其他任意一幅图像中划定特定区域。除了鼠标401之外,还可以用触摸板、键盘、语音输入装置、摄像头、扫描仪等其他任意的输入设备辅助人工指定特定区域;用户可以通过点选、勾画、输入坐标、输入区域、选择预设的区域、移动特定形状的选择框等方式指定特定区域。Fig. 5 is a schematic diagram of an embodiment of identifying a specific region in a target image. Manually designate a certain area in the target image as a specific area. Specifically, a region 403 is defined in the first image 301 of the group of images 330 by means of the mouse 401 , and this region 403 is used as a specific region. Wherein, the area 403 includes a polyp 402 of interest. Images of specific regions were designated as target images for subsequent alignment. In addition, a specific region may also be defined in any other image of the group of images 330 . In addition to the mouse 401, other arbitrary input devices such as a touch panel, a keyboard, a voice input device, a camera, and a scanner can also be used to assist manual designation of a specific area; Specify a specific area by means of a set area, moving a selection box of a specific shape, etc.
其中,用户在通过输入设备指定区域时,可能只指定了特别小的区域,比如图6所示,在目标图像中人工指定的区域409只有一个像素点。一个像素点极易受噪声干扰,且无法只按一个像素点进行后续对准,针对这种情况,则以区域409为中心,将其扩大为5x5像素的区域410,作为最终的特定区域。备选的,还可以将其扩大为9x9或13x13或其他较原来略大的区域。Wherein, when the user specifies an area through an input device, the user may only specify a particularly small area. For example, as shown in FIG. 6 , the artificially specified area 409 in the target image has only one pixel. A pixel is very susceptible to noise interference, and subsequent alignment cannot be performed by only one pixel. In this case, the area 409 is centered and expanded to a 5x5 pixel area 410 as the final specific area. Alternatively, it can be expanded to 9x9 or 13x13 or other slightly larger areas.
备选的,还可以使用其他方式在目标图像中标识特定区域。图7是在目标图像中标识特定区域的另一实施例的示意图,无需使用输入设备。具体地,先在实时图像中心预设一个边长为100像素的方形区域404,并用虚线框提示;摄取被检查对象对应多种照明光的一组图像330前,先调整内窥镜镜体顶端的方向和位置,使方形区域对准关注区域,即对准息肉402,并使息肉402充满方形区域404;然后才摄取图像,并将第一幅图像301中的方形区域404,作为特定区域。其中,息肉402也可以未充满方形区域404,只要其落入方形区域404内即可。另外,可以在实时图像的任意位置预设任意形状和大小的区域,也可以用任意一幅图像的所述区域作为特定区域。Alternatively, other methods may also be used to identify a specific region in the target image. Fig. 7 is a schematic diagram of another embodiment of identifying a specific region in a target image without using an input device. Specifically, first preset a square area 404 with a side length of 100 pixels in the center of the real-time image, and use a dotted frame to prompt; The direction and position of the top, so that the square area is aligned with the area of interest, that is, the polyp 402 is aligned, and the polyp 402 is filled with the square area 404; then the image is taken, and the square area 404 in the first image 301 is used as a specific area . Wherein, the polyp 402 may not fill the square area 404 as long as it falls within the square area 404 . In addition, an area of any shape and size can be preset at any position of the real-time image, and the area of any image can also be used as a specific area.
图8是在目标图像中标识特定区域的又一实施例的流程图,图9是图8所示流程所对应的处理结果示意图,同样不需要借助输入设备。步骤S410,对已摄取的一组图像330的第一幅图像301,使用canny算子或sobel算子或laplacian算子或roberts算子或prewitt算子进行边缘检测;步骤S420,基于断点处边缘方向保持假设的闭合轮廓提取方法,进行断裂边缘的连接,得到闭合的轮廓,并对闭合轮廓进行提取,提取出息肉402的轮廓;步骤S430,然后对提取的息肉轮廓进行一定比例或像素数量的扩张得到区域408,并选定区域408为特定区域。Fig. 8 is a flow chart of another embodiment for identifying a specific region in a target image, and Fig. 9 is a schematic diagram of a processing result corresponding to the flow shown in Fig. 8 , which also does not require an input device. Step S410, using the canny operator, sobel operator, laplacian operator, roberts operator or prewitt operator to perform edge detection on the first image 301 of the captured group of images 330; step S420, based on the breakpoint The closed contour extraction method of keeping the edge direction assuming that the broken edges are connected to obtain a closed contour, and the closed contour is extracted to extract the contour of the polyp 402; step S430, and then perform a certain ratio or number of pixels on the extracted polyp contour The region 408 is obtained by the expansion of , and the region 408 is selected as a specific region.
除此之外,还可以将用户输入位置指定手段、预设位置指定手段、自动识别位置指定手段中的两种或多种结合起来,更快速准确地指定关注的区域为特定区域。在一种实施方案中,先通过自动识别位置指定手段选定多个区域,再通过用户输入位置指定手段从所述多个区域中指定一个区域,并进行完善,选定为特定区域。In addition, two or more of the user input position designation means, the preset position designation means, and the automatic identification position designation means can also be combined to designate the concerned area as a specific area more quickly and accurately. In one embodiment, a plurality of regions are first selected by means of automatic position identification, and then one region is designated from the plurality of regions by means of user input position designation, and then perfected to be selected as a specific region.
通常在图5、图7、图9中示例的特定区域403、404、408都较大,无需采用图6所示出的方法进行扩大。Generally, the specific regions 403 , 404 , and 408 illustrated in FIG. 5 , FIG. 7 , and FIG. 9 are relatively large, and do not need to be enlarged by the method shown in FIG. 6 .
特定区域往往是用户关注的区域,图5、图6、图7及图9所示的实施例中,仅示出了将一个区域指定为特定区域的情形,而有时用户也需要指定另外的区域作为特定区域,用作关注区域的参照区域。比如,用户想获取病变部位的光谱曲线,同时又想与正常部位的光谱曲线作对比,这种情况下,首先要保证关注区域的对准效果,其次要兼顾参照区域的对准效果(其可以比关注区域的差)。图10是在目标图像中标识出多个特定区域的示意图,特定区域501是关注区域,包含着息肉402;特定区域502是参照区域,未发现病变。为保证关注区域501的对准效果,并兼顾参照区域502的对准效果,对关注区域501和参照区域502施加不同的对准权重用于后续对准。比如,一种施加权重的实施方案为,用户通过输入设备按既定规则输入每个特定区域的关注度;按每个特定区域的关注度之比施加相应比值的对准权重。作为参照区域的特定区域往往较小,所以也可以计算每个特定区域的面积,按面积之比施加相应比值的对准权重,以此作为一种自动施加对准权重的实施方案。计算偏移范围时对每个特定区域分别进行偏移范围计算。The specific area is often the area that the user pays attention to. In the embodiments shown in Fig. 5, Fig. 6, Fig. 7 and Fig. 9, only one area is designated as the specific area, and sometimes the user also needs to designate another area As a specific area, it is used as a reference area for the area of interest. For example, the user wants to obtain the spectral curve of the diseased part, and at the same time wants to compare it with the spectral curve of the normal part. worse than the region of interest). FIG. 10 is a schematic diagram of identifying multiple specific areas in the target image. The specific area 501 is an attention area, including a polyp 402; the specific area 502 is a reference area, and no lesion is found. In order to ensure the alignment effect of the attention region 501 and take into account the alignment effect of the reference region 502 , different alignment weights are applied to the attention region 501 and the reference region 502 for subsequent alignment. For example, an implementation scheme for applying weights is that the user inputs the degree of attention of each specific region according to a predetermined rule through an input device; an alignment weight of a corresponding ratio is applied according to the ratio of the degree of attention of each specific region. The specific area used as the reference area is often small, so the area of each specific area can also be calculated, and the alignment weight of the corresponding ratio can be applied according to the ratio of the area, as an implementation of automatically applying the alignment weight. When calculating the offset range, the offset range calculation is performed separately for each specific area.
在相邻两次照明成像的时间间隔Δt中,目标图像中的特定区域在脏器蠕动、内窥镜镜体抖动或旋转等的影响下会发生偏移,需要在待对准图像中计算所能产生的偏移范围。针对上述不同的标识特定区域的方法,以下仅以图5所示的特定区域为例进行具体介绍,其他标识特定区域的方式与此相同,不再赘述。In the time interval Δt between two adjacent illumination imaging, the specific area in the target image will be shifted under the influence of visceral peristalsis, endoscope mirror body shaking or rotation, etc., and it is necessary to calculate the The range of offsets that can be generated. With regard to the above-mentioned different methods for identifying a specific area, the specific area shown in FIG. 5 is used as an example for a specific introduction below. Other methods for identifying a specific area are the same and will not be described again.
图11是计算图5所示的特定区域的偏移范围的一种实施方案的示意图。首先,在一组图像330的第一幅图像301中指定的特定区域403确定x坐标最小、x坐标最大、y坐标最小、y坐标最大共计四个像素点601;读取四个像素点601在Δt时间的偏移范围圆602,确定四个像素点601在x、y方向上可能偏离特定区域403最大的四个位置603;通过四个位置603确定一个边分别平行于x轴、y轴的矩形区域604,矩形区域604即为计算的特定区域403在第二幅图像302中所能产生的偏移范围。需要说明的是,像素点的数量不少于三个,三个像素点可以确定一个三角形区域,以该三角形区域作为特定区域403在第二幅图像302中所能产生的偏移范围;当为五个或六个点或更多时,可以确定一个多边形区域,以该多边形区域作为403在第二幅图像302中所能产生的偏移范围。FIG. 11 is a schematic diagram of an embodiment of calculating the offset range of the specific area shown in FIG. 5 . First, in the specific area 403 specified in the first image 301 of a group of images 330, determine the minimum x coordinate, the maximum x coordinate, the minimum y coordinate, and the maximum four pixel points 601 in total; read the four pixel points 601 In the offset range circle 602 at time Δt, determine the four positions 603 where the four pixel points 601 may deviate from the maximum in the x and y directions from the specific area 403; through the four positions 603, determine a side parallel to the x-axis and y-axis respectively The rectangular area 604 is the calculated offset range that the specific area 403 can generate in the second image 302 . It should be noted that the number of pixels is not less than three, and three pixels can determine a triangular area, which is used as the offset range that the specific area 403 can produce in the second image 302; when it is When there are five or six points or more, a polygonal area can be determined, and this polygonal area is used as 403 the offset range that can be generated in the second image 302 .
像素点在Δt时间的偏移范围圆602预先通过标定获得,存储在存储模块中,需要时从存储模块中读取。在偏移范围604内,按特定区域403将待对准图像302对准到目标图像301。对准之后,即可获得特定区域403在第二幅图像302中准确的对应区域,进而可根据对应区域估计特定区域403在第三幅图像303中所能产生的偏移范围;然后在偏移范围内,按特定区域403将待对准图像303对准到目标图像301。如此往复,即可在相应的偏移范围内,按特定区域403将图像302~325依次对准到目标图像301。The offset range circle 602 of the pixel point at time Δt is obtained through calibration in advance, stored in the storage module, and read from the storage module when needed. Within the offset range 604 , the image to be aligned 302 is aligned to the target image 301 according to the specific region 403 . After the alignment, the exact corresponding area of the specific area 403 in the second image 302 can be obtained, and then the range of offset that the specific area 403 can produce in the third image 303 can be estimated according to the corresponding area; Within the range, the image to be aligned 303 is aligned to the target image 301 according to a specific area 403 . By reciprocating in this way, the images 302 - 325 can be sequentially aligned to the target image 301 according to the specific area 403 within the corresponding offset range.
图12是计算图5所示的特定区域的偏移范围的另一种实施方案的示意图。从存储模块分别读取特定区域403边界上每个像素点601在Δt时间的偏移范围圆602,将所有偏移范围圆602叠加,由叠加区域的外边界确定一个新的区域605,即为计算出的特定区域403在第二幅图像302中所能产生的偏移范围,同时由叠加区域的内边界还确定了一个区域606,对准时可作为附加限制条件,即特定区域403边界上像素点601向内偏移的限制。需要说明的是,也可以采用特定区域403边界上间隔选取的多个像素点,分别读取这些像素点在Δt时间的偏移范围圆602,以同时外切于这些偏移范围圆602的边界作为计算出的特定区域403在第二幅图像302中所能产生的偏移范围,其中,像素点的数量不少于三个,由三个偏移范围圆602可以唯一确定一个外接圆或者按比例放大特定区域403边界所形成的外边界。当然,多个像素点可以全部设置在特定区域403边界上;也可以部分临近特定区域403边界,另一部分位于特定区域403边界上,对此,本发明实施例不做具体限定。FIG. 12 is a schematic diagram of another embodiment for calculating the offset range of the specific area shown in FIG. 5 . Read the offset range circle 602 of each pixel point 601 on the boundary of the specific area 403 at the time Δt from the storage module, superimpose all the offset range circles 602, and determine a new area 605 by the outer boundary of the superimposed area, which is The calculated offset range that the specific area 403 can produce in the second image 302, and an area 606 is also determined by the inner boundary of the superimposed area, which can be used as an additional restriction during alignment, that is, the pixels on the boundary of the specific area 403 Point 601 limits the inward offset. It should be noted that, a plurality of pixel points selected at intervals on the boundary of the specific area 403 can also be used to read the offset range circles 602 of these pixel points at the time Δt, so as to circumscribe the boundaries of these offset range circles 602 at the same time As the calculated offset range that the specific region 403 can produce in the second image 302, the number of pixels is not less than three, and a circumscribed circle can be uniquely determined by the three offset range circles 602 or by The outer boundary formed by the boundary of the specific area 403 is scaled up. Certainly, the plurality of pixel points may all be set on the boundary of the specific area 403 ; or part of them may be adjacent to the boundary of the specific area 403 , and the other part may be located on the boundary of the specific area 403 , which is not specifically limited in this embodiment of the present invention.
摄取图像期间,人体呼吸、心跳、胃肠蠕动等会造成被检查对象的移动或变形;用户在远端操作内窥镜,虽然会尽量持稳内窥镜镜体,但内窥镜镜体的顶端还是会有轻微抖动或旋转;加之内窥镜具有的桶形畸变,上述各种因素综合导致了连续摄取的一系列图像中,每幅图像间存在明显的偏移,但上述偏移不是无限的,而是具有可估计的范围,通过估计该偏移范围,在偏移范围内将图像进行对准,可大大降低对准的计算量,提高对准的精度。During image capture, human respiration, heartbeat, gastrointestinal peristalsis, etc. will cause the movement or deformation of the inspected object; the user operates the endoscope at the far end, although he will try to hold the endoscope body as steady as possible, but the endoscope body will There will still be a slight shake or rotation of the tip; coupled with the barrel distortion of the endoscope, the combination of the above factors leads to a significant offset between each image in a series of consecutive images, but the above offset is not infinite Instead, it has an estimable range. By estimating the offset range and aligning the images within the offset range, the calculation amount of alignment can be greatly reduced and the alignment accuracy can be improved.
图13和图14解释了如何对像素点在Δt时间的偏移范围圆602进行标定。如图13所示,在整幅图像范围内选定均匀分布的15×15个待标定像素点601,图14是待标定像素点在Δt时间的偏移范围圆的标定过程示意图。在典型观察距离下,使第一个待标定像素点601对准被检查对象中具有明显特征的点状部位,比如胃部的小息肉,以不小于Δt的时间间隔摄取两幅图像。人工在第1幅图像中找出小息肉的中心位置点701,在第二幅图像中找出小息肉的中心位置点702,确定位置点702相对于位置点701的坐标偏移,完成第一个待标定像素点601的第一组标定数据的获取。如此往复,针对第一个待标定像素点601,获取100组标定数据,获取每组标定数据前都要随机变换所述典型观察距离和所述具有明显特征的点状部位。将所述100组标定数据绘制在一起,保持所有位置点702相对于位置点701的坐标偏移,并使所有位置点701重合;以701为圆心绘制圆,恰好包含住所有的位置点702,得到半径为r的圆703。由于找出具有明显特征的点状部位的中心位置点701和702时,存在误差,所以还需要将半径r乘以一个裕量系数,比如1.2,得到半径为R的圆602,即为该待标定像素点601在Δt时间的偏移范围圆602。如此往复,依次对每个待标定像素点601进行标定。对于未标定的像素点,按到相邻的已标定像素点的距离,对相邻的已标定像素点的偏移范围圆半径进行反距离加权插值,得到该像素点的偏移范围圆半径,进而得到该像素点的偏移范围圆602。FIG. 13 and FIG. 14 explain how to calibrate the offset range circle 602 of the pixel point at time Δt. As shown in FIG. 13 , 15×15 pixel points 601 to be calibrated are selected uniformly distributed within the entire image range. FIG. 14 is a schematic diagram of the calibration process of the offset range circle of the pixel points to be calibrated at time Δt. At a typical viewing distance, the first pixel to be calibrated 601 is aligned with a point-shaped site with obvious features in the object under inspection, such as a small polyp in the stomach, and two images are taken at a time interval not less than Δt. Manually find out the central position point 701 of the small polyp in the first image, find out the central position point 702 of the small polyp in the second image, determine the coordinate offset of the position point 702 relative to the position point 701, and complete the first Acquisition of the first set of calibration data of the pixels to be calibrated 601. In this way, for the first pixel point 601 to be calibrated, 100 sets of calibration data are obtained, and before each set of calibration data is obtained, the typical observation distance and the point-shaped part with obvious characteristics are randomly changed. Draw the 100 sets of calibration data together, keep the coordinate offset of all position points 702 relative to position point 701, and make all position points 701 coincide; draw a circle with 701 as the center of the circle, just include all position points 702, A circle 703 of radius r is obtained. Because there is an error when finding out the center position points 701 and 702 of the point-shaped parts with obvious characteristics, it is also necessary to multiply the radius r by a margin coefficient, such as 1.2, to obtain a circle 602 with a radius of R, which is the Mark the offset range circle 602 of the pixel point 601 at time Δt. Reciprocating in this way, each to-be-marked pixel point 601 is marked in turn. For an unmarked pixel point, according to the distance to the adjacent marked pixel point, the inverse distance weighted interpolation is performed on the offset range circle radius of the adjacent marked pixel point to obtain the offset range circle radius of the pixel point, Further, the offset range circle 602 of the pixel point is obtained.
其中,待标定像素点的数量并不限于15×15个,可以根据具体的图像分辨率调整,增多或减少;待标定像素点还可以其他排布方式分布于整幅图像范围内。所述100组标定数据并不需要一次性获取,可以在临床检查中积累,或者从临床视频、图像资料中摘取,数据组数也不限于100。所述裕量系数可以根据数据获取情况和数据组数合理调整。还可以针对不同类型的内窥镜和器官分别进行标定,以提高标定精度,比如胃镜和胃、结肠镜和结肠等。Among them, the number of pixels to be calibrated is not limited to 15×15, and can be adjusted, increased or decreased according to the specific image resolution; the pixels to be calibrated can also be distributed in other arrangements within the entire image range. The 100 sets of calibration data do not need to be acquired at one time, but can be accumulated during clinical examination, or extracted from clinical video and image data, and the number of data sets is not limited to 100. The margin coefficient can be reasonably adjusted according to the data acquisition situation and the number of data groups. It can also be calibrated separately for different types of endoscopes and organs to improve the calibration accuracy, such as gastroscope and stomach, colonoscope and colon, etc.
需要说明的是,按照与上述Δt时间内偏移范围圆进行标定类同的方式,同样可以进行NΔt(N≥2)时间内偏移范围圆的标定,进而利用NΔt时间内偏移范围圆对间隔N-1幅图像的各图像进行特定区域的偏移范围的确定。比如,可以同时标定Δt、2Δt、3Δt等多个时间内的偏移范围圆,将采集的一系列图像分为特征相对丰富的图像和特征相对模糊的图像两类,然后先对特征相对丰富的图像进行处理,每幅图像中携带有采集时间信息,根据其与目标图像的时间间隔距离,选择相应时间段内的偏移范围圆确定特定区域在该图像所能产生的偏移范围,然后进行对准。重复该过程至特征相对丰富的图像全部对准后,再用同样的方法将特征相对模糊的图像依次对准。It should be noted that, in the same manner as the calibration of the offset range circle within the above Δt time, the calibration of the offset range circle within the NΔt (N≥2) time can also be performed, and then the offset range circle within the NΔt time is used to The offset range of a specific area is determined for each image at intervals of N−1 images. For example, it is possible to calibrate the offset range circles in multiple times such as Δt, 2Δt, and 3Δt at the same time, and divide a series of images collected into two categories: images with relatively rich features and images with relatively fuzzy features, and then first analyze the images with relatively rich features The image is processed, and each image carries acquisition time information. According to the time interval distance between it and the target image, select the offset range circle in the corresponding time period to determine the offset range that a specific area can produce in the image, and then carry out alignment. Repeat this process until all the images with relatively rich features are aligned, and then use the same method to align the images with relatively blurred features in turn.
还需要说明的是,上述标定中,不仅可以用圆形界定像素点的偏移范围,获得偏移范围圆,还可以用其他任意形状,比如方形,获得偏移范围方块。It should also be noted that in the above calibration, not only circles can be used to define the offset range of pixels to obtain the offset range circle, but other arbitrary shapes, such as squares, can also be used to obtain the offset range square.
另外,对于图7所示的在目标图像中标识特定区域的方法,由于特定区域是预设的,所以可以根据标定好的NΔt(N≥1)时间内的偏移范围,预先计算好特定区域在一系列图像中的其他幅图像内的偏移范围,如此,拍摄一系列图像后,即可省去图1所示的步骤S120,直接进行步骤S130。In addition, for the method of identifying a specific area in the target image shown in Figure 7, since the specific area is preset, the specific area can be pre-calculated according to the offset range within the calibrated NΔt (N≥1) time The offset range in other images in the series of images. In this way, after the series of images are captured, step S120 shown in FIG. 1 can be omitted, and step S130 can be directly performed.
图15是图1所示对准步骤一实施例的流程图。图16是按照图15所示的方法在图11所示的偏移范围内将图像按图5所示的特定区域进行对准的示意图。对准步骤具体包括:步骤S810,分别在目标图像301中的特定区域403和待对准图像302中的偏移范围604内,使用加速鲁棒特征(Speed Up Robust Feature,简称SURF)算法搜索特征点,图16中特征点810即为众多特征点中的一个;步骤S820,用快速近似最近邻搜索库(Fast Library forApproximate Nearest Neighbors,简称FLANN)匹配特征点对,获得804~809等众多特征点对;步骤S830,使用随机抽样一致(Random Sample Consensus,简称RANSAC)算法筛选特征点对,比如筛选出特征点对805~808等;步骤S840,使用筛选出的特征点对的坐标,联立方程组求解图像302到图像301的单应性变换矩阵,作为对准变换矩阵,即获取了对准映射关系,从而实现在偏移范围604内按特定区域403将待对准图像302对准到目标图像301。对准之后,即可获得特定区域403在第2幅图像302中准确的对应区域821,进而可根据对应区域821估计特定区域403在第3幅图像303中所能产生的偏移范围;进而在图像303中的偏移范围内,按特定区域403将待对准图像303对准到目标图像301。如此往复,即可实现在相应的偏移范围内按特定区域403将图像302~325依次对准到目标图像301。FIG. 15 is a flowchart of an embodiment of the alignment step shown in FIG. 1 . FIG. 16 is a schematic diagram of aligning images according to the specific area shown in FIG. 5 within the offset range shown in FIG. 11 according to the method shown in FIG. 15 . The alignment step specifically includes: step S810, within the specific region 403 in the target image 301 and the offset range 604 in the image to be aligned 302, respectively, using the Speed Up Robust Feature (SURF for short) algorithm to search for features point, the feature point 810 in Figure 16 is one of many feature points; step S820, use the Fast Library for Approximate Nearest Neighbors (FLANN for short) to match feature point pairs, and obtain many feature points such as 804-809 Right; step S830, use the Random Sample Consensus (RANSAC for short) algorithm to screen feature point pairs, for example, filter out feature point pairs 805 to 808; step S840, use the coordinates of the screened out feature point pairs, and the simultaneous equation The group solves the homography transformation matrix from the image 302 to the image 301 as the alignment transformation matrix, that is, the alignment mapping relationship is obtained, so as to align the image 302 to be aligned to the target according to the specific area 403 within the offset range 604 Image 301. After alignment, the accurate corresponding area 821 of the specific area 403 in the second image 302 can be obtained, and then the range of offset that the specific area 403 can produce in the third image 303 can be estimated according to the corresponding area 821; and then in Within the offset range in the image 303 , the image to be aligned 303 is aligned to the target image 301 according to a specific region 403 . By reciprocating in this way, the images 302 - 325 can be sequentially aligned to the target image 301 according to the specific area 403 within the corresponding offset range.
本发明提供的内窥镜图像处理方法,仅在特定区域和相应的偏移范围内搜索特征点并进行后续处理,相比对整幅图像进行处理,大大降低了计算量,而且借助偏移范围的限制,保证了特定区域的对准效果。备选的,对准变换部803还可以使用筛选出的特征点对的坐标,联立方程组求解相似变换或仿射变换矩阵,作为对准变换矩阵,将待对准图像对准到目标图像。The endoscopic image processing method provided by the present invention only searches for feature points in a specific area and the corresponding offset range and performs subsequent processing. Compared with processing the entire image, the amount of calculation is greatly reduced, and the offset range The limitation of , guarantees the alignment effect in a specific area. Alternatively, the alignment transformation unit 803 can also use the coordinates of the selected feature point pairs and the simultaneous equations to solve the similarity transformation or affine transformation matrix as the alignment transformation matrix to align the image to be aligned with the target image .
另外,还可以使用基于Marr小波改进的SIFT算法的遥感影像配准,或基于显著性和ORB的红外和可见光图像配准算法,在偏移范围内按特定区域将待对准图像对准到目标图像。其中,基于Marr小波改进的SIFT算法的遥感影像配准是利用尺度空间理论下的Marr小波对目标图像和待对准图像进行特征提取,然后利用欧氏距离对目标图像和待对准图像的特征点进行初对准,再根据随机采样一致法,对初对准结果进行精对准。基于显著性和ORB的红外和可见光图像配准算法是利用优化的HC-GHS显著性检测算法得到图像的显著性结构图,再利用ORB算法在显著性结构图上进行特征点检测,利用泰勒级数筛选出鲁棒性强的特征点,并根据特征点的方向进行分组匹配,最后利用汉明距离实现特征点的匹配。备选的,还可以将特定区域作为对准模板,在相应的偏移范围内扫过,使用互信息作为相似性测度进行对准;或者,使用B样条自由形变或demons算法等基于灰度的弹性对准方法进行对准。In addition, remote sensing image registration based on Marr wavelet improved SIFT algorithm, or infrared and visible light image registration algorithm based on saliency and ORB can be used to align the image to be aligned to the target in a specific area within the offset range image. Among them, the remote sensing image registration based on the Marr wavelet improved SIFT algorithm is to use the Marr wavelet under the scale space theory to extract the features of the target image and the image to be aligned, and then use the Euclidean distance to compare the features of the target image and the image to be aligned Points are initially aligned, and then the results of the initial alignment are fine-aligned according to the random sampling consensus method. The infrared and visible light image registration algorithm based on saliency and ORB is to use the optimized HC-GHS saliency detection algorithm to obtain the saliency structure map of the image, and then use the ORB algorithm to detect the feature points on the saliency structure map. The feature points with strong robustness are screened out, and the group matching is performed according to the direction of the feature points, and finally the matching of the feature points is realized by using the Hamming distance. Alternatively, it is also possible to use a specific area as an alignment template, sweep within the corresponding offset range, and use mutual information as a similarity measure for alignment; or, use B-spline free deformation or demons algorithm based on grayscale The elastic alignment method is used for alignment.
图17是图1所示对准步骤另一实施例的流程图,较图15所示的实施方案,在搜索特征点之前,先进行步骤S800,即根据具体的内窥镜型号读取存储在存储模块中的畸变系数,对特定区域和相应的偏移范围进行畸变校正,以消除内窥镜的摄像模块带来的桶形畸变,所述畸变系数可以通过棋盘标定板,使用张氏相机标定法,预先对内窥镜进行标定而获得。完成图像对准之后,进行步骤S850,即再次使用所述畸变系数,将对准映射关系换算到畸变校正之前,实现待对准图像到目标图像的对准。Fig. 17 is a flow chart of another embodiment of the alignment step shown in Fig. 1. Compared with the embodiment shown in Fig. 15, before searching for feature points, step S800 is performed first, that is, according to the specific endoscope model, the data stored in the The distortion coefficient in the storage module is used to correct the distortion of the specific area and the corresponding offset range to eliminate the barrel distortion caused by the camera module of the endoscope. The distortion coefficient can be calibrated by using the Zhang camera through the checkerboard calibration board The method is obtained by pre-calibrating the endoscope. After the image alignment is completed, step S850 is performed, that is, the distortion coefficient is used again to convert the alignment mapping relationship to before distortion correction, so as to realize the alignment of the image to be aligned to the target image.
当标识的特定区域为多个时,需要对多个特定区域施加不同的对准权重。下面以图15所示的图像对准流程为例,说明图像对准时如何使用所述对准权重进行对准。首先,在筛选特征点对时,保证从每个特定区域筛选出的特征点对的数量之比等于所述对准权重之比。比如,图10中的特定区域501和特定区域502的对准权重分别为1和0.33,需要筛选出4对特征点,则从特定区域501筛选3对,从特定区域502只筛选1对。这样,在联立方程组求解对准的单应性变换矩阵时,特定区域501起主导作用,特定区域502起辅助作用,保证了特定区域501的对准效果,并兼顾了特定区域502的对准效果。另外,还可以从存储模块中调出存储的任一组图像,重新指定特定区域,重新估计偏移范围,重新对准。When there are multiple identified specific regions, different alignment weights need to be applied to the multiple specific regions. The following takes the image alignment process shown in FIG. 15 as an example to illustrate how to use the alignment weights for alignment during image alignment. First, when screening feature point pairs, it is ensured that the ratio of the number of feature point pairs screened out from each specific area is equal to the ratio of the alignment weights. For example, the alignment weights of the specific area 501 and the specific area 502 in FIG. 10 are 1 and 0.33 respectively, and 4 pairs of feature points need to be screened out, then 3 pairs are screened from the specific area 501, and only 1 pair is screened from the specific area 502. In this way, when the simultaneous equations solve the aligned homography transformation matrix, the specific area 501 plays a leading role, and the specific area 502 plays an auxiliary role, which ensures the alignment effect of the specific area 501 and takes into account the alignment effect of the specific area 502. quasi effect. In addition, any set of images stored in the memory module can also be recalled to re-designate a specific area, re-estimate the offset range, and re-align.
图18是本发明内窥镜图像处理方法另一实施例的流程图,相比于图1所示的内窥镜图像处理方法,在进行对准之前先进行步骤S1010,即图像初步对准,在初步对准后进行步骤S1020,即图像对准调整,可以达到更好的对准效果。图19是按照图18所示方式对一系列图像进行初步对准的示意图。在相应的偏移范围内按特定区域1131将一组图像1130采用相似变换进行初步对准,即分别求解待对准图像1102~1125(图19中仅示出了1112,1113,1114)到目标图像1101的24个相似变换矩阵,将待对准图像1102~1125初步对准到目标图像1101,图像1101~1125分别对应图2所示的25种照明光201~225。初步对准后,即可获得特定区域1101在待对准图像1102~1125中的对应区域1132~1155(图19中仅示出了1142,1143,1144)。Fig. 18 is a flowchart of another embodiment of the endoscopic image processing method of the present invention. Compared with the endoscopic image processing method shown in Fig. 1, step S1010 is performed before alignment, that is, preliminary image alignment, Step S1020, that is, image alignment adjustment, is performed after preliminary alignment to achieve a better alignment effect. FIG. 19 is a schematic diagram of preliminary alignment of a series of images in the manner shown in FIG. 18 . Within the corresponding offset range, a group of images 1130 are preliminarily aligned according to a specific area 1131 using similar transformation, that is, images 1102 to 1125 to be aligned (only 1112, 1113, and 1114 are shown in FIG. 19 ) to The 24 similar transformation matrices of the target image 1101 preliminarily align the images 1102-1125 to be aligned to the target image 1101, and the images 1101-1125 respectively correspond to the 25 kinds of illumination lights 201-225 shown in FIG. 2 . After preliminary alignment, the corresponding regions 1132-1155 of the specific region 1101 in the images 1102-1125 to be aligned can be obtained (only 1142, 1143, 1144 are shown in FIG. 19).
由于人体组织(包括病变组织),对某些特定波长的光不敏感,在不敏感的光照射时摄取的图像可能较暗或特征较少。比如图19中的图像1113,图像较暗,特征信息不明显。但在计算光谱曲线时,这种图像的信息是必要的,其对准的准确性影响着后续光谱病理分析的准确性。虽然有偏移范围的限制,但由于特征信息不明显,初步对准时仍可能产生较大的偏差,如特定区域1101在图像1113中的对应区域1143就有明显的偏差;但摄取图像期间各种因素导致的图像偏移是连续的,不应有过大的突变。因此,可以根据初步对准的24个相似变换矩阵,计算一组图像1130的偏移轨迹,根据所述偏移轨迹调整具有明显偏差的图像的对准映射关系。Since human tissues (including diseased tissues) are not sensitive to light of certain specific wavelengths, images taken when insensitive light may be darker or have fewer features. For example, the image 1113 in FIG. 19 is dark and the feature information is not obvious. However, the information of this image is necessary when calculating the spectral curve, and the accuracy of its alignment affects the accuracy of the subsequent spectral pathological analysis. Although there is a limit to the range of offset, due to the inconspicuous feature information, large deviations may still occur during preliminary alignment, for example, the corresponding area 1143 of a specific area 1101 in the image 1113 has obvious deviations; however, during image capture, various The image offset caused by factors is continuous, and there should be no excessive mutation. Therefore, the offset trajectory of a group of images 1130 can be calculated according to the 24 similar transformation matrices initially aligned, and the alignment mapping relationship of images with obvious deviations can be adjusted according to the offset trajectory.
具体地,相似变换可以分解为位移变换、旋转变换和缩放变换三种基础变换。图20、图21、图22是相似变换包含的位移变换、旋转变换、缩放变换的示意图,其中,1201是变换前的图像,1202是位移变换后的图像,1203是旋转变换后的图像,1204是缩放变换后的图像。相应的,一组图像1130的偏移轨迹可由位移轨迹、旋转轨迹和缩放轨迹构成。Specifically, the similarity transformation can be decomposed into three basic transformations: displacement transformation, rotation transformation and scaling transformation. Figure 20, Figure 21, and Figure 22 are schematic diagrams of displacement transformation, rotation transformation, and scaling transformation included in similar transformation, wherein 1201 is the image before transformation, 1202 is the image after displacement transformation, 1203 is the image after rotation transformation, and 1204 is the transformed image. Correspondingly, the offset track of a group of images 1130 may be composed of a displacement track, a rotation track and a scaling track.
图23是图18所示图像对准调整步骤一实施例的流程图。具体地,步骤S1310,先根据图像1102~1125到目标图像1101的24个相似变换矩阵,分别计算一组图像1130的偏移轨迹,即位移轨迹、旋转轨迹和缩放轨迹。图24、图25、图26分别是初步对准后的位移轨迹示意图、旋转轨迹示意图和缩放轨迹示意图;横坐标为25种照明光的中心波长,照明光212、213、214分别与图19中的图像1112、1113、1114对应;纵坐标分别为位移量、旋转量、缩放量,1401为位移轨迹,1402为旋转轨迹,1403为缩放轨迹。步骤S1320,计算构成偏移轨迹的各个位点的方差,或计算相邻两个位点的梯度,判定方差或梯度超过设定的阈值的位点1410为异常位点,异常位点1410对应的图像1113即为在相应的偏移轨迹上具有明显偏差的图像。步骤S1330,使用图像1112和图像1114到图像1101的位移变换矩阵,插值计算一个新的位移变换矩阵;使用图像1112和图像1114到图像1101的旋转变换矩阵,插值计算一个新的旋转变换矩阵;使用图像1112和图像1114到图像1101的缩放变换矩阵,插值计算一个新的缩放变换矩阵。步骤S1340,将新的位移变换矩阵、旋转变换矩阵和缩放变换矩阵合成为新的相似变换矩阵,作为图像1113到图像1101的新的对准变换矩阵,完成具有明显偏差的图像1113的对准映射关系的调整。若只在一种或两种偏移轨迹中检测到异常位点,则只须对相应的基础变换矩阵进行调整,再合成新的相似变换矩阵;或者只计算一种偏移轨迹,只进行一个基础变换维度的检测和调整。FIG. 23 is a flowchart of an embodiment of the image alignment adjustment step shown in FIG. 18 . Specifically, in step S1310, first, according to the 24 similar transformation matrices from images 1102-1125 to the target image 1101, respectively calculate the offset trajectories of a group of images 1130, ie displacement trajectories, rotation trajectories and scaling trajectories. Fig. 24, Fig. 25, and Fig. 26 are the schematic diagrams of the displacement trajectory, the rotation trajectory and the zoom trajectory after preliminary alignment respectively; Corresponding to the images 1112, 1113, and 1114; the vertical coordinates are displacement, rotation, and scaling respectively, 1401 is the displacement track, 1402 is the rotation track, and 1403 is the scaling track. Step S1320, calculate the variance of each site that constitutes the offset trajectory, or calculate the gradient of two adjacent sites, and determine that the site 1410 whose variance or gradient exceeds the set threshold is an abnormal site, and the corresponding abnormal site 1410 Image 1113 is an image with obvious deviation on the corresponding offset track. Step S1330, using the displacement transformation matrix from the image 1112 and the image 1114 to the image 1101, interpolating to calculate a new displacement transformation matrix; using the rotation transformation matrix from the image 1112 and the image 1114 to the image 1101, interpolating to calculate a new rotation transformation matrix; using The scaling transformation matrix from image 1112 and image 1114 to image 1101 is interpolated to calculate a new scaling transformation matrix. Step S1340: Synthesize the new displacement transformation matrix, rotation transformation matrix and scaling transformation matrix into a new similarity transformation matrix as a new alignment transformation matrix from image 1113 to image 1101, and complete the alignment mapping of image 1113 with obvious deviation relationship adjustments. If abnormal points are detected in only one or two kinds of offset trajectories, it is only necessary to adjust the corresponding basic transformation matrix, and then synthesize a new similar transformation matrix; or only calculate one kind of offset trajectories, only one Detection and adjustment of the underlying transform dimensions.
另外,在偏移范围内将一系列图像按照特定区域进行初步对准时还可以采用仿射变换或单应性变换,除位移轨迹、旋转轨迹和缩放轨迹外,还可以计算其他偏移轨迹,比如剪切轨迹或透视轨迹,对相应的基础变换维度进行检测和调整。In addition, affine transformation or homography transformation can also be used to initially align a series of images according to a specific area within the offset range. In addition to displacement, rotation, and scaling trajectories, other offset trajectories can also be calculated, such as Shear track or perspective track, detect and adjust the corresponding base transform dimension.
借助软件程序将经过对准的一组图像,以对应的照明光的中心波长为序排列,生成特定区域的光谱数据立方体。除此之外,还可以由用户通过输入设备选取任意像素点,或自动选取特定区域的灰度重心像素点,以中心波长为横坐标,灰度值为纵坐标,生成所述像素点的光谱曲线。其中,可以直接生成特定区域内所有像素点的光谱曲线;或者先将特定区域和在其他图像中的对应区域分别进行灰度平均,再生成特定区域的均值光谱曲线。对于图10所示的指定了多个特定区域的情况,可以分别生成每个特定区域的光谱数据立方体或光谱曲线。By means of a software program, a set of aligned images is arranged in the order of the corresponding center wavelength of the illumination light to generate a spectral data cube of a specific area. In addition, the user can also select any pixel point through the input device, or automatically select the pixel point of the gray center of gravity in a specific area, take the center wavelength as the abscissa, and the gray value as the ordinate, to generate the spectrum of the pixel point curve. Among them, the spectral curves of all pixels in a specific area can be directly generated; or the specific area and the corresponding areas in other images are respectively gray-scale averaged, and then the average spectral curve of the specific area is generated. For the case where multiple specific regions are specified as shown in FIG. 10 , spectral data cubes or spectral curves for each specific region can be generated separately.
借助软件程序将经过对准的一组图像的全部或部分进行融合,生成一幅图像。一种实施方案为:分别计算特定区域和在其他图像中的对应区域的灰度方差,将所有图像按方差从大到小排序,自动选择排在前50%的图像进行融合,即选择灰度差异相对较大的图像进行融合。另一种实施方案为:以相同的阈值标准,从特定区域和在其他图像中的对应区域重新筛选特征点,按含有的特征点数量从大到小排序,自动选择排在前30%的图像进行融合,即选择特征信息丰富的图像进行融合。另外,还可以由用户通过输入设备选取任意的数幅图像,经伪彩色赋值,融合生成一幅彩色图像。或者,将所有图像分别视为一种颜色分量,进行白平衡,融合生成白光图像。A software program is used to fuse all or part of an aligned set of images to produce a single image. One implementation is: separately calculate the gray level variance of a specific area and the corresponding area in other images, sort all the images according to the variance from large to small, and automatically select the top 50% of the images for fusion, that is, select the gray level Images with relatively large differences are fused. Another implementation is: with the same threshold standard, re-screen feature points from specific regions and corresponding regions in other images, sort by the number of feature points contained in descending order, and automatically select the top 30% of the images For fusion, that is, to select images with rich feature information for fusion. In addition, the user can also select any number of images through the input device, and through pseudo-color assignment, they can be fused to generate a color image. Or, treat all images as one color component, perform white balance, and fuse to generate a white light image.
除此之外,本发明实施例还提供了一种电子设备,其包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序。其中,存储器、处理器通过总线完成相互间的通信,处理器用于调用存储器中的程序指令,以执行如下方法:在目标图像中标识特定区域,其中,目标图像是从被检查对象在照明单元照射下所拍摄的一系列图像中任意选取的一幅图像;计算特定区域在一系列图像中的其他幅图像内所能产生的偏移范围,在偏移范围内将一系列图像按照特定区域进行对准。In addition, an embodiment of the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and operable on the processor. Wherein, the memory and the processor communicate with each other through the bus, and the processor is used to call the program instructions in the memory to perform the following method: identify a specific area in the target image, wherein the target image is irradiated from the object under inspection in the lighting unit An image randomly selected from a series of images taken below; calculate the offset range that a specific area can produce in other images in a series of images, and align a series of images according to a specific area within the offset range allow.
本发明实施例提供的电子设备,可执行内窥镜图像处理方法中的具体步骤,并能达到相同的技术效果,在此不再对此进行具体介绍。The electronic device provided by the embodiment of the present invention can execute the specific steps in the endoscopic image processing method, and can achieve the same technical effect, which will not be described in detail here.
在上述实施方案中,存储器是单独的模块,包括上述提及的存储模块,该存储器可以基于非易失性存储器实现,比如电可擦可编程只读存储器(Electrically erasableprogrammable read only memory,简称EEPROM)、闪存(Flash memory)等,也可以是硬盘、光盘或磁带。在另外的实施方案中,存储器仅用于存储程序指令化的内窥镜图像处理方法,上述提及的存储模块属于独立于该存储器的另一存储单元,当执行内窥镜图像处理方法时,若需要调取数据,则从存储模块中调取。In the above embodiments, the memory is a separate module, including the above-mentioned storage module, which can be implemented based on non-volatile memory, such as Electrically Erasable Programmable Read Only Memory (EEPROM for short) , flash memory (Flash memory), etc., also can be hard disk, optical disk or magnetic tape. In another embodiment, the memory is only used to store the programmed endoscopic image processing method, and the above-mentioned storage module belongs to another storage unit independent of the memory. When the endoscopic image processing method is executed, If the data needs to be retrieved, it is retrieved from the storage module.
图27是本发明内窥镜系统一实施例的结构示意图。图27提供的内窥镜系统包括照明单元1501,内窥镜镜体1502及电子设备1506。其中,照明单元1501产生多种照明光,经内窥镜镜体1502引导,分别照射在被检查对象1520上。内窥镜镜体1502包括摄像模块1504,摄像模块1504摄取被检查对象1520对应所述多种照明光的一系列图像1530;摄像模块1504具有光学成像镜头1505,光学成像镜头1505位于内窥镜镜体1502的顶端。电子设备中的处理器运行内窥镜图像处理方法,在一系列图像1530的任一图像中指定特定区域;估计所述特定区域在一系列图像1530中的其他幅图像内所能产生的偏移范围;在所述偏移范围内将一系列图像1530按所述特定区域进行对准;使用经过所述对准的一系列图像,生成所述特定区域的光谱数据立方体或光谱曲线;将经过所述对准的一系列图像的全部或部分进行融合,生成一幅图像。存储器,存储所述图像、特定区域、偏移范围、光谱数据等。该电子设备自带显示装置,除此之外,该电子设备也可以外接显示装置,用于显示所述图像、特定区域和光谱数据等。显示装置可以选用索尼的医用显示器LMD-2451MC或其他与图像分辨率匹配的显示器实现。为了方便用户人工操作,该电子设备还可以设置输入设备,可以选用触摸板、键盘、语音输入装置、摄像头、扫描仪等其他任意的输入辅助设备。需要说明的是,图27中的被检查对象1520仅用于示例,实际的被检查对象可以是胃、肠等其他任何内窥镜适用的器官或部位。Fig. 27 is a schematic structural view of an embodiment of the endoscope system of the present invention. The endoscope system provided in FIG. 27 includes an illumination unit 1501 , an endoscope body 1502 and electronic equipment 1506 . Wherein, the illumination unit 1501 generates various illumination lights, which are guided by the endoscope body 1502 and irradiated on the inspected object 1520 respectively. The endoscope mirror body 1502 includes a camera module 1504, which captures a series of images 1530 of the inspected object 1520 corresponding to the various illumination lights; the camera module 1504 has an optical imaging lens 1505, and the optical imaging lens 1505 is located in the endoscope The top of body 1502. The processor in the electronic device executes the endoscopic image processing method to designate a specific area in any image of the series of images 1530; estimate the displacement of the specific area in other images of the series of images 1530 range; align a series of images 1530 according to the specific area within the offset range; use the aligned series of images to generate a spectral data cube or spectral curve for the specific area; All or part of a series of images aligned as described above are fused to generate an image. A memory for storing the image, specific regions, offset ranges, spectral data, etc. The electronic equipment has its own display device. In addition, the electronic equipment can also be connected with an external display device for displaying the image, specific area and spectral data, etc. The display device can be realized by selecting Sony's medical display LMD-2451MC or other displays matching the image resolution. In order to facilitate the user's manual operation, the electronic device can also be provided with an input device, such as a touch panel, a keyboard, a voice input device, a camera, a scanner and other arbitrary input auxiliary devices. It should be noted that the inspected object 1520 in FIG. 27 is only an example, and the actual inspected object may be stomach, intestine, and any other organs or parts to which the endoscope is applicable.
电子设备可以基于FPGA(Field Programable Gate Array,现场可编程逻辑门阵列)实现。另外,还可以基于SoC(System on Chip,片上系统),或ASIC(ApplicationSpecific Integrated Circuit,专用集成电路),或嵌入式处理器实现,也可以直接使用计算机,还可以综合上述一种或几种方案来实现。Electronic devices can be implemented based on FPGA (Field Programable Gate Array, Field Programmable Logic Gate Array). In addition, it can also be implemented based on SoC (System on Chip, system on chip), or ASIC (Application Specific Integrated Circuit, application specific integrated circuit), or embedded processor, or directly use a computer, or combine one or more of the above solutions to fulfill.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911399032.2A CN111161852B (en) | 2019-12-30 | 2019-12-30 | Endoscope image processing method, electronic equipment and endoscope system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911399032.2A CN111161852B (en) | 2019-12-30 | 2019-12-30 | Endoscope image processing method, electronic equipment and endoscope system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111161852A CN111161852A (en) | 2020-05-15 |
CN111161852B true CN111161852B (en) | 2023-08-15 |
Family
ID=70559586
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911399032.2A Active CN111161852B (en) | 2019-12-30 | 2019-12-30 | Endoscope image processing method, electronic equipment and endoscope system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111161852B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113068015A (en) * | 2021-03-24 | 2021-07-02 | 南京锐普创科科技有限公司 | Endoscope image distortion correction system based on optical fiber probe |
CN113344987A (en) * | 2021-07-07 | 2021-09-03 | 华北电力大学(保定) | Infrared and visible light image registration method and system for power equipment under complex background |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5432543A (en) * | 1992-03-05 | 1995-07-11 | Olympus Optical Co., Ltd. | Endoscopic image processing device for estimating three-dimensional shape of object based on detection of same point on a plurality of different images |
JP2001136540A (en) * | 1999-11-05 | 2001-05-18 | Olympus Optical Co Ltd | Image processor |
US6842196B1 (en) * | 2000-04-04 | 2005-01-11 | Smith & Nephew, Inc. | Method and system for automatic correction of motion artifacts |
JP2010041418A (en) * | 2008-08-05 | 2010-02-18 | Olympus Corp | Image processor, image processing program, image processing method, and electronic apparatus |
CN103035004A (en) * | 2012-12-10 | 2013-04-10 | 浙江大学 | Circular target centralized positioning method under large visual field |
CN104411229A (en) * | 2012-06-28 | 2015-03-11 | 奥林巴斯株式会社 | Image processing device, image processing method, and image processing program |
CN105931237A (en) * | 2016-04-19 | 2016-09-07 | 北京理工大学 | A kind of image calibration method and system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5715372B2 (en) * | 2010-10-15 | 2015-05-07 | オリンパス株式会社 | Image processing apparatus, method of operating image processing apparatus, and endoscope apparatus |
US10825152B2 (en) * | 2017-09-14 | 2020-11-03 | Canon U.S.A., Inc. | Distortion measurement and correction for spectrally encoded endoscopy |
US11298001B2 (en) * | 2018-03-29 | 2022-04-12 | Canon U.S.A., Inc. | Calibration tool for rotating endoscope |
-
2019
- 2019-12-30 CN CN201911399032.2A patent/CN111161852B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5432543A (en) * | 1992-03-05 | 1995-07-11 | Olympus Optical Co., Ltd. | Endoscopic image processing device for estimating three-dimensional shape of object based on detection of same point on a plurality of different images |
JP2001136540A (en) * | 1999-11-05 | 2001-05-18 | Olympus Optical Co Ltd | Image processor |
US6842196B1 (en) * | 2000-04-04 | 2005-01-11 | Smith & Nephew, Inc. | Method and system for automatic correction of motion artifacts |
JP2010041418A (en) * | 2008-08-05 | 2010-02-18 | Olympus Corp | Image processor, image processing program, image processing method, and electronic apparatus |
CN104411229A (en) * | 2012-06-28 | 2015-03-11 | 奥林巴斯株式会社 | Image processing device, image processing method, and image processing program |
CN103035004A (en) * | 2012-12-10 | 2013-04-10 | 浙江大学 | Circular target centralized positioning method under large visual field |
CN105931237A (en) * | 2016-04-19 | 2016-09-07 | 北京理工大学 | A kind of image calibration method and system |
Non-Patent Citations (1)
Title |
---|
钱渠.基于内窥镜视频的工业管道图像展开研究.《中国优秀硕士学位论文全文数据库信息科技辑》.2021,(第1期),I138-1415. * |
Also Published As
Publication number | Publication date |
---|---|
CN111161852A (en) | 2020-05-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111275041B (en) | Endoscope image display method and device, computer equipment and storage medium | |
JP6150583B2 (en) | Image processing apparatus, endoscope apparatus, program, and operation method of image processing apparatus | |
EP2188779B1 (en) | Extraction method of tongue region using graph-based approach and geometric properties | |
JP5113841B2 (en) | Computer-aided analysis using video from an endoscope | |
JP5094036B2 (en) | Endoscope insertion direction detection device | |
US20220125280A1 (en) | Apparatuses and methods involving multi-modal imaging of a sample | |
US20150339817A1 (en) | Endoscope image processing device, endoscope apparatus, image processing method, and information storage device | |
TWI432168B (en) | Endoscope navigation method and endoscopy navigation system | |
EP3219251A1 (en) | Organ image capture device and program | |
CN100563550C (en) | Medical image-processing apparatus | |
US8666135B2 (en) | Image processing apparatus | |
US20080069482A1 (en) | Image processor | |
CN111091562A (en) | A method and system for measuring the size of gastrointestinal lesions | |
CN109635871A (en) | A kind of capsule endoscope image classification method based on multi-feature fusion | |
CN111161852B (en) | Endoscope image processing method, electronic equipment and endoscope system | |
WO2014208287A1 (en) | Detection device, learning device, detection method, learning method, and program | |
JP6150617B2 (en) | Detection device, learning device, detection method, learning method, and program | |
WO2007110982A1 (en) | Image analyzer and program for stereo eye fundus image | |
JP2019118670A (en) | Diagnosis support apparatus, image processing method, and program | |
CN107529962B (en) | Image processing apparatus, image processing method, and recording medium | |
CN113016006A (en) | Apparatus and method for wide field hyperspectral imaging | |
EP3061395A1 (en) | Organ image capture device | |
JPH04193254A (en) | Image treating apparatus for endoscope | |
Zenteno et al. | Spatial and Spectral Calibration of a Multispectral-Augmented Endoscopic Prototype | |
KR101559253B1 (en) | Apparatus and method for shooting of tongue using illumination |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |