WO2023138544A1 - Capsule endoscope intestinal image-based recognition and positioning method, storage medium, and device - Google Patents

Capsule endoscope intestinal image-based recognition and positioning method, storage medium, and device Download PDF

Info

Publication number
WO2023138544A1
WO2023138544A1 PCT/CN2023/072477 CN2023072477W WO2023138544A1 WO 2023138544 A1 WO2023138544 A1 WO 2023138544A1 CN 2023072477 W CN2023072477 W CN 2023072477W WO 2023138544 A1 WO2023138544 A1 WO 2023138544A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
intestinal
corrected
intestinal tract
capsule endoscope
Prior art date
Application number
PCT/CN2023/072477
Other languages
French (fr)
Chinese (zh)
Inventor
李鹏
胡峰
谢浩生
刘揆亮
刘一君
Original Assignee
江苏势通生物科技有限公司
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 by 江苏势通生物科技有限公司 filed Critical 江苏势通生物科技有限公司
Publication of WO2023138544A1 publication Critical patent/WO2023138544A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/80Geometric correction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0012Biomedical image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20092Interactive image processing based on input by user
    • G06T2207/20104Interactive definition of region of interest [ROI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing
    • G06T2207/30028Colon; Small intestine

Definitions

  • the invention belongs to the technical field of medical equipment imaging, and in particular relates to a method for identifying and locating intestinal images of a capsule endoscope, a computer-readable storage medium, and computer equipment.
  • Capsule endoscope is a kind of medical equipment.
  • the capsule endoscope integrates core functions such as image acquisition and wireless transmission into a capsule that can be swallowed by the human body.
  • the capsule endoscope is swallowed into the body, and the endoscope collects images of the digestive tract in the body and transmits them synchronously to the outside of the body for medical inspection and diagnosis based on the obtained image data.
  • Capsule endoscopes acquire and transmit tens of thousands of images as they work in the small intestine.
  • the traditional diagnostic method and process is to present these tens of thousands of images to medical workers for observation through picture playback or video playback.
  • the whole process takes a long time, and the location of suspicious lesions identified and obtained by medical workers in the intestinal tract cannot be determined, which greatly affects the use and diagnostic efficiency of intestinal endoscopy.
  • the technical problem solved by the invention is: how to quickly and efficiently identify the region of interest in the intestinal tract and determine the position of the region of interest.
  • a method for identifying and positioning a capsule endoscope intestinal image comprising:
  • the physical position of the region of interest in the intestinal tract is determined according to the pixel coordinates of the region of interest, the pixel width of each circular image of the inner wall of the intestinal tract, and the physical width corresponding to the pixel width of the circular images of the inner wall of the intestinal tract.
  • the method of performing rotation correction processing on each original intestinal tract image captured by the capsule endoscope to obtain a corrected image includes:
  • the method of performing rotation correction processing on each original intestinal tract image captured by the capsule endoscope to obtain a corrected image includes:
  • the correction image is subjected to interception and measurement processing
  • the method for obtaining the ring image of the inner wall of the intestinal tract corresponding to the correction image includes:
  • the difference between the radius of the circular edge and the radius of the target edge is used as the interception width, and a partial image is intercepted from the measurement image to be intercepted according to the interception width, as an annular image of the inner wall of the intestinal tract, and the pixel width of the annular image of the inner wall of the intestinal tract is equal to the interception width
  • said determining the circular edge of the intercepted measurement image adjacent to the measurement image to be intercepted includes:
  • the radius of the candidate edge is adjusted sequentially until the Levenstein distance satisfies the predetermined condition, and the candidate edge at this time is taken as the target edge.
  • the method for obtaining the physical width corresponding to the pixel width of the annular image of the inner wall of the intestinal tract comprises:
  • the distance between the equivalent optical center of the capsule endoscope and the bottom of the front cover, the radius of the circular edge and the radius of the target edge, the physical width corresponding to the pixel width of the annular image of the inner wall of the intestinal tract is calculated.
  • the method for determining the physical position of the region of interest in the intestinal tract according to the pixel coordinates of the region of interest, the pixel width of each annular image of the inner wall of the intestinal tract, and the physical width corresponding to the pixel width of the annular images of the inner wall of the intestinal tract includes:
  • the physical position of the region of interest in the intestinal tract is determined according to the pixel coordinates, the sum of the pixel widths, the sum of the physical widths, and the physical width of the current circular image of the inner wall of the intestinal tract.
  • the method for marking the region of interest in the intestinal panorama image according to the acquired instruction includes:
  • the region of interest is marked according to one of a single-click instruction, a double-click instruction, and a frame selection instruction.
  • the present application also discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a recognition and positioning program of the capsule endoscope intestinal image, and when the capsule endoscope intestinal image recognition and positioning program is executed by a processor, the above-mentioned capsule endoscope intestinal image recognition and positioning method is realized.
  • the present application also discloses a computer device.
  • the computer device includes a computer-readable storage medium, a processor, and a program for identifying and locating the intestinal tract images of the capsule endoscope stored in the computer-readable storage medium.
  • the program for identifying and locating the intestinal tract images of the capsule endoscope is executed by the processor, the above-mentioned method for identifying and locating the intestinal tract images of the capsule endoscope is implemented.
  • a method for identifying and locating the intestinal tract image of the capsule endoscope disclosed by the present invention has the following technical effects:
  • the whole process of film reading and diagnosis is more intuitive and convenient.
  • the pixel coordinates of the region of interest and the physical length of each circular image of the inner wall of the intestinal tract the clinical location of the region of interest can be quickly and accurately determined.
  • FIG. 1 is a flowchart of a method for identifying and locating a capsule endoscope intestinal image according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of image rotation correction in Embodiment 1 of the present invention.
  • FIG. 3 is a schematic diagram of target edge extraction according to Embodiment 1 of the present invention.
  • Fig. 4 is a schematic diagram of the physical width measurement of the annular image of the inner wall of the intestinal tract according to Embodiment 1 of the present invention.
  • Fig. 5 is a schematic diagram of interception and expansion of the annular image of the inner wall of the intestinal tract in Embodiment 1 of the present invention.
  • Fig. 6 is a schematic diagram of splicing and reconstruction of multiple circular images of the inner wall of the intestinal tract according to Embodiment 1 of the present invention.
  • FIG. 7 is a schematic diagram of computer equipment according to Embodiment 2 of the present invention.
  • identification and diagnosis are performed based on intestinal images taken by capsule endoscopes, mainly through video or image reading. Due to the large number of images, the entire process of reading images takes a long time, and for areas of interest such as suspicious lesions, the specific location in the intestinal tract cannot be determined.
  • the identification and positioning method of the capsule endoscope intestinal image provided by this application, after performing rotation correction processing on the original intestinal image, After the interception and measurement of each image, it is expanded and spliced to form a panoramic image of the intestinal tract. According to the relevant operation instructions, the film is directly read in the panoramic image of the intestinal tract, and the region of interest is identified and marked.
  • the physical position of the region of interest in the intestinal tract is determined.
  • the whole process of image reading and diagnosis is more intuitive and convenient, and the clinical location of the region of interest can be quickly and accurately determined.
  • the identification and positioning method of the capsule endoscope intestinal image in the first embodiment includes the following steps:
  • Step S10 Perform rotation correction processing on the original intestinal images captured by the capsule endoscope to obtain corrected images, wherein the angle of view of each corrected image is the same.
  • Step S20 Intercepting and measuring each corrected image sequentially to obtain the annular image of the inner wall of the intestine corresponding to each corrected image and the physical width corresponding to the pixel width of the annular image of the inner wall of the intestinal tract.
  • Step S30 unfolding the circular images of the inner wall of the intestinal tract and sequentially splicing them according to the pixel width direction to form a panoramic image of the intestinal tract.
  • Step S40 mark the ROI in the intestinal panorama image according to the acquired instructions, and determine the pixel coordinates of the ROI in the intestinal panorama image.
  • Step S50 Determine the physical position of the region of interest in the intestinal tract according to the pixel coordinates of the region of interest, the pixel width of each annular image of the inner wall of the intestinal tract, and the corresponding physical width of the pixel width of the annular image of the inner wall of the intestinal tract.
  • step S10 when using the capsule endoscope to take images of the intestinal tract, since the capsule endoscope still rotates around its own axis during the movement process, the captured image will be deflected, wherein the self-axis here refers to the forward direction of the capsule endoscope, so rotation correction processing is required.
  • the original image set composed of each original intestinal image I n is denoted as ⁇ I n ⁇ , 1 ⁇ n ⁇ N, N represents the total number of acquired images, and the resolution of the original intestinal image is D ⁇ D.
  • the photographing direction of the capsule endoscope in this embodiment is opposite to the moving direction, that is, the capsule endoscope photographs the inner wall of the intestinal tract behind it during the advancing process.
  • the rotation correction process can be carried out in two ways, one is to correct based on the characteristics of the image itself, and the other is to correct based on sensor data.
  • the method for correcting based on the image itself includes the following steps:
  • Step S101 performing feature point matching on the image to be corrected and the corrected image adjacent to the image to be corrected, to obtain the first feature point set of the image to be corrected and the second feature point set of the corrected image set.
  • the set of corrected images I' n is expressed as the second feature point set ⁇ G m ⁇ n , 1 ⁇ m ⁇ M,
  • Step S102 Determine the relative rotation angle between the image to be corrected and the corrected image according to the first set of feature points of the image to be corrected and the second set of feature points of the corrected image.
  • the first center point of the first feature point set is denoted as C n+1
  • the second center point of the second feature point set is denoted as C n
  • the angle between the line connecting the first center point C n+1 to the image center point and the horizontal direction of the image center is ⁇ n+1
  • the angle between the line connecting the second center point C n to the image center point and the horizontal direction of the image center is ⁇ n .
  • the relative rotation angle between the image to be corrected and the corrected image is:
  • Step S103 correcting each pixel value of the image to be corrected according to the difference between the first included angle and the second included angle, to obtain a corrected image.
  • the image to be corrected is I n+1 and the image after rotation correction is expressed as I′ n+1 .
  • the corresponding pixel value p(u,v) ⁇ I n+1 can be corrected according to the following formula,
  • round( ⁇ ) means rounding.
  • interpolation may also be used to obtain the corrected image pixel value.
  • the method for correcting based on sensor data includes the following steps:
  • Step S111 acquiring the first gravitational acceleration value at the acquisition time of the image to be corrected and the second gravitational acceleration value at the acquisition time of the corrected image adjacent to the image to be corrected.
  • Step S112. Determine the relative rotation angle between the image to be corrected and the corrected image according to the first gravitational acceleration value and the second gravitational acceleration value.
  • the relative rotation angle between the image to be corrected and the corrected image is calculated according to the following formula:
  • Step S113 correcting each pixel point value of the image to be corrected according to the relative rotation angle to obtain a corrected image.
  • the image to be corrected is I n+1 and the image after rotation correction is expressed as I′ n+1 .
  • the corresponding pixel value p(u,v) ⁇ I n+1 can be corrected according to the following formula,
  • round( ⁇ ) means rounding.
  • interpolation may also be used to obtain the corrected image pixel value.
  • the corrected image set obtained after rotation correction is denoted as ⁇ I' n ⁇ , 1 ⁇ n ⁇ N.
  • step S20 the correction image is intercepted and measured, and the method for obtaining the ring image of the inner wall of the intestinal tract corresponding to the correction image includes the following steps:
  • Step S21 determining the circular edge of the captured measurement image adjacent to the measurement image to be captured, and extracting the target edge of the circular edge in the measurement image to be captured.
  • Step S22 taking the difference between the radius of the circular edge and the radius of the target edge as the interception width, and intercepting a part of the image from the measurement image to be intercepted according to the interception width, as an annular image of the inner wall of the intestinal tract, and the pixel width of the annular image of the inner wall of the intestinal tract is equal to the interception width.
  • the corrected image set obtained after rotation correction is expressed as ⁇ I' n ⁇ , 1 ⁇ n ⁇ N.
  • No processing is performed on the first image, as shown in Figure 3, assuming that the circular edge of the intercepted measurement image I'n is represented as 201, the position of the circular edge 201 in the measurement image I'n +1 to be intercepted is the target edge 202.
  • the circular edge 201 is a circle with the center of the intercepted measurement image as the center and a radius of r1 ;
  • the target edge 202 is a circle with the center of the measurement image to be intercepted as the center and a radius of r2 . Therefore, the process of extracting the target edge 202 can be regarded as a process of determining the radius r 2 .
  • r 1 and r 2 are pixel lengths.
  • step S21 includes the following processes:
  • Step S211 calculating the first discrete quantized pixel gray value sequence E n of the circular edge, the calculation formula is as follows:
  • Step S212 selecting a candidate edge in the measurement image to be intercepted, and calculating the second discrete quantized pixel gray value sequence of the candidate edge Calculated as follows:
  • r v represents the radius of the candidate edge
  • the center of the candidate edge is the center of the measurement image to be intercepted
  • Step S213 calculating the Levenstein distance between the first discrete quantized pixel gray value sequence and the second discrete quantized pixel gray value sequence Calculated as follows:
  • Lev(a,b) means to calculate the Levenstein distance between sequences a and b.
  • Step S214 adjusting the radius of the candidate edge in turn until the Levenstein distance satisfies the predetermined condition, and the candidate edge at this time is taken as the target edge.
  • the method for obtaining the physical width corresponding to the pixel width of the annular image of the inner wall of the intestinal tract is as follows:
  • the radius of the front cover 301 of the capsule endoscope is R, and the distance between the lens equivalent optical center 303 and the bottom diameter of the front cover 301 is d.
  • CO-1 is the maximum viewing angle edge line of sight of the lens, corresponding to the imaging edge whose radius is r1 in the measurement image I'n +1 to be intercepted
  • CO-2 is the line of sight corresponding to the imaging circle whose radius is r2 in the measurement image I'n +1 to be intercepted
  • the distance to be measured 304 is the physical width corresponding to the pixel width of the annular image of the inner wall of the intestinal tract.
  • the obtained circular image set of the inner wall of the intestinal tract is expressed as ⁇ I” n ⁇ , 1 ⁇ n ⁇ N
  • the obtained physical width data set is expressed as ⁇ l n+1 ⁇ , 1 ⁇ n ⁇ N-1.
  • step S30 the circular images of the inner wall of the intestinal tract are unfolded and spliced sequentially according to the pixel width direction to form a panoramic image of the intestinal tract.
  • the resolution of the measurement image I'n +1 to be intercepted is D*D
  • the resolution of the ring image I′′ n+1 of the inner wall of the intestinal tract is W*H
  • the value of P" n+1 (u", v") can be obtained from P' n+1 (u', v') through interpolation.
  • the pixel height of each intestinal inner wall ring image I” n is H n
  • the pixel width is W n
  • the physical width is l n .
  • the unit of H n and W n is the number of pixels
  • the unit of H n is millimeter or decimeter.
  • the intestinal inner wall ring image set ⁇ I” n ⁇ , 1 ⁇ n ⁇ N each image is spliced end to end according to the pixel width direction to form a intestinal panoramic image I F , the pixel height of the intestinal panoramic image I F is H F , and the pixel width is W F , and
  • step S40 the method for marking the region of interest in the intestinal panorama image according to the acquired instruction includes the following steps:
  • Step S41 Operate the intestinal panorama image according to at least one of a scrolling instruction, a sliding instruction, a zoom-in instruction and a zoom-out instruction, so as to determine a region of interest.
  • the operator can operate the image by scrolling, sliding, zooming in and zooming out, etc., which is convenient for film reading and diagnosis, and can quickly determine clinical positioning marks, suspected lesions and other areas of interest.
  • Step S42 Mark the region of interest according to one of a single-click instruction, a double-click instruction, and a frame selection instruction.
  • the number of regions of interest can be multiple, and after the image reading is completed, K regions of interest ⁇ T k ⁇ can be formed, 1 ⁇ k ⁇ K, and the pixel coordinates of each region of interest T k in the intestinal panorama image IF are in
  • step S50 according to the pixel coordinates of the region of interest T k
  • the method for determining the physical position L k of the region of interest T k in the intestinal tract by determining the pixel width W n of each annular image of the inner wall of the intestinal tract and the corresponding physical width l n of the pixel width W n of the annular images of the inner wall of the intestinal tract includes the following steps:
  • Step S51 according to the pixel coordinates of the region of interest T k and the pixel width W n of each intestinal wall ring image is determined with the pixel coordinates Corresponding to the current ring image of the inner wall of the intestinal tract image number Specifically, it is determined according to the following formula:
  • Step S52 calculate the serial number of the picture The sum of the pixel widths of the previous ring images of the inner wall of the intestinal tract and the sum of the physical width
  • Step S53 according to the pixel coordinates sum of pixel widths sum of physical widths And the current circular image of the inner wall of the intestine physical width of Determining the physical location of the region of interest in the gut
  • the position L k is specifically determined according to the following formula:
  • the above-mentioned processing is performed on all regions of interest ⁇ T k ⁇ , 1 ⁇ k ⁇ K, and the original picture number set of the region of interest can be obtained
  • the positioning data set of the corresponding ROI is ⁇ L k ⁇ , 1 ⁇ k ⁇ K.
  • Embodiment 2 of the present application also discloses a computer-readable storage medium.
  • the computer-readable storage medium stores a recognition and positioning program for capsule endoscope intestinal images.
  • the capsule endoscope intestinal image recognition and positioning program is executed by a processor, the above-mentioned capsule endoscope intestinal image recognition and positioning method is realized.
  • Embodiment 3 also discloses a computer device.
  • the computer device includes a processor 12 , an internal bus 13 , a network interface 14 , and a computer-readable storage medium 11 .
  • the processor 12 reads the corresponding computer program from the computer-readable storage medium and executes it, forming a request processing device on a logical level.
  • the computer-readable storage medium 11 stores a capsule endoscope intestinal image recognition and positioning program, which realizes the capsule endoscope intestinal image recognition and positioning method when executed by the processor.
  • Computer-readable storage media includes both volatile and non-permanent, removable and non-removable media by any method or technology for storage of information.
  • Information may be computer readable instructions, data structures, modules of a program, or other data.
  • Examples of computer readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read only memory
  • EEPROM electrically erasable programm

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Radiology & Medical Imaging (AREA)
  • Quality & Reliability (AREA)
  • Endoscopes (AREA)
  • Image Processing (AREA)

Abstract

Disclosed are a capsule endoscope intestinal image-based recognition and positioning method, a storage medium, and a device. The method comprises: sequentially performing rotation correction processing on original intestinal images captured by a capsule endoscope to obtain corrected images; sequentially performing cropping and measurement processing on the corrected images to obtain intestinal inner wall annular images corresponding to the corrected images and obtain physical widths of the intestinal inner wall annular images; unfolding the intestinal inner wall annular images and then sequentially splicing the unfolded intestinal inner wall annular images end to end in a pixel width direction to form an intestinal panoramic image; marking a region of interest in the intestinal panoramic image according to an obtained instruction, and determining pixel coordinates of the region of interest in the intestinal panoramic image; and determining the physical position of the region of interest in the intestinal tract according to the pixel coordinates of the region of interest, and the pixel widths and the physical widths of the intestinal inner wall annular images. Therefore, the image reading and diagnosis processes are visual and convenient, and the clinical position can be quickly and accurately determined.

Description

胶囊内窥镜肠道图像的识别定位方法、存储介质和设备Recognition and positioning method, storage medium and equipment for intestinal image of capsule endoscope
本申请要求申请号为202210052705.2的中国专利申请的优先权,其内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with application number 202210052705.2, the contents of which are incorporated in this application by reference.
【技术领域】【Technical field】
本发明属于医疗设备成像技术领域,具体地讲,涉及一种胶囊内窥镜肠道图像的识别定位方法、计算机可读存储介质、计算机设备。The invention belongs to the technical field of medical equipment imaging, and in particular relates to a method for identifying and locating intestinal images of a capsule endoscope, a computer-readable storage medium, and computer equipment.
【背景技术】【Background technique】
胶囊内窥镜是一种医疗器械设备,胶囊内窥镜将图像采集、无线传输等核心功能集成于一个可被人体吞咽的胶囊内,在进行检查过程中,将胶囊内窥镜吞入体内,内窥镜在体内采集消化道图像并同步传送到体外,以根据获得的图像数据进行医疗检查和诊断。Capsule endoscope is a kind of medical equipment. The capsule endoscope integrates core functions such as image acquisition and wireless transmission into a capsule that can be swallowed by the human body. During the inspection process, the capsule endoscope is swallowed into the body, and the endoscope collects images of the digestive tract in the body and transmits them synchronously to the outside of the body for medical inspection and diagnosis based on the obtained image data.
胶囊内窥镜在小肠内工作过程中会采集并传输数万张图像。传统的诊断方法和流程是将这数万张图像通过图片播放或者视频播放的方式呈现给医务工作者进行观察。整个过程耗时长,并且医务工作者识别并获取的可疑病灶在肠道中的位置无法确定,极大影响的肠道内窥镜的使用和诊断效率。Capsule endoscopes acquire and transmit tens of thousands of images as they work in the small intestine. The traditional diagnostic method and process is to present these tens of thousands of images to medical workers for observation through picture playback or video playback. The whole process takes a long time, and the location of suspicious lesions identified and obtained by medical workers in the intestinal tract cannot be determined, which greatly affects the use and diagnostic efficiency of intestinal endoscopy.
【发明内容】【Content of invention】
(一)本发明所要解决的技术问题(1) technical problem to be solved by the present invention
本发明解决的技术问题是:如何快速高效地识别肠道中的感兴趣区域并确定该感兴趣区域的位置。The technical problem solved by the invention is: how to quickly and efficiently identify the region of interest in the intestinal tract and determine the position of the region of interest.
(二)本发明所采用的技术方案(2) The technical scheme adopted in the present invention
一种胶囊内窥镜肠道图像的识别定位方法,所述识别定位方法包括:A method for identifying and positioning a capsule endoscope intestinal image, the identifying and positioning method comprising:
对胶囊内窥镜拍摄到的各幅原始肠道图像依序进行旋转校正处理得到校正图像,其中各幅所述校正图像的视角均相同;Sequentially performing rotation correction processing on each original intestinal image captured by the capsule endoscope to obtain a corrected image, wherein the angles of view of each corrected image are the same;
依次对各幅所述校正图像进行截取测量处理,获得各幅所述校正图像对应的肠道内壁环形图像以及获得各幅所述肠道内壁环形图像的像素宽度对应的物理宽度; Perform interception and measurement processing on each of the corrected images in turn to obtain a circular image of the inner wall of the intestinal tract corresponding to each of the corrected images and obtain a physical width corresponding to the pixel width of the annular image of the inner wall of the intestinal tract;
将各幅所述肠道内壁环形图像展开后按照像素宽度方向依序首尾拼接,形成肠道全景图像;Stitching each circular image of the inner wall of the intestinal tract sequentially end to end according to the pixel width direction to form a panoramic image of the intestinal tract;
根据获取的指令标注所述肠道全景图像中的感兴趣区域,并确定所述感兴趣区域在所述肠道全景图像中的像素坐标;Marking the region of interest in the intestinal panorama image according to the acquired instruction, and determining the pixel coordinates of the interest region in the intestinal panoramic image;
根据所述感兴趣区域的像素坐标、各幅所述肠道内壁环形图像的像素宽度以及各幅所述肠道内壁环形图像的像素宽度对应的物理宽度确定所述感兴趣区域在肠道中的物理位置。The physical position of the region of interest in the intestinal tract is determined according to the pixel coordinates of the region of interest, the pixel width of each circular image of the inner wall of the intestinal tract, and the physical width corresponding to the pixel width of the circular images of the inner wall of the intestinal tract.
优选地,所述对胶囊内窥镜拍摄到的各幅原始肠道图像进行旋转校正处理得到校正图像的方法包括:Preferably, the method of performing rotation correction processing on each original intestinal tract image captured by the capsule endoscope to obtain a corrected image includes:
将待校正图像和与所述待校正图像相邻的已校正图像进行特征点匹配,获得所述待校正图像的第一特征点集和所述已校正图像的第二特征点集;performing feature point matching on the image to be corrected and a corrected image adjacent to the image to be corrected, to obtain a first set of feature points of the image to be corrected and a second set of feature points of the corrected image;
根据所述待校正图像的第一特征点集和所述已校正图像的第二特征点集确定所述待校正图像与所述已校正图像之间的相对旋转角度;determining a relative rotation angle between the image to be corrected and the corrected image according to the first set of feature points of the image to be corrected and the second set of feature points of the corrected image;
根据所述第一夹角与第二夹角的差值对所述待校正图像的各个像素点值校正,获得校正图像。Correcting each pixel point value of the image to be corrected according to the difference between the first included angle and the second included angle to obtain a corrected image.
优选地,所述对胶囊内窥镜拍摄到的各幅原始肠道图像进行旋转校正处理得到校正图像的方法包括:Preferably, the method of performing rotation correction processing on each original intestinal tract image captured by the capsule endoscope to obtain a corrected image includes:
获取待校正图像的所在采集时刻的第一重力加速度值以及与所述待校正图像相邻的已校正图像所在采集时刻的第二重力加速度值;Acquiring the first gravitational acceleration value at the acquisition moment of the image to be corrected and the second gravitational acceleration value at the acquisition moment of the corrected image adjacent to the image to be corrected;
根据所述第一重力加速度值与所述第二重力加速度值确定所述待校正图像与所述已校正图像之间的相对旋转角度;determining a relative rotation angle between the image to be corrected and the corrected image according to the first gravitational acceleration value and the second gravitational acceleration value;
根据所述相对旋转角度对所述待校正图像的各个像素点值校正,获得校正图像。Correcting each pixel point value of the image to be corrected according to the relative rotation angle to obtain a corrected image.
优选地,对所述校正图像进行截取测量处理,获得所述校正图像对应的肠道内壁环形图像的方法包括:Preferably, the correction image is subjected to interception and measurement processing, and the method for obtaining the ring image of the inner wall of the intestinal tract corresponding to the correction image includes:
确定与待截取测量图像相邻的已截取测量图像的圆形边缘,提取所述圆形边缘在所述待截取测量图像中的目标边缘;determining the circular edge of the intercepted measurement image adjacent to the measurement image to be intercepted, and extracting the target edge of the circular edge in the measurement image to be intercepted;
将所述圆形边缘的半径与所述目标边缘的半径的差值作为截取宽度,根据所述截取宽度从所述待截取测量图像中截取部分图像,作为肠道内壁环形图像,所述肠道内壁环形图像的像素宽度等于所述截取宽度The difference between the radius of the circular edge and the radius of the target edge is used as the interception width, and a partial image is intercepted from the measurement image to be intercepted according to the interception width, as an annular image of the inner wall of the intestinal tract, and the pixel width of the annular image of the inner wall of the intestinal tract is equal to the interception width
优选地,所述确定与待截取测量图像相邻的已截取测量图像的圆形边缘, 提取所述圆形边缘在所述待截取测量图像中的目标边缘的方法包括:Preferably, said determining the circular edge of the intercepted measurement image adjacent to the measurement image to be intercepted, The method for extracting the target edge of the circular edge in the measurement image to be intercepted includes:
计算所述圆形边缘的第一离散量化像素灰度值序列;calculating the first discrete quantized pixel gray value sequence of the circular edge;
在所述待截取测量图像选定候选边缘,并计算候选边缘的第二离散量化像素灰度值序列;Selecting a candidate edge in the measurement image to be intercepted, and calculating a second discrete quantized pixel gray value sequence of the candidate edge;
计算所述第一离散量化像素灰度值序列与所述第二离散量化像素灰度值序列的莱文斯坦距离;calculating the Levenstein distance between the first discrete quantized pixel gray value sequence and the second discrete quantized pixel gray value sequence;
依次调整候选边缘的半径,直至所述莱文斯坦距离满足预定条件,将此时的候选边缘作为目标边缘。The radius of the candidate edge is adjusted sequentially until the Levenstein distance satisfies the predetermined condition, and the candidate edge at this time is taken as the target edge.
优选地,所述获得所述肠道内壁环形图像的像素宽度对应的物理宽度的方法包括:Preferably, the method for obtaining the physical width corresponding to the pixel width of the annular image of the inner wall of the intestinal tract comprises:
根据获取的胶囊内窥镜的前盖的半径、胶囊内窥镜的等效光心与所述前盖底部的距离、所述圆形边缘的半径与所述目标边缘的半径计算得到所述肠道内壁环形图像的像素宽度对应的物理宽度。According to the acquired radius of the front cover of the capsule endoscope, the distance between the equivalent optical center of the capsule endoscope and the bottom of the front cover, the radius of the circular edge and the radius of the target edge, the physical width corresponding to the pixel width of the annular image of the inner wall of the intestinal tract is calculated.
优选地,根据所述感兴趣区域的像素坐标、各幅所述肠道内壁环形图像的像素宽度以及各幅所述肠道内壁环形图像的像素宽度对应的物理宽度确定所述感兴趣区域在肠道中的物理位置的方法包括:Preferably, the method for determining the physical position of the region of interest in the intestinal tract according to the pixel coordinates of the region of interest, the pixel width of each annular image of the inner wall of the intestinal tract, and the physical width corresponding to the pixel width of the annular images of the inner wall of the intestinal tract includes:
根据所述感兴趣区域的像素坐标和各幅所述肠道内壁环形图像的像素宽度确定与所述像素坐标对应的当前肠道内壁环形图像的图片序号;Determine the picture number of the current circular image of the intestinal wall corresponding to the pixel coordinates according to the pixel coordinates of the region of interest and the pixel width of each of the circular images of the intestinal wall;
计算所述图片序号之前的各幅肠道内壁环形图像的像素宽度之和以及物理宽度之和;Calculate the sum of the pixel widths and the sum of the physical widths of the annular images of the inner wall of the intestinal tract before the sequence number of the pictures;
根据所述像素坐标、所述像素宽度之和、所述物理宽度之和以及所述当前肠道内壁环形图像的物理宽度确定所述感兴趣区域在肠道中的物理位置。The physical position of the region of interest in the intestinal tract is determined according to the pixel coordinates, the sum of the pixel widths, the sum of the physical widths, and the physical width of the current circular image of the inner wall of the intestinal tract.
优选地,根据获取的指令标注所述肠道全景图像中的感兴趣区域的方法包括:Preferably, the method for marking the region of interest in the intestinal panorama image according to the acquired instruction includes:
根据滚动指令、滑动指令、放大指令和缩小指令中的至少一种指令对所述肠道全景图像进行操作,以确定感兴趣区域;Operating the intestinal panorama image according to at least one of a scrolling instruction, a sliding instruction, a zoom-in instruction, and a zoom-out instruction, to determine a region of interest;
根据单击指令、双击指令和框选指令中的一种指令对所述感兴趣区域进行标注。The region of interest is marked according to one of a single-click instruction, a double-click instruction, and a frame selection instruction.
本申请还公开了一种计算机可读存储介质,所述计算机可读存储介质存储有胶囊内窥镜肠道图像的识别定位程序,所述胶囊内窥镜肠道图像的识别定位程序被处理器执行时实现上述的胶囊内窥镜肠道图像的识别定位方法。 The present application also discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a recognition and positioning program of the capsule endoscope intestinal image, and when the capsule endoscope intestinal image recognition and positioning program is executed by a processor, the above-mentioned capsule endoscope intestinal image recognition and positioning method is realized.
本申请还公开了一种计算机设备,所述计算机设备包括计算机可读存储介质、处理器和存储在所述计算机可读存储介质中的胶囊内窥镜肠道图像的识别定位程序,所述胶囊内窥镜肠道图像的识别定位程序被处理器执行时实现上述的胶囊内窥镜肠道图像的识别定位方法。The present application also discloses a computer device. The computer device includes a computer-readable storage medium, a processor, and a program for identifying and locating the intestinal tract images of the capsule endoscope stored in the computer-readable storage medium. When the program for identifying and locating the intestinal tract images of the capsule endoscope is executed by the processor, the above-mentioned method for identifying and locating the intestinal tract images of the capsule endoscope is implemented.
(三)有益效果(3) Beneficial effects
本发明公开的一种胶囊内窥镜肠道图像的识别定位方法,相对于传统方法,具有如下技术效果:Compared with the traditional method, a method for identifying and locating the intestinal tract image of the capsule endoscope disclosed by the present invention has the following technical effects:
通过将原始肠道图片拼接形成肠道全景图片,使得阅片、诊断的整个过程比较直观、便捷,另外根据感兴趣区域的像素坐标及各幅肠道内壁环形图像的物理长度,能快速、精准地确定感兴趣区域的临床定位。By splicing the original intestinal pictures to form a panoramic picture of the intestinal tract, the whole process of film reading and diagnosis is more intuitive and convenient. In addition, according to the pixel coordinates of the region of interest and the physical length of each circular image of the inner wall of the intestinal tract, the clinical location of the region of interest can be quickly and accurately determined.
【附图说明】【Description of drawings】
图1为本发明的实施例一的胶囊内窥镜肠道图像的识别定位方法的流程图;1 is a flowchart of a method for identifying and locating a capsule endoscope intestinal image according to Embodiment 1 of the present invention;
图2为本发明的实施例一的图像旋转校正示意图;FIG. 2 is a schematic diagram of image rotation correction in Embodiment 1 of the present invention;
图3为本发明的实施例一的目标边缘提取示意图;FIG. 3 is a schematic diagram of target edge extraction according to Embodiment 1 of the present invention;
图4为本发明的实施例一的肠道内壁环形图像的物理宽度测量示意图;Fig. 4 is a schematic diagram of the physical width measurement of the annular image of the inner wall of the intestinal tract according to Embodiment 1 of the present invention;
图5为本发明的实施例一的肠道内壁环形图像的截取展开示意图;Fig. 5 is a schematic diagram of interception and expansion of the annular image of the inner wall of the intestinal tract in Embodiment 1 of the present invention;
图6为本发明的实施例一的多幅肠道内壁环形图像的拼接重建示意图;Fig. 6 is a schematic diagram of splicing and reconstruction of multiple circular images of the inner wall of the intestinal tract according to Embodiment 1 of the present invention;
图7为本发明的实施例二的计算机设备示意图。FIG. 7 is a schematic diagram of computer equipment according to Embodiment 2 of the present invention.
【具体实施方式】【Detailed ways】
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
在详细描述本申请的各个实施例之前,首先简单描述本申请的技术构思:现有技术中根据胶囊内窥镜拍摄的肠道图像进行识别和诊断,主要通过视频或图像阅片的方式,由于图像数量较大,整个阅片过程耗时较长,且对于可疑病灶等感兴趣区域,无法确定其在肠道中的具体位置。为此,本申请提供的胶囊内窥镜肠道图像的识别定位方法,在对原始肠道图像进行旋转校正处理之后, 各幅图像进行截取测量后,进行展开、拼接形成肠道全景图像,根据相关操作指令直接地在肠道全景图像中进行阅片,识别并标注感兴趣区域,结合感兴趣区域的像素坐标和对各幅图像进行截取测量到得到的像素宽度、物理宽度,确定感兴趣区域在肠道中的物理位置,阅片、诊断的整个过程比较直观、便捷,且能快速、精准地确定感兴趣区域的临床定位。Before describing the various embodiments of the present application in detail, first briefly describe the technical concept of the present application: in the prior art, identification and diagnosis are performed based on intestinal images taken by capsule endoscopes, mainly through video or image reading. Due to the large number of images, the entire process of reading images takes a long time, and for areas of interest such as suspicious lesions, the specific location in the intestinal tract cannot be determined. To this end, the identification and positioning method of the capsule endoscope intestinal image provided by this application, after performing rotation correction processing on the original intestinal image, After the interception and measurement of each image, it is expanded and spliced to form a panoramic image of the intestinal tract. According to the relevant operation instructions, the film is directly read in the panoramic image of the intestinal tract, and the region of interest is identified and marked. Combined with the pixel coordinates of the region of interest and the pixel width and physical width obtained from the interception and measurement of each image, the physical position of the region of interest in the intestinal tract is determined. The whole process of image reading and diagnosis is more intuitive and convenient, and the clinical location of the region of interest can be quickly and accurately determined.
具体来说,如图1所示,本实施例一的胶囊内窥镜肠道图像的识别定位方法包括如下步骤:Specifically, as shown in FIG. 1, the identification and positioning method of the capsule endoscope intestinal image in the first embodiment includes the following steps:
步骤S10:对胶囊内窥镜拍摄到的各幅原始肠道图像依序进行旋转校正处理得到校正图像,其中各幅校正图像的视角均相同。Step S10: Perform rotation correction processing on the original intestinal images captured by the capsule endoscope to obtain corrected images, wherein the angle of view of each corrected image is the same.
步骤S20:依次对各幅校正图像进行截取测量处理,获得各幅校正图像对应的肠道内壁环形图像以及获得各幅肠道内壁环形图像的像素宽度对应的物理宽度。Step S20: Intercepting and measuring each corrected image sequentially to obtain the annular image of the inner wall of the intestine corresponding to each corrected image and the physical width corresponding to the pixel width of the annular image of the inner wall of the intestinal tract.
步骤S30:将各幅肠道内壁环形图像展开后按照像素宽度方向依序进行拼接,形成肠道全景图像。Step S30 : unfolding the circular images of the inner wall of the intestinal tract and sequentially splicing them according to the pixel width direction to form a panoramic image of the intestinal tract.
步骤S40:根据获取的指令标注肠道全景图像中的感兴趣区域,并确定感兴趣区域在肠道全景图像中的像素坐标。Step S40: mark the ROI in the intestinal panorama image according to the acquired instructions, and determine the pixel coordinates of the ROI in the intestinal panorama image.
步骤S50:根据感兴趣区域的像素坐标、各幅肠道内壁环形图像的像素宽度以及各幅肠道内壁环形图像的像素宽度对应的物理宽度确定感兴趣区域在肠道中的物理位置。Step S50: Determine the physical position of the region of interest in the intestinal tract according to the pixel coordinates of the region of interest, the pixel width of each annular image of the inner wall of the intestinal tract, and the corresponding physical width of the pixel width of the annular image of the inner wall of the intestinal tract.
具体来说,步骤S10中,利用胶囊内窥镜拍摄肠道图像时,由于胶囊内窥镜在移动过程中还存在绕自身轴向的转动,会导致拍摄得到的图像存在偏转,其中这里的自身轴向指的是胶囊内窥镜的前进方向,因此需要进行旋转校正处理。为了便于描述,各幅原始肠道图像In构成的原始图像集表示为{In},1≤n≤N,N表示获取得到的图像总数,原始肠道图像的分辨率为D×D。示例性地,本实施例中的胶囊内窥镜的拍摄方向与移动方向相反,即胶囊内窥镜在前进过程中,对其后方的肠道内壁进行拍摄。旋转校正处理可采用两种方式进行,一是基于图像本身特征进行校正,二是基于传感器数据进行校正。Specifically, in step S10, when using the capsule endoscope to take images of the intestinal tract, since the capsule endoscope still rotates around its own axis during the movement process, the captured image will be deflected, wherein the self-axis here refers to the forward direction of the capsule endoscope, so rotation correction processing is required. For the convenience of description, the original image set composed of each original intestinal image I n is denoted as {I n }, 1≤n≤N, N represents the total number of acquired images, and the resolution of the original intestinal image is D×D. Exemplarily, the photographing direction of the capsule endoscope in this embodiment is opposite to the moving direction, that is, the capsule endoscope photographs the inner wall of the intestinal tract behind it during the advancing process. The rotation correction process can be carried out in two ways, one is to correct based on the characteristics of the image itself, and the other is to correct based on sensor data.
基于图像本身进行校正的方法,包括如下步骤:The method for correcting based on the image itself includes the following steps:
步骤S101、将待校正图像和与所述待校正图像相邻的已校正图像进行特征点匹配,获得所述待校正图像的第一特征点集和所述已校正图像的第二特征点 集。Step S101, performing feature point matching on the image to be corrected and the corrected image adjacent to the image to be corrected, to obtain the first feature point set of the image to be corrected and the second feature point set of the corrected image set.
假设在原始图像集{In}中的已校正图像为In→I'n,待校正图像为In+1,其中,第一张图像(n=1)不需要进行校正,将待校正图像为In+1和已校正图像I'n,进行特征点匹配,获得M对特征点,其中M对特征点在待校正图像In+1的集合表示为第一特征点集{Gm}n+1,1≤m≤M,M对特征点在已校正图像I'n的集合表示为第二特征点集{Gm}n,1≤m≤M,Assuming that the corrected image in the original image set {I n } is I n → I' n , the image to be corrected is I n+1 , where the first image (n=1) does not need to be corrected, the image to be corrected is I n + 1 and the corrected image I' n , and the feature points are matched to obtain M pairs of feature points, where the set of M pairs of feature points in the image to be corrected I n+1 is represented as the first feature point set {G m } n+1 , 1≤m≤M, M pairs of feature points in the already The set of corrected images I' n is expressed as the second feature point set {G m } n , 1≤m≤M,
步骤S102、根据待校正图像的第一特征点集和已校正图像的第二特征点集确定待校正图像与已校正图像之间的相对旋转角度。Step S102. Determine the relative rotation angle between the image to be corrected and the corrected image according to the first set of feature points of the image to be corrected and the second set of feature points of the corrected image.
如图2所示,第一特征点集的第一中心点表示为Cn+1,第二特征点集的第二中心点表示为Cn。在待校正图像为In+1中,第一中心点Cn+1到图像中心点的连线与图像中心水平方向的夹角为αn+1;在已待校正图像为I'n中,第二中心点Cn到图像中心点的连线与图像中心水平方向的夹角为αn。待校正图像与已校正图像之间的相对旋转角度为:As shown in FIG. 2 , the first center point of the first feature point set is denoted as C n+1 , and the second center point of the second feature point set is denoted as C n . In the image to be corrected is I n+1 , the angle between the line connecting the first center point C n+1 to the image center point and the horizontal direction of the image center is α n+1 ; in the image to be corrected is I' n , the angle between the line connecting the second center point C n to the image center point and the horizontal direction of the image center is α n . The relative rotation angle between the image to be corrected and the corrected image is:
Δα=αn+1n Δα=α n+1n
其中,Δα>0时,表示待校正图像为In+1需要进行顺时针旋转才能与已待校正图像为I'n实现视角对齐;Δα<0时,表示待校正图像为In+1需要进行逆时针旋转才能与已待校正图像为I'n实现视角对齐。Among them, when Δα>0, it means that the image to be corrected is I n+1 and needs to be rotated clockwise to achieve perspective alignment with the image to be corrected which is I'n; when Δα<0, it means that the image to be corrected is I n+1 and needs to be rotated counterclockwise to align with the image to be corrected which is I' n .
步骤S103、根据所述第一夹角与第二夹角的差值对所述待校正图像的各个像素点值校正,获得校正图像。Step S103 , correcting each pixel value of the image to be corrected according to the difference between the first included angle and the second included angle, to obtain a corrected image.
待校正图像为In+1进行旋转校正后的图像表示为I′n+1,对于任意像素点值p'(u',v')∈I'n+1可对相应的像素点值p(u,v)∈In+1按照如下公式进行校正得到,
The image to be corrected is I n+1 and the image after rotation correction is expressed as I′ n+1 . For any pixel value p'(u',v')∈I' n+1 , the corresponding pixel value p(u,v)∈I n+1 can be corrected according to the following formula,
其中,round(□)表示取整。在其他实施方式中,也可以采用插值方式获得校正后的图像像素点值。Among them, round(□) means rounding. In other implementation manners, interpolation may also be used to obtain the corrected image pixel value.
基于传感器数据进行校正的方法,包括如下步骤:The method for correcting based on sensor data includes the following steps:
步骤S111、获取待校正图像的所在采集时刻的第一重力加速度值以及与待校正图像相邻的已校正图像所在采集时刻的第二重力加速度值。 Step S111 , acquiring the first gravitational acceleration value at the acquisition time of the image to be corrected and the second gravitational acceleration value at the acquisition time of the corrected image adjacent to the image to be corrected.
假设在原始图像集{In}中的已校正图像为In→I'n,待校正图像为In+1,其中,第一张图像(n=1)不需要进行校正,将待校正图像为In+1和已校正图像I'n。获取已校正图像I'n所在采集时刻重力传感器测量得到的第一重力加速度值:
Assuming that the corrected image in the original image set {I n } is I n → I' n , the image to be corrected is I n+1 , where the first image (n=1) does not need to be corrected, the image to be corrected is I n+1 and the corrected image I' n . Obtain the first gravitational acceleration value measured by the gravity sensor at the acquisition moment of the corrected image I' n :
待校正图像In+1所在采集时刻重力传感器测量得到的第二重力加速度值:
The second gravitational acceleration value measured by the gravity sensor at the acquisition moment of the image I n+1 to be corrected:
其中,分别为已校正图像I'n采集时刻重力传感器在u轴、v轴和r轴的重力加速度读数。分别为待校正图像In+1采集时刻重力传感器在u轴、v轴和r轴的重力加速度读数。in, are the gravity acceleration readings of the gravity sensor on the u-axis, v-axis and r-axis at the time when the corrected image I' n is collected, respectively. are the readings of the gravity acceleration of the gravity sensor on the u-axis, v-axis and r-axis at the acquisition time of the image I n+1 to be corrected, respectively.
步骤S112、根据第一重力加速度值与第二重力加速度值确定待校正图像与所述已校正图像之间的相对旋转角度。Step S112. Determine the relative rotation angle between the image to be corrected and the corrected image according to the first gravitational acceleration value and the second gravitational acceleration value.
具体地,按照如下公式计算待校正图像与所述已校正图像之间的相对旋转角度:
Specifically, the relative rotation angle between the image to be corrected and the corrected image is calculated according to the following formula:
其中,Δα>0时,表示待校正图像为In+1需要进行顺时针旋转才能与已待校正图像为I'n实现视角对齐;Δα<0时,表示待校正图像为In+1需要进行逆时针旋转才能与已待校正图像为I'n实现视角对齐。Among them, when Δα>0, it means that the image to be corrected is I n+1 and needs to be rotated clockwise to achieve perspective alignment with the image to be corrected which is I'n; when Δα<0, it means that the image to be corrected is I n+1 and needs to be rotated counterclockwise to align with the image to be corrected which is I' n .
步骤S113、根据所述相对旋转角度对所述待校正图像的各个像素点值校正,获得校正图像。Step S113 , correcting each pixel point value of the image to be corrected according to the relative rotation angle to obtain a corrected image.
待校正图像为In+1进行旋转校正后的图像表示为I′n+1,对于任意像素点值p'(u',v')∈I'n+1可对相应的像素点值p(u,v)∈In+1按照如下公式进行校正得到,
The image to be corrected is I n+1 and the image after rotation correction is expressed as I′ n+1 . For any pixel value p'(u',v')∈I' n+1 , the corresponding pixel value p(u,v)∈I n+1 can be corrected according to the following formula,
其中,round(□)表示取整。在其他实施方式中,也可以采用插值方式获得校正后的图像像素点值。经过旋转校正后得到的校正图像集表示为{I'n},1≤n≤N。Among them, round(□) means rounding. In other implementation manners, interpolation may also be used to obtain the corrected image pixel value. The corrected image set obtained after rotation correction is denoted as {I' n }, 1≤n≤N.
在步骤S20中,对校正图像进行截取测量处理,获得校正图像对应的肠道内壁环形图像的方法包括如下步骤:In step S20, the correction image is intercepted and measured, and the method for obtaining the ring image of the inner wall of the intestinal tract corresponding to the correction image includes the following steps:
步骤S21、确定与待截取测量图像相邻的已截取测量图像的圆形边缘,提取圆形边缘在待截取测量图像中的目标边缘。Step S21 , determining the circular edge of the captured measurement image adjacent to the measurement image to be captured, and extracting the target edge of the circular edge in the measurement image to be captured.
步骤S22、将圆形边缘的半径与目标边缘的半径的差值作为截取宽度,根据截取宽度从待截取测量图像中截取部分图像,作为肠道内壁环形图像,肠道内壁环形图像的像素宽度等于所述截取宽度。Step S22, taking the difference between the radius of the circular edge and the radius of the target edge as the interception width, and intercepting a part of the image from the measurement image to be intercepted according to the interception width, as an annular image of the inner wall of the intestinal tract, and the pixel width of the annular image of the inner wall of the intestinal tract is equal to the interception width.
其中,将经过旋转校正后得到的校正图像集表示为{I'n},1≤n≤N。对于第一张图像不进行处理,如图3所示,假设已截取测量图像I'n的圆形边缘表示为201,圆形边缘201在待截取测量图像I'n+1中的位置,即为目标边缘202。圆形边缘201是以已截取测量图像的中心为圆心,半径为r1的圆;目标边缘202是以待截取测量图像的中心为圆心,半径为r2的圆。因此,提取目标边缘202的过程可以看做转换为半径r2的确定过程。其中,r1和r2均为像素长度。Wherein, the corrected image set obtained after rotation correction is expressed as {I' n }, 1≤n≤N. No processing is performed on the first image, as shown in Figure 3, assuming that the circular edge of the intercepted measurement image I'n is represented as 201, the position of the circular edge 201 in the measurement image I'n +1 to be intercepted is the target edge 202. The circular edge 201 is a circle with the center of the intercepted measurement image as the center and a radius of r1 ; the target edge 202 is a circle with the center of the measurement image to be intercepted as the center and a radius of r2 . Therefore, the process of extracting the target edge 202 can be regarded as a process of determining the radius r 2 . Among them, r 1 and r 2 are pixel lengths.
具体地,步骤S21包括如下过程:Specifically, step S21 includes the following processes:
步骤S211、计算圆形边缘的第一离散量化像素灰度值序列En,计算公式如下:

Step S211, calculating the first discrete quantized pixel gray value sequence E n of the circular edge, the calculation formula is as follows:

步骤S212、在待截取测量图像选定候选边缘,并计算候选边缘的第二离散量化像素灰度值序列计算公式如下:

Step S212, selecting a candidate edge in the measurement image to be intercepted, and calculating the second discrete quantized pixel gray value sequence of the candidate edge Calculated as follows:

其中,rv表示候选边缘的半径,候选边缘的圆心为待截取测量图像的中心,1≤Q≤255为离散量化刻度,越大的Q值对应越快的计算效率,但是精度会下降,优选的,Q=26。 Wherein, r v represents the radius of the candidate edge, the center of the candidate edge is the center of the measurement image to be intercepted, 1≤Q≤255 is the discrete quantization scale, the larger the Q value corresponds to the faster calculation efficiency, but the accuracy will decrease, preferably, Q=26.
步骤S213、计算第一离散量化像素灰度值序列与第二离散量化像素灰度值序列的莱文斯坦距离计算公式如下:

Step S213, calculating the Levenstein distance between the first discrete quantized pixel gray value sequence and the second discrete quantized pixel gray value sequence Calculated as follows:

其中,Lev(a,b)表示计算序列a和b的莱文斯坦距离。Among them, Lev(a,b) means to calculate the Levenstein distance between sequences a and b.
步骤S214、依次调整候选边缘的半径,直至莱文斯坦距离满足预定条件,将此时的候选边缘作为目标边缘。Step S214 , adjusting the radius of the candidate edge in turn until the Levenstein distance satisfies the predetermined condition, and the candidate edge at this time is taken as the target edge.
rv从r1-1开始递减,若满足:
when r v starts to decrease from r 1 -1, if it satisfies:
选取此时rv的作为r2,即对应的候选边缘为目标边缘202。Select r v at this time as r 2 , that is, the corresponding candidate edge is the target edge 202 .
若递减至时仍然无法满足上述条件,则选取所对应的rv作为目标边缘202的位置,即r2=rvIf reduced to If the above conditions still cannot be met, select The corresponding r v is used as the position of the target edge 202 , that is, r 2 =r v .
在确定了目标边缘202的半径r2之后,可得到截取宽度W=r1-r2,根据该截取宽度可从待截取测量图像I'n+1中截取部分图像,作为肠道内壁环形图像I″n+1After the radius r 2 of the target edge 202 is determined, the interception width W=r 1 -r 2 can be obtained, according to the interception width, a partial image can be intercepted from the measurement image I'n +1 to be intercepted as the annular image I″ n+1 of the inner wall of the intestinal tract.
进一步地,获取肠道内壁环形图像的像素宽度对应的物理宽度的方法如下:Further, the method for obtaining the physical width corresponding to the pixel width of the annular image of the inner wall of the intestinal tract is as follows:
如图4所示,假设设胶囊内镜前盖301半径为R,镜头等效光心303与前盖301底径间距为d。CO-1为镜头的最大视角边缘视线,对应待截取测量图像I'n+1中半径为r1的成像边缘,CO-2为待截取测量图像I'n+1中半径为r2的成像圆环所对应的视线,待测距离304即为肠道内壁环形图像的像素宽度对应的物理宽度。已知镜头的最大视角为FOVmax,则待测距离304的长度可以计算为:As shown in FIG. 4 , it is assumed that the radius of the front cover 301 of the capsule endoscope is R, and the distance between the lens equivalent optical center 303 and the bottom diameter of the front cover 301 is d. CO-1 is the maximum viewing angle edge line of sight of the lens, corresponding to the imaging edge whose radius is r1 in the measurement image I'n +1 to be intercepted, CO-2 is the line of sight corresponding to the imaging circle whose radius is r2 in the measurement image I'n +1 to be intercepted, and the distance to be measured 304 is the physical width corresponding to the pixel width of the annular image of the inner wall of the intestinal tract. Given that the maximum viewing angle of the lens is FOV max , the length of the distance to be measured 304 can be calculated as:
ln+1=|φ12|radRl n+1 =|φ 12 | rad R
其中,




in,


and

获得的肠道内壁环形图像集合表示{I”n},1≤n≤N,获得的物理宽度数据集合表示为{ln+1},1≤n≤N-1。The obtained circular image set of the inner wall of the intestinal tract is expressed as {I” n }, 1≤n≤N, and the obtained physical width data set is expressed as {l n+1 }, 1≤n≤N-1.
进一步地,在步骤S30中,将各幅肠道内壁环形图像展开后按照像素宽度方向依序进行拼接,形成肠道全景图像。Further, in step S30 , the circular images of the inner wall of the intestinal tract are unfolded and spliced sequentially according to the pixel width direction to form a panoramic image of the intestinal tract.
具体地,如图5所示,待截取测量图像I'n+1的分辨率为D*D,圆形边缘的半径为r1=D/2,肠道内壁环形图像I″n+1的分辨率为W*H,其中:Specifically, as shown in Fig. 5, the resolution of the measurement image I'n +1 to be intercepted is D*D, the radius of the circular edge is r 1 =D/2, and the resolution of the ring image I″ n+1 of the inner wall of the intestinal tract is W*H, where:
W=r1-r2 W=r 1 -r 2
H=round(2πD)H=round(2πD)
对于肠道内壁环形图像I″n+1的任意像素P”n+1(u”,v”),其值由待截取测量图像I'n+1中的对应像素P'n+1(u',v')获得,其中
For any pixel P" n+1 (u", v") of the annular image I" n+1 of the inner wall of the intestinal tract, its value is obtained from the corresponding pixel P' n+1 (u', v') in the measurement image I' n+1 to be intercepted, where
在其他实施方式中,P”n+1(u”,v”)的值可以由P'n+1(u',v')通过插值获得。In other embodiments, the value of P" n+1 (u", v") can be obtained from P' n+1 (u', v') through interpolation.
如图6所示,对于获得的肠道内壁环形图像集合表示{I”n},1≤n≤N,每一肠道内壁环形图像I”n的像素高度为Hn,像素宽度为Wn,物理宽度为ln。其中,Hn、Wn的单位为像素数,的单位为毫米或分米。As shown in Fig. 6, for the obtained intestinal inner wall ring image collection representation {I” n }, 1≤n≤N, the pixel height of each intestinal inner wall ring image I” n is H n , the pixel width is W n , and the physical width is l n . Wherein, the unit of H n and W n is the number of pixels, and the unit of H n is millimeter or decimeter.
其中,H1=H2=...=Hn=HN=round(2πD)Wherein, H 1 =H 2 =...=H n =H N =round(2πD)
将肠道内壁环形图像集合{I”n},1≤n≤N各幅图像按照像素宽度方向进行首尾拼接,形成肠道全景图像IF,肠道全景图像IF的像素高度为HF,像素宽度为WF,且 The intestinal inner wall ring image set {I” n }, 1≤n≤N each image is spliced end to end according to the pixel width direction to form a intestinal panoramic image I F , the pixel height of the intestinal panoramic image I F is H F , and the pixel width is W F , and
HF=round(2πD)
H F = round(2πD)
在步骤S40中,根据获取的指令标注肠道全景图像中的感兴趣区域的方法包括如下步骤:In step S40, the method for marking the region of interest in the intestinal panorama image according to the acquired instruction includes the following steps:
步骤S41:根据滚动指令、滑动指令、放大指令和缩小指令中的至少一种指令对肠道全景图像进行操作,以确定感兴趣区域。Step S41: Operate the intestinal panorama image according to at least one of a scrolling instruction, a sliding instruction, a zoom-in instruction and a zoom-out instruction, so as to determine a region of interest.
由于重建得到的肠道全景图像的图像分辨率超过显示屏幕的分辨率,操作者可以通过滚动、滑动、放大和缩小等方式对图像进行操作,方便进行阅片和诊断,可快速地确定出临床定位标志、疑似病灶等感兴趣区域。Since the image resolution of the reconstructed intestinal panorama image exceeds the resolution of the display screen, the operator can operate the image by scrolling, sliding, zooming in and zooming out, etc., which is convenient for film reading and diagnosis, and can quickly determine clinical positioning marks, suspected lesions and other areas of interest.
步骤S42:根据单击指令、双击指令和框选指令中的一种指令对所述感兴趣区域进行标注。Step S42: Mark the region of interest according to one of a single-click instruction, a double-click instruction, and a frame selection instruction.
其中,感兴趣区域数量可以为多个,在完成阅片之后,可形成K个感兴趣区域{Tk},1≤k≤K,每一个感兴趣区域Tk在肠道全景图像IF的像素坐标为其中 Wherein, the number of regions of interest can be multiple, and after the image reading is completed, K regions of interest {T k } can be formed, 1≤k≤K, and the pixel coordinates of each region of interest T k in the intestinal panorama image IF are in
进一步地,在步骤S50中,根据感兴趣区域Tk的像素坐标各幅肠道内壁环形图像的像素宽度Wn以及各幅肠道内壁环形图像的像素宽度Wn对应的物理宽度ln确定感兴趣区域Tk在肠道中的物理位置Lk的方法包括如下步骤:Further, in step S50, according to the pixel coordinates of the region of interest T k The method for determining the physical position L k of the region of interest T k in the intestinal tract by determining the pixel width W n of each annular image of the inner wall of the intestinal tract and the corresponding physical width l n of the pixel width W n of the annular images of the inner wall of the intestinal tract includes the following steps:
步骤S51、根据感兴趣区域Tk的像素坐标和各幅肠道内壁环形图像的像素宽度Wn确定与像素坐标对应的当前肠道内壁环形图像的图片序号具体按照如下公式确定:
Step S51, according to the pixel coordinates of the region of interest T k and the pixel width W n of each intestinal wall ring image is determined with the pixel coordinates Corresponding to the current ring image of the inner wall of the intestinal tract image number Specifically, it is determined according to the following formula:
步骤S52、计算图片序号之前的各幅肠道内壁环形图像的像素宽度之和以及物理宽度之和 Step S52, calculate the serial number of the picture The sum of the pixel widths of the previous ring images of the inner wall of the intestinal tract and the sum of the physical width
步骤S53、根据像素坐标像素宽度之和物理宽度之和以及当前肠道内壁环形图像的物理宽度确定感兴趣区域在肠道中的物理 位置Lk,具体按照如下公式确定:
Step S53, according to the pixel coordinates sum of pixel widths sum of physical widths And the current circular image of the inner wall of the intestine physical width of Determining the physical location of the region of interest in the gut The position L k is specifically determined according to the following formula:
其中,对所有的感兴趣区域{Tk},1≤k≤K进行上述处理,可以获得感兴趣区域的原始图片编号集合对应的感兴趣区域的定位数据集合为{Lk},1≤k≤K。Among them, the above-mentioned processing is performed on all regions of interest {T k }, 1≤k≤K, and the original picture number set of the region of interest can be obtained The positioning data set of the corresponding ROI is {L k }, 1≤k≤K.
本申请的实施例二还公开了一种计算机可读存储介质,计算机可读存储介质存储有胶囊内窥镜肠道图像的识别定位程序,胶囊内窥镜肠道图像的识别定位程序被处理器执行时实现上述的胶囊内窥镜肠道图像的识别定位方法。Embodiment 2 of the present application also discloses a computer-readable storage medium. The computer-readable storage medium stores a recognition and positioning program for capsule endoscope intestinal images. When the capsule endoscope intestinal image recognition and positioning program is executed by a processor, the above-mentioned capsule endoscope intestinal image recognition and positioning method is realized.
本实施例三还公开了一种计算机设备,在硬件层面,如图7所示,该计算机设备包括处理器12、内部总线13、网络接口14、计算机可读存储介质11。处理器12从计算机可读存储介质中读取对应的计算机程序然后运行,在逻辑层面上形成请求处理装置。当然,除了软件实现方式之外,本说明书一个或多个实施例并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。计算机可读存储介质11上存储有胶囊内窥镜肠道图像的识别定位程序,所述胶囊内窥镜肠道图像的识别定位程序被处理器执行时实现上述的胶囊内窥镜肠道图像的识别定位方法。Embodiment 3 also discloses a computer device. At the hardware level, as shown in FIG. 7 , the computer device includes a processor 12 , an internal bus 13 , a network interface 14 , and a computer-readable storage medium 11 . The processor 12 reads the corresponding computer program from the computer-readable storage medium and executes it, forming a request processing device on a logical level. Of course, in addition to software implementations, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices. The computer-readable storage medium 11 stores a capsule endoscope intestinal image recognition and positioning program, which realizes the capsule endoscope intestinal image recognition and positioning method when executed by the processor.
计算机可读存储介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机可读存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带、磁盘存储、量子存储器、基于石墨烯的存储介质或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。Computer-readable storage media includes both volatile and non-permanent, removable and non-removable media by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
上面对本发明的具体实施方式进行了详细描述,虽然已表示和描述了一些实施例,但本领域技术人员应该理解,在不脱离由权利要求及其等同物限定其 范围的本发明的原理和精神的情况下,可以对这些实施例进行修改和完善,这些修改和完善也应在本发明的保护范围内。 The specific embodiments of the present invention have been described in detail above. Although some embodiments have been shown and described, those skilled in the art should understand that without departing from the claims and their equivalents, the Under the condition of the principle and spirit of the present invention within the scope, modifications and improvements can be made to these embodiments, and these modifications and improvements should also be within the protection scope of the present invention.

Claims (10)

  1. 一种胶囊内窥镜肠道图像的识别定位方法,其特征在于,所述识别定位方法包括:A method for identifying and positioning capsule endoscope intestinal images, characterized in that the method for identifying and positioning comprises:
    对胶囊内窥镜拍摄到的各幅原始肠道图像依序进行旋转校正处理得到校正图像,其中各幅所述校正图像的视角均相同;Sequentially performing rotation correction processing on each original intestinal image captured by the capsule endoscope to obtain a corrected image, wherein the angles of view of each corrected image are the same;
    依次对各幅所述校正图像进行截取测量处理,获得各幅所述校正图像对应的肠道内壁环形图像以及获得各幅所述肠道内壁环形图像的像素宽度对应的物理宽度;Perform interception and measurement processing on each of the corrected images in turn to obtain a circular image of the inner wall of the intestinal tract corresponding to each of the corrected images and obtain a physical width corresponding to the pixel width of the annular image of the inner wall of the intestinal tract;
    将各幅所述肠道内壁环形图像展开后按照像素宽度方向依序首尾拼接,形成肠道全景图像;Stitching each circular image of the inner wall of the intestinal tract sequentially end to end according to the pixel width direction to form a panoramic image of the intestinal tract;
    根据获取的指令标注所述肠道全景图像中的感兴趣区域,并确定所述感兴趣区域在所述肠道全景图像中的像素坐标;Marking the region of interest in the intestinal panorama image according to the acquired instruction, and determining the pixel coordinates of the interest region in the intestinal panoramic image;
    根据所述感兴趣区域的像素坐标、各幅所述肠道内壁环形图像的像素宽度以及各幅所述肠道内壁环形图像的像素宽度对应的物理宽度确定所述感兴趣区域在肠道中的物理位置。The physical position of the region of interest in the intestinal tract is determined according to the pixel coordinates of the region of interest, the pixel width of each circular image of the inner wall of the intestinal tract, and the physical width corresponding to the pixel width of the circular images of the inner wall of the intestinal tract.
  2. 根据权利要求1所述的胶囊内窥镜肠道图像的识别定位方法,其特征在于,所述对胶囊内窥镜拍摄到的各幅原始肠道图像进行旋转校正处理得到校正图像的方法包括:The method for identifying and locating intestinal images of a capsule endoscope according to claim 1, wherein the method of performing rotation correction processing on each original intestinal image captured by a capsule endoscope to obtain a corrected image comprises:
    将待校正图像和与所述待校正图像相邻的已校正图像进行特征点匹配,获得所述待校正图像的第一特征点集和所述已校正图像的第二特征点集;performing feature point matching on the image to be corrected and a corrected image adjacent to the image to be corrected, to obtain a first set of feature points of the image to be corrected and a second set of feature points of the corrected image;
    根据所述待校正图像的第一特征点集和所述已校正图像的第二特征点集确定所述待校正图像与所述已校正图像之间的相对旋转角度;determining a relative rotation angle between the image to be corrected and the corrected image according to the first set of feature points of the image to be corrected and the second set of feature points of the corrected image;
    根据所述第一夹角与第二夹角的差值对所述待校正图像的各个像素点值校正,获得校正图像。Correcting each pixel point value of the image to be corrected according to the difference between the first included angle and the second included angle to obtain a corrected image.
  3. 根据权利要求1所述的胶囊内窥镜肠道图像的识别定位方法,其特征在于,所述对胶囊内窥镜拍摄到的各幅原始肠道图像进行旋转校正处理得到校正图像的方法包括:The method for identifying and locating intestinal images of a capsule endoscope according to claim 1, wherein the method of performing rotation correction processing on each original intestinal image captured by a capsule endoscope to obtain a corrected image comprises:
    获取待校正图像的所在采集时刻的第一重力加速度值以及与所述待校正图像相邻的已校正图像所在采集时刻的第二重力加速度值;Acquiring the first gravitational acceleration value at the acquisition moment of the image to be corrected and the second gravitational acceleration value at the acquisition moment of the corrected image adjacent to the image to be corrected;
    根据所述第一重力加速度值与所述第二重力加速度值确定所述待校正图像 与所述已校正图像之间的相对旋转角度;determining the image to be corrected according to the first gravitational acceleration value and the second gravitational acceleration value relative rotation angle to the corrected image;
    根据所述相对旋转角度对所述待校正图像的各个像素点值校正,获得校正图像。Correcting each pixel point value of the image to be corrected according to the relative rotation angle to obtain a corrected image.
  4. 根据权利要求1所述的胶囊内窥镜肠道图像的识别定位方法,其特征在于,对所述校正图像进行截取测量处理,获得所述校正图像对应的肠道内壁环形图像的方法包括:The method for identifying and locating the intestinal tract image of the capsule endoscope according to claim 1, wherein the method of intercepting and measuring the corrected image, and obtaining the circular image of the inner wall of the intestinal tract corresponding to the corrected image comprises:
    确定与待截取测量图像相邻的已截取测量图像的圆形边缘,提取所述圆形边缘在所述待截取测量图像中的目标边缘;determining the circular edge of the intercepted measurement image adjacent to the measurement image to be intercepted, and extracting the target edge of the circular edge in the measurement image to be intercepted;
    将所述圆形边缘的半径与所述目标边缘的半径的差值作为截取宽度,根据所述截取宽度从所述待截取测量图像中截取部分图像,作为肠道内壁环形图像,所述肠道内壁环形图像的像素宽度等于所述截取宽度。The difference between the radius of the circular edge and the radius of the target edge is used as the interception width, and a partial image is intercepted from the measurement image to be intercepted according to the interception width, as an annular image of the inner wall of the intestinal tract, and the pixel width of the annular image of the inner wall of the intestinal tract is equal to the interception width.
  5. 根据权利要求4所述的胶囊内窥镜肠道图像的识别定位方法,其特征在于,所述确定与待截取测量图像相邻的已截取测量图像的圆形边缘,提取所述圆形边缘在所述待截取测量图像中的目标边缘的方法包括:The method for identifying and locating the intestinal tract image of the capsule endoscope according to claim 4, wherein the method of determining the circular edge of the intercepted measurement image adjacent to the measurement image to be intercepted, and extracting the target edge of the circular edge in the measurement image to be intercepted comprises:
    计算所述圆形边缘的第一离散量化像素灰度值序列;calculating the first discrete quantized pixel gray value sequence of the circular edge;
    在所述待截取测量图像选定候选边缘,并计算候选边缘的第二离散量化像素灰度值序列;Selecting a candidate edge in the measurement image to be intercepted, and calculating a second discrete quantized pixel gray value sequence of the candidate edge;
    计算所述第一离散量化像素灰度值序列与所述第二离散量化像素灰度值序列的莱文斯坦距离;calculating the Levenstein distance between the first discrete quantized pixel gray value sequence and the second discrete quantized pixel gray value sequence;
    依次调整候选边缘的半径,直至所述莱文斯坦距离满足预定条件,将此时的候选边缘作为目标边缘。The radius of the candidate edge is adjusted sequentially until the Levenstein distance satisfies the predetermined condition, and the candidate edge at this time is taken as the target edge.
  6. 根据权利要求4所述的胶囊内窥镜肠道图像的识别定位方法,其特征在于,所述获得所述肠道内壁环形图像的像素宽度对应的物理宽度的方法包括:The method for identifying and positioning the intestinal tract image of the capsule endoscope according to claim 4, wherein the method for obtaining the physical width corresponding to the pixel width of the annular image of the inner wall of the intestinal tract comprises:
    根据获取的胶囊内窥镜的前盖的半径、胶囊内窥镜的等效光心与所述前盖底部的距离、所述圆形边缘的半径与所述目标边缘的半径计算得到所述肠道内壁环形图像的像素宽度对应的物理宽度。According to the acquired radius of the front cover of the capsule endoscope, the distance between the equivalent optical center of the capsule endoscope and the bottom of the front cover, the radius of the circular edge and the radius of the target edge, the physical width corresponding to the pixel width of the annular image of the inner wall of the intestinal tract is calculated.
  7. 根据权利要求4所述的胶囊内窥镜肠道图像的识别定位方法,其特征在于,根据所述感兴趣区域的像素坐标、各幅所述肠道内壁环形图像的像素宽度以及各幅所述肠道内壁环形图像的像素宽度对应的物理宽度确定所述感兴趣区域在肠道中的物理位置的方法包括:The method for identifying and locating intestinal images of the capsule endoscope according to claim 4, wherein the method for determining the physical position of the region of interest in the intestinal tract according to the pixel coordinates of the region of interest, the pixel width of each annular image of the inner wall of the intestinal tract, and the physical width corresponding to the pixel width of the annular images of the inner wall of the intestinal tract comprises:
    根据所述感兴趣区域的像素坐标和各幅所述肠道内壁环形图像的像素宽度 确定与所述像素坐标对应的当前肠道内壁环形图像的图片序号;According to the pixel coordinates of the region of interest and the pixel width of each circular image of the inner wall of the intestinal tract Determine the picture number of the current circular image of the inner wall of the intestinal tract corresponding to the pixel coordinates;
    计算所述图片序号之前的各幅肠道内壁环形图像的像素宽度之和以及物理宽度之和;Calculate the sum of the pixel widths and the sum of the physical widths of the annular images of the inner wall of the intestinal tract before the sequence number of the pictures;
    根据所述像素坐标、所述像素宽度之和、所述物理宽度之和以及所述当前肠道内壁环形图像的物理宽度确定所述感兴趣区域在肠道中的物理位置。The physical position of the region of interest in the intestinal tract is determined according to the pixel coordinates, the sum of the pixel widths, the sum of the physical widths, and the physical width of the current circular image of the inner wall of the intestinal tract.
  8. 根据权利要求4所述的胶囊内窥镜肠道图像的识别定位方法,其特征在于,根据获取的指令标注所述肠道全景图像中的感兴趣区域的方法包括:The identification and positioning method of the intestinal tract image of the capsule endoscope according to claim 4, wherein the method of marking the region of interest in the intestinal panoramic image according to the acquired instruction comprises:
    根据滚动指令、滑动指令、放大指令和缩小指令中的至少一种指令对所述肠道全景图像进行操作,以确定感兴趣区域;Operating the intestinal panorama image according to at least one of a scrolling instruction, a sliding instruction, a zoom-in instruction, and a zoom-out instruction, to determine a region of interest;
    根据单击指令、双击指令和框选指令中的一种指令对所述感兴趣区域进行标注。The region of interest is marked according to one of a single-click instruction, a double-click instruction, and a frame selection instruction.
  9. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有胶囊内窥镜肠道图像的识别定位程序,所述胶囊内窥镜肠道图像的识别定位程序被处理器执行时实现权利要求1至8任一项所述的胶囊内窥镜肠道图像的识别定位方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a program for identifying and locating intestinal images of a capsule endoscope, and when the program for identifying and locating intestinal images of a capsule endoscope is executed by a processor, the method for identifying and locating intestinal images of a capsule endoscope according to any one of claims 1 to 8 is implemented.
  10. 一种计算机设备,其特征在于,所述计算机设备包括计算机可读存储介质、处理器和存储在所述计算机可读存储介质中的胶囊内窥镜肠道图像的识别定位程序,所述胶囊内窥镜肠道图像的识别定位程序被处理器执行时实现权利要求1至8任一项所述的胶囊内窥镜肠道图像的识别定位方法。 A computer device, characterized in that the computer device includes a computer-readable storage medium, a processor, and a capsule endoscope intestinal image recognition and positioning program stored in the computer-readable storage medium, and when the capsule endoscope intestinal image recognition and positioning program is executed by the processor, the capsule endoscope intestinal image recognition and positioning method according to any one of claims 1 to 8 is implemented.
PCT/CN2023/072477 2022-01-18 2023-01-17 Capsule endoscope intestinal image-based recognition and positioning method, storage medium, and device WO2023138544A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210052705.2A CN114066781B (en) 2022-01-18 2022-01-18 Capsule endoscope intestinal image identification and positioning method, storage medium and equipment
CN202210052705.2 2022-01-18

Publications (1)

Publication Number Publication Date
WO2023138544A1 true WO2023138544A1 (en) 2023-07-27

Family

ID=80231291

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/072477 WO2023138544A1 (en) 2022-01-18 2023-01-17 Capsule endoscope intestinal image-based recognition and positioning method, storage medium, and device

Country Status (2)

Country Link
CN (1) CN114066781B (en)
WO (1) WO2023138544A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114066781B (en) * 2022-01-18 2022-05-10 浙江鸿禾医疗科技有限责任公司 Capsule endoscope intestinal image identification and positioning method, storage medium and equipment
CN114511045B (en) * 2022-04-19 2022-09-06 武汉大学 Image processing method, device, terminal and computer readable storage medium
CN114972144B (en) * 2022-05-23 2024-02-02 江苏势通生物科技有限公司 Method, device, storage medium and equipment for splicing intestinal images of capsule endoscope
CN114782470B (en) * 2022-06-22 2022-09-13 浙江鸿禾医疗科技有限责任公司 Three-dimensional panoramic recognition positioning method of alimentary canal, storage medium and equipment
CN115115545A (en) * 2022-06-28 2022-09-27 安翰科技(武汉)股份有限公司 Endoscope image correction method, system and computer storage medium
TWI816471B (en) * 2022-07-18 2023-09-21 樸實美股份有限公司 Capsule endoscope, endoscope system and image correction method
CN116076995B (en) * 2023-02-03 2023-09-01 浙江势通机器人科技有限公司 Scanning control method and scanning control system for capsule endoscope

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107730489A (en) * 2017-10-09 2018-02-23 杭州电子科技大学 Wireless capsule endoscope small intestine disease variant computer assisted detection system and detection method
WO2019207480A1 (en) * 2018-04-27 2019-10-31 Nidek Technologies Srl Method of stitching a plurality of iridocorneal angle images
CN111524071A (en) * 2020-04-24 2020-08-11 安翰科技(武汉)股份有限公司 Capsule endoscope image splicing method, electronic device and readable storage medium
CN113610887A (en) * 2021-05-26 2021-11-05 江苏势通生物科技有限公司 Method for determining capsule endoscope motion shooting path, storage medium and device
CN114066781A (en) * 2022-01-18 2022-02-18 浙江鸿禾医疗科技有限责任公司 Capsule endoscope intestinal tract image identification and positioning method, storage medium and equipment

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2316328B1 (en) * 2003-09-15 2012-05-09 Super Dimension Ltd. Wrap-around holding device for use with bronchoscopes
DE102005034167B4 (en) * 2005-07-21 2012-01-26 Siemens Ag Device and method for determining a position of an implant in a body
CN101551862B (en) * 2009-05-13 2011-06-01 西安电子科技大学 An extraction method of blood vessel centerline based on boundary distance field
CN101862205A (en) * 2010-05-25 2010-10-20 中国人民解放军第四军医大学 Intraoperative tissue tracking method combined with preoperative image
CN103505217A (en) * 2012-06-28 2014-01-15 吕海涛 Method for accurately measuring size of nidus under endoscope
CN105045841B (en) * 2015-07-01 2017-06-23 北京理工大学 With reference to gravity sensor and the characteristics of image querying method of image characteristic point angle
CN108734665A (en) * 2017-04-13 2018-11-02 深圳怡化电脑股份有限公司 A kind of bearing calibration of image, device, equipment and storage medium
EP3768144A4 (en) * 2018-03-21 2021-12-01 CapsoVision, Inc. Endoscope employing structured light providing physiological feature size measurement
EP3851024A4 (en) * 2018-09-11 2021-11-10 Sony Group Corporation Medical observation system, medical observation device and medical observation method
CN109730683B (en) * 2018-12-21 2021-11-05 重庆金山医疗技术研究院有限公司 Endoscope target size calculation method and analysis system
CN109620108B (en) * 2019-01-22 2021-04-20 大连理工大学 Double-hemispherical capsule robot bending intestinal visual navigation method
US11625825B2 (en) * 2019-01-30 2023-04-11 Covidien Lp Method for displaying tumor location within endoscopic images
US10957043B2 (en) * 2019-02-28 2021-03-23 Endosoftllc AI systems for detecting and sizing lesions
CN109886243B (en) * 2019-03-01 2021-03-26 腾讯医疗健康(深圳)有限公司 Image processing method, device, storage medium, equipment and system
CN109978755B (en) * 2019-03-11 2023-03-17 广州杰赛科技股份有限公司 Panoramic image synthesis method, device, equipment and storage medium
CN113034426B (en) * 2019-12-25 2024-03-08 飞依诺科技股份有限公司 Ultrasonic image focus description method, device, computer equipment and storage medium
CN111414124A (en) * 2020-03-26 2020-07-14 新名医(北京)科技有限公司 Image measuring method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107730489A (en) * 2017-10-09 2018-02-23 杭州电子科技大学 Wireless capsule endoscope small intestine disease variant computer assisted detection system and detection method
WO2019207480A1 (en) * 2018-04-27 2019-10-31 Nidek Technologies Srl Method of stitching a plurality of iridocorneal angle images
CN111524071A (en) * 2020-04-24 2020-08-11 安翰科技(武汉)股份有限公司 Capsule endoscope image splicing method, electronic device and readable storage medium
CN113610887A (en) * 2021-05-26 2021-11-05 江苏势通生物科技有限公司 Method for determining capsule endoscope motion shooting path, storage medium and device
CN114066781A (en) * 2022-01-18 2022-02-18 浙江鸿禾医疗科技有限责任公司 Capsule endoscope intestinal tract image identification and positioning method, storage medium and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
XUE-JIAO XIE, LU FENG; LI SHU-ZHAN, ZHOU DAO: "Quick bleeding point detection in WCE image based on multi-scale convolutional neural network ", COMPUTER ENGINEERING & SCIENCE, vol. 42, no. 10, 15 October 2020 (2020-10-15), pages 1827 - 1832, XP093078414 *

Also Published As

Publication number Publication date
CN114066781A (en) 2022-02-18
CN114066781B (en) 2022-05-10

Similar Documents

Publication Publication Date Title
WO2023138544A1 (en) Capsule endoscope intestinal image-based recognition and positioning method, storage medium, and device
WO2021115071A1 (en) Three-dimensional reconstruction method and apparatus for monocular endoscope image, and terminal device
KR102237441B1 (en) Method and apparatus for reading lesion from capsule endoscopic image using neural network
US10068334B2 (en) Reconstruction of images from an in vivo multi-camera capsule
US9014441B2 (en) Caliper for measuring objects in an image
EP3979892A1 (en) Systems and methods for processing colon images and videos
WO2019037676A1 (en) Image processing method and device
CN105488775A (en) Six-camera around looking-based cylindrical panoramic generation device and method
JP6390746B2 (en) Diagnosis support apparatus, image processing method and program in diagnosis support apparatus
EP3148399B1 (en) Reconstruction of images from an in vivo multi-camera capsule with confidence matching
US20220369899A1 (en) User-interface for visualization of endoscopy procedures
CN114022547A (en) Endoscope image detection method, device, equipment and storage medium
WO2024012080A1 (en) Endoscope auxiliary examination system, method, apparatus, and storage medium
WO2023138619A1 (en) Endoscope image processing method and apparatus, readable medium, and electronic device
JP2018197674A (en) Operation method of measuring device, measuring device, measurement system, three-dimensional shape restoring device, and program
WO2023246441A1 (en) Three-dimensional panoramic recognition and positioning method for digestive tract, storage medium, and computer device
US20090059018A1 (en) Navigation assisted mosaic photography
JP2010220794A (en) Device, method, and program for rotating endoscope image
JP4198536B2 (en) Object photographing apparatus, object photographing method and object photographing program
CN114972144B (en) Method, device, storage medium and equipment for splicing intestinal images of capsule endoscope
Safavian et al. Endoscopic measurement of the size of gastrointestinal polyps using an electromagnetic tracking system and computer vision-based algorithm
CN110520893B (en) Method for image processing and displaying of image captured by capsule camera
US20220078343A1 (en) Display system for capsule endoscopic image and method for generating 3d panoramic view
CN117974440B (en) Method and system for stitching endoscope images
JP6131149B2 (en) Image processing apparatus, method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23742859

Country of ref document: EP

Kind code of ref document: A1