[go: up one dir, main page]

CN106897969B - A data processing device and method for super-resolution positioning microscopic imaging - Google Patents

A data processing device and method for super-resolution positioning microscopic imaging Download PDF

Info

Publication number
CN106897969B
CN106897969B CN201710089310.9A CN201710089310A CN106897969B CN 106897969 B CN106897969 B CN 106897969B CN 201710089310 A CN201710089310 A CN 201710089310A CN 106897969 B CN106897969 B CN 106897969B
Authority
CN
China
Prior art keywords
subregion
currently processed
pixel
output end
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710089310.9A
Other languages
Chinese (zh)
Other versions
CN106897969A (en
Inventor
黄振立
桂丹
李路长
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
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 Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN201710089310.9A priority Critical patent/CN106897969B/en
Publication of CN106897969A publication Critical patent/CN106897969A/en
Application granted granted Critical
Publication of CN106897969B publication Critical patent/CN106897969B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/4053Scaling of whole images or parts thereof, e.g. expanding or contracting based on super-resolution, i.e. the output image resolution being higher than the sensor resolution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Investigating, Analyzing Materials By Fluorescence Or Luminescence (AREA)

Abstract

本发明公开了一种用于超分辨定位显微成像的数据处理装置及方法,数据处理装置包括数据预处理电路和第一处理器。数据预处理电路包括探测器接口电路、多路复用电路、FPGA和第一接口电路。探测器接口电路快速获取并输出由探测器采集的荧光图。多路复用电路复制探测器采集的荧光图,至少一路为通路,不影响原电路结构。FPGA从荧光图中提取荧光分子子区域,并由第一接口电路将荧光分子子区域传输给第一处理器。第一处理器对荧光分子子区域进行定位处理,获得超分辨重建图。由于FPGA能够实现快速从荧光图中提取荧光分子子区域,并将其传输至第一处理器,由第一处理器获得超分辨重建图像,使得数据处理装置实现高精度超分辨图像实时重建。

The invention discloses a data processing device and method for super-resolution positioning microscopic imaging. The data processing device includes a data preprocessing circuit and a first processor. The data preprocessing circuit includes a detector interface circuit, a multiplexing circuit, FPGA and a first interface circuit. The detector interface circuit quickly acquires and outputs the fluorescence map collected by the detector. The multiplexing circuit replicates the fluorescence image collected by the detector, at least one path is a path, and the original circuit structure is not affected. The FPGA extracts the fluorescent molecule sub-regions from the fluorescence image, and the first interface circuit transmits the fluorescent molecule sub-regions to the first processor. The first processor performs positioning processing on the fluorescent molecule sub-regions to obtain a super-resolution reconstruction image. Since the FPGA can quickly extract fluorescent molecular subregions from the fluorescence image and transmit them to the first processor, the super-resolution reconstructed image is obtained by the first processor, so that the data processing device realizes real-time reconstruction of high-precision super-resolution images.

Description

一种用于超分辨定位显微成像的数据处理装置及方法A data processing device and method for super-resolution positioning microscopic imaging

技术领域technical field

本发明属于超分辨定位显微成像技术领域,更具体地,涉及一种用于超分辨定位显微成像的数据处理装置及方法。The invention belongs to the technical field of super-resolution positioning microscopic imaging, and more particularly relates to a data processing device and method for super-resolution positioning microscopic imaging.

背景技术Background technique

超分辨定位成像技术已可实现达到20nm的空间分辨率,可以从分子水平研究细胞内复杂的工作机制,已成为生命科学研究领域不可或缺的研究工具。随着探测器技术的快速发展,人们希望在不牺牲成像视场和空间分辨率的情况下,提高超分辨定位成像的时间分辨率。为提高超分辨定位显微成像的时间分辨率,快速发展的弱光探测器(sCMOS)已经做到理论420M pixel/s的图像采集速率。然而,目前电脑对于采集到的数据计算速度却远不能做到实时处理。当前的主要系统架构是将sCMOS探测器采集到的数据,直接连接到计算机,由计算机的中央处理器(CPU)和图形处理器(GPU)联合计算,通过超分辨定位算法来实现图像的处理。依据不同的算法,所得到的超分辨图的精度和速度有很大差别。但均不能实现实时处理。对于sCMOS探测器而言,图像数据采集的速率远超算法的计算速率。即使是精度较低的代数算法,也需经过较长时间的数据处理才能得到一张超分辨重建图,极大地制约了超分辨定位显微成像技术的发展。因此,发明一种既能满足高精度的空间分辨率又能满足实时数据处理的方法成为本领域的迫切需求。Super-resolution positioning imaging technology can achieve a spatial resolution of 20nm, and can study the complex working mechanism in cells from the molecular level. It has become an indispensable research tool in the field of life science research. With the rapid development of detector technology, people hope to improve the temporal resolution of super-resolution localization imaging without sacrificing the imaging field of view and spatial resolution. In order to improve the time resolution of super-resolution localization microscopy imaging, the rapidly developing low-light detector (sCMOS) has achieved a theoretical image acquisition rate of 420M pixel/s. However, at present, the computing speed of the collected data is far from being able to be processed in real time by the computer. The current main system architecture is to directly connect the data collected by the sCMOS detector to the computer, and the computer's central processing unit (CPU) and graphics processing unit (GPU) jointly calculate, and realize image processing through super-resolution positioning algorithms. According to different algorithms, the accuracy and speed of the obtained super-resolution images vary greatly. But none of them can realize real-time processing. For sCMOS detectors, the rate of image data acquisition far exceeds the calculation rate of the algorithm. Even for algebraic algorithms with low precision, it takes a long time for data processing to obtain a super-resolution reconstruction map, which greatly restricts the development of super-resolution positioning microscopy imaging technology. Therefore, it is an urgent need in this field to invent a method that can satisfy both high-precision spatial resolution and real-time data processing.

发明内容Contents of the invention

针对现有技术的缺陷,本发明提供的一种用于超分辨定位显微成像的数据处理装置,旨在解决现有处理装置不能兼顾高精度的空间分辨率又能满足实时数据处理的技术问题。Aiming at the defects of the prior art, the present invention provides a data processing device for super-resolution positioning microscopic imaging, which aims to solve the technical problem that the existing processing device cannot take into account high-precision spatial resolution and satisfy real-time data processing .

为实现上述目的,本发明提供了一种用于超分辨定位显微成像的数据处理装置,包括数据预处理电路以及第一处理器;To achieve the above object, the present invention provides a data processing device for super-resolution positioning microscopic imaging, including a data preprocessing circuit and a first processor;

数据预处理电路包括:The data preprocessing circuit includes:

探测器接口电路,用于采集并传输荧光图;Detector interface circuit for collecting and transmitting fluorescence images;

FPGA,其输入端与探测器接口电路的输出端连接,用于从荧光图中提取荧光分子子区域;以及an FPGA, the input of which is connected to the output of the detector interface circuit for extracting fluorescent molecular subregions from the fluorescence map; and

第一接口电路,其输入端与FPGA的输出端连接,用于将荧光分子子区域传输至第一处理器;The first interface circuit, whose input end is connected to the output end of the FPGA, is used to transmit the fluorescent molecule sub-region to the first processor;

第一处理器包括:The first processor includes:

存储器,其第一端与第一接口电路的输出端连接,用于存储荧光分子子区域;A memory whose first end is connected to the output end of the first interface circuit for storing the fluorescent molecule sub-regions;

CPU,用于向GPU发送定位指令,并接收GPU输出的超分辨重建图;The CPU is used to send positioning instructions to the GPU and receive super-resolution reconstruction images output by the GPU;

GPU,其第一端与CPU的第一端连接,其第二端与存储器的第二端连接,用于根据定位指令对荧光分子子区域进行定位处理,获得超分辨重建图,并将超分辨重建图传输至CPU,超分辨重建图由最终最终在图像显示器上显示出来。GPU, whose first end is connected to the first end of the CPU, and whose second end is connected to the second end of the memory, is used to locate the fluorescent molecule sub-region according to the positioning instruction, obtain a super-resolution reconstruction map, and super-resolution The reconstructed image is transmitted to the CPU, and the super-resolution reconstructed image is finally displayed on the image display.

本发明提供的数据处理装置,由数据预处理电路从荧光图中提取荧光分子子区域,将荧光分子子区域传输至第一处理器,第一处理器中的CPU与GPU仅完成对荧光分子子区域的定位处理,能够提高第一处理器获得超分辨重建图的效率。通过探测器接口电路快速从探测器中获取荧光图,由FPGA内部提供的硬件电路,能够实时从大量的荧光图中提取小数据量的荧光分子子区域,并由第一接口电路将荧光分子子区域快速传输至第一处理器。因此,本发明提供的数据处理装置既能实现高精度超分辨图像实时重建。In the data processing device provided by the present invention, the data preprocessing circuit extracts the fluorescent molecule sub-regions from the fluorescent image, and transmits the fluorescent molecule sub-regions to the first processor, and the CPU and GPU in the first processor only complete the fluorescent molecular sub-regions. The region positioning processing can improve the efficiency of the first processor in obtaining the super-resolution reconstruction image. The fluorescence image can be quickly obtained from the detector through the detector interface circuit. The hardware circuit provided by the FPGA can extract the fluorescent molecular sub-region with a small amount of data from a large number of fluorescent images in real time, and the fluorescent molecular sub-region can be extracted by the first interface circuit. The region is quickly transferred to the first processor. Therefore, the data processing device provided by the present invention can realize real-time reconstruction of high-precision super-resolution images.

进一步地,数据预处理电路中还包括:多路复用电路,其输入端与探测器接口电路输出端连接,其第一输出端与FPGA的输入端连接,其第二输出端用于将荧光图传输至第二处理器,多路复用电路用于接收并将荧光图复制为两路荧光图输出。Further, the data preprocessing circuit also includes: a multiplexing circuit, its input terminal is connected to the output terminal of the detector interface circuit, its first output terminal is connected to the input terminal of the FPGA, and its second output terminal is used to convert the fluorescent The map is transmitted to a second processor, and multiplexing circuitry is used to receive and duplicate the fluorescence map into two fluorescence map outputs.

多路复用电路实现将荧光图分为多路荧光图,一路荧光图传送至数据预处理电路,一路荧光图传送至第二处理器,由第二处理器对荧光图进行超分辨定位处理,使得本发明提供的数据处理装置与现有的数据处理装置能够兼容,用户可以保留原图像处理方式。The multiplexing circuit realizes dividing the fluorescent image into multiple fluorescent images, one fluorescent image is transmitted to the data preprocessing circuit, and one fluorescent image is transmitted to the second processor, and the second processor performs super-resolution positioning processing on the fluorescent image, The data processing device provided by the present invention is compatible with the existing data processing device, and the user can retain the original image processing method.

进一步地数据预处理电路中还包括:多路复用电路,其输入端与探测器接口电路输出端连接,其第一输出端与FPGA的输入端连接,其第二输出端用于将荧光图传输至第二处理器,其第三端至第N端用于作为扩展接口,多路复用电路用于接收并将荧光图复制为多路荧光图输出,其中,N≥3。Further, the data preprocessing circuit also includes: a multiplexing circuit, its input terminal is connected to the output terminal of the detector interface circuit, its first output terminal is connected to the input terminal of the FPGA, and its second output terminal is used to convert the fluorescent image It is transmitted to the second processor, and the third terminal to the Nth terminal thereof are used as expansion interfaces, and the multiplexing circuit is used to receive and copy the fluorescence image into multiple output channels of the fluorescence image, wherein, N≥3.

进一步地,FPGA包括:Further, FPGA includes:

荧光图读取模块,其输入端与探测器接口电路的输出端连接,用于获取荧光图,并将荧光图分为三路荧光图输出;Fluorescence image reading module, the input end of which is connected to the output end of the detector interface circuit, used to obtain the fluorescence image, and divide the fluorescence image into three channels of fluorescence image output;

降噪处理模块,其输入端与所述荧光图读取模块的第一输出端连接,用于对荧光图进行降噪处理,输出第一图像;A noise reduction processing module, the input end of which is connected to the first output end of the fluorescence image reading module, and is used to perform noise reduction processing on the fluorescence image and output the first image;

去背景处理模块,其输入端与降噪处理模块的输出端连接,用于对第一图像进行去背景处理,输出第二图像;Remove the background processing module, its input end is connected with the output end of the noise reduction processing module, for carrying out the background processing to the first image, output the second image;

背景波动强度获取模块,包括第三子区域获取电路,其输入端与荧光图读取模块第二输出端连接,用于从荧光图中提取出第三当前处理子区域;背景波动强度获取电路,其输入端与第三子区域获取电路的输出端连接,用于获得第三当前处理子区域的局部标准差,并将第三当前处理子区域的局部标准差作为第三当前处理子区域的背景波动强度,用作荧光分子子区域判断的阈值;以及The background fluctuation intensity acquisition module includes a third sub-region acquisition circuit, the input end of which is connected to the second output end of the fluorescence image reading module, and is used to extract the third current processing sub-region from the fluorescence image; the background fluctuation intensity acquisition circuit, Its input end is connected with the output end of the third sub-region obtaining circuit, is used for obtaining the local standard deviation of the 3rd current processing sub-region, and uses the local standard deviation of the 3rd current processing sub-region as the background of the 3rd current processing sub-region Fluctuating intensity, used as a threshold for determination of fluorescent molecule sub-regions; and

子区域判断与提取模块,包括第四子区域获取电路,其输入端与去背景处理模块的输出端连接,用于从第二图像中提取第四当前处理子区域;子区域判断电路,其第一输入端与第四子区域获取电路的输出端连接,其第二输入端与背景波动强度获取电路的输出端连接,将第三当前处理子区域的背景波动强度作为第四当前处理子区的背景波动强度,根据第四当前处理子区域的背景波动强度和第四当前处理子区域的信号强度确定第四当前处理子区域是否存在荧光分子,并输出子区域提取控制信号;备选子区域获取电路,其输入端与所述荧光图读取模块第三输出端连接,用于从荧光图中提取备选子区域;子区域提取电路,其输入端与备选子区域提取电路的输出端连接,其控制端与子区域判断电路输出端连接,根据子区域提取控制信号确定备选子区域是否为荧光分子子区域。The sub-region judgment and extraction module includes a fourth sub-region acquisition circuit, whose input terminal is connected to the output end of the background processing module, and is used to extract the fourth current processing sub-region from the second image; the sub-region judgment circuit, whose first One input end is connected with the output end of the fourth sub-area acquisition circuit, and its second input end is connected with the output end of the background fluctuation intensity acquisition circuit, and the background fluctuation intensity of the third current processing sub-area is used as the fourth current processing sub-area Background fluctuation intensity, according to the background fluctuation intensity of the fourth current processing sub-region and the signal strength of the fourth current processing sub-region, determine whether there are fluorescent molecules in the fourth current processing sub-region, and output the sub-region extraction control signal; alternative sub-region acquisition A circuit, whose input end is connected to the third output end of the fluorescent image reading module, and is used to extract an alternative subregion from the fluorescent image; a subregion extraction circuit, whose input end is connected to an output end of the optional subregion extraction circuit , the control end of which is connected to the output end of the sub-region judging circuit, and determines whether the candidate sub-region is a fluorescent molecule sub-region according to the sub-region extraction control signal.

背景波动强度获取模块中对第三当前处理子区域进行局部标准差处理,获得第三当前处理子区域的背景波动强度,仅用到局部的图像信息,使得每个子区域都有一个背景波动强度,而不是整个图像中所有子区域共享一个背景波动强度,可以在整幅图像具有不均匀背景的情况下使得所提取的荧光分子子区域更加准确,具有更好的适应性,由FPGA中电路完成从荧光图中提取荧光分子子区域,相较于现有的数据处理装置采用CPU与GPU联合处理荧光图,数据处理速率明显提升。In the background fluctuation intensity acquisition module, the third current processing sub-area is processed with local standard deviation to obtain the background fluctuation intensity of the third current processing sub-area, and only local image information is used, so that each sub-area has a background fluctuation intensity, Instead of all sub-regions in the entire image sharing a background fluctuation intensity, the extracted fluorescent molecule sub-regions can be more accurate and have better adaptability when the entire image has an uneven background, which is completed by the circuit in the FPGA. Compared with the existing data processing device that uses CPU and GPU to jointly process the fluorescent image, the data processing rate is significantly improved by extracting the fluorescent molecular sub-region from the fluorescent image.

进一步地,背景波动强度获取电路包括:Further, the background fluctuation intensity acquisition circuit includes:

像素比较器,其输入端与所述第三子区域获取电路的输出端连接,用于根据第三当前处理子区域各像素的灰度值从第三当前处理子区域中获得筛选像素;A pixel comparator, whose input end is connected to the output end of the third sub-area acquisition circuit, and is used to obtain screened pixels from the third current processing sub-area according to the gray value of each pixel in the third current processing sub-area;

均值加法器,其输入端与所述像素比较器的输出端连接,用于获得筛选像素的平均值;A mean value adder, whose input is connected to the output of the pixel comparator, for obtaining the mean value of the screened pixels;

减法器,其第一输入端与所述像素比较器的输出端连接,其第二输入端与均值加法器的输出端连接,用于获得各筛选像素与筛选像素的平均值的差值;以及a subtractor, the first input of which is connected to the output of the pixel comparator, and the second input of which is connected to the output of the mean value adder, for obtaining the difference between each screened pixel and the average value of the screened pixel; and

局部标准差加法器,其输入端与减法器的输出端连接,用于将各筛选像素与筛选像素的平均值的差值求和,获得第三当前处理子区域的局部标准差。The local standard deviation adder, whose input terminal is connected to the output terminal of the subtractor, is used for summing the difference between each screened pixel and the average value of the screened pixel to obtain the local standard deviation of the third currently processed sub-region.

本发明提供的背景波动强度获取电路,通过像素比较器根据第三当前处理子区域的灰度值获得筛选像素,用筛选像素进行局部标准差计算,可以提高背景波动强度获取电路处理速度。The background fluctuation intensity acquisition circuit provided by the present invention uses the pixel comparator to obtain screened pixels according to the gray value of the third current processing sub-region, and uses the screened pixels to calculate the local standard deviation, which can improve the processing speed of the background fluctuation intensity acquisition circuit.

进一步地,子区域判断电路包括:Further, the subregion judging circuit includes:

第一像素比较器,其输入端与所述第四子区域获取电路的输出端连接,用于判断第四当前处理子区域的中心像素灰度值是否为第四当前处理子区域各像素灰度值中最大值,并根据判断结果输出第一电平值;The first pixel comparator, whose input terminal is connected to the output terminal of the fourth sub-region acquisition circuit, is used to judge whether the central pixel gray value of the fourth current processing sub-region is the gray value of each pixel in the fourth current processing sub-region value, and output the first level value according to the judgment result;

第二像素比较器,其一输入端与所述第四子区域获取电路输出端连接,其另一输入端与所述背景波动强度获取电路输出端连接,用于根据第四当前处理子区域的中心像素灰度值和第四当前处理子区域的背景波动强度输出第二电平值;A second pixel comparator, one input end of which is connected to the output end of the fourth sub-area acquisition circuit, and the other input end is connected to the output end of the background fluctuation intensity acquisition circuit, for processing according to the fourth current processing sub-area The central pixel gray value and the background fluctuation intensity of the fourth currently processed sub-region output a second level value;

四邻域像素加法器,其输入端与所述第四子区域获取电路输出端连接,用于将第四当前处理子区域中心像素的四邻域像素灰度值和第四当前处理子区域的中心像素灰度值进行累加处理输出第一累加灰度值;The four-neighborhood pixel adder, whose input end is connected to the output end of the fourth sub-area acquisition circuit, is used to combine the four-neighborhood pixel gray value of the central pixel of the fourth current processing sub-area and the central pixel of the fourth current processing sub-area The gray value is accumulated and processed to output the first accumulated gray value;

八邻域像素加法器,其输入端与所述第四子区域获取电路输出端连接,用于将第四当前处理子区域中心像素的八邻域像素灰度值和第四当前处理子区域的中心像素灰度值进行累加处理获得第二累加灰度值;An eight-neighborhood pixel adder, whose input end is connected to the output end of the fourth sub-area acquisition circuit, is used to combine the eight-neighborhood pixel gray value of the center pixel of the fourth current processing sub-area and the gray value of the fourth current processing sub-area The central pixel gray value is accumulated and processed to obtain a second accumulated gray value;

四邻域像素比较器,其一输入端与所述四邻域像素加法器的输出端连接,其另一输入端与所述背景波动强度获取电路输出端连接,用于根据第一累加灰度值和第四当前处理子区域的背景波动强度输出第三电平值;A four-neighborhood pixel comparator, one input end of which is connected to the output end of the four-neighborhood pixel adder, and the other input end thereof is connected to the output end of the background fluctuation intensity acquisition circuit, and is used for accumulating gray values according to the first sum and The background fluctuation intensity of the fourth currently processed sub-region outputs a third level value;

八邻域像素比较器,其一输入端与所述八邻域像素加法器输出端连接,其另一输入端与所述背景波动强度获取电路输出端连接,用于根据第二累加灰度值和第四当前处理子区域的背景波动强度输出第四电平值;以及An eight-neighborhood pixel comparator, one input end of which is connected to the output end of the eight-neighborhood pixel adder, and the other input end is connected to the output end of the background fluctuation intensity acquisition circuit, which is used to obtain and the background fluctuation intensity of the fourth currently processed sub-region outputs a fourth level value; and

逻辑与门,其第一输入端与所述第一像素比较器的输出端连接,其第二输入端与所述第二像素比较器的输出端连接,其第三输入端与所述四邻域像素比较器的输出端连接,其第四输入端与所述八邻域像素比较器的输出端连接,用于根据第一电平值至第四电平值输出子区域提取控制信号。A logic AND gate, its first input end is connected to the output end of the first pixel comparator, its second input end is connected to the output end of the second pixel comparator, and its third input end is connected to the four neighbors The output terminal of the pixel comparator is connected, and the fourth input terminal thereof is connected to the output terminal of the eight-neighborhood pixel comparator for outputting sub-region extraction control signals according to the first level value to the fourth level value.

本发明提供的子区域判断与提取模块,通过判断第四当前处理子区域的中心像素的灰度值是否为第四当前处理子区域的所有灰度值的最大值确定荧光分子位于第四当前处理子区域的中心位置,将第四当前处理子区域的背景波动强度作为阈值,将第四当前处理子区域的中心像素的灰度值、以及四邻域像素的灰度值、八邻域像素的灰度值与第四当前处理子区域的背景波动强度比较判断第四当前处理子区域是否存在荧光分子,消除背景对荧光分子判断的影响,使得判断结果更加准确。The sub-region judging and extracting module provided by the present invention determines whether the fluorescent molecule is located in the fourth current processing sub-region by judging whether the gray value of the central pixel of the fourth current processing sub-region is the maximum value of all gray values of the fourth current processing sub-region. For the central position of the sub-region, the background fluctuation intensity of the fourth current processing sub-region is used as the threshold value, and the gray value of the central pixel of the fourth current processing sub-region, the gray value of the four neighboring pixels, the gray value of the eight neighboring pixels The degree value is compared with the background fluctuation intensity of the fourth current processing sub-region to determine whether there are fluorescent molecules in the fourth current processing sub-region, and the influence of the background on the determination of fluorescent molecules is eliminated, so that the judgment result is more accurate.

作为本发明的另一方面,本发明提供了用于超分辨定位显微成像的数据预处理方法,包括如下步骤:As another aspect of the present invention, the present invention provides a data preprocessing method for super-resolution positioning microscopic imaging, comprising the following steps:

(1)对荧光图进行降噪声处理输出第一图像,并对第一图像进行去背景噪声处理,输出第二图像;(1) performing noise reduction processing on the fluorescence image to output the first image, and performing background noise removal processing on the first image, and outputting the second image;

从荧光图中提取第三当前处理子区域,并对第三当前处理子区域进行局部标准差处理,获得第三当前处理子区域的局部标准差,并将第三当前处理子区域的局部标准差作为第三当前处理子区域的背景波动强度;更新第三当前处理子区域,获得荧光图中各像素的背景波动强度,将荧光图所有像素的背景波动强度作为第二图像中所有像素的背景波动强度;Extract the third current processing sub-region from the fluorescence map, and perform local standard deviation processing on the third current processing sub-region, obtain the local standard deviation of the third current processing sub-region, and convert the local standard deviation of the third current processing sub-region As the background fluctuation intensity of the third current processing sub-area; update the third current processing sub-area, obtain the background fluctuation intensity of each pixel in the fluorescence map, and use the background fluctuation intensity of all pixels in the fluorescence map as the background fluctuation of all pixels in the second image strength;

(2)从第二图像中提取第四当前处理子区域,将第三当前处理子区域的背景波动强度作为第四当前处理子区的背景波动强度,根据第四当前处理子区域信号强度和第四当前处理子区域的背景波动强度判断第四当前处理子区域是否存在荧光分子子区域,并根据判断结果确定是否将荧光图中与第四当前处理子区域在第二图像中位置相同的区域作为荧光分子子区域;更新第四当前处理子区域,提取荧光图中所有荧光分子子区域;(2) Extract the fourth current processing sub-region from the second image, use the background fluctuation intensity of the third current processing sub-region as the background fluctuation intensity of the fourth current processing sub-region, according to the signal strength of the fourth current processing sub-region and the first Determine whether there is a fluorescent molecule sub-region in the fourth current processing sub-region according to the background fluctuation intensity of the fourth current processing sub-region, and determine whether to use the same region in the fluorescence image as the fourth current processing sub-region in the second image according to the judgment result. Fluorescent molecule sub-region; update the fourth current processing sub-region, and extract all fluorescent molecule sub-regions in the fluorescence map;

(3)将荧光分子子区域进行定位处理,获得超分辨重建图像。(3) Perform positioning processing on the fluorescent molecular sub-regions to obtain super-resolution reconstructed images.

本发明提供的用于超分辨定位显微成像的数据预处理方法,将从荧光图中提取的每个第三当前处理子区域进行局部标准差处理,获得第三当前处理子区域的背景波动强度,并从第二图像中提取第四当前处理子区域,将第三当前处理子区域的背景波动强度作为第四当前处理子区域的背景波动强度,并根据第四当前处理子区域的信号强度和第四当前处理子区域的背景波动强度确定第四当前处理子区域是否存在荧光分子,可以在整幅图像具有不均匀背景的情况下使得所提取的荧光分子子区域更加准确,具有更好的适应性,获得准确的超分辨重建图像。In the data preprocessing method for super-resolution positioning microscopic imaging provided by the present invention, each third current processing sub-region extracted from the fluorescence map is subjected to local standard deviation processing to obtain the background fluctuation intensity of the third current processing sub-region , and extract the fourth current processing sub-region from the second image, use the background fluctuation intensity of the third current processing sub-region as the background fluctuation intensity of the fourth current processing sub-region, and according to the signal strength of the fourth current processing sub-region and The background fluctuation intensity of the fourth current processing sub-region determines whether there are fluorescent molecules in the fourth current processing sub-region, which can make the extracted fluorescent molecule sub-regions more accurate and have better adaptability when the entire image has an uneven background. to obtain accurate super-resolution reconstruction images.

进一步地,步骤(2)包括如下步骤:Further, step (2) includes the following steps:

(21)从第二图像中提取第四当前处理子区域,若第四当前处理子区域的中心像素的灰度值为第四当前处理子区域所有像素的灰度值的最大值,(21) extract the fourth current processing sub-region from the second image, if the gray value of the central pixel of the fourth current processing sub-region is the maximum value of the gray value of all pixels in the fourth current processing sub-region,

且第四当前处理子区域的中心像素的灰度值大于第四当前处理子区域的背景波动强度的2倍;And the gray value of the central pixel of the fourth current processing sub-region is greater than twice the background fluctuation intensity of the fourth current processing sub-region;

且第四当前处理子区域中心像素的灰度值与第四当前处理子区域中心像素的四邻域像素的灰度值之和大于第四当前处理子区域的背景波动强度的9倍,And the sum of the gray value of the central pixel of the fourth current processing sub-region and the gray value of the four neighboring pixels of the central pixel of the fourth current processing sub-region is greater than 9 times of the background fluctuation intensity of the fourth current processing sub-region,

且第四当前处理子区域的中心像素的灰度值与第四当前处理子区域中心像素的八邻域像素的灰度值之和大于第四当前处理子区域的背景波动强度的11倍;And the sum of the gray value of the central pixel of the fourth current processing sub-region and the gray value of the eight neighboring pixels of the central pixel of the fourth current processing sub-region is greater than 11 times of the background fluctuation intensity of the fourth current processing sub-region;

则将荧光图中与第四当前处理子区域在第二图像中位置相同的区域作为荧光分子子区域提取,并进入步骤(22);否则不提取荧光图中与第四当前处理子区域在第二图像中位置相同的区域,进入步骤(22);Then extract the region with the same position in the second image as the fluorescent molecule sub-region in the fluorescence image and the fourth current processing sub-region, and enter step (22); otherwise do not extract the fourth current processing sub-region in the fluorescence image and the fourth current processing sub-region For the same region in the two images, enter step (22);

(22)判断是否所有第四当前处理子区域是否都已被提取,若是,则终止;否则,进入步骤(21);(22) Judging whether all the 4th current processing sub-regions have been extracted, if so, then terminate; otherwise, enter step (21);

第四当前处理子区域为从第二图像中提取的大于7×7的子区域。The fourth currently processed sub-area is a sub-area larger than 7×7 extracted from the second image.

从第二图像中提取第四当前处理子区域,将第四当前处理子区域中各像素的灰度值与第四当前处理子区域的背景波动强度比较,确定第四当前处理子区域是否为荧光分子,通过判断第四当前处理子区域的中心像素的灰度值是否为最大值判断荧光分子是否在第四当前处理子区域的中心位置,可以准确的判断荧光图中荧光分子所在区域。Extract the fourth current processing sub-region from the second image, compare the gray value of each pixel in the fourth current processing sub-region with the background fluctuation intensity of the fourth current processing sub-region, and determine whether the fourth current processing sub-region is fluorescent molecule, by judging whether the gray value of the center pixel of the fourth current processing sub-region is the maximum value to determine whether the fluorescent molecule is in the center of the fourth current processing sub-region, the area where the fluorescent molecule is located in the fluorescence map can be accurately judged.

附图说明Description of drawings

图1是本发明提供的用于超分辨定位显微成像的数据处理装置的结构示意图;Fig. 1 is a schematic structural view of a data processing device for super-resolution positioning microscopic imaging provided by the present invention;

图2是本发明提供的用于超分辨定位显微成像的数据处理装置中FPGA预处理电路示意图;2 is a schematic diagram of an FPGA preprocessing circuit in a data processing device for super-resolution positioning microscopic imaging provided by the present invention;

图3是FPGA中背景波动强度获取电路的结构示意图;Fig. 3 is the schematic structural diagram of the background fluctuation intensity acquisition circuit in the FPGA;

图4是是本发明提供FPGA中子区域判断电路的结构示意图;Fig. 4 is that the present invention provides the structural representation of FPGA neutron region judgment circuit;

图5是本发明提供的FPGA器件结构示意图,(a)为从sCMOS探测器获取荧光图的结构示意图,(b)为FPGA中的图像预处理器的结构示意图;Fig. 5 is the structure schematic diagram of the FPGA device provided by the present invention, (a) is the structure diagram that obtains the fluorescence figure from sCMOS detector, (b) is the structure diagram of the image preprocessor in FPGA;

图6是本发明提供的数据处理方法中从第三当前处理子区域中获得筛选像素原理图;Fig. 6 is a schematic diagram of obtaining screening pixels from the third current processing sub-region in the data processing method provided by the present invention;

图7是本发明提供数据预处理电路进行荧光图预处理的效果示意图,其中,(a)为由sCOMS相机采集的荧光图的效果示意图,(b)为将荧光图进行降噪处理和去背景处理的效果示意图,(c)为将荧光图进行局部标准差滤波后的背景波动强度效果示意图,(d)为从荧光图中提取的所有荧光分子子区域的效果示意图。Fig. 7 is a schematic diagram of the effect of the fluorescence image preprocessing provided by the data preprocessing circuit provided by the present invention, wherein (a) is a schematic diagram of the effect of the fluorescence image collected by the sCOMS camera, and (b) is the noise reduction processing and background removal of the fluorescence image Schematic diagram of the effect of processing, (c) is a schematic diagram of the effect of background fluctuation intensity after local standard deviation filtering of the fluorescence image, (d) is a schematic diagram of the effect of all fluorescent molecular sub-regions extracted from the fluorescence image.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, 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.

图1为本发明提供的用于超分辨定位显微成像的数据处理装置的结构示意图,数据处理装置包括数据预处理电路,数据预处理电路的输出端连接第一处理器的输入端,数据预处理电路用于从探测器采集的荧光图中提取荧光分子子区域,第一处理器用于将荧光分子子区域进行定位处理获得超分辨重建图。数据预处理电路包括探测器接口电路,用于快速将探测器采集的荧光图传输至多路复用电路。探测器接口电路可以为cameralink接口、USB接口、FMC模块等各种可转接接口。Fig. 1 is the structural representation of the data processing device that is used for super-resolution positioning microscopic imaging that the present invention provides, and data processing device comprises data preprocessing circuit, and the output end of data preprocessing circuit is connected the input end of the first processor, and data preprocessing circuit The processing circuit is used to extract the fluorescent molecule sub-regions from the fluorescence image collected by the detector, and the first processor is used to perform positioning processing on the fluorescent molecule sub-regions to obtain a super-resolution reconstruction image. The data preprocessing circuit includes a detector interface circuit, which is used to quickly transmit the fluorescence image collected by the detector to the multiplexing circuit. The detector interface circuit can be various transferable interfaces such as cameralink interface, USB interface, and FMC module.

多路复用电路用于接收荧光图并将荧光图复制为多路荧光图输出,其输入端与探测器接口电路输出端连接,多路复用电路有两个输出端,其中一个输出端为通路,该通路用于同第二处理器的输入端连接,多路复用电路的另一个输出端与FPGA输入端连接,第二处理器的输出端与图像显示器的输入端连接,第二处理器用于将荧光图进行超分辨定位处理获得超分辨图像,该多路复用电路使得用户可以保留原有的荧光图处理方式。The multiplexing circuit is used to receive the fluorescent image and copy the fluorescent image into a multi-channel fluorescent image output, and its input terminal is connected to the output terminal of the detector interface circuit. The multiplexing circuit has two output terminals, one of which is The path is used to connect with the input end of the second processor, the other output end of the multiplexing circuit is connected with the FPGA input end, the output end of the second processor is connected with the input end of the image display, and the second processing The device is used to perform super-resolution positioning processing on the fluorescence image to obtain a super-resolution image, and the multiplexing circuit allows the user to retain the original processing method of the fluorescence image.

作为多路复用电路的另一种实现方式,多路复用电路有N个输出端,其中N≥3,第一输出端与FPGA的输入端连接,第二输出端与第二处理器的输入端连接,第三输出端至第N输出端均用于扩展输出。使得其他处理芯片或者处理器通过第三输出端至第N输出端连接到数据预处理电路中,处理芯片可以为DSP芯片。As another implementation of the multiplexing circuit, the multiplexing circuit has N output terminals, wherein N≥3, the first output terminal is connected to the input terminal of the FPGA, and the second output terminal is connected to the second processor's The input terminal is connected, and the third output terminal to the Nth output terminal are all used for expanding the output. Other processing chips or processors are connected to the data preprocessing circuit through the third output terminal to the Nth output terminal, and the processing chip may be a DSP chip.

FPGA输出端与第一接口电路的输入端,FPGA从荧光图中提取荧光分子子区域,荧光分子子区域由第一接口电路传输至第一处理器,第一处理器包括存储器、CPU以及GPU,存储器的第一端与第一接口电路输出端,CPU的第一端与GPU的第一端连接,GPU的第二端与存储器的第二端连接,存储器用于存储荧光分子子区域,CPU用于向GPU发送定位指令,GPU接收到定位指令后从存储器中接收荧光分子子区域数据,并对荧光分子子区域进行定位处理获得超分辨重建图,将超分辨图传输至CPU,并由图像显示器显示超分辨重建图。The FPGA output terminal and the input terminal of the first interface circuit, the FPGA extracts the fluorescent molecule sub-region from the fluorescence map, and the fluorescent molecule sub-region is transmitted to the first processor by the first interface circuit, and the first processor includes a memory, a CPU and a GPU, The first end of the memory is connected to the output end of the first interface circuit, the first end of the CPU is connected to the first end of the GPU, the second end of the GPU is connected to the second end of the memory, the memory is used to store fluorescent molecule sub-regions, and the CPU uses After sending the positioning instruction to the GPU, the GPU receives the fluorescent molecule sub-region data from the memory after receiving the positioning instruction, and performs positioning processing on the fluorescent molecule sub-region to obtain a super-resolution reconstruction image, and transmits the super-resolution image to the CPU, and displays it on the image display Show the super-resolution reconstruction map.

由于超分辨定位成像稀疏激发的特性,由接收探测器采集的荧光图中仅仅只有包含荧光分子子区域是有效的,因此,本发明提供的数据处理装置,由数据预处理电路从荧光图中提取荧光分子子区域,将荧光分子子区域传输至第一处理器,第一处理器中的CPU与GPU仅完成对荧光分子子区域的定位处理,能够提高第一处理器获得超分辨重建图的效率。通过探测器接口电路快速从探测器中获取荧光图,并由FPGA实现实时提取出荧光图中荧光分子子区域,将荧光图中有用的荧光分子子区域提出,能够保证获得超分辨重建图的精度,由FPGA内部提供的硬件电路,能够实时从大量的荧光图中提取荧光分子子区域,并由第一接口电路将荧光分子子区域快速传输至第一处理器。因此,本发明提供的用于超分辨定位显微成像的数据处理装置实现高精度超分辨图像实时重建。Due to the sparse excitation characteristics of super-resolution positioning imaging, only the sub-regions containing fluorescent molecules in the fluorescence image collected by the receiving detector are effective. Therefore, the data processing device provided by the present invention is extracted from the fluorescence image by the data preprocessing circuit. Fluorescent molecular sub-regions, the fluorescent molecular sub-regions are transmitted to the first processor, and the CPU and GPU in the first processor only complete the positioning processing of the fluorescent molecular sub-regions, which can improve the efficiency of the first processor in obtaining super-resolution reconstruction images . The fluorescence image is quickly obtained from the detector through the detector interface circuit, and the fluorescent molecule sub-regions in the fluorescence image are extracted in real time by FPGA, and the useful fluorescent molecule sub-regions in the fluorescence image are proposed, which can ensure the accuracy of super-resolution reconstruction images , the hardware circuit provided inside the FPGA can extract fluorescent molecule subregions from a large number of fluorescent images in real time, and the fluorescent molecule subregions are quickly transmitted to the first processor by the first interface circuit. Therefore, the data processing device for super-resolution positioning microscopic imaging provided by the present invention realizes real-time reconstruction of high-precision super-resolution images.

图2是本发明提供的用于超分辨定位显微成像的数据处理装置中FPGA结构示意图,FPGA包括荧光图读取模块5、降噪处理模块1、去背景处理模块2、背景波动强度获取模块3以及子区域判断与提取模块4。Figure 2 is a schematic diagram of the FPGA structure in the data processing device for super-resolution positioning microscopic imaging provided by the present invention, the FPGA includes a fluorescence image reading module 5, a noise reduction processing module 1, a background processing module 2, and a background fluctuation intensity acquisition module 3 and the sub-region judgment and extraction module 4.

荧光图读取模块5,用于获取荧光图,并将荧光图分为三路荧光图输出,荧光图读取模块5的第一输出端与降噪处理模块1的输入端连接,降噪处理模块1用于对荧光图进行降噪处理,输出第一图像,降噪处理模块1的输出端与去背景处理模块2的输入端连接,用于对第一图像进行去背景处理,输出第二图像。The fluorescence image reading module 5 is used to obtain the fluorescence image, and divide the fluorescence image into three-way fluorescence image output, the first output end of the fluorescence image reading module 5 is connected to the input end of the noise reduction processing module 1, and the noise reduction processing Module 1 is used to perform noise reduction processing on the fluorescence image, and output the first image. The output terminal of the noise reduction processing module 1 is connected to the input terminal of the background removal processing module 2, and is used to perform background removal processing on the first image, and output the second image. image.

背景波动强度获取模块3,包括第三子区域获取电路301和背景波动强度获取电路302,第三子区域获取电路301的输入端与荧光图读取模块5的输出端连接,用于实时从荧光图中提取出第三当前处理子区域,背景波动强度获取电路302的输入端与第三子区域获取电路301的输出端连接,用于实时输出第三当前处理子区域的局部标准差,并将第三当前处理子区域的局部标准差作为第三当前处理子区域的背景波动强度,背景波动强度用于荧光分子子区域判断的阈值。The background fluctuation intensity acquisition module 3 includes a third sub-region acquisition circuit 301 and a background fluctuation intensity acquisition circuit 302, and the input end of the third sub-region acquisition circuit 301 is connected with the output end of the fluorescence image reading module 5 for real-time acquisition from the fluorescence The third current processing sub-region is extracted in the figure, the input end of the background fluctuation intensity acquisition circuit 302 is connected with the output end of the third sub-region acquisition circuit 301, for real-time output of the local standard deviation of the third current processing sub-region, and The local standard deviation of the third current processing sub-region is used as the background fluctuation intensity of the third current processing sub-region, and the background fluctuation intensity is used as a threshold for judging the fluorescent molecule sub-region.

子区域判断与提取模块4,包括第四子区域获取电路401、子区域判断电路402、备选子区域获取电路403以及子区域提取电路404,第四子区域获取电路401的输入端与去背景处理模块2的输出端连接,用于实时从第二图像中提取第四当前处理子区域,子区域判断电路402第一输入端与第四子区域获取电路401的输出端连接,子区域判断电路402第二输入端与背景波动强度获取电路302的输出端连接,让第四子区域获取电路401与第三子区域获取电路301在时序上配合,使第四当前处理子区域的中心像素在第二图像中位置与第三当前处理子区域的中心像素在荧光图中位置相同,即将第三当前处理子区域的背景波动强度作为第四当前处理子区域的背景波动强度,子区域判断电路402根据第四当前处理子区域和由背景波动强度获取电路302输出的第三当前处理子区域的背景波动强度实时判断第四当前处理子区域是否存在荧光分子,并输出子区域提取控制信号。The sub-region judgment and extraction module 4 includes a fourth sub-region acquisition circuit 401, a sub-region judgment circuit 402, an alternative sub-region acquisition circuit 403 and a sub-region extraction circuit 404, the input terminal of the fourth sub-region acquisition circuit 401 is connected to the background The output end of the processing module 2 is connected to extract the fourth current processing sub-region from the second image in real time, the first input end of the sub-region judging circuit 402 is connected to the output end of the fourth sub-region obtaining circuit 401, and the sub-region judging circuit 402 The second input end is connected to the output end of the background fluctuation intensity acquisition circuit 302, so that the fourth sub-area acquisition circuit 401 and the third sub-area acquisition circuit 301 can cooperate in timing, so that the central pixel of the fourth current processing sub-area The position in the second image is the same as that of the center pixel of the third current processing sub-region in the fluorescence map, that is, the background fluctuation intensity of the third current processing sub-region is used as the background fluctuation intensity of the fourth current processing sub-region, and the sub-region judgment circuit 402 according to The fourth current processing sub-region and the background fluctuation intensity of the third current processing sub-region output by the background fluctuation intensity acquisition circuit 302 judge in real time whether there are fluorescent molecules in the fourth current processing sub-region, and output a sub-region extraction control signal.

备选子区域获取电路403的输入端与荧光图读取模块5的第三输出端连接,备选子区域获取电路403用于从荧光图中提取备选子区域,子区域提取电路404输入端与备选子区域获取电路403的输出端连接,子区域提取电路404的控制端与子区域判断电路402输出端连接,根据子区域提取控制信号实时确定备选子区域是否为荧光分子子区域。让备选子区域提取电路403与第四子区域获取电路401在时序上配合,使第四当前处理子区域的中心像素在第二图像中位置与备选子区域的中心像素在荧光图中位置相同。The input terminal of the candidate subregion acquisition circuit 403 is connected with the third output terminal of the fluorescence image reading module 5, the alternative subregion acquisition circuit 403 is used to extract the candidate subregion from the fluorescence image, and the input terminal of the subregion extraction circuit 404 It is connected to the output terminal of the candidate subregion acquisition circuit 403, the control terminal of the subregion extraction circuit 404 is connected to the output terminal of the subregion judgment circuit 402, and determines whether the candidate subregion is a fluorescent molecule subregion in real time according to the subregion extraction control signal. Allow the candidate subregion extraction circuit 403 to cooperate with the fourth subregion acquisition circuit 401 in timing, so that the position of the central pixel of the fourth currently processed subregion in the second image is the same as the position of the central pixel of the candidate subregion in the fluorescence map same.

通过第三子区域获取电路301、第四子区域获取电路401以及备选子区域提取电路403不断更新输出的第三当前处理子区域、第四当前处理子区域和备选子区域,实现对荧光图所有像素进行预处理,通过数据预处理电路对荧光图实时处理,消减荧光图中对重建图像没有意义或有不好影响的数据,将荧光分子子区域用于图像重建,有效降低图像重建计算的计算量,缩小重建图像的时间。Through the third sub-region acquisition circuit 301, the fourth sub-region acquisition circuit 401 and the alternative sub-region extraction circuit 403, the third current processing sub-region, the fourth current processing sub-region and the alternative sub-region are continuously updated to realize the fluorescence detection. All pixels in the image are preprocessed, and the fluorescence image is processed in real time through the data preprocessing circuit to reduce the data in the fluorescence image that has no meaning or bad influence on the reconstructed image, and the fluorescent molecular sub-region is used for image reconstruction, effectively reducing the calculation of image reconstruction The amount of calculation reduces the time to reconstruct the image.

同时,背景波动强度获取模块根据第三当前处理子区域的灰度值获得第三当前处理子区域的局部标准差,仅用到局部的图像信息,并将第三当前处理子区域的局部标准差作为第三当前处理子区域的背景波动强度,使得每个像素都有一个背景波动强度的值,而不是整个图像共享一个背景波动强度的值,可以在整幅图像具有不均匀背景的情况下使得所提取的荧光分子子区域更加准确,具有更好的适应性。因此,本发明提供的用于超分辨定位显微成像的数据处理装置能够实现实时且高精度的空间分辨率重建图像。At the same time, the background fluctuation intensity acquisition module obtains the local standard deviation of the third current processing sub-region according to the gray value of the third current processing sub-region, only uses the local image information, and uses the local standard deviation of the third current processing sub-region As the background fluctuation intensity of the third current processing sub-region, each pixel has a value of background fluctuation intensity, rather than the whole image sharing a value of background fluctuation intensity, which can make the whole image have an uneven background The extracted fluorescent molecular subregions are more accurate and have better adaptability. Therefore, the data processing device for super-resolution positioning microscopic imaging provided by the present invention can realize real-time and high-precision spatial resolution reconstruction of images.

本发明提供的FPGA中降噪处理模块包括降噪行缓冲器组,第一降噪寄存器组,降噪相乘累加电路以及第二降噪寄存器,降噪行缓冲器组用于从荧光图中提取并输出第一当前处理子区域,第一降噪寄存器组的输入端与降噪行缓冲器组输出端连接,第一降噪寄存器组用于存储第一当前处理子区域,降噪相乘累加电路的输入端与第一降噪寄存器组输出端连接,降噪相乘累加电路用于将第一当前处理子区域和预设降噪卷积模板进行相乘累加处理,并输出第一当前处理子区域降噪后的灰度值,第二降噪寄存器的输入端与降噪相乘累加电路输出端连接,用于存储由降噪相乘累加电路输出的降噪后的图像。The noise reduction processing module in the FPGA provided by the present invention includes a noise reduction row buffer group, a first noise reduction register group, a noise reduction multiplication and accumulation circuit and a second noise reduction register, and the noise reduction row buffer group is used to extract the noise from the fluorescent image. Extract and output the first current processing sub-area, the input end of the first noise reduction register group is connected with the output end of the noise reduction line buffer group, the first noise reduction register group is used to store the first current processing sub-area, and the noise reduction is multiplied The input end of the accumulation circuit is connected to the output end of the first noise reduction register group, and the noise reduction multiplication and accumulation circuit is used to perform multiplication and accumulation processing on the first current processing sub-region and the preset noise reduction convolution template, and output the first current To process the noise-reduced gray value of the sub-region, the input end of the second noise reduction register is connected to the output end of the noise reduction multiplication and accumulation circuit for storing the noise-reduced image output by the noise reduction multiplication and accumulation circuit.

本发明提供的FPGA中去背景处理模块,包括去背景行缓冲器组,第一去背景寄存器组,去背景相乘累加电路以及第二去背景寄存器,去背景行缓冲器组用于从降噪后的图像中提取并输出第一当前处理子区域,第一去背景寄存器器组的输入端与去背景行缓冲器组输出端连接,第一去背景寄存器组用于存储第一当前处理子区域,去背景相乘累加电路的输入端与第一去背景寄存器组输出端连接,去背景相乘累加电路用于将第一当前处理子区域和预设去背景卷积模板进行相乘累加处理,并输出第一当前处理子区域去背景后的灰度值,第二去背景寄存器的输入端与去背景相乘累加电路输出端连接,用于存储由去背景相乘累加电路输出的去背景后且降噪后的图像数据。In the FPGA provided by the present invention, the background processing module includes removing the background row buffer group, the first background register group, the background multiplication and accumulation circuit and the second background register, and the background row buffer group is used for noise reduction Extract and output the first current processing sub-area from the image after, the input end of the first background removing register group is connected with the output end of the background line buffer group, the first background removing register group is used to store the first current processing sub-region , the input terminal of the background removal multiplication and accumulation circuit is connected to the output end of the first background removal register group, and the background removal multiplication and accumulation circuit is used to perform multiplication and accumulation processing on the first current processing sub-region and the preset background removal convolution template, And output the gray value after removing the background of the first current processing sub-region, the input end of the second background register is connected with the output end of the background multiplying and accumulating circuit, and is used for storing the background removing outputted by the background multiplying and accumulating circuit And the image data after noise reduction.

如图3所示,本发明提供的FPGA中背景波动强度获取电路302包括像素比较器3021、均值加法器3022、减法器3023以及局部标准差加法器3024,像素比较器3021输入端与第三子区域获取电路301的输出端连接,用于根据第三当前处理子区域各像素的灰度值获得筛选像素,均值加法器3022输入端与像素比较器3021的输出端连接,用于获得筛选像素的平均值,减法器3023第一输入端与像素比较器3021的输出端连接,减法器3023第二输入端与均值加法器3022的输出端连接,用于获得各筛选像素与筛选像素的平均值的差值,局部标准差加法器3024输入端与减法器3023输出端连接,用于将各筛选像素与筛选像素的平均值的差值求和,获得第三当前处理子区域的局部标准差。在像素比较器3021从第三当前处理子区域中获取筛选像素时,可根据像素的位置将第三当前处理子区域的最外层的所有像素分成两部分,从每个部分中选出一半像素作为筛选像素,且从该部分筛选出像素的灰度值均小于该部分中任意的未筛选出像素的灰度值。本发明提供的背景波动强度获取电路,通过像素比较器根据第三当前处理子区域的灰度值获得筛选像素,用筛选像素进行局部标准差计算,可以提高该电路处理速度。As shown in Figure 3, the background fluctuation intensity acquisition circuit 302 in the FPGA provided by the present invention includes a pixel comparator 3021, an average value adder 3022, a subtractor 3023 and a local standard deviation adder 3024, and the input terminal of the pixel comparator 3021 is connected to the third sub- The output terminal of the area acquisition circuit 301 is connected to obtain the screened pixel according to the gray value of each pixel in the third current processing sub-area, and the input terminal of the mean value adder 3022 is connected to the output terminal of the pixel comparator 3021 to obtain the screened pixel. Average value, the first input end of the subtractor 3023 is connected to the output end of the pixel comparator 3021, the second input end of the subtractor 3023 is connected to the output end of the mean value adder 3022, and is used to obtain the average value of each screening pixel and the screening pixel Difference, local standard deviation The input terminal of the adder 3024 is connected to the output terminal of the subtractor 3023, and is used for summing the difference between each screened pixel and the average value of the screened pixel to obtain the local standard deviation of the third current processing sub-region. When the pixel comparator 3021 obtains the filtered pixels from the third current processing sub-region, it can divide all the pixels in the outermost layer of the third current processing sub-region into two parts according to the position of the pixels, and select half of the pixels from each part As screening pixels, the gray values of the pixels screened out from the part are all smaller than the gray values of any pixels not screened out in the part. The background fluctuation intensity acquisition circuit provided by the present invention uses the pixel comparator to obtain screened pixels according to the gray value of the third current processing sub-area, and uses the screened pixels to calculate the local standard deviation, which can improve the processing speed of the circuit.

如图4所示,本发明提供FPGA中子区域判断与提取模块包括第一像素比较器4021、第二像素比较器4022、四邻域像素加法器4023、八邻域像素加法器4025、四邻域像素比较器4024、八邻域像素比较器4026以及逻辑与门4027,第一像素比较器4021输入端与第四子区域获取电路401的输出端连接,用于判断第四当前处理子区域的中心像素灰度值是否为第四当前子区域各像素灰度值中最大值,并根据判断结果输出第一电平,当第四当前处理子区域的中心像素灰度值为第四当前子区域各像素灰度值中最大值,则第一电平为高电平,否则,为低电平,通过第一电平可以确定荧光分子是否位于第四当前处理子区域的中心位置。As shown in Figure 4, the sub-region judgment and extraction module in the FPGA provided by the present invention includes a first pixel comparator 4021, a second pixel comparator 4022, a four-neighborhood pixel adder 4023, an eight-neighborhood pixel adder 4025, and a four-neighborhood pixel adder 4025. Comparator 4024, eight-neighborhood pixel comparator 4026 and logical AND gate 4027, the input end of the first pixel comparator 4021 is connected to the output end of the fourth sub-area acquisition circuit 401, and is used to determine the center pixel of the fourth current processing sub-area Whether the gray value is the maximum value among the gray values of each pixel in the fourth current sub-area, and output the first level according to the judgment result, when the gray value of the center pixel of the fourth current processing sub-area is the maximum value of each pixel in the fourth current sub-area If the gray value is the maximum value, the first level is a high level, otherwise, it is a low level, and whether the fluorescent molecule is located in the center of the fourth current processing sub-region can be determined through the first level.

第二像素比较器4022的一输入端与第四子区域获取电路401输出端连接,第二像素比较器4022的另一输入端与背景波动强度获取电路302输出端连接,通过比较第四当前处理子区域的中心像素灰度值和第四当前处理子区域的背景波动强度输出第二电平,若第四当前处理子区域的中心像素灰度值大于第四当前处理子区域的背景波动强度的两倍,则第二电平为高电平,否则,第二电平为低电平。One input end of the second pixel comparator 4022 is connected to the output end of the fourth sub-region acquisition circuit 401, the other input end of the second pixel comparator 4022 is connected to the output end of the background fluctuation intensity acquisition circuit 302, by comparing the fourth current processing The central pixel gray value of the sub-region and the background fluctuation intensity of the fourth current processing sub-region output the second level, if the central pixel gray value of the fourth current processing sub-region is greater than the background fluctuation intensity of the fourth current processing sub-region twice, the second level is high level, otherwise, the second level is low level.

四邻域像素加法器4023输入端与第四子区域获取电路401输出端连接,用于将第四当前处理子区域的中心像素的四邻域像素灰度值和第四当前处理子区域的中心像素灰度值进行累加处理获得第一累加灰度值。八邻域像素加法器4025输入端与第四子区域获取电路401输出端连接,用于将第四当前处理子区域的中心像素的八邻域像素灰度值和第四当前处理子区域的中心像素灰度值进行累加处理获得第二累加灰度值。The input end of the four-neighborhood pixel adder 4023 is connected to the output end of the fourth sub-region acquisition circuit 401, and is used to combine the four-neighborhood pixel gray value of the central pixel of the fourth current processing sub-region and the central pixel gray value of the fourth current processing sub-region grayscale values to obtain the first accumulated grayscale value. The input end of the eight-neighborhood pixel adder 4025 is connected to the output end of the fourth sub-area acquisition circuit 401, and is used to convert the eight-neighborhood pixel gray value of the central pixel of the fourth current processing sub-area to the center of the fourth current processing sub-area. The pixel grayscale values are accumulated to obtain a second accumulated grayscale value.

四邻域像素比较器4024一输入端与四邻域像素加法器4023的输出端连接,四邻域像素比较器4024另一输入端与背景波动强度获取电路302输出端连接,比较第一累加灰度值和第四当前处理子区域的背景波动强度,并根据比较结果输出第三电平,若第一累加素灰度值大于第四当前处理子区域的背景波动强度的9倍,则第三电平为高电平,否则,第三电平为低电平。One input end of the four-neighborhood pixel comparator 4024 is connected to the output end of the four-neighborhood pixel adder 4023, and the other input end of the four-neighborhood pixel comparator 4024 is connected to the output end of the background fluctuation intensity acquisition circuit 302 to compare the first accumulated gray value and The background fluctuation intensity of the fourth current processing sub-region, and output the third level according to the comparison result, if the first accumulative element gray value is greater than 9 times of the background fluctuation intensity of the fourth current processing sub-region, then the third level is High level, otherwise, the third level is low level.

八邻域像素比较器4026一输入端与八邻域像素加法器4025的输出端连接,八邻域像素比较器4026另一输入端与背景波动强度获取电路302输出端连接,比较第二累加灰度值和第四当前处理子区域的背景波动强度,并根据比较结果输出第四电平,若第二累加素灰度值大于第四当前处理子区域的背景波动强度的11倍,则第四电平为高电平,否则,第四电平为低电平。One input end of the eight-neighborhood pixel comparator 4026 is connected to the output end of the eight-neighborhood pixel adder 4025, and the other input end of the eight-neighborhood pixel comparator 4026 is connected to the output end of the background fluctuation intensity acquisition circuit 302 to compare the second accumulated gray intensity value and the background fluctuation intensity of the fourth current processing sub-region, and output the fourth level according to the comparison result, if the second accumulated element gray value is greater than 11 times of the background fluctuation intensity of the fourth current processing sub-region, then the fourth level is high level, otherwise, the fourth level is low level.

逻辑与门4027第一输入端与第一像素比较器4021的输出端连接,逻辑与门4027第二输入端与第二像素比较器4022的输出端连接,逻辑与门4027第三输入端与四邻域像素比较器4024的输出端连接,逻辑与门4027第四输入端与八邻域像素比较器4026的输出端连接,根据第一电平至第四电平输出子区域提取控制信号。The first input terminal of the logical AND gate 4027 is connected to the output terminal of the first pixel comparator 4021, the second input terminal of the logical AND gate 4027 is connected to the output terminal of the second pixel comparator 4022, and the third input terminal of the logical AND gate 4027 is connected to the four adjacent The output terminal of the domain pixel comparator 4024 is connected, the fourth input terminal of the logical AND gate 4027 is connected with the output terminal of the eight-neighborhood pixel comparator 4026, and the sub-region extraction control signal is output according to the first level to the fourth level.

当第一电平至第四电平均为高电平时,则表示第四当前处理子区域存在荧光分子,逻辑与门4027输出的子区域控制信号,使备选子区域获取电路输出的备选子区域作为荧光分子子区域经由子区域提取电路输出。当第一电平至第四电平有一个不为高电平时,则表示第四当前处理子区域不存在荧光分子,逻辑与门4027输出的子区域控制信号,使备选子区域获取电路输出的备选子区域不经由子区域提取电路输出。通过对第四当前处理子区域的四邻域像素、八邻域像素与第四当前处理子区域的背景波动强度进行比较,可以消除背景波动强度对荧光分子判断的影响,使得输出的荧光分子子区域更加准确。When the first level to the fourth level are all high levels, it means that there are fluorescent molecules in the fourth current processing sub-region, and the sub-region control signal output by the logic AND gate 4027 makes the alternative sub-region obtain the alternative sub-region output by the circuit. Regions are output as fluorescent molecule subregions via a subregion extraction circuit. When one of the first level to the fourth level is not high, it means that there is no fluorescent molecule in the fourth current processing sub-area, and the sub-area control signal output by the logical AND gate 4027 makes the alternative sub-area acquisition circuit output The alternative subregions of are not output via the subregion extraction circuit. By comparing the four-neighborhood pixels and eight-neighborhood pixels of the fourth current processing sub-area with the background fluctuation intensity of the fourth current processing sub-area, the influence of the background fluctuation intensity on the judgment of fluorescent molecules can be eliminated, so that the output fluorescent molecule sub-area more precise.

本发明提供的数据处理装置的实施例中,探测器为sCMOS探测器,sCMOS探测器采用80bits的camera link传输协议传输荧光图,即每个时钟同时传输5个像素的数据。故接口选用cameralink接口电路,图5为PFGA的器件结构示意图,为了正确的获取由cameralink接口传输的图像数据,采用5(a)所示的电路结构从sCMOS探测器获取荧光图。sCMOS探测器通常采用Rolling shutter的传输模式,即荧光图从中间往两边逐行读出,通过写状态机将荧光图分别存储到奇数行图像FIFO和偶数行图像FIFO中,同时考虑到荧光图处理往往处理不到边沿的几个像素,如果仅仅是进行简单的奇偶分割,最终得到的超分辨图像中间会有一条黑带。因此,我们将上半探测器中间的6行数据也传输给下半探测器,并将下半探测器底部的6行数据丢掉。对上半探测器数据也进行类似的操作,这样不仅中间的黑带被去除掉,而且因为图像大小不变,保证了图像处理的速度不变,并根据荧光图的行数奇偶性把荧光图分为上下两半探测器的数据。In the embodiment of the data processing device provided by the present invention, the detector is an sCMOS detector, and the sCMOS detector uses an 80-bits camera link transmission protocol to transmit the fluorescence image, that is, transmits data of 5 pixels at the same time per clock. Therefore, the cameralink interface circuit is selected for the interface. Figure 5 is a schematic diagram of the device structure of the PFGA. In order to correctly obtain the image data transmitted by the cameralink interface, the circuit structure shown in 5(a) is used to obtain the fluorescence image from the sCMOS detector. The sCMOS detector usually adopts the transmission mode of Rolling shutter, that is, the fluorescence image is read out line by line from the middle to both sides, and the fluorescence image is stored in the odd-line image FIFO and the even-line image FIFO by writing the state machine, while considering the fluorescence image processing It is often impossible to process a few pixels on the edge. If only a simple parity segmentation is performed, there will be a black band in the middle of the final super-resolution image. Therefore, we also transmit the 6 rows of data in the middle of the upper half of the detectors to the lower half of the detectors, and discard the 6 rows of data at the bottom of the lower half of the detectors. A similar operation is performed on the data of the upper half of the detectors, so that not only the black band in the middle is removed, but also the speed of image processing is guaranteed because the image size remains unchanged, and the fluorescence image is divided according to the parity of the number of lines in the fluorescence image. Divide the data into the upper and lower halves of the detectors.

如图5(b)所示,每个半探测器数据分配一个图像处理器进行处理,每个图像处理器包括降噪处理模块、去背景处理模块、背景波动强度获取模块以及子区域判断与提取模块,上述四个模块中均包括有相互连接的行缓冲器组和寄存器组,在一个行缓冲器中,每个时钟像素往前移动一格,移出当前行缓冲器的像素同时流入下一个行缓冲器和寄存器,寄存器组充满流入的像素的灰度值,即获得当前处理子区域,降噪处理模块中由行缓冲器组和寄存器组从荧光图中提取的当前处理子区域与预设降噪卷积模板进行相乘累加处理,获得当前处理像素降噪后的灰度值,即通过对当前处理子区域进行高斯低通滤波处理,获得当前处理像素降噪后的灰度值,各像素降噪后的灰度值由寄存器组存储,寄存器组将各像素降噪后的灰度值输出给去背景处理模块,同理,由行缓冲器组与寄存器组从第一图像中提取当前处理子区域,去背景处理模块中寄存器组输出的当前处理子区域与预设去背景卷积模板进行相乘累加处理,获得当前处理像素去背景且降噪后的灰度值,即对当前处理像素进行环形滤波处理,获得当前像素去背景且降噪后的灰度值,各像素去背景且降噪后的灰度值由寄存器储存,寄存器组将去背景且降噪后的灰度值传输至子区域判断与提取模块。背景波动强度获取模块中行缓冲器组和寄存器组从荧光图中提取当前处理子区域,并获得当前处理子区域的局部标准差,将当前处理子区域的局部标准差作为当前处理子区域的背景波动强度,当前处理子区域的背景波动强度存储寄存器中,并传输至子区域判断与提取模块。子区域判断与提取模块中的一行缓冲器组与寄存器组从去背景且降噪后的图像中提取当前处理子区域,并通过子区域判断电路输出子区域提取控制信号,并将子区域提取控制信号传输至子区域提取电路的控制端,子区域判断与提取模块中的另一行缓冲器组与另一寄存器组从荧光图中提取备选子区域,并将备选子区域传输至子区域提取电路,子区域提取电路根据子区域提取控制信号实时确定备选子区域是否为荧光分子子区域,若是,则将备选子区域存储至子区域数据FIFO中,通过对子区域数据FIFO进行合并,将合并后的子区域数据进行裁剪,可以获得任意大小的子区域数据,将两个图像预处理器输出的荧光分子所在区域数据进行汇总后通过USB3.0进行传输给定位处理单元和图像重建单元进行处理。因为sCOMS相机接进FPGA的接口为camera link接口,此接口每个时钟传输给FPGA的数据为5个像素,也就是5*16bit数据量。故每个图像预处理器中由五个降噪处理模块、五个去背景处理模块、五个背景波动强度获取模块以及五个子区域判断与提取模块。As shown in Figure 5(b), each half-detector data is assigned an image processor for processing, and each image processor includes a noise reduction processing module, a background processing module, a background fluctuation intensity acquisition module, and sub-region judgment and extraction Module, the above four modules all include interconnected row buffer groups and register groups. In a row buffer, each clock pixel moves forward by one frame, and the pixels that are moved out of the current row buffer flow into the next row at the same time. Buffers and registers, the register group is filled with the gray value of the incoming pixels, that is, the current processing sub-region is obtained, and the current processing sub-region extracted from the fluorescent image by the line buffer group and the register group in the noise reduction processing module is consistent with the preset reduction The noise convolution template is multiplied and accumulated to obtain the gray value of the current processing pixel after noise reduction, that is, by performing Gaussian low-pass filtering on the current processing sub-region, the gray value of the current processing pixel after noise reduction is obtained, and each pixel The gray value after noise reduction is stored by the register group, and the register group outputs the gray value after noise reduction of each pixel to the background processing module. Similarly, the line buffer group and register group extract the current processed image from the first image. Sub-area, the current processing sub-area output by the register group in the background removal processing module is multiplied and accumulated with the preset background removal convolution template to obtain the gray value of the current processing pixel after background removal and noise reduction, that is, the current processing pixel Perform ring filter processing to obtain the gray value of the current pixel after background removal and noise reduction. The gray value of each pixel after background removal and noise reduction is stored in the register, and the register group transmits the gray value after background removal and noise reduction to Sub-area judgment and extraction module. The line buffer group and register group in the background fluctuation intensity acquisition module extract the current processing sub-region from the fluorescence map, and obtain the local standard deviation of the current processing sub-region, and use the local standard deviation of the current processing sub-region as the background fluctuation of the current processing sub-region Intensity, the background fluctuation intensity of the currently processed sub-area is stored in the register, and transmitted to the sub-area judgment and extraction module. A row of buffer groups and register groups in the sub-region judgment and extraction module extract the current processing sub-region from the image after background removal and noise reduction, and output the sub-region extraction control signal through the sub-region judgment circuit, and control the sub-region extraction The signal is transmitted to the control terminal of the sub-region extraction circuit, another line buffer group and another register group in the sub-region judgment and extraction module extract the candidate sub-region from the fluorescence map, and transmit the candidate sub-region to the sub-region extraction circuit, the sub-region extraction circuit determines in real time whether the candidate sub-region is a fluorescent molecule sub-region according to the sub-region extraction control signal, if so, stores the candidate sub-region into the sub-region data FIFO, and merges the sub-region data FIFO, Cut the merged sub-region data to obtain sub-region data of any size, summarize the region data of the fluorescent molecules output by the two image preprocessors, and transmit them to the positioning processing unit and image reconstruction unit through USB3.0 to process. Because the interface where the sCOMS camera is connected to the FPGA is a camera link interface, the data transmitted by this interface to the FPGA per clock is 5 pixels, which is 5*16bit data volume. Therefore, each image preprocessor consists of five noise reduction processing modules, five background removal processing modules, five background fluctuation intensity acquisition modules, and five sub-region judgment and extraction modules.

由于超分辨定位成像稀疏激发的特性,仅仅只有包含荧光分子的区域是有效的,只提取并传输这些荧光分子所在区域数据,将大大降低传输和存储的数据量,同时大大简化后续处理的工作量。荧光分子子区域数据通过USB3.0接口传输到PC。由于采用局部标准差获取每个像素的背景波动强度并用作阈值的方式具有自适应性,因此具有无需用户输入参数,简单易用的优点。Due to the sparse excitation characteristics of super-resolution positioning imaging, only the area containing fluorescent molecules is effective. Only extracting and transmitting the data of the area where these fluorescent molecules are located will greatly reduce the amount of data transmitted and stored, and greatly simplify the workload of subsequent processing. . Fluorescent molecule sub-region data is transmitted to PC through USB3.0 interface. Since the method of obtaining the background fluctuation intensity of each pixel by using the local standard deviation and using it as a threshold is adaptive, it has the advantages of being simple and easy to use without requiring the user to input parameters.

通过本发明提供的用于超分辨定位显微成像的数据处理装置能够实现将800MB/s的图像数据减少至300MB/s以下。荧光分子所在区域数据以USB3.0接口方便有效地传输给用户电脑,经用户电脑的GPU实现图形加速处理,做到超分辨图像的实时重建,实现所见即所得。The data processing device for super-resolution positioning microscopic imaging provided by the present invention can reduce the image data of 800MB/s to below 300MB/s. The data of the area where the fluorescent molecules are located is conveniently and effectively transmitted to the user's computer through the USB3.0 interface, and the graphics acceleration processing is realized through the GPU of the user's computer, so as to achieve real-time reconstruction of super-resolution images and realize what you see is what you get.

本发明提供的用于超分辨定位显微成像的数据处理方法,包括如下步骤:The data processing method for super-resolution positioning microscopic imaging provided by the present invention comprises the following steps:

(1)将由光信号探测器采集的荧光图进行高斯低通滤波处理,降低荧光图中的噪声信号,输出第一图像。当选取以当前处理像素为中心的5×5的区域进行高斯低通滤波时,卷积模板为:(1) Perform Gaussian low-pass filter processing on the fluorescence image collected by the optical signal detector to reduce the noise signal in the fluorescence image, and output the first image. When selecting a 5×5 area centered on the current processing pixel for Gaussian low-pass filtering, the convolution template is:

将第一图像进行环形滤波处理,去除第一图像中的背景噪声,输出第二图像。当选取以当前处理像素为中心的7×7的区域进行环形滤波时,卷积模板为:The first image is subjected to ring filtering processing, the background noise in the first image is removed, and the second image is output. When selecting a 7×7 area centered on the current processing pixel for ring filtering, the convolution template is:

从由光信号探测器采集的荧光图中提取出第三当前处理子区域,对第三当前处理子区域进行局部标准差滤波处理,得到第三当前处理子区域的局部标准差,将第三当前处理子区域的局部标准差作为第三当前处理子区域的背景波动强度。The third current processing sub-region is extracted from the fluorescence image collected by the optical signal detector, and the local standard deviation filtering process is performed on the third current processing sub-region to obtain the local standard deviation of the third current processing sub-region, and the third current processing sub-region is obtained. The local standard deviation of the processing sub-region is used as the background fluctuation intensity of the third currently processing sub-region.

若选取当前处理像素为中心的7×7区域作为第三当前处理子区域,如图6所示,将最外层的24个像素分为4个区域,然后对区域1和区域2这两个区域共12个像素的灰度值进行从小到大的排序,选取前6个像素,对区域3和区域4这两个区域的12个像素灰度值从小到大排序,进行逐个比较,选取前6个像素,最终筛选出12个像素。If the 7×7 area with the current processing pixel as the center is selected as the third current processing sub-area, as shown in Figure 6, the 24 outermost pixels are divided into 4 areas, and then the two areas of area 1 and area 2 The gray values of the 12 pixels in the area are sorted from small to large, and the first 6 pixels are selected, and the gray values of the 12 pixels in the two areas of area 3 and area 4 are sorted from small to large, and compared one by one. 6 pixels, and finally 12 pixels are screened out.

根据公式According to the formula

计算第三当前处理子区域的局部标准差。Compute the local standard deviation for the third currently processed subregion.

式中,xi为最终筛选出的第i个像素的灰度值, In the formula, x i is the gray value of the i-th pixel finally screened out,

(2)根据荧光图、第二图像以及背景波动强度提取荧光图中所有荧光分子子区域,包括:(2) Extract all fluorescent molecule sub-regions in the fluorescence image according to the fluorescence image, the second image and the background fluctuation intensity, including:

(21)从第二图像中提取第四当前处理子区域,当第三当前处理子区域的中心像素在荧光图中位置与第四当前处理子区域的中心像素在第二图像中位置相同,则将第三当前处理子区域的背景波动强度作为第四当前处理子区域的背景波动强度;(21) extracting the fourth current processing sub-region from the second image, when the central pixel of the third current processing sub-region in the fluorescent image has the same position as the central pixel of the fourth current processing sub-region in the second image, then Using the background fluctuation intensity of the third current processing sub-region as the background fluctuation intensity of the fourth current processing sub-region;

若第四当前处理子区域的中心像素的灰度值为第四当前处理子区域所有像素的灰度值的最大值;If the gray value of the center pixel of the fourth currently processed sub-area is the maximum gray value of all pixels in the fourth currently processed sub-area;

且第四当前处理子区域的中心像素的灰度值大于第四当前处理子区域的背景波动强度的2倍;And the gray value of the central pixel of the fourth current processing sub-region is greater than twice the background fluctuation intensity of the fourth current processing sub-region;

且第四当前处理子区域中心像素的灰度值与第四当前处理子区域中心像素的四邻域像素的灰度值之和大于第四当前处理子区域的背景波动强度的9倍;And the sum of the gray value of the central pixel of the fourth current processing sub-region and the gray value of four neighboring pixels of the central pixel of the fourth current processing sub-region is greater than 9 times of the background fluctuation intensity of the fourth current processing sub-region;

且第四当前处理子区域的中心像素的灰度值与第四当前处理子区域中心像素的八邻域像素的灰度值之和大于第四当前处理子区域的背景波动强度的11倍;And the sum of the gray value of the central pixel of the fourth current processing sub-region and the gray value of the eight neighboring pixels of the central pixel of the fourth current processing sub-region is greater than 11 times of the background fluctuation intensity of the fourth current processing sub-region;

则将荧光图中与第四当前处理子区域在第二图像中位置相同的区域作为荧光分子子区域提取,并进入步骤(22);否则不提取荧光图中与第四当前处理子区域在第二图像中位置相同的区域,Then extract the region with the same position in the second image as the fluorescent molecule sub-region in the fluorescence image and the fourth current processing sub-region, and enter step (22); otherwise do not extract the fourth current processing sub-region in the fluorescence image and the fourth current processing sub-region The regions with the same position in the two images,

中心像素的4邻域包括中心像素左方1个像素、中心像素右方1个像素、中心像素上方1个像素以及中心像素下方1个像素;中心像素的8邻域包括与中心像素的左方2个像素、中心像素右方2个像素、中心像素上方2个像素以及中心像素下方2个像素;The 4 neighborhoods of the center pixel include 1 pixel to the left of the center pixel, 1 pixel to the right of the center pixel, 1 pixel above the center pixel, and 1 pixel below the center pixel; the 8 neighborhoods of the center pixel include 1 pixel to the left of the center pixel 2 pixels, 2 pixels to the right of the center pixel, 2 pixels above the center pixel, and 2 pixels below the center pixel;

第四当前处理子区域为从第二图像中提取的大于7×7的子区域。The fourth currently processed sub-area is a sub-area larger than 7×7 extracted from the second image.

(22)判断所有第四当前处理子区域是否都已被提取,若是,则终止;否则,进入步骤(21);(22) judge whether all the 4th current processing subregions have been extracted, if so, then terminate; otherwise, enter step (21);

(3)根据对荧光分子子区域进行定位处理,获得超分辨重建图像。(3) Obtain a super-resolution reconstructed image according to the localization processing of the fluorescent molecule sub-regions.

本发明提供的用于超分辨定位显微成像的数据预处理方法,本发明提供的用于超分辨定位显微成像的数据预处理方法,将从荧光图中提取的每个第三当前处理子区域局部标准差处理,获得第三当前处理子区域的背景波动强度,并从第二图像中提取第四当前处理子区域,将第三当前处理子区域的背景波动强度作为第四当前处理子区域的背景波动强度,并根据第四当前处理子区域和第四当前处理子区域的背景波动强度确定第四当前处理子区域是否存在荧光分子,可以在整幅图像具有不均匀背景的情况下使得所提取的荧光分子子区域更加准确,具有更好的适应性,获得准确的超分辨重建图像。从第二图像中提取第四当前处理子区域,将第四当前处理子区域中各像素的灰度值与第四当前处理子区域的背景波动强度比较,确定第四当前处理子区域是否为荧光分子,通过判断第四当前处理子区域的中心像素的灰度值是否为最大值判断荧光分子是否在第四当前处理子区域的中心位置,可以准确的判断荧光图中荧光分子所在区域。根据对荧光分子进行定位处理,获得准确的超分辨重建图像。The data preprocessing method for super-resolution positioning microscopic imaging provided by the present invention, the data preprocessing method for super-resolution positioning microscopic imaging provided by the present invention, will extract each third current processing element from the fluorescence map Regional local standard deviation processing, obtaining the background fluctuation intensity of the third current processing sub-region, and extracting the fourth current processing sub-region from the second image, using the background fluctuation intensity of the third current processing sub-region as the fourth current processing sub-region , and determine whether there are fluorescent molecules in the fourth current processing sub-region according to the background fluctuation intensity of the fourth current processing sub-region and the fourth current processing sub-region, which can make the entire image have an uneven background. The extracted fluorescent molecular sub-regions are more accurate, have better adaptability, and obtain accurate super-resolution reconstruction images. Extract the fourth current processing sub-region from the second image, compare the gray value of each pixel in the fourth current processing sub-region with the background fluctuation intensity of the fourth current processing sub-region, and determine whether the fourth current processing sub-region is fluorescent molecule, by judging whether the gray value of the center pixel of the fourth current processing sub-region is the maximum value to determine whether the fluorescent molecule is in the center of the fourth current processing sub-region, the area where the fluorescent molecule is located in the fluorescence map can be accurately judged. Accurate super-resolution reconstruction images are obtained according to the positioning processing of the fluorescent molecules.

图7是本发明提供数据预处理电路进行荧光图预处理的效果示意图,图7(a)为由sCOMS相机采集的荧光图的效果示意图,图7(b)为将荧光图进行降噪处理和去背景处理的效果示意图,图7(c)为将荧光图进行局部标准差滤波后的背景波动强度的效果示意图,图7(d)为从荧光图中提取的所有荧光分子子区域的效果示意图。Fig. 7 is a schematic diagram of the effect of the fluorescence image preprocessing provided by the data preprocessing circuit provided by the present invention, Fig. 7 (a) is a schematic diagram of the effect of the fluorescence image collected by the sCOMS camera, and Fig. 7 (b) is the noise reduction processing and the fluorescence image Schematic diagram of the effect of background removal processing, Figure 7(c) is a schematic diagram of the effect of background fluctuation intensity after the local standard deviation filtering of the fluorescence image, Figure 7(d) is a schematic diagram of the effect of all fluorescent molecular sub-regions extracted from the fluorescence image .

本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。Those skilled in the art can easily understand that the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, All should be included within the protection scope of the present invention.

Claims (7)

1. a kind of data processing equipment for super-resolution positioning micro-imaging characterized by comprising data prediction circuit And first processor;
The data prediction circuit includes:
Prober interface circuit, for acquiring and transmitting fluorogram;
FPGA, input terminal is connect with the output end of the prober interface circuit, for extracting fluorescent molecule from fluorogram Subregion;And first interface circuit, input terminal are connect with the output end of the FPGA, for fluorescent molecule subregion to be passed Transport to first processor;
The first processor includes:
Memory, first end are connect with the output end of first interface circuit, for storing fluorescent molecule subregion;
CPU for sending positioning instruction to GPU, and receives the Super-resolution Reconstruction figure of GPU output;
GPU, first end are connect with the first end of the CPU, the second end connection of second end and memory, for according to institute It states positioning instruction and localization process is carried out to fluorescent molecule subregion, obtain Super-resolution Reconstruction figure, and Super-resolution Reconstruction figure is transmitted To the CPU, the Super-resolution Reconstruction figure is shown by final image display;
The FPGA includes:
Fluorogram read module (5), input terminal are connect with the output end of prober interface circuit, for obtaining fluorogram, and Fluorogram is divided into the output of three road fluorograms;
Noise reduction process module (1), input terminal are connect with the first output end of the fluorogram read module (5), for glimmering Light figure carries out noise reduction process, exports the first image;
Go to background processing module (2), input terminal is connect with the output end of noise reduction process module (1), for the first image into Row goes background process, exports the second image;
Background fluctuations intensity obtains module (3), including third subregion obtains circuit (301), and input terminal and fluorogram are read Module (5) second output terminal connection, for extracting the currently processed subregion of third from fluorogram;Background fluctuations intensity obtains Circuit (302), input terminal is connect with the output end that third subregion obtains circuit (301), currently processed for obtaining third The Local standard deviation of subregion, and using the Local standard deviation of the currently processed subregion of third as the currently processed subregion of third Background fluctuations intensity, the threshold value as the judgement of fluorescent molecule subregion;And
Subregion judgement and extraction module (4), including the 4th subregion obtain circuit (401), input terminal and go background process The output end of module (2) connects, for extracting the 4th currently processed subregion from the second image;Subregion decision circuitry (402), first input end is connect with the output end that the 4th subregion obtains circuit (401), the second input terminal and background wave Fatigue resistance obtains the output end connection of circuit (302), and the background fluctuations intensity of the currently processed subregion of third is worked as the 4th The background fluctuations intensity of pre-treatment sub-district, according to the background fluctuations intensity and the 4th currently processed son of the 4th currently processed subregion The signal strength in region determines that the 4th currently processed subregion whether there is fluorescent molecule, and exports subregion and extract control letter Number;Alternative subregion obtains circuit (403), and input terminal connect with fluorogram read module (5) the third output end, is used for Alternative subregion is extracted from fluorogram;Subregion extracts circuit (404), and input terminal and alternative subregion extract circuit (403) output end connection, control terminal connect with subregion decision circuitry (402) output end, are extracted and controlled according to subregion Signal determines whether alternative subregion is fluorescent molecule subregion.
2. data processing equipment as described in claim 1, which is characterized in that in data prediction circuit further include:
Multiplex electronics, input terminal are connect with prober interface circuit output end, and the first output end is with the FPGA's Input terminal connection, second output terminal are used to for fluorogram being transmitted to second processor, and multiplex electronics are used to receive and will Fluorogram copies as the output of two-way fluorogram.
3. data processing equipment as described in claim 1, which is characterized in that in data prediction circuit further include:
Multiplex electronics, input terminal are connect with prober interface circuit output end, and the first output end is with the FPGA's Input terminal connection, second output terminal are used to fluorogram being transmitted to second processor, and third end to N-terminal is used to conduct Expansion interface, multiplex electronics are for receiving and fluorogram being copied as the output of multichannel fluorogram, wherein N >=3.
4. data processing equipment as described in claim 1, which is characterized in that the background fluctuations intensity obtains circuit (302) Include:
Pixel comparator (3021), input terminal are connect with the output end that the third subregion obtains circuit (301), are used for root Screening pixel is obtained from the currently processed subregion of third according to the gray value of each pixel of the currently processed subregion of third;
Mean value adder (3022), input terminal are connect with the output end of the pixel comparator (3021), for being screened The average value of pixel;
Subtracter (3023), first input end are connect with the output end of the pixel comparator (3021), the second input terminal It is connect with the output end of mean value adder (3022), for obtaining the difference of each screening pixel and the average value for screening pixel;With And
Local standard deviation adder (3024), input terminal are connect with the output end of subtracter (3023), are used for each screening picture The difference of element and the average value of screening pixel is summed, and the Local standard deviation of the currently processed subregion of third is obtained.
5. data processing equipment as described in claim 1, which is characterized in that the subregion decision circuitry (402) includes:
First pixel comparator (4021), input terminal are connect with the output end that the 4th subregion obtains circuit (401), are used In the center pixel gray value for judging the 4th currently processed subregion whether be the 4th currently processed each grey scale pixel value of subregion Middle maximum value, and the first level value is exported according to judging result;
Second pixel comparator (4022), one input end obtain circuit (401) output end with the 4th subregion and connect, Another input terminal obtains circuit (302) output end with the background fluctuations intensity and connect, for according to the 4th currently processed sub-district The background fluctuations intensity of the currently processed subregion of center pixel sum of the grayscale values the 4th in domain exports second electrical level value;
Four neighborhood pixel addition devices (4023), input terminal obtain circuit (401) output end with the 4th subregion and connect, use In by the middle imago of four neighborhood grey scale pixel values and the 4th currently processed subregion of the 4th currently processed subregion center pixel Plain gray value carries out accumulation process and exports the first cumulative gray value;
Eight neighborhood pixel addition device (4025), input terminal obtain circuit (401) output end with the 4th subregion and connect, use In by the middle imago of the eight neighborhood grey scale pixel value of the 4th currently processed subregion center pixel and the 4th currently processed subregion Plain gray value carries out accumulation process and obtains the second cumulative gray value;
Four neighborhood pixel ratios are compared with device (4024), the output end company of one input end and the four neighborhoods pixel addition device (4023) It connects, another input terminal obtains circuit (302) output end with the background fluctuations intensity and connect, for according to the first cumulative gray scale Value and the background fluctuations intensity of the 4th currently processed subregion export third level value;
Eight neighborhood pixel comparator (4026), one input end are connect with eight neighborhood pixel addition device (4025) output end, Its another input terminal obtains circuit (302) output end with the background fluctuations intensity and connect, for according to the second cumulative gray value The 4th level value is exported with the background fluctuations intensity of the 4th currently processed subregion;And
Logical AND gate (4027), first input end are connect with the output end of the first pixel comparator (4021), and second Input terminal is connect with the output end of the second pixel comparator (4022), third input terminal and the four neighborhoods pixel ratio compared with The output end of device (4024) connects, and the 4th input terminal is connect with the output end of the eight neighborhood pixel comparator (4026), uses Control signal is extracted in exporting subregion according to the first level value to the 4th level value.
6. a kind of data processing method based on any data processing equipment of claim 1 to 5, which is characterized in that packet Include following steps:
(1) noise reduction sonication is carried out to fluorogram and exports the first image, and ambient noise is carried out to the first image and is handled, exported Second image;
The currently processed subregion of third is extracted from fluorogram, and the currently processed subregion of third is carried out at Local standard deviation Reason, obtain the currently processed subregion of third Local standard deviation, and using the Local standard deviation of the currently processed subregion of third as The background fluctuations intensity of the currently processed subregion of third;
(2) the 4th currently processed subregion is extracted from the second image, by the background fluctuations intensity of the currently processed subregion of third It is current according to the signal strength of the 4th currently processed subregion and the 4th as the background fluctuations intensity of the 4th currently processed sub-district The background fluctuations intensity of processing subregion judge that the 4th currently processed subregion whether there is fluorescent molecule subregion, and according to sentencing Disconnected result determine whether using in fluorogram with the 4th currently processed subregion in the second image the identical region in position as glimmering Optical molecule subregion;The 4th currently processed subregion is updated, all fluorescent molecule subregions in fluorogram are extracted;
(3) fluorescent molecule subregion is subjected to localization process, obtains Super-resolution Reconstruction figure.
7. data processing method as claimed in claim 6, which is characterized in that include the following steps: in the step (2)
(21) the 4th currently processed subregion is extracted from the second image, if the ash of the center pixel of the 4th currently processed subregion Angle value is the maximum value in the gray value of the 4th currently processed subregion all pixels,
And the 4th currently processed subregion center pixel gray value be greater than the 4th currently processed subregion background fluctuations it is strong 2 times of degree;
And the 4th currently processed subregion center pixel gray value and the 4th currently processed subregion center pixel four neighborhoods The sum of gray value of pixel is greater than 9 times of the background fluctuations intensity of the 4th currently processed subregion;
And the 4th currently processed subregion center pixel gray value and the 4th currently processed subregion center pixel it is eight adjacent The sum of gray value of domain pixel is greater than 11 times of the background fluctuations intensity of the 4th currently processed subregion;
Then using in fluorogram with the 4th currently processed subregion in the second image the identical region in position as fluorescent molecule Extracted region, and enter step (22);Otherwise the position in the second image is not extracted in fluorogram with the 4th currently processed subregion Identical region is set, and enters step (22)
(22) judge whether all 4th currently processed subregions have all been extracted, if so, terminating;Otherwise, it enters step (21);
4th currently processed subregion is the subregion greater than 7 × 7 extracted from the second image.
CN201710089310.9A 2017-02-20 2017-02-20 A data processing device and method for super-resolution positioning microscopic imaging Active CN106897969B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710089310.9A CN106897969B (en) 2017-02-20 2017-02-20 A data processing device and method for super-resolution positioning microscopic imaging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710089310.9A CN106897969B (en) 2017-02-20 2017-02-20 A data processing device and method for super-resolution positioning microscopic imaging

Publications (2)

Publication Number Publication Date
CN106897969A CN106897969A (en) 2017-06-27
CN106897969B true CN106897969B (en) 2019-08-30

Family

ID=59185412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710089310.9A Active CN106897969B (en) 2017-02-20 2017-02-20 A data processing device and method for super-resolution positioning microscopic imaging

Country Status (1)

Country Link
CN (1) CN106897969B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765283B (en) * 2018-05-02 2020-11-24 华中科技大学 Apparatus and method for super-resolution localization microscopy imaging mixed density data processing
CN114820449A (en) * 2022-03-25 2022-07-29 广西科技大学 A Fluorescent Molecular Localization Method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1942901A (en) * 2005-02-23 2007-04-04 索尼计算机娱乐公司 Image processing device and image processing method
CN102254331A (en) * 2011-06-03 2011-11-23 华中科技大学 High-throughput super-resolution imaging system and method based on monomolecular positioning
CN102739948A (en) * 2012-07-16 2012-10-17 华中科技大学 Data reduction based super-resolution located imaging system and method
EP2966492A1 (en) * 2012-05-02 2016-01-13 Centre National De La Recherche Scientifique Method and apparatus for single-particle localization using wavelet analysis
CN106023121A (en) * 2016-04-29 2016-10-12 中国科学院生物物理研究所 A Bayesian Microscopic Imaging Method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1942901A (en) * 2005-02-23 2007-04-04 索尼计算机娱乐公司 Image processing device and image processing method
CN102254331A (en) * 2011-06-03 2011-11-23 华中科技大学 High-throughput super-resolution imaging system and method based on monomolecular positioning
EP2966492A1 (en) * 2012-05-02 2016-01-13 Centre National De La Recherche Scientifique Method and apparatus for single-particle localization using wavelet analysis
CN102739948A (en) * 2012-07-16 2012-10-17 华中科技大学 Data reduction based super-resolution located imaging system and method
CN106023121A (en) * 2016-04-29 2016-10-12 中国科学院生物物理研究所 A Bayesian Microscopic Imaging Method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Large second-order optical nonlinearities of s-triazine derivatives: View from micro molecules to macro crystals;FANG Qi 等;《Science in China(Series B:Chemistry)》;20050610;第203-209页

Also Published As

Publication number Publication date
CN106897969A (en) 2017-06-27

Similar Documents

Publication Publication Date Title
CN113052210B (en) Rapid low-light target detection method based on convolutional neural network
CN113408671B (en) Object identification method and device, chip and electronic equipment
EP3690804A1 (en) Information processing device
CN115170475A (en) Non-woven fabric defect detection method based on deep learning method
US20180183998A1 (en) Power reduction and performance improvement through selective sensor image downscaling
CN112966635B (en) Low-resolution time sequence remote sensing image-oriented moving ship detection method and device
US20220207750A1 (en) Object detection with image background subtracted
CN114781514A (en) Floater target detection method and system integrating attention mechanism
CN109461173A (en) A kind of Fast Corner Detection method for the processing of time-domain visual sensor signal
CN111294520A (en) A real-time lucky imaging method and system based on FPGA
CN102497522A (en) Intelligent device for switching Camera Link to serial digital interface (SDI)
CN106897969B (en) A data processing device and method for super-resolution positioning microscopic imaging
CN114694063A (en) Hardware implementation method and system for real-time extraction and selection of video stream feature points
CN113744189A (en) Self-adaptive threshold edge detection system and method based on FPGA
CN111767826B (en) Anomaly detection method for fixed-point scenes
Cadenas et al. Parallel pipelined array architectures for real-time histogram computation in consumer devices
CN111881914A (en) License plate character segmentation method and system based on self-learning threshold
Tao et al. Utilization of both machine vision and robotics technologies in assisting quality inspection and testing
EP3690803B1 (en) Information processing device
CN118644761B (en) A construction site safety helmet detection method, computer equipment and storage medium
Liu et al. Abnormal behavior analysis strategy of bus drivers based on deep learning
WO2024260264A1 (en) Image processing method and apparatus, device, storage medium, and program product
CN111461957A (en) Reconfigurable design image processing module
Yi Fpga implementation of video capture and moving target detection system
Li et al. A method for identifying transmission line faults based on deep learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant