WO2020181413A1 - Endoscopic fluorescence system image processing method and apparatus, and storage medium - Google Patents

Endoscopic fluorescence system image processing method and apparatus, and storage medium Download PDF

Info

Publication number
WO2020181413A1
WO2020181413A1 PCT/CN2019/077482 CN2019077482W WO2020181413A1 WO 2020181413 A1 WO2020181413 A1 WO 2020181413A1 CN 2019077482 W CN2019077482 W CN 2019077482W WO 2020181413 A1 WO2020181413 A1 WO 2020181413A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
color
rgb color
value
point
Prior art date
Application number
PCT/CN2019/077482
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 北京数字精准医疗科技有限公司
Priority to PCT/CN2019/077482 priority Critical patent/WO2020181413A1/en
Publication of WO2020181413A1 publication Critical patent/WO2020181413A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B1/00Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor

Definitions

  • This application relates to the field of image processing technology, and in particular to an image processing method, device and storage medium of an endoscopic fluorescent system.
  • NIR Near-Infrared
  • the single-camera endoscopic fluorescence system currently on the market can only display black-and-white images or pseudo-color images. Such black-and-white images or pseudo-color images cannot accurately reflect the real situation of the detected area, which may easily lead to Unable to accurately judge the tissue structure and blood flow.
  • the purpose of the embodiments of the present application is to provide an image processing method, device, and storage medium of an endoscopic fluorescence system, so that the image displayed by the endoscopic fluorescence system can more accurately reflect the real situation of the detected area.
  • an embodiment of the present application provides an image processing method of an endoscopic fluorescence system, including:
  • the performing image enhancement on the image to be processed includes:
  • the noise-reduction processed image is edge-enhanced.
  • the performing noise reduction processing on the image to be processed includes:
  • the median value in the sequence of RGB color values is determined, and the median value is used to replace the RGB color values of the points to be reduced.
  • said performing edge enhancement on the image after noise reduction processing includes:
  • the weighted sum is added to the RGB color value of the point to be enhanced, and the addition result is used to replace the RGB color value of the point to be enhanced.
  • the performing color correction on the image after image enhancement includes:
  • the color correction a priori model is obtained in advance in the following manner:
  • output i is the ith row in the color matrix of the standard color patches, and m is the number of color patches.
  • the performing fluorescent marking on the color-corrected image includes:
  • the fluorescent label prior model is obtained in advance in the following manner:
  • an embodiment of the present application also provides an image processing device of an endoscopic fluorescence system, including:
  • Image acquisition module for acquiring the image to be processed
  • An image enhancement module for performing image enhancement on the image to be processed
  • the color correction module is used to perform color correction on the enhanced image
  • the fluorescent marking module is used to perform fluorescent marking on the color-corrected image to obtain a color image with fluorescent display.
  • the embodiment of the present application also provides another image processing device of an endoscopic fluorescence system, including a memory, a processor, and a computer program stored on the memory, and the computer program is used by the processor. Perform the following steps when running:
  • the embodiments of the present application also provide a computer storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
  • the image processing method of the endoscopic fluorescent system in the embodiments of the application can mark the fluorescent area on the color image, thereby effectively solving the problem that the single-camera near-infrared imaging system can only display false
  • the problem of color image or black and white image makes the image displayed by the endoscopic fluorescence system more accurately reflect the real situation of the detected area.
  • FIG. 1 is a flowchart of an image processing method of an endoscopic fluorescence system in some embodiments of this application;
  • FIG. 2 is a flowchart of image enhancement processing in the image processing method of the endoscopic fluorescence system in some embodiments of the application;
  • 3 is a flowchart of color correction processing in the image processing method of the endoscopic fluorescence system in some embodiments of the application;
  • FIG. 5 is a schematic diagram of the Laplacian template used in the image processing method of the endoscopic fluorescence system in some embodiments of the application;
  • FIG. 6 is a structural block diagram of an image processing device of an endoscopic fluorescence system in some embodiments of the application.
  • FIG. 7 is a structural block diagram of an image processing device of an endoscopic fluorescence system in some other embodiments of the application.
  • the image processing method of the endoscopic fluorescence system may include the following steps:
  • the acquired image to be processed may carry visible light data and near-infrared light data of the target detection area.
  • the target detection area may contain a fluorescent contrast agent.
  • S102 Perform image enhancement on the image to be processed.
  • the image quality can be improved by performing image enhancement on the image to be processed, thereby facilitating the enhancement of the recognizability of the target of interest in the image (for example, a diseased biological tissue structure such as a tumor).
  • the target of interest in the image for example, a diseased biological tissue structure such as a tumor.
  • the image by performing color correction on the enhanced image, the image can be restored to a true color image that is closer to the real situation of the detected area, thereby further enhancing the recognizability of the target of interest in the image.
  • S104 Perform fluorescent marking on the color-corrected image to obtain a color image with fluorescent display.
  • the target of interest in the image is more prominent relative to other parts of the image, thereby facilitating accurate identification of the boundary between the target of interest and other parts in the image.
  • the image processing method of the endoscopic fluorescent system in the above embodiment of the present application can mark the fluorescent area on the color image, thereby effectively solving the problem that the single-camera near-infrared imaging system can only display false color images or black and white images.
  • the problem so that the image displayed by the endoscopic fluorescence system can more accurately reflect the real situation of the detected area. Therefore, the image processing method of the endoscopic fluorescence system in the above-mentioned embodiment of the present application also lowers the threshold of multispectral video imaging research, expands the space available for optical molecular imaging probes, and extends the research and application of optical molecular imaging. range.
  • the image enhancement of the image to be processed may include the following steps:
  • any existing image noise reduction processing method may be used to process the image to be processed.
  • these image noise reduction processing methods may include, but are not limited to, median filtering, mean filtering, Gaussian filtering, and so on.
  • the performing noise reduction processing on the image to be processed may include the following steps:
  • the designated surrounding range can be set as required, for example, it can be 9 adjacent points around it, 25 points or more in the designated surrounding range, etc.
  • the RGB color value sequence is arranged in order from small to large or large to small. Since noise points are mostly located at the front or end of the RGB color value sequence, the median value of the RGB color value sequence is basically not polluted by noise, so The median value of the sequence of RGB color values can be used to replace the RGB color value of the point to be reduced, so as to realize the noise reduction processing of the point to be reduced.
  • the main purpose of image edge enhancement is to enhance the boundary relationship and overlay relationship between different objects of interest in the target detection area (for example, the boundary relationship and overlay relationship between blood vessels and different organs in a biological tissue structure).
  • the edge of the relationship, etc.), through the edge image enhancement, the boundary relationship and the overlap relationship between different objects of interest will be more clear.
  • the image edge enhancement may be implemented by using existing methods such as gradient operator, Roberts operator, prewitt operator, or sobel operator.
  • the performing noise reduction processing on the image to be processed may include the following steps:
  • the weight template may be implemented by using a Laplace template or the like, for example, it may be a laplace 3 ⁇ 3 template as shown in FIG. 5.
  • performing color correction on an image after image enhancement may include the following steps:
  • the color correction prior model can be obtained in advance in the following manner:
  • the initial color correction model can be optimized to obtain the color correction prior model; where output i is the standard color patch color matrix In the i-th row, m is the number of color patches.
  • color correction method shown in FIG. 3 is only an exemplary embodiment of the present application.
  • image enhancement algorithms such as gamma algorithm may also be used for implementation, which is not limited in this application. .
  • performing fluorescent marking on the color-corrected image may include the following steps:
  • the priori model of the fluorescent label can be obtained in advance in the following manner:
  • RGB color value matrix is composed of three basic features, R, G, and B. These three independent dimensions are directly used as features for processing, which will lead to inaccurate regional classification and recognition due to too few features, so the three basic features are expanded.
  • the RGB color value matrix is expressed as: Then the corresponding RGB color value expansion matrix can be expressed as:
  • the mean value of the element values of the RGB color value expansion matrix can be expressed as:
  • L represents the Manhattan distance between inputExtend m and inputExtendAvg.
  • the image processing apparatus of the endoscopic fluorescence system of some embodiments of the present application may include:
  • the image acquisition module 61 can be used to acquire an image to be processed
  • the image enhancement module 62 may be used to perform image enhancement on the image to be processed
  • the color correction module 63 can be used to perform color correction on the image after image enhancement
  • the fluorescent marking module 64 can be used to perform fluorescent marking on the color-corrected image to obtain a color image with fluorescent display.
  • the image processing apparatus of the endoscopic fluorescence system of other embodiments of the present application may include a memory, a processor, and a storage device stored on the memory.
  • a computer program when the computer program is run by the processor, the following steps are executed:
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
  • processors CPU
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer 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 technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • this application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • This application can also be practiced in distributed computing environments. In these distributed computing environments, remote processing devices connected through a communication network perform tasks.
  • program modules can be located in local and remote computer storage media including storage devices.

Abstract

Provided in the embodiments of the present application are an endoscopic fluorescence system image processing method and apparatus, and a storage medium. The method comprises: acquiring an image to be processed; performing image enhancement on the image to be processed; performing colour correction on the image after image enhancement; and performing fluorescence marking on the colour corrected image to acquire a colour image having a fluorescent display. The embodiments of the present invention can make the image displayed by an endoscopic fluorescence system more accurately reflect the real conditions of the probed area.

Description

内窥式荧光系统的图像处理方法、装置及存储介质Image processing method, device and storage medium of endoscopic fluorescence system 技术领域Technical field
本申请涉及图像处理技术领域,尤其是涉及一种内窥式荧光系统的图像处理方法、装置及存储介质。This application relates to the field of image processing technology, and in particular to an image processing method, device and storage medium of an endoscopic fluorescent system.
背景技术Background technique
近年来,由于分子影像学技术的不断发展,继放射性核素成像、正电子发射断层扫描、单光子发射计算机断层和磁共振成像之后,出现了高分辨率的光学成像,其中近红外荧光成像倍受关注。由于光穿透组织的能力与组织吸收光的强弱、光波的特性、生物组织结构及其物理化学特性均有关系。650~900nm的近红外光(Near-Infrared,简称NIR)被称为“组织光窗(Tissue Optical Window)”,与可见光相比其具有:⑴生物组织对此波段近红外光的吸收和散射效应最小,与可见光相比近红外光可穿透更深层的组织;⑵由于生物组织对此波段近红外光的自体荧光较小,信背比(Signal-to-background ratio,简称SBR)相对高等优点。In recent years, due to the continuous development of molecular imaging technology, following radionuclide imaging, positron emission tomography, single photon emission computed tomography and magnetic resonance imaging, high-resolution optical imaging has emerged, among which near-infrared fluorescence imaging Be concerned. Because the ability of light to penetrate tissues is related to the strength of the tissues to absorb light, the characteristics of light waves, the structure of biological tissues and their physical and chemical properties. 650~900nm Near-Infrared (Near-Infrared, referred to as NIR) is called "Tissue Optical Window". Compared with visible light, it has: (1) The absorption and scattering effects of biological tissues in this band of near-infrared light The smallest, compared with visible light, near-infrared light can penetrate deeper tissues; ⑵Because the autofluorescence of biological tissues in this band of near-infrared light is small, the signal-to-background ratio (SBR) is relatively high and other advantages .
目前市场上的单相机内窥式荧光系统仅能显示黑白图像或是伪彩图像,这种黑白图像或是伪彩图像并不能准确反映被探测区域的真实情况,从而容易导致手术过程中,可能无法准确判断组织结构和血流情况。The single-camera endoscopic fluorescence system currently on the market can only display black-and-white images or pseudo-color images. Such black-and-white images or pseudo-color images cannot accurately reflect the real situation of the detected area, which may easily lead to Unable to accurately judge the tissue structure and blood flow.
发明内容Summary of the invention
本申请实施例的目的在于提供一种内窥式荧光系统的图像处理方法、装置及存储介质,以使内窥式荧光系统所显示的图像可以更准确反映被探测区域的真实情况。The purpose of the embodiments of the present application is to provide an image processing method, device, and storage medium of an endoscopic fluorescence system, so that the image displayed by the endoscopic fluorescence system can more accurately reflect the real situation of the detected area.
为达到上述目的,一方面,本申请实施例提供了一种内窥式荧光系统的图像处理方法,包括:To achieve the foregoing objective, on the one hand, an embodiment of the present application provides an image processing method of an endoscopic fluorescence system, including:
获取待处理图像;Obtain the image to be processed;
对所述待处理图像进行图像增强;Performing image enhancement on the image to be processed;
对图像增强后的图像进行色彩校正;Perform color correction on the enhanced image;
对色彩校正后的图像进行荧光标识,以获得带有荧光显示的彩色图像。Perform fluorescent marking on the color-corrected image to obtain a color image with fluorescent display.
在一个实施例中,所述对所述待处理图像进行图像增强,包括:In an embodiment, the performing image enhancement on the image to be processed includes:
对待处理图像进行降噪处理;Perform noise reduction processing on the image to be processed;
将降噪处理后的图像进行边缘增强。The noise-reduction processed image is edge-enhanced.
在一个实施例中,所述对待处理图像进行降噪处理,包括:In an embodiment, the performing noise reduction processing on the image to be processed includes:
获取待处理图像中一个待降噪点的RGB颜色值;Obtain the RGB color value of a point to be reduced in the image to be processed;
以所述待降噪点为中心,获取其周围指定范围内多个点的RGB颜色值,以形成RGB颜色值序列;Taking the point to be reduced as a center, acquiring RGB color values of multiple points within a specified range around it to form an RGB color value sequence;
确定所述RGB颜色值序列中的中值,并用所述中值替换所述待降噪点的RGB颜色值。The median value in the sequence of RGB color values is determined, and the median value is used to replace the RGB color values of the points to be reduced.
在一个实施例中,所述将降噪处理后的图像进行边缘增强,包括:In an embodiment, said performing edge enhancement on the image after noise reduction processing includes:
获取降噪处理后的图像中一个待增强点的RGB颜色值;Obtain the RGB color value of a point to be enhanced in the image after noise reduction processing;
利用预设的权值模板,对所述待增强点周边指定范围内多个点的RGB颜色值进行加权求和,获得加权和;Using a preset weight template to perform a weighted summation of the RGB color values of multiple points within a specified range around the point to be enhanced to obtain a weighted sum;
将所述加权和与所述待增强点的RGB颜色值相加,并用相加结果替换所述待增强点的RGB颜色值。The weighted sum is added to the RGB color value of the point to be enhanced, and the addition result is used to replace the RGB color value of the point to be enhanced.
在一个实施例中,所述对图像增强后的图像进行色彩校正,包括:In an embodiment, the performing color correction on the image after image enhancement includes:
获取图像增强后的图像中一个待校正点的RGB颜色值;Obtain the RGB color value of a point to be corrected in the image after image enhancement;
将所述待校正点的RGB颜色值代入预设的颜色校正先验模型,获得校正后的RGB颜色值;Substituting the RGB color value of the point to be corrected into a preset color correction prior model to obtain the corrected RGB color value;
用所述校正后的RGB颜色值替代所述待校正点的RGB颜色值。Use the corrected RGB color value to replace the RGB color value of the point to be corrected.
在一个实施例中,所述颜色校正先验模型,预先通过以下方式获得:In an embodiment, the color correction a priori model is obtained in advance in the following manner:
基于标准色卡获取多个色块的采集颜色矩阵及标准色块颜色矩阵;Obtain the collection color matrix of multiple color blocks and the color matrix of standard color blocks based on the standard color card;
将所述采集颜色矩阵代入公式
Figure PCTCN2019077482-appb-000001
获得初始颜色校正模型f(w,X i);其中,X i为采集颜色矩阵中的第i行,且X i=(R i G i B i),w为预设的权值矩阵,w 1~w 9为w中对应元素的元素值;
Substitute the collected color matrix into the formula
Figure PCTCN2019077482-appb-000001
Obtain the initial color correction model f(w,X i ); where X i is the ith row in the collected color matrix, and X i =(R i G i B i ), w is the preset weight matrix, w 1 ~ w 9 are the element values of the corresponding elements in w;
以公式
Figure PCTCN2019077482-appb-000002
作为损失函数L(w),并通过求解损失函数L(w)的最小值对所述初始颜色校正模型进行优化,获得颜色校正先验模型;
By formula
Figure PCTCN2019077482-appb-000002
As a loss function L(w), and optimize the initial color correction model by solving the minimum value of the loss function L(w) to obtain a color correction prior model;
其中,output i为标准色块颜色矩阵中的第i行,m为色块的数量。 Among them, output i is the ith row in the color matrix of the standard color patches, and m is the number of color patches.
在一个实施例中,所述对色彩校正后的图像进行荧光标识,包括:In an embodiment, the performing fluorescent marking on the color-corrected image includes:
获取色彩校正后的图像中一个待标识点的RGB颜色值;Obtain the RGB color value of a point to be identified in the color-corrected image;
将所述待标识点的RGB颜色值代入预设的荧光标识先验模型,获得标识后的RGB颜色值;Substituting the RGB color value of the point to be marked into a preset priori model of fluorescent marking to obtain the marked RGB color value;
用所述标识后的RGB颜色值替代所述待标识点的RGB颜色值。Replace the RGB color value of the point to be marked with the marked RGB color value.
在一个实施例中,所述荧光标识先验模型,预先通过以下方式获得:In one embodiment, the fluorescent label prior model is obtained in advance in the following manner:
选取携带荧光激发数据且未被标识的指定影像;Select designated images that carry fluorescence excitation data and are not marked;
根据所述指定影像中位于标识区域内的像素点的RGB颜色值,构建RGB颜色值矩阵;Constructing an RGB color value matrix according to the RGB color values of the pixels located in the identification area in the designated image;
拓展所述RGB颜色值矩阵中每个元素的特征,形成RGB颜色值拓展矩阵;Expanding the characteristics of each element in the RGB color value matrix to form an RGB color value expansion matrix;
确定所述RGB颜色值拓展矩阵的元素值均值;Determining the mean value of the element values of the RGB color value expansion matrix;
确定所述RGB颜色值拓展矩阵中每个元素的元素值与所述元素值均值的曼哈顿距离,形成曼哈顿距离集合;Determining the Manhattan distance between the element value of each element in the RGB color value expansion matrix and the mean value of the element value to form a Manhattan distance set;
根据所述曼哈顿距离集合确定所述RGB颜色值拓展矩阵中每个元素在指定区间
Figure PCTCN2019077482-appb-000003
上的概率分布,并拟合曼哈顿距离与概率的关系曲线F(L);其中,L max为曼哈顿距离集合中的最大值;
According to the Manhattan distance set, it is determined that each element in the RGB color value expansion matrix is in a specified interval
Figure PCTCN2019077482-appb-000003
, And fit the relationship curve F(L) between Manhattan distance and probability; where L max is the maximum value in the Manhattan distance set;
获取指定模型输入点A的RGB颜色值,并确定该输入点A与所述元素值均值的曼哈顿距离;Obtain the RGB color value of the input point A of the designated model, and determine the Manhattan distance between the input point A and the mean value of the element value;
将该输入点A与所述元素值均值的曼哈顿距离代入所述关系曲线F(L),若F(L)大于预设阈值,则确定该输入点A为所述指定影像的荧光激发区域内的点,令权值w=F(L),代入公式A output=((1-w)*R,(1-w)*G,w*255)得到该输入点A的输出A output,以作为该输入点A的荧光标识先验模型。 Substitute the Manhattan distance between the input point A and the mean value of the element into the relationship curve F(L), if F(L) is greater than the preset threshold, it is determined that the input point A is in the fluorescence excitation area of the specified image Point, let the weight w=F(L), and substitute it into the formula A output =((1-w)*R,(1-w)*G,w*255) to get the output A output of the input point A, as As the a priori model of the fluorescent label of the input point A.
另一方面,本申请实施例还提供了一种内窥式荧光系统的图像处理装置,包括:On the other hand, an embodiment of the present application also provides an image processing device of an endoscopic fluorescence system, including:
图像获取模块,用于获取待处理图像;Image acquisition module for acquiring the image to be processed;
图像增强模块,用于对所述待处理图像进行图像增强;An image enhancement module for performing image enhancement on the image to be processed;
色彩校正模块,用于对图像增强后的图像进行色彩校正;The color correction module is used to perform color correction on the enhanced image;
荧光标识模块,用于对色彩校正后的图像进行荧光标识,以获得带有荧光显示的彩色图像。The fluorescent marking module is used to perform fluorescent marking on the color-corrected image to obtain a color image with fluorescent display.
另一方面,本申请实施例还提供了另一种内窥式荧光系统的图像处理装置,包括存储器、处理器、以及存储在所述存储器上的计算机程序,所述计算机程序被所述处理器运行时执行如下步骤:On the other hand, the embodiment of the present application also provides another image processing device of an endoscopic fluorescence system, including a memory, a processor, and a computer program stored on the memory, and the computer program is used by the processor. Perform the following steps when running:
获取待处理图像;Obtain the image to be processed;
对所述待处理图像进行图像增强;Performing image enhancement on the image to be processed;
对图像增强后的图像进行色彩校正;Perform color correction on the enhanced image;
对色彩校正后的图像进行荧光标识,以获得带有荧光显示的彩色图像。Perform fluorescent marking on the color-corrected image to obtain a color image with fluorescent display.
另一方面,本申请实施例还提供了一种计算机存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:On the other hand, the embodiments of the present application also provide a computer storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
获取待处理图像;Obtain the image to be processed;
对所述待处理图像进行图像增强;Performing image enhancement on the image to be processed;
对图像增强后的图像进行色彩校正;Perform color correction on the enhanced image;
对色彩校正后的图像进行荧光标识,以获得带有荧光显示的彩色图像。Perform fluorescent marking on the color-corrected image to obtain a color image with fluorescent display.
由以上本申请实施例提供的技术方案可见,本申请实施例的内窥式荧光系统的图像处理方法可以在彩色图像上标识出荧光区域,从而有效解决了单相机近红外成像系统只能显示伪彩图像或是黑白图像的问题,使得内窥式荧光系统所显示的图像可以更准确地反映被探测区域的真实情况。It can be seen from the technical solutions provided by the above embodiments of the application that the image processing method of the endoscopic fluorescent system in the embodiments of the application can mark the fluorescent area on the color image, thereby effectively solving the problem that the single-camera near-infrared imaging system can only display false The problem of color image or black and white image makes the image displayed by the endoscopic fluorescence system more accurately reflect the real situation of the detected area.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。在附图中:In order to more clearly describe the technical solutions in the embodiments of the present application or 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 drawings in the following description are only These are some embodiments described in this application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor. In the attached picture:
图1为本申请一些实施例中内窥式荧光系统的图像处理方法的流程图;FIG. 1 is a flowchart of an image processing method of an endoscopic fluorescence system in some embodiments of this application;
图2为本申请一些实施例中内窥式荧光系统的图像处理方法中图像增强处理的流程图;2 is a flowchart of image enhancement processing in the image processing method of the endoscopic fluorescence system in some embodiments of the application;
图3为本申请一些实施例中内窥式荧光系统的图像处理方法中色彩校正处理的流程图;3 is a flowchart of color correction processing in the image processing method of the endoscopic fluorescence system in some embodiments of the application;
图4为本申请一些实施例中内窥式荧光系统的图像处理方法中荧光标识处理的流程图;4 is a flowchart of fluorescent marking processing in the image processing method of the endoscopic fluorescent system in some embodiments of the application;
图5为本申请一些实施例中内窥式荧光系统的图像处理方法中所用的拉普拉斯模板示意图;FIG. 5 is a schematic diagram of the Laplacian template used in the image processing method of the endoscopic fluorescence system in some embodiments of the application;
图6为本申请一些实施例中内窥式荧光系统的图像处理装置的结构框图;6 is a structural block diagram of an image processing device of an endoscopic fluorescence system in some embodiments of the application;
图7为本申请另一些实施例中内窥式荧光系统的图像处理装置的结构框图。FIG. 7 is a structural block diagram of an image processing device of an endoscopic fluorescence system in some other embodiments of the application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the application, the following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Obviously, the described The embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the protection scope of this application.
参考图1所示,本申请一些实施例的内窥式荧光系统的图像处理方法可以包括以下步骤:Referring to FIG. 1, the image processing method of the endoscopic fluorescence system according to some embodiments of the present application may include the following steps:
S101、获取待处理图像。S101. Obtain an image to be processed.
在本申请一些实施例中,获取的待处理图像中可以携带有目标探测区域的可见光数据以及近红外光数据。其中,目标探测区域内可含有荧光造影剂。In some embodiments of the present application, the acquired image to be processed may carry visible light data and near-infrared light data of the target detection area. Among them, the target detection area may contain a fluorescent contrast agent.
S102、对所述待处理图像进行图像增强。S102: Perform image enhancement on the image to be processed.
在本申请一些实施例中,通过对待处理图像进行图像增强可以改善图像质量,从而有利于增强图像中感兴趣目标(例如肿瘤等病变生物组织结构)的可识别度。In some embodiments of the present application, the image quality can be improved by performing image enhancement on the image to be processed, thereby facilitating the enhancement of the recognizability of the target of interest in the image (for example, a diseased biological tissue structure such as a tumor).
S103、对图像增强后的图像进行色彩校正。S103: Perform color correction on the image after image enhancement.
在本申请一些实施例中,通过对图像增强后的图像进行色彩校正可以将图像还原成更逼近被探测区域的真实情况的真彩图像,从而进一步提增强了图像中感兴趣目标的可识别度。In some embodiments of the present application, by performing color correction on the enhanced image, the image can be restored to a true color image that is closer to the real situation of the detected area, thereby further enhancing the recognizability of the target of interest in the image. .
S104、对色彩校正后的图像进行荧光标识,以获得带有荧光显示的彩色图像。S104: Perform fluorescent marking on the color-corrected image to obtain a color image with fluorescent display.
在本申请一些实施例中,通过对色彩校正后的图像进行荧光标识,图像中感兴趣目标的相对于图像中的其他更加凸显,从而有利于准确识别图像中感兴趣目标与其他部分的边界。In some embodiments of the present application, by performing fluorescent marking on the color-corrected image, the target of interest in the image is more prominent relative to other parts of the image, thereby facilitating accurate identification of the boundary between the target of interest and other parts in the image.
由此可见,本申请上述实施例的内窥式荧光系统的图像处理方法,可以在彩色图像上标识出荧光区域,从而有效解决了单相机近红外成像系统只能显示伪彩图像或是黑白图像的问题,使得内窥式荧光系统所显示的图像可以更准确地反映被探测区域的真实情况。因此,本申请上述实施例的内窥式荧光系统的图像处理方法还降低了多光谱视频成像研究的门槛,拓展了光学分子影像探针可供选择的空间,延伸了光学分子影像研究与应用的范围。It can be seen that the image processing method of the endoscopic fluorescent system in the above embodiment of the present application can mark the fluorescent area on the color image, thereby effectively solving the problem that the single-camera near-infrared imaging system can only display false color images or black and white images. The problem, so that the image displayed by the endoscopic fluorescence system can more accurately reflect the real situation of the detected area. Therefore, the image processing method of the endoscopic fluorescence system in the above-mentioned embodiment of the present application also lowers the threshold of multispectral video imaging research, expands the space available for optical molecular imaging probes, and extends the research and application of optical molecular imaging. range.
结合图2所示,在本申请一些实施例中,所述对待处理图像进行图像增强可以包括如下步骤:As shown in FIG. 2, in some embodiments of the present application, the image enhancement of the image to be processed may include the following steps:
S1021、对待处理图像进行降噪处理。S1021. Perform noise reduction processing on the image to be processed.
在本申请一些实施例中,可采用任何现有的图像降噪处理方法处理待处理图像。其中,这些图像降噪处理方法例如可以包括但不限于中值滤波、均值滤波、高斯滤波等等。在一示例性实施例中,所述对待处理图像进行降噪处理可以包括以下步骤:In some embodiments of the present application, any existing image noise reduction processing method may be used to process the image to be processed. Among them, these image noise reduction processing methods may include, but are not limited to, median filtering, mean filtering, Gaussian filtering, and so on. In an exemplary embodiment, the performing noise reduction processing on the image to be processed may include the following steps:
1)、获取待处理图像中一个待降噪点的RGB颜色值。其中,这里的带降噪点,以及下文提及的各种点,均是指图像中的像素点。1) Obtain the RGB color value of a point to be reduced in the image to be processed. Among them, the noise reduction point here and the various points mentioned below all refer to the pixels in the image.
2)、以所述待降噪点为中心,获取其周围指定范围内多个点的RGB颜色值,以形成RGB颜色值序列。其中周围指定范围可以根据需要设定,例如可以是其周围相邻的9个点,周围指定范围内的25个点或更多点等。2) Taking the point to be noise-reduced as the center, obtaining RGB color values of multiple points within a specified range around it to form an RGB color value sequence. The designated surrounding range can be set as required, for example, it can be 9 adjacent points around it, 25 points or more in the designated surrounding range, etc.
3)、确定所述RGB颜色值序列中的中值,并用所述中值替换所述待降噪点的RGB颜色值。RGB颜色值序列是按照由小到大或由大到小的顺序排列的,由于噪声点多位于RGB颜色值序列的前端或末端,因此RGB颜色值序列的中值基本上没有受到噪声污染,因此可以分别取RGB颜色值序列的中值替代待降噪点的RGB颜色值,从而实现对该待降噪点的降噪处理。3) Determine the median value in the sequence of RGB color values, and replace the RGB color values of the points to be reduced with the median value. The RGB color value sequence is arranged in order from small to large or large to small. Since noise points are mostly located at the front or end of the RGB color value sequence, the median value of the RGB color value sequence is basically not polluted by noise, so The median value of the sequence of RGB color values can be used to replace the RGB color value of the point to be reduced, so as to realize the noise reduction processing of the point to be reduced.
4)、重复以上步骤,可以完成对待处理图像中其他点的图像降噪处理。4) Repeat the above steps to complete the image noise reduction processing of other points in the image to be processed.
S1022、将降噪处理后的图像进行边缘增强。S1022, perform edge enhancement on the image after noise reduction processing.
在本申请一些实施例中,图像边缘增强的主要目的是增强目标探测区域内不同兴趣目标之间的边界关系和叠置关系(例如生物组织结构中的血管与不同器官之间的边界关系和叠加关系的边缘等),通过边缘图像增强后会使得不同兴趣目标之间的边界关系和叠置关系而更加清晰。在本申请一些示例性实施例中,图像边缘增强可以采用梯度算子、Roberts算子、prewitt算子或sobel算子等现有方式实现。在一示例性实施例中,所述对待处理图像进行降噪处理可以包括以下步骤:In some embodiments of the present application, the main purpose of image edge enhancement is to enhance the boundary relationship and overlay relationship between different objects of interest in the target detection area (for example, the boundary relationship and overlay relationship between blood vessels and different organs in a biological tissue structure). The edge of the relationship, etc.), through the edge image enhancement, the boundary relationship and the overlap relationship between different objects of interest will be more clear. In some exemplary embodiments of the present application, the image edge enhancement may be implemented by using existing methods such as gradient operator, Roberts operator, prewitt operator, or sobel operator. In an exemplary embodiment, the performing noise reduction processing on the image to be processed may include the following steps:
1)、获取降噪处理后的图像中一个待增强点的RGB颜色值。1) Obtain the RGB color value of a point to be enhanced in the image after noise reduction processing.
2)、利用预设的权值模板,对所述待增强点周边指定范围内多个点的RGB颜色值进行加权求和,获得加权和。所述权值模板可以采用拉普拉斯(laplace)模板等实现,例如可以是如图5所示的laplace3╳3模板。2) Using a preset weight template to perform a weighted summation of the RGB color values of multiple points within a specified range around the point to be enhanced to obtain a weighted sum. The weight template may be implemented by using a Laplace template or the like, for example, it may be a laplace 3╳3 template as shown in FIG. 5.
3)、将所述加权和与所述待增强点的RGB颜色值相加,并用相加结果替换所述待增强点的RGB颜色值,从而完成了对该待增强点的边缘增强处理。3). Add the weighted sum to the RGB color value of the point to be enhanced, and replace the RGB color value of the point to be enhanced with the addition result, thereby completing the edge enhancement processing of the point to be enhanced.
4)、重复以上步骤,可以完成对降噪处理后的图像中其他点的边缘增强处理。4) Repeat the above steps to complete the edge enhancement processing for other points in the image after noise reduction processing.
结合图3所示,在本申请一实施例中,所述对图像增强后的图像进行色彩校正可以 包括以下步骤:As shown in FIG. 3, in an embodiment of the present application, performing color correction on an image after image enhancement may include the following steps:
1)、获取图像增强后的图像中一个待校正点的RGB颜色值。1). Obtain the RGB color value of a point to be corrected in the enhanced image.
2)、将所述待校正点的RGB颜色值代入预设的颜色校正先验模型,获得校正后的RGB颜色值。2) Substituting the RGB color values of the points to be corrected into a preset color correction prior model to obtain the corrected RGB color values.
3)、用所述校正后的RGB颜色值替代所述待校正点的RGB颜色值。3) Replace the RGB color value of the point to be corrected with the corrected RGB color value.
4)、重复以上步骤,可以完成对图像增强后的图像中其他点的色彩校正处理。4) Repeat the above steps to complete the color correction processing of other points in the image after image enhancement.
其中,所述颜色校正先验模型可预先通过以下方式获得:Wherein, the color correction prior model can be obtained in advance in the following manner:
1)、基于标准色卡获取m个色块的采集颜色矩阵input及标准色块颜色矩阵output。1) Obtain the collected color matrix input of m color blocks and the color matrix output of standard color blocks based on the standard color card.
其中,
Figure PCTCN2019077482-appb-000004
among them,
Figure PCTCN2019077482-appb-000004
2)、将所述采集颜色矩阵代入公式
Figure PCTCN2019077482-appb-000005
可获得初始颜色校正模型f(w,X i);其中,X i为采集颜色矩阵中的第i行,且X i=(R i G i B i),w为预设的权值矩阵,w 1~w 9为w中对应元素的元素值。
2) Substitute the collected color matrix into the formula
Figure PCTCN2019077482-appb-000005
The initial model obtained color correction f (w, X i); wherein, X-i to collect color matrix row i, and X i = (R i G i B i), w is a preset weight matrix, w 1 to w 9 are the element values of the corresponding elements in w.
3)、以公式
Figure PCTCN2019077482-appb-000006
作为损失函数L(w),并通过求解损失函数L(w)的最小值可以完成对所述初始颜色校正模型的优化,从而获得颜色校正先验模型;其中,output i为标准色块颜色矩阵中的第i行,m为色块的数量。
3), by formula
Figure PCTCN2019077482-appb-000006
As the loss function L(w), and by solving the minimum value of the loss function L(w), the initial color correction model can be optimized to obtain the color correction prior model; where output i is the standard color patch color matrix In the i-th row, m is the number of color patches.
需要说明的是,上述图3所示色彩校正方法仅是本申请一示例性实施例,在本申请其他实施例中,也可以采用伽马算法等其他图像增强算法实现,本申请对此不作限定。It should be noted that the color correction method shown in FIG. 3 is only an exemplary embodiment of the present application. In other embodiments of the present application, other image enhancement algorithms such as gamma algorithm may also be used for implementation, which is not limited in this application. .
结合图4所示,在本申请一些实施例中,所述对色彩校正后的图像进行荧光标识可以包括以下步骤:As shown in FIG. 4, in some embodiments of the present application, performing fluorescent marking on the color-corrected image may include the following steps:
1)、获取色彩校正后的图像中一个待标识点的RGB颜色值。1) Get the RGB color value of a point to be identified in the color-corrected image.
2)、将所述待标识点的RGB颜色值代入预设的荧光标识先验模型,获得标识后的RGB颜色值。2) Substituting the RGB color values of the points to be marked into the preset a priori model of fluorescent marking to obtain the marked RGB color values.
3)、用所述标识后的RGB颜色值替代所述待标识点的RGB颜色值。3) Replace the RGB color value of the point to be marked with the marked RGB color value.
4)、重复以上步骤,可以完成对色彩校正后的图像中其他点的荧光标识处理。4) Repeat the above steps to complete the fluorescent marking processing of other points in the color-corrected image.
其中,所述述荧光标识先验模型可预先通过以下方式获得:Wherein, the priori model of the fluorescent label can be obtained in advance in the following manner:
1)、选取携带荧光激发数据且未被标识的指定影像。1). Select designated images that carry fluorescence excitation data and are not marked.
2)、根据所述指定影像中位于标识区域内的像素点的RGB颜色值,构建RGB颜色值 矩阵。其中,指定影像中的标识区域可以是预先基于分析影像确定好的。2) Construct an RGB color value matrix according to the RGB color values of the pixels located in the identification area in the designated image. Wherein, the identification area in the designated image may be determined in advance based on the analyzed image.
3)、拓展所述RGB颜色值矩阵中每个元素的特征,形成RGB颜色值拓展矩阵。一个像素由R、G、B三个基本特征构成,直接采用这个三个独立维度作为特征进行处理,会由于特征过少导致区域分类识别不准确,因此对三个基本特征进行拓展。在一示例性实施例中,若RGB颜色值矩阵表示为:
Figure PCTCN2019077482-appb-000007
则其对应的RGB颜色值拓展矩阵可以表示为:
3) Expand the characteristics of each element in the RGB color value matrix to form an RGB color value expansion matrix. A pixel is composed of three basic features, R, G, and B. These three independent dimensions are directly used as features for processing, which will lead to inaccurate regional classification and recognition due to too few features, so the three basic features are expanded. In an exemplary embodiment, if the RGB color value matrix is expressed as:
Figure PCTCN2019077482-appb-000007
Then the corresponding RGB color value expansion matrix can be expressed as:
Figure PCTCN2019077482-appb-000008
Figure PCTCN2019077482-appb-000008
4)、确定所述RGB颜色值拓展矩阵的元素值均值。在一示例性实施例中,RGB颜色值拓展矩阵的元素值均值可以表示为:4) Determine the mean value of the element values of the RGB color value expansion matrix. In an exemplary embodiment, the mean value of the element values of the RGB color value expansion matrix can be expressed as:
Figure PCTCN2019077482-appb-000009
Figure PCTCN2019077482-appb-000009
5)、确定所述RGB颜色值拓展矩阵中每个元素的元素值与所述元素值均值的曼哈顿距离,形成曼哈顿距离集合。在一示例性实施例中,哈顿距离的计算公式如下:5) Determine the Manhattan distance between the element value of each element in the RGB color value expansion matrix and the mean value of the element value to form a Manhattan distance set. In an exemplary embodiment, the calculation formula of the Hatton distance is as follows:
Figure PCTCN2019077482-appb-000010
其中,L表示inputExtend m距离inputExtendAvg的曼哈顿距离。
Figure PCTCN2019077482-appb-000010
Among them, L represents the Manhattan distance between inputExtend m and inputExtendAvg.
6)、根据所述曼哈顿距离集合确定所述RGB颜色值拓展矩阵中每个元素在指定区间
Figure PCTCN2019077482-appb-000011
上的概率分布,并拟合曼哈顿距离与概率的关系曲线F(L);其中,L max为曼哈顿距离集合中的最大值。
6) Determine that each element in the RGB color value expansion matrix is in a specified interval according to the Manhattan distance set
Figure PCTCN2019077482-appb-000011
And fit the relationship curve F(L) between Manhattan distance and probability; where L max is the maximum value in the Manhattan distance set.
7)、获取指定模型输入点A的RGB颜色值,并确定该输入点A与所述元素值均值的曼哈顿距离。7) Obtain the RGB color value of the input point A of the designated model, and determine the Manhattan distance between the input point A and the mean value of the element value.
8)、将该输入点A与所述元素值均值的曼哈顿距离代入所述关系曲线F(L),若F(L)大于预设阈值(在一示例性实施例中,阈值例如可以为0.8等),则确定该输入点A为所述指定影像的荧光激发区域内的点,令权值w=F(L),代入公式A output=((1-w)*R,(1-w)*G,w*255)得到该输入点A的输出A output,以作为该输入点A的荧光标识先验模型。 8). Substitute the Manhattan distance between the input point A and the mean value of the element into the relationship curve F(L), if F(L) is greater than a preset threshold (in an exemplary embodiment, the threshold may be 0.8, for example. Etc.), the input point A is determined to be a point in the fluorescence excitation region of the designated image, and the weight value w=F(L) is substituted into the formula A output =((1-w)*R,(1-w )*G,w*255) Obtain the output A output of the input point A as a priori model of the fluorescent mark of the input point A.
9)、重复上述步骤7)~8),可以获得指定模型所有输入点的荧光标识先验模型, 进而形成总的荧光标识先验模型。9). Repeat the above steps 7) to 8) to obtain the priori model of fluorescent markers for all input points of the specified model, and then form a priori model of total fluorescent markers.
应当理解,上述荧光标识先验模型的构建方法仅是本申请一示例性实施例,在本申请其他实施例中,也可以采用其他机器学习算法(例如支持向量机、决策树、神经网络等等)等实现,本申请对此不作限定。It should be understood that the above-mentioned method for constructing a priori model of fluorescent markers is only an exemplary embodiment of the present application. In other embodiments of the present application, other machine learning algorithms (such as support vector machines, decision trees, neural networks, etc.) may also be used. ) And other implementations, this application does not limit this.
参考图6所示,与上述内窥式荧光系统的图像处理方法对应,本申请一些实施例的内窥式荧光系统的图像处理装置可以包括:Referring to FIG. 6, corresponding to the image processing method of the endoscopic fluorescence system described above, the image processing apparatus of the endoscopic fluorescence system of some embodiments of the present application may include:
图像获取模块61,可以用于获取待处理图像;The image acquisition module 61 can be used to acquire an image to be processed;
图像增强模块62,可以用于对所述待处理图像进行图像增强;The image enhancement module 62 may be used to perform image enhancement on the image to be processed;
色彩校正模块63,可以用于对图像增强后的图像进行色彩校正;The color correction module 63 can be used to perform color correction on the image after image enhancement;
荧光标识模块64,可以用于对色彩校正后的图像进行荧光标识,以获得带有荧光显示的彩色图像。The fluorescent marking module 64 can be used to perform fluorescent marking on the color-corrected image to obtain a color image with fluorescent display.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing this application, the functions of each unit can be implemented in the same one or more software and/or hardware.
参考图7所示,与上述内窥式荧光系统的图像处理方法对应,本申请另一些实施例的内窥式荧光系统的图像处理装置可以包括存储器、处理器、以及存储在所述存储器上的计算机程序,所述计算机程序被所述处理器运行时执行如下步骤:Referring to FIG. 7, corresponding to the image processing method of the endoscopic fluorescence system described above, the image processing apparatus of the endoscopic fluorescence system of other embodiments of the present application may include a memory, a processor, and a storage device stored on the memory. A computer program, when the computer program is run by the processor, the following steps are executed:
获取待处理图像;Obtain the image to be processed;
对所述待处理图像进行图像增强;Performing image enhancement on the image to be processed;
对图像增强后的图像进行色彩校正;Perform color correction on the enhanced image;
对色彩校正后的图像进行荧光标识,以获得带有荧光显示的彩色图像。Perform fluorescent marking on the color-corrected image to obtain a color image with fluorescent display.
虽然上文描述的过程流程包括以特定顺序出现的多个操作,但是,应当清楚了解,这些过程可以包括更多或更少的操作,这些操作可以顺序执行或并行执行(例如使用并行处理器或多线程环境)。Although the process flow described above includes multiple operations appearing in a specific order, it should be clearly understood that these processes may include more or fewer operations, and these operations may be executed sequentially or in parallel (for example, using parallel processors or Multi-threaded environment).
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer 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 technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法或者设备中还存在另外的相同要素。It should also be noted that the terms "including", "including" or any other variation thereof are intended to cover non-exclusive inclusion, so that a process, method, or device including a series of elements not only includes those elements, but also includes no Other elements clearly listed, or they also include elements inherent to the process, method, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other same elements in the process, method, or device that includes the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可 用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments. In these distributed computing environments, remote processing devices connected through a communication network perform tasks. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are only examples of this application and are not used to limit this application. For those skilled in the art, this application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the scope of the claims of this application.

Claims (11)

  1. 一种内窥式荧光系统的图像处理方法,其特征在于,包括:An image processing method of an endoscopic fluorescence system, characterized in that it comprises:
    获取待处理图像;Obtain the image to be processed;
    对所述待处理图像进行图像增强;Performing image enhancement on the image to be processed;
    对图像增强后的图像进行色彩校正;Perform color correction on the enhanced image;
    对色彩校正后的图像进行荧光标识,以获得带有荧光显示的彩色图像。Perform fluorescent marking on the color-corrected image to obtain a color image with fluorescent display.
  2. 如权利要求1所述的内窥式荧光系统的图像处理方法,其特征在于,所述对所述待处理图像进行图像增强,包括:The image processing method of the endoscopic fluorescence system according to claim 1, wherein said performing image enhancement on the image to be processed comprises:
    对待处理图像进行降噪处理;Perform noise reduction processing on the image to be processed;
    将降噪处理后的图像进行边缘增强。The noise-reduction processed image is edge-enhanced.
  3. 如权利要求2所述的内窥式荧光系统的图像处理方法,其特征在于,所述对待处理图像进行降噪处理,包括:3. The image processing method of the endoscopic fluorescence system according to claim 2, wherein the denoising processing of the image to be processed comprises:
    获取待处理图像中一个待降噪点的RGB颜色值;Obtain the RGB color value of a point to be reduced in the image to be processed;
    以所述待降噪点为中心,获取其周围指定范围内多个点的RGB颜色值,以形成RGB颜色值序列;Taking the point to be reduced as a center, acquiring RGB color values of multiple points within a specified range around it to form an RGB color value sequence;
    确定所述RGB颜色值序列中的中值,并用所述中值替换所述待降噪点的RGB颜色值。The median value in the sequence of RGB color values is determined, and the median value is used to replace the RGB color values of the points to be reduced.
  4. 如权利要求2所述的内窥式荧光系统的图像处理方法,其特征在于,所述将降噪处理后的图像进行边缘增强,包括:3. The image processing method of the endoscopic fluorescence system according to claim 2, wherein said performing edge enhancement on the image after noise reduction processing comprises:
    获取降噪处理后的图像中一个待增强点的RGB颜色值;Obtain the RGB color value of a point to be enhanced in the image after noise reduction processing;
    利用预设的权值模板,对所述待增强点周边指定范围内多个点的RGB颜色值进行加权求和,获得加权和;Using a preset weight template to perform a weighted summation of the RGB color values of multiple points within a specified range around the point to be enhanced to obtain a weighted sum;
    将所述加权和与所述待增强点的RGB颜色值相加,并用相加结果替换所述待增强点的RGB颜色值。The weighted sum is added to the RGB color value of the point to be enhanced, and the addition result is used to replace the RGB color value of the point to be enhanced.
  5. 如权利要求1所述的内窥式荧光系统的图像处理方法,其特征在于,所述对图像增强后的图像进行色彩校正,包括:5. The image processing method of the endoscopic fluorescence system according to claim 1, wherein said performing color correction on the image after image enhancement comprises:
    获取图像增强后的图像中一个待校正点的RGB颜色值;Obtain the RGB color value of a point to be corrected in the image after image enhancement;
    将所述待校正点的RGB颜色值代入预设的颜色校正先验模型,获得校正后的RGB颜色值;Substituting the RGB color value of the point to be corrected into a preset color correction prior model to obtain the corrected RGB color value;
    用所述校正后的RGB颜色值替代所述待校正点的RGB颜色值。Use the corrected RGB color value to replace the RGB color value of the point to be corrected.
  6. 如权利要求5所述的内窥式荧光系统的图像处理方法,其特征在于,所述颜色校正先验模型,预先通过以下方式获得:7. The image processing method of the endoscopic fluorescence system according to claim 5, wherein the color correction prior model is obtained in advance in the following manner:
    基于标准色卡获取多个色块的采集颜色矩阵及标准色块颜色矩阵;Obtain the collection color matrix of multiple color blocks and the color matrix of standard color blocks based on the standard color card;
    将所述采集颜色矩阵代入公式
    Figure PCTCN2019077482-appb-100001
    获得初始颜色校正模型f(w,X i);其中,X i为采集颜色矩阵中的第i行,且X i=(R i G i B i),w为预设的权值矩阵,w 1~w 9为w中对应元素的元素值;
    Substitute the collected color matrix into the formula
    Figure PCTCN2019077482-appb-100001
    Obtain the initial color correction model f(w,X i ); where X i is the ith row in the collected color matrix, and X i =(R i G i B i ), w is the preset weight matrix, w 1 ~ w 9 are the element values of the corresponding elements in w;
    以公式
    Figure PCTCN2019077482-appb-100002
    作为损失函数L(w),并通过求解损失函数L(w)的最小值对所述初始颜色校正模型进行优化,获得颜色校正先验模型;
    By formula
    Figure PCTCN2019077482-appb-100002
    As a loss function L(w), and optimize the initial color correction model by solving the minimum value of the loss function L(w) to obtain a color correction prior model;
    其中,output i为标准色块颜色矩阵中的第i行,m为色块的数量。 Among them, output i is the ith row in the color matrix of the standard color patches, and m is the number of color patches.
  7. 如权利要求1所述的内窥式荧光系统的图像处理方法,其特征在于,所述对色彩校正后的图像进行荧光标识,包括:5. The image processing method of an endoscopic fluorescence system according to claim 1, wherein said performing fluorescence marking on the color-corrected image comprises:
    获取色彩校正后的图像中一个待标识点的RGB颜色值;Obtain the RGB color value of a point to be identified in the color-corrected image;
    将所述待标识点的RGB颜色值代入预设的荧光标识先验模型,获得标识后的RGB颜色值;Substituting the RGB color value of the point to be marked into a preset priori model of fluorescent marking to obtain the marked RGB color value;
    用所述标识后的RGB颜色值替代所述待标识点的RGB颜色值。Replace the RGB color value of the point to be marked with the marked RGB color value.
  8. 如权利要求7所述的内窥式荧光系统的图像处理方法,其特征在于,所述荧光标识先验模型,预先通过以下方式获得:7. The image processing method of the endoscopic fluorescence system according to claim 7, wherein the priori model of the fluorescent marker is obtained in advance in the following manner:
    选取携带荧光激发数据且未被标识的指定影像;Select designated images that carry fluorescence excitation data and are not marked;
    根据所述指定影像中位于标识区域内的像素点的RGB颜色值,构建RGB颜色值矩阵;Constructing an RGB color value matrix according to the RGB color values of the pixels located in the identification area in the designated image;
    拓展所述RGB颜色值矩阵中每个元素的特征,形成RGB颜色值拓展矩阵;Expanding the characteristics of each element in the RGB color value matrix to form an RGB color value expansion matrix;
    确定所述RGB颜色值拓展矩阵的元素值均值;Determining the mean value of the element values of the RGB color value expansion matrix;
    确定所述RGB颜色值拓展矩阵中每个元素的元素值与所述元素值均值的曼哈顿距离,形成曼哈顿距离集合;Determining the Manhattan distance between the element value of each element in the RGB color value expansion matrix and the mean value of the element value to form a Manhattan distance set;
    根据所述曼哈顿距离集合确定所述RGB颜色值拓展矩阵中每个元素在指定区间
    Figure PCTCN2019077482-appb-100003
    上的概率分布,并拟合曼哈顿距离与概率的关系曲线F(L);其中,L max为曼哈顿距离集合中的最大值;
    According to the Manhattan distance set, it is determined that each element in the RGB color value expansion matrix is in a specified interval
    Figure PCTCN2019077482-appb-100003
    , And fit the relationship curve F(L) between Manhattan distance and probability; where L max is the maximum value in the Manhattan distance set;
    获取指定模型输入点A的RGB颜色值,并确定该输入点A与所述元素值均值的曼哈 顿距离;Obtain the RGB color value of the input point A of the specified model, and determine the Manhatten distance between the input point A and the mean value of the element;
    将该输入点A与所述元素值均值的曼哈顿距离代入所述关系曲线F(L),若F(L)大于预设阈值,则确定该输入点A为所述指定影像的荧光激发区域内的点,令权值w=F(L),代入公式A output=((1-w)*R,(1-w)*G,w*255)得到该输入点A的输出A output,以作为该输入点A的荧光标识先验模型。 Substitute the Manhattan distance between the input point A and the mean value of the element into the relationship curve F(L), if F(L) is greater than the preset threshold, it is determined that the input point A is in the fluorescence excitation area of the specified image Point, let the weight w=F(L), and substitute it into the formula A output =((1-w)*R,(1-w)*G,w*255) to get the output A output of the input point A, as As the a priori model of the fluorescent label of the input point A.
  9. 一种内窥式荧光系统的图像处理装置,其特征在于,包括:An image processing device of an endoscopic fluorescence system, characterized in that it comprises:
    图像获取模块,用于获取待处理图像;Image acquisition module for acquiring the image to be processed;
    图像增强模块,用于对所述待处理图像进行图像增强;An image enhancement module for performing image enhancement on the image to be processed;
    色彩校正模块,用于对图像增强后的图像进行色彩校正;The color correction module is used to perform color correction on the enhanced image;
    荧光标识模块,用于对色彩校正后的图像进行荧光标识,以获得带有荧光显示的彩色图像。The fluorescent marking module is used to perform fluorescent marking on the color-corrected image to obtain a color image with fluorescent display.
  10. 一种内窥式荧光系统的图像处理装置,包括存储器、处理器、以及存储在所述存储器上的计算机程序,其特征在于,所述计算机程序被所述处理器运行时执行如下步骤:An image processing device of an endoscopic fluorescence system, comprising a memory, a processor, and a computer program stored on the memory, wherein the computer program is run by the processor to execute the following steps:
    获取待处理图像;Obtain the image to be processed;
    对所述待处理图像进行图像增强;Performing image enhancement on the image to be processed;
    对图像增强后的图像进行色彩校正;Perform color correction on the enhanced image;
    对色彩校正后的图像进行荧光标识,以获得带有荧光显示的彩色图像。Perform fluorescent marking on the color-corrected image to obtain a color image with fluorescent display.
  11. 一种计算机存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现以下步骤:A computer storage medium with a computer program stored thereon, wherein the computer program is executed by a processor to implement the following steps:
    获取待处理图像;Obtain the image to be processed;
    对所述待处理图像进行图像增强;Performing image enhancement on the image to be processed;
    对图像增强后的图像进行色彩校正;Perform color correction on the enhanced image;
    对色彩校正后的图像进行荧光标识,以获得带有荧光显示的彩色图像。Perform fluorescent marking on the color-corrected image to obtain a color image with fluorescent display.
PCT/CN2019/077482 2019-03-08 2019-03-08 Endoscopic fluorescence system image processing method and apparatus, and storage medium WO2020181413A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/077482 WO2020181413A1 (en) 2019-03-08 2019-03-08 Endoscopic fluorescence system image processing method and apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/077482 WO2020181413A1 (en) 2019-03-08 2019-03-08 Endoscopic fluorescence system image processing method and apparatus, and storage medium

Publications (1)

Publication Number Publication Date
WO2020181413A1 true WO2020181413A1 (en) 2020-09-17

Family

ID=72426775

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/077482 WO2020181413A1 (en) 2019-03-08 2019-03-08 Endoscopic fluorescence system image processing method and apparatus, and storage medium

Country Status (1)

Country Link
WO (1) WO2020181413A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030187319A1 (en) * 2002-03-29 2003-10-02 Olympus Optical Co., Ltd. Sentinel lymph node detecting apparatus, and method thereof
CN1627324A (en) * 2003-12-08 2005-06-15 西门子公司 Method of fusing image display
CN105962881A (en) * 2016-07-26 2016-09-28 西安交通大学第附属医院 Blood vessel recognition method and device
CN107137053A (en) * 2016-02-15 2017-09-08 徕卡仪器(新加坡)有限公司 Use the medical investigative apparatus of such as microscope or endoscope of pseudo-colours
CN108509964A (en) * 2017-02-27 2018-09-07 顾泽苍 A kind of preparation method passing through Euclidean space at a distance from probability space

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030187319A1 (en) * 2002-03-29 2003-10-02 Olympus Optical Co., Ltd. Sentinel lymph node detecting apparatus, and method thereof
CN1627324A (en) * 2003-12-08 2005-06-15 西门子公司 Method of fusing image display
CN107137053A (en) * 2016-02-15 2017-09-08 徕卡仪器(新加坡)有限公司 Use the medical investigative apparatus of such as microscope or endoscope of pseudo-colours
CN105962881A (en) * 2016-07-26 2016-09-28 西安交通大学第附属医院 Blood vessel recognition method and device
CN108509964A (en) * 2017-02-27 2018-09-07 顾泽苍 A kind of preparation method passing through Euclidean space at a distance from probability space

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHI, C. W. ET AL.: "Use of Indocyanine Green for Detecting the Sentinel Lymph Node in Breast Cancer Patients: From Preclinical Evaluation to Clinical Validation", PLOS ONE, 31 December 2013 (2013-12-31), XP055732590, DOI: 20191111163257A *

Similar Documents

Publication Publication Date Title
Aslam et al. Improved edge detection algorithm for brain tumor segmentation
US8463065B2 (en) Linear feature detection method and apparatus
US8131076B2 (en) Editing of pre-segmented images using seeds derived from contours
Mouton et al. Materials-based 3D segmentation of unknown objects from dual-energy computed tomography imagery in baggage security screening
CN104075965B (en) A kind of micro-image grain graininess measuring method based on watershed segmentation
JP4964171B2 (en) Target region extraction method, apparatus, and program
US20140112568A1 (en) Method and apparatus for automatic her2 scoring of tissue samples
US11538261B2 (en) Systems and methods for automated cell segmentation and labeling in immunofluorescence microscopy
Yang et al. Fully constrained linear spectral unmixing based global shadow compensation for high resolution satellite imagery of urban areas
EP2851867A2 (en) Method and apparatus for filtering an image
Zhao et al. Automatic blur region segmentation approach using image matting
US7630534B2 (en) Method for radiological image processing
EP3258834A1 (en) Chest radiograph (cxr) image analysis
US9672600B2 (en) Clavicle suppression in radiographic images
Viji et al. Performance evaluation of standard image segmentation methods and clustering algorithms for segmentation of MRI brain tumor images
CN113689412A (en) Thyroid image processing method and device, electronic equipment and storage medium
Sheth et al. Object saliency using a background prior
CN105608674A (en) Image registration, interpolation and denoising-based image enhancement method
Pelapur et al. Multi-focus image fusion using epifluorescence microscopy for robust vascular segmentation
EP3314572B1 (en) Edge detection on images with correlated noise
WO2020181413A1 (en) Endoscopic fluorescence system image processing method and apparatus, and storage medium
EP2827298A1 (en) Method and computer program for filtering and particularly segmenting and/or analyzing anatomic structures in a digital image
Wang et al. Segmentation and separation of venous vasculatures in liver CT images
Dakua et al. Weighting function in random walk based left ventricle segmentation
Michelin et al. Embryo cell membranes reconstruction by tensor voting

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: 19919004

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19/01/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19919004

Country of ref document: EP

Kind code of ref document: A1