A method, device, equipment and storage medium for constructing a time distribution histogram

By inputting the synchronization signal into a certain channel of the device, and dividing it into multiple time windows based on the preset time resolution and measurement period, the synchronization signal intensity value and photon count intensity value are obtained, and the photon counting results are accumulated to construct a time distribution histogram, which solves the problems of low resolution and statistical difficulties in the prior art, and realizes efficient time distribution histogram construction.

CN114813679BActive Publication Date: 2025-03-04SHANGHAI XINGMIAO OPTOELETRONIC TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210431658.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-22
Publication Date
2025-03-04
Estimated Expiration
2042-04-22

AI Technical Summary

Technical Problem

The prior art is time-consuming and laborious and difficult to count when implementing a time bar chart with super large resolution.

Method used

By inputting the synchronization signal into a certain channel of the device, the preset time resolution and measurement period are obtained, the synchronization signal intensity value and photon count intensity value are obtained for each time window, and the photon counting results are accumulated to construct a time distribution histogram.

Benefits of technology

It realizes efficient construction of time distribution histograms, which are suitable for application scenarios with large resolutions, and improves execution efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114813679B_ABST
    Figure CN114813679B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and storage medium for constructing a time distribution histogram, which belongs to the field of data processing, realizes the construction of a time distribution histogram, and is suitable for application scenarios with larger resolution. The present invention obtains a high-resolution time distribution histogram from a low-resolution time distribution histogram, has low complexity and high execution efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data processing, and in particular relates to a method, device, equipment and storage medium for constructing a time distribution histogram. Background Art

[0002] TCSPC (Time-correlated single-photon counting) is a very mature and most widely used technology in fluorescence lifetime measurement. It is also becoming increasingly important in photon migration measurement, optical time-domain reflectometry and time-of-flight measurement. Time-correlated single-photon counting is a time bar graph measurement technology corresponding to a certain periodic event. In the prior art, when obtaining a time bar graph, the photon sequence is usually counted by marking the time tags one by one, so as to obtain a time bar graph with a fixed resolution. For example, the resolution is set to 2us, and the photons in the first 2us are marked with time tags one by one, and then the number of time tags in the first 2us is counted, and then the photons in the second 2us are marked with time tags one by one, and so on, and then the counting results of multiple photon sequences are superimposed to finally obtain a time bar graph.

[0003] However, the method of marking time labels one by one leads to the problem of time-consuming, labor-intensive and difficult statistics when realizing ultra-high resolution time histograms. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method, device, equipment and storage medium for constructing a time distribution histogram, which solve the problems existing in the prior art.

[0005] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0006] In a first aspect, the present application provides a method for constructing a time distribution histogram, comprising:

[0007] Inputting a synchronization signal into a channel of a device, wherein the synchronization signal is a periodic signal or a non-periodic signal;

[0008] Acquire a preset time resolution and a measurement period, and acquire a plurality of time windows according to the time resolution and the measurement period, wherein the measurement period is less than or equal to the signal interval of the synchronization signal, and the time resolution represents the width of the time window;

[0009] For the input synchronization signal, obtain the synchronization signal strength value and the photon counting intensity value corresponding to each time window, wherein the synchronization signal strength value represents whether there is a synchronization signal in the time window, and the photon counting intensity value represents the number of photons corresponding to the time window;

[0010] According to the synchronization signal intensity value and the photon counting intensity value corresponding to each of the time windows, the first photon counting results corresponding to each first time segment in the measurement period are obtained, and a preliminary time distribution histogram is obtained according to the first photon counting results, wherein the measurement period includes a plurality of consecutive first time segments, the time lengths of the first time segments are the same, and the total number of the first time segments is equal to the total number of the time windows;

[0011] The second photon counting results corresponding to each first time segment in a plurality of measurement cycles are obtained, and the second photon counting results are accumulated to the corresponding first time segments in the preliminary time distribution histogram to obtain a final time distribution histogram.

[0012] Furthermore, it also includes:

[0013] Acquire a target resolution, wherein the target resolution is an integer multiple of the time resolution;

[0014] Based on the target resolution and the measurement period, obtaining at least one second time segment;

[0015] The first time segment corresponding to each second time segment in the final time distribution histogram is obtained, and the photon counting results of the first time segment corresponding to each second time segment are added to obtain the photon counting result of each second time segment, so as to obtain a higher resolution time distribution histogram based on the photon counting result of each second time segment.

[0016] Furthermore, the synchronization signal is input into a channel of the device, including:

[0017] A certain channel of the photon counter is selected as an input channel, and a synchronization signal is input into the input channel.

[0018] Further, a preset time resolution and a measurement period are obtained, and a plurality of time windows are obtained according to the time resolution and the measurement period, including:

[0019] Obtaining a preset time resolution and measurement period;

[0020] Divide the measurement period by the time resolution to get the number of time windows;

[0021] The time resolution is used as the time window width, and multiple time windows are obtained according to the number of time windows.

[0022] Further, for the input synchronization signal, the synchronization signal intensity value and the photon counting intensity value corresponding to each time window are obtained, including:

[0023] For each of the time windows, a counter is used to count to obtain a photon counting intensity value;

[0024] For the input synchronization signal, the ITTR mode is used to obtain the synchronization signal intensity value and the photon counting intensity value corresponding to each time window.

[0025] Further, according to the synchronization signal intensity value and the photon counting intensity value corresponding to each of the time windows, obtaining the first photon counting results corresponding to each first time segment in the first measurement cycle, and obtaining a preliminary time distribution histogram according to the first photon counting results, including:

[0026] According to the synchronization signal strength value, a time window in which a synchronization signal exists is obtained, wherein when the synchronization signal strength value is 1, it indicates that a synchronization signal exists in the corresponding time window; when the synchronization signal strength value is 0, it indicates that no synchronization signal exists in the corresponding time window;

[0027] Accumulate the photon counting intensity values ​​corresponding to the time window where the synchronization signal exists as the first photon counting result of the first time segment in the first measurement cycle, wherein the length of the first time segment is equal to the time resolution, and the multiple time windows are sequentially numbered;

[0028] Taking each time window with a synchronization signal as the starting point, obtain the photon counting intensity value corresponding to the nth time window after the starting point, and add the obtained photon counting intensity values ​​to obtain the first photon counting result corresponding to the n+1th time segment, where n=1, 2, ..., N; N=(measurement period / time resolution)-1;

[0029] A preliminary time distribution histogram is obtained by taking the plurality of first time segments as the horizontal axis and taking the first photon counting result corresponding to each of the first time segments as the vertical axis.

[0030] Further, the second photon counting results corresponding to each first time segment in multiple measurement cycles are obtained, and the second photon counting results are accumulated to the corresponding first time segments in the preliminary time distribution histogram to obtain a final time distribution histogram, including:

[0031] Obtaining a second photon counting result corresponding to each first time segment in a plurality of measurement cycles;

[0032] Accumulating the second photon counting results corresponding to the first time segment in each measurement cycle to obtain a plurality of accumulated values, wherein the plurality of accumulated values ​​correspond one-to-one to the plurality of first time segments in the preliminary time distribution histogram;

[0033] The multiple accumulated values ​​are added to the photon counting result corresponding to the first time segment in the preliminary time distribution histogram to obtain a final time distribution histogram.

[0034] In a second aspect, the present application provides a device for constructing a time distribution histogram, comprising a signal input module, a time window acquisition module, an intensity value acquisition module, a first histogram acquisition module, and a second histogram acquisition module;

[0035] The signal input module is used to input a synchronization signal into a channel of the device, wherein the synchronization signal is a periodic signal or a non-periodic signal;

[0036] The time window acquisition module is used to acquire a preset time resolution and a measurement period, and acquire a plurality of time windows according to the time resolution and the measurement period, wherein the measurement period is less than or equal to the signal interval of the synchronization signal, and the time resolution represents the width of the time window;

[0037] The time window acquisition module is used to obtain the synchronization signal intensity value and the photon counting intensity value corresponding to each time window for the input synchronization signal, wherein the synchronization signal intensity value represents whether there is a synchronization signal in the time window, and the photon counting intensity value represents the number of photons corresponding to the time window;

[0038] The first histogram acquisition module is used to obtain the first photon counting results corresponding to each first time segment in the measurement period according to the synchronization signal strength value and the photon counting intensity value corresponding to each time window, and obtain a preliminary time distribution histogram according to the first photon counting results, wherein the measurement period includes a plurality of consecutive first time segments, the time lengths of the first time segments are the same, and the total number of the first time segments is equal to the total number of the time windows;

[0039] The second histogram acquisition module is used to obtain the second photon counting results corresponding to each first time segment in multiple measurement cycles, and add the second photon counting results to the corresponding first time segments in the preliminary time distribution histogram to obtain a final time distribution histogram.

[0040] In a third aspect, the present application provides a device for constructing a time distribution histogram, comprising a memory and a processor, wherein the memory and the processor are interconnected via a bus;

[0041] The memory stores computer-executable instructions;

[0042] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the method for constructing the time distribution histogram as described in the first aspect.

[0043] In a fourth aspect, the present application provides a storage medium having instructions stored thereon. When the instructions are executed on a computer, the method for constructing a time distribution histogram as described in the first aspect is executed.

[0044] The beneficial effects of the present invention are:

[0045] (1) The present invention provides a method, device, equipment and storage medium for constructing a time distribution histogram, which realizes the construction of a time distribution histogram and is suitable for application scenarios with larger resolution.

[0046] (2) The present invention obtains a high-resolution time distribution histogram using a low-resolution time distribution histogram, which has low complexity and high execution efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A flowchart of a method for constructing a time distribution histogram provided in an embodiment of the present application.

[0048] Figure 2 A schematic diagram of the structure of a device for constructing a time distribution histogram provided in an embodiment of the present application.

[0049] Figure 3 A schematic diagram of the structure of a device for constructing a time distribution histogram provided in an embodiment of the present application.

[0050] Figure 4 An example of a time distribution histogram provided in an embodiment of the present application.

[0051] Among them: 21-signal input module, 22-time window acquisition module, 23-intensity value acquisition module, 24-first histogram acquisition module, 25-second histogram acquisition module, 31-memory, 32-processor, 33-bus.

[0052] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0053] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0054] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0055] Example 1

[0056] like Figure 1 As shown, a method for constructing a time distribution histogram includes:

[0057] S11. Input a synchronization signal into a channel of a device, wherein the synchronization signal is a periodic signal or a non-periodic signal.

[0058] S12. Obtain a preset time resolution and a measurement period, and obtain a plurality of time windows according to the time resolution and the measurement period, wherein the measurement period is less than or equal to a signal interval of a synchronization signal, and the time resolution represents a time window width.

[0059] The time resolution may represent the minimum measurement time interval within the measurement period, where the measurement period represents the statistical time length of the bar graph, and the measurement period is smaller than the signal interval of the synchronization signal, where the signal interval represents the transmission time of the synchronization signal. For example, if the signal interval of the synchronization signal is 100us, the measurement period should be less than or equal to 100us.

[0060] S13. For the input synchronization signal, obtain the synchronization signal strength value and the photon counting intensity value corresponding to each time window, wherein the synchronization signal strength value represents whether there is a synchronization signal in the time window, and the photon counting intensity value represents the number of photons corresponding to the time window.

[0061] For example, the synchronization signal strength value may be 1 or 0, where 1 indicates that a synchronization signal exists in the time window, and 0 indicates that a synchronization signal does not exist in the time window.

[0062] S14. According to the synchronization signal strength value and the photon counting intensity value corresponding to each of the time windows, obtain the first photon counting results corresponding to each first time segment in the measurement period, and obtain a preliminary time distribution histogram according to the first photon counting results, wherein the measurement period includes multiple consecutive first time segments, the time lengths of the first time segments are the same, and the total number of first time segments is equal to the total number of the time windows.

[0063] S15, obtaining second photon counting results corresponding to each first time segment in multiple measurement cycles, and accumulating the second photon counting results to the corresponding first time segments in the preliminary time distribution histogram to obtain a final time distribution histogram.

[0064] By using the above-mentioned method for constructing the time distribution histogram, the resolution can be made unlimited, thus solving the problem of low resolution in the prior art and achieving higher execution efficiency.

[0065] In this embodiment, the method for constructing the time distribution histogram further includes:

[0066] A target resolution is obtained, wherein the target resolution is an integer multiple of the time resolution.

[0067] Based on the target resolution and the measurement period, at least one second time segment is obtained.

[0068] The first time segment corresponding to each second time segment in the final time distribution histogram is obtained, and the photon counting results of the first time segment corresponding to each second time segment are added to obtain the photon counting result of each second time segment, so as to obtain a higher resolution time distribution histogram based on the photon counting result of each second time segment.

[0069] By setting the target resolution and then merging the columns in the time distribution histogram according to the difference between the target resolution and the time resolution, the time distribution histogram corresponding to the target resolution is obtained, thereby achieving an improvement in resolution.

[0070] Optionally, the time segments can be directly merged according to the multiple between the target resolution and the time resolution. For example, if the target resolution is L times the time resolution, the first L time segments in the final time distribution histogram can be merged as the first time segment of the time distribution histogram corresponding to the target resolution. The L+1 to 2L time segments in the final time distribution histogram can be merged as the second time segment of the time distribution histogram corresponding to the target resolution. And so on, the time distribution histogram corresponding to the target resolution is obtained.

[0071] If the number of remaining time segments in the final time distribution histogram is less than L, all the remaining time segments are directly merged.

[0072] In this embodiment, inputting the synchronization signal into a channel of the device includes:

[0073] A certain channel of the photon counter is selected as an input channel, and a synchronization signal is input into the input channel.

[0074] In this embodiment, a preset time resolution and a measurement period are obtained, and a plurality of time windows are obtained according to the time resolution and the measurement period, including:

[0075] Get the preset time resolution and measurement period.

[0076] Divide the measurement period by the time resolution to get the number of time windows.

[0077] The time resolution is used as the time window width, and multiple time windows are obtained according to the number of time windows.

[0078] For example, if the measurement period is 100us and the time resolution is 1us, 100 time windows should be set for measurement. It is worth noting that the units of the measurement period and the time resolution can be us, ms, s or other time units.

[0079] Preferably, the measurement period is an integer multiple of the time resolution.

[0080] The multiple time windows may include {W1,W2,…,W k ,…,W K-1 ,W K}, where W k Represents the time window with sequence number k, k = 1, 2, ..., K, and K represents the total number of time windows.

[0081] In this embodiment, for the input synchronization signal, obtaining the synchronization signal intensity value and the photon counting intensity value corresponding to each time window includes:

[0082] For each of the time windows, a counter is used to count to obtain a photon counting intensity value;

[0083] For the input synchronization signal, the ITTR mode is used to obtain the synchronization signal intensity value and the photon counting intensity value corresponding to each time window.

[0084] ITTR (Intensity-Tagged-Time-Resolved) is a way to obtain intensity values ​​in a given time window. The ITTR mode can be used to obtain whether there is a signal in each time window and the number of pulses. The number of pulses is the photon counting intensity value corresponding to the time window.

[0085] When a synchronization signal is connected to a channel Y of the device, and channel Y is designated as the synchronization signal channel on the host computer software, the intensity value can be obtained by turning on the ITTR mode. By setting the time window width, the statistical data of the intensity values ​​of 1 and 0 in channel Y can be obtained, and the time window with an intensity value of 1 can be extracted to obtain the synchronization signal position, and the intensity values ​​of the corresponding time windows of other channels can be superimposed based on the time window width, and a histogram based on ITTR can be obtained.

[0086] In this embodiment, according to the synchronization signal intensity value and the photon counting intensity value corresponding to each of the time windows, the first photon counting results corresponding to each first time segment in the first measurement cycle are obtained, and according to the first photon counting results, a preliminary time distribution histogram is obtained, including:

[0087] According to the synchronization signal strength value, a time window in which a synchronization signal exists is obtained, wherein when the synchronization signal strength value is 1, it indicates that a synchronization signal exists in the corresponding time window; when the synchronization signal strength value is 0, it indicates that no synchronization signal exists in the corresponding time window.

[0088] The photon counting intensity values ​​corresponding to the time windows in which the synchronization signal exists are accumulated as the first photon counting result of the first time segment in the first measurement cycle, wherein the length of the first time segment is equal to the time resolution, and the multiple time windows are numbered sequentially.

[0089] Taking each time window with a synchronization signal as the starting point, obtain the photon counting intensity value corresponding to the nth time window after the starting point, and add the obtained photon counting intensity values ​​to obtain the first photon counting result corresponding to the n+1th time segment, where n=1,2,…,N; N=(measurement period / time resolution)-1.

[0090] A preliminary time distribution histogram is obtained by taking the plurality of first time segments as the horizontal axis and taking the first photon counting result corresponding to each of the first time segments as the vertical axis.

[0091] For example, if the time resolution is set to 1us and the measurement period is Kus, then the time window width is 1us and the number of time windows is K.

[0092] Based on the ITTR mode, a 1us time window as shown in Table 1 can be obtained.

[0093] Table 1 1us time window

[0094] <![CDATA[W1]]> <![CDATA[W2]]> … <![CDATA[W k-1 ]]> <![CDATA[W k ]]> <![CDATA[W k+1 ]]> … <![CDATA[W K-1 ]]> <![CDATA[W K ]]>

[0095] At this time, the list of synchronization signal strength values ​​corresponding to the us time window is shown in Table 2.

[0096] Table 2 Signal list

[0097]

[0098] In Table 2, 1 indicates that there is a synchronization signal in the corresponding time window, and 0 indicates that there is no synchronization signal in the corresponding window.

[0099] The photon counting intensity values ​​corresponding to the 1us time window are shown in Table 3.

[0100] Table 3 Photon counting intensity values

[0101]

[0102] In this embodiment, it is assumed that only the time window W A and time window W BThe synchronization signal strength value is 1, and the time window W A belongs to {W1,W2,…,W k ,…,W K-1 ,W K}, time window W B belongs to {W1,W2,…,W k ,…,W K-1 ,W K}, then based on this, the time distribution histogram with 1us resolution based on the ITTR mode can be obtained. It is worth noting that only in the time window W A and time window W B The synchronization signal appears only to simplify the present embodiment and facilitate the description of the subsequent specific implementation methods. In a real application scenario, there may be more time windows where signals exist.

[0103] Among them, CKT k Represents the time window W k The corresponding window signal strength value.

[0104] Because only the time window W A and time window W B The synchronization signal strength value is 1, and the determination time window W A and time window W B There is a synchronization signal, but no synchronization signal exists in other time windows. Then the photon counting result of the first 1us (i.e. the first photon counting result of the first time segment) can be obtained as CKT A With CKT B The added value of the second 1us photon counting result (i.e., the first photon counting result of the second time segment) is CKT A+1 With CKT B+1 The added value of , and so on, obtains the first photon counting result corresponding to each time segment in the measurement period.

[0105] like Figure 4 As shown, assuming K is 4, the time segment includes 4 1us, and the first photon counting result corresponding to the first time segment is CKT A +CKT B , the first photon count result corresponding to the second time segment is CKT A+1 +CKT B+1 , the first photon count result corresponding to the third time segment is CKT A+2 +CKT B+2 , the first photon count result corresponding to the fourth time segment is CKT A+3 +CKT B+3, each time segment can be used as the horizontal axis, and the first photon counting result corresponding to each time segment can be used as the vertical axis, and a preliminary time distribution histogram can be obtained.

[0106] If the target resolution is set to 2us, because the detection period is 4us, 2 time segments are obtained, and the length of each time segment is 2us. The first time segment corresponds to the first time segment (i.e., the first 1us) and the second time segment (i.e., the second 1us) in the preliminary time distribution histogram, and the second time segment corresponds to the third time segment (i.e., the third 1us) and the fourth time segment (i.e., the fourth 1us) in the preliminary time distribution histogram. Based on the corresponding relationship, the time distribution histogram corresponding to the target resolution can be obtained.

[0107] In this embodiment, the second photon counting results corresponding to each first time segment in multiple measurement cycles are obtained, and the second photon counting results are accumulated to the corresponding first time segments in the preliminary time distribution histogram to obtain the final time distribution histogram, including:

[0108] A second photon counting result corresponding to each first time segment in a plurality of measurement cycles is obtained.

[0109] The second photon counting results corresponding to the first time segment in each measurement cycle are accumulated to obtain a plurality of accumulated values, wherein the plurality of accumulated values ​​correspond one-to-one to the plurality of first time segments in the preliminary time distribution histogram.

[0110] The multiple accumulated values ​​are added to the photon counting result corresponding to the first time segment in the preliminary time distribution histogram to obtain a final time distribution histogram.

[0111] Example 2

[0112] like Figure 2 As shown, this embodiment provides a device for constructing a time distribution histogram, including a signal input module 21, a time window acquisition module 22, an intensity value acquisition module 23, a first histogram acquisition module 24 and a second histogram acquisition module 25;

[0113] The signal input module 21 is used to input a synchronization signal into a channel of the device, wherein the synchronization signal is a periodic signal or a non-periodic signal;

[0114] The time window acquisition module 22 is used to acquire a preset time resolution and a measurement period, and acquire multiple time windows according to the time resolution and the measurement period, wherein the measurement period is less than or equal to the signal interval of the synchronization signal, and the time resolution represents the time window width;

[0115] The time window acquisition module 23 is used to obtain the synchronization signal strength value and the photon counting intensity value corresponding to each time window for the input synchronization signal, wherein the synchronization signal strength value represents whether there is a synchronization signal in the time window, and the photon counting intensity value represents the number of photons corresponding to the time window;

[0116] The first histogram acquisition module 24 is used to obtain the first photon counting results corresponding to each first time segment in the measurement period according to the synchronization signal strength value and the photon counting intensity value corresponding to each time window, and obtain a preliminary time distribution histogram according to the first photon counting results, wherein the measurement period includes a plurality of consecutive first time segments, the time lengths of the first time segments are the same, and the total number of the first time segments is equal to the total number of the time windows;

[0117] The second histogram acquisition module 25 is used to obtain the second photon counting results corresponding to each first time segment in multiple measurement cycles, and add the second photon counting results to the corresponding first time segments in the preliminary time distribution histogram to obtain a final time distribution histogram.

[0118] The bar graph construction device described in this embodiment can execute the technical solution described in Example 1, and its implementation principle and beneficial effects are similar, which will not be described in detail here.

[0119] Example 3

[0120] like Figure 3 As shown, this embodiment provides a device for constructing a time distribution histogram, including a memory 31 and a processor 32, wherein the memory 31 and the processor 32 are interconnected via a bus 33;

[0121] The memory 31 stores computer-executable instructions;

[0122] The processor 32 executes the computer-executable instructions stored in the memory, so that the processor executes the method for constructing the time distribution histogram as described in Example 1.

[0123] Example 4

[0124] This embodiment provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method for constructing a time distribution histogram as described in Embodiment 1.

[0125] For example, the memory may include, but is not limited to, random access memory (RAM), read only memory (ROM), flash memory, first input first output (FIFO) and / or first in last out (FILO), etc. Specifically, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). At the same time, the processor may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state.

[0126] In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. For example, the processor may not be limited to a microprocessor of the STM32F105 series, a reduced instruction set computer (RISC) microprocessor, an X86 architecture processor, or a processor with an integrated embedded neural network processing unit (NPU); the transceiver may be, but is not limited to, a wireless fidelity (WIFI) wireless transceiver, a Bluetooth wireless transceiver, a general packet radio service technology (General Packet Radio Service, GPRS) wireless transceiver, a ZigBee protocol (a low-power LAN protocol based on the IEEE802.15.4 standard, ZigBee) wireless transceiver, a 3G transceiver, a 4G transceiver and / or a 5G transceiver, etc. In addition, the device may also include, but is not limited to, a power module, a display screen, and other necessary components.

[0127] Example 5

[0128] The embodiment of the present application may also provide a computer program product, including a computer program, which, when executed by a processor, implements the method for constructing the time distribution histogram described in Example 1.

[0129] It is worth noting that any method for obtaining a difference set using the concept of the present invention should be within the scope of protection of this application. After considering the specification and practicing the invention disclosed herein, those skilled in the art will easily think of other embodiments of the present application. This application is intended to cover any variation, use or adaptive change of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the technical field that are not disclosed in this application.

[0130] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for constructing a time distribution histogram, characterized in that: include: Inputting a synchronization signal into a channel of a device, wherein the synchronization signal is a periodic signal or a non-periodic signal; Acquire a preset time resolution and a measurement period, and acquire a plurality of time windows according to the time resolution and the measurement period, wherein the measurement period is less than or equal to the signal interval of the synchronization signal, and the time resolution represents the width of the time window; For the input synchronization signal, obtain the synchronization signal strength value and the photon counting intensity value corresponding to each time window, wherein the synchronization signal strength value represents whether there is a synchronization signal in the time window, and the photon counting intensity value represents the number of photons corresponding to the time window; According to the synchronization signal strength value and the photon counting intensity value corresponding to each of the time windows, the first photon counting results corresponding to each first time segment in the measurement period are obtained, and a preliminary time distribution histogram is obtained according to the first photon counting results, wherein the measurement period includes multiple consecutive first time segments, the time lengths of the first time segments are the same, and the total number of the first time segments is equal to the total number of the time windows, including: According to the synchronization signal strength value, a time window in which a synchronization signal exists is obtained, wherein when the synchronization signal strength value is 1, it indicates that a synchronization signal exists in the corresponding time window; when the synchronization signal strength value is 0, it indicates that no synchronization signal exists in the corresponding time window; Accumulate the photon counting intensity values ​​corresponding to the time window where the synchronization signal exists as the first photon counting result of the first time segment in the first measurement cycle, wherein the length of the first time segment is equal to the time resolution, and the multiple time windows are sequentially numbered; Taking each time window with a synchronization signal as the starting point, obtain the photon counting intensity value corresponding to the nth time window after the starting point, and add the obtained photon counting intensity values ​​to obtain the first photon counting result corresponding to the n+1th time segment, where n=1, 2, ..., N; N=(measurement period / time resolution)-1; Using the plurality of first time segments as the horizontal axis and the first photon counting result corresponding to each first time segment as the vertical axis, obtaining a preliminary time distribution histogram; Obtaining the second photon counting results corresponding to each first time segment in multiple measurement cycles, and accumulating the second photon counting results to the corresponding first time segment in the preliminary time distribution histogram to obtain a final time distribution histogram, including: Obtaining a second photon counting result corresponding to each first time segment in a plurality of measurement cycles; Accumulating the second photon counting results corresponding to the first time segment in each measurement cycle to obtain a plurality of accumulated values, wherein the plurality of accumulated values ​​correspond one-to-one to the plurality of first time segments in the preliminary time distribution histogram; Adding the multiple accumulated values ​​to the photon counting result corresponding to the first time segment in the preliminary time distribution histogram to obtain a final time distribution histogram; Acquire a target resolution, wherein the target resolution is an integer multiple of the time resolution; Based on the target resolution and the measurement period, obtaining at least one second time segment; The first time segment corresponding to each second time segment in the final time distribution histogram is obtained, and the photon counting results of the first time segment corresponding to each second time segment are added to obtain the photon counting result of each second time segment, so as to obtain a higher resolution time distribution histogram based on the photon counting result of each second time segment.

2. The method for constructing a time distribution histogram according to claim 1, characterized in that: Input the synchronization signal to a channel of the device, including: A certain channel of the photon counter is selected as an input channel, and a synchronization signal is input into the input channel.

3. The method for constructing a time distribution histogram according to claim 1, characterized in that: Obtaining a preset time resolution and a measurement period, and obtaining a plurality of time windows according to the time resolution and the measurement period, including: Get the preset time resolution and measurement period; Divide the measurement period by the time resolution to get the number of time windows; The time resolution is used as the time window width, and multiple time windows are obtained according to the number of time windows.

4. The method for constructing a time distribution histogram according to claim 1, characterized in that: For the input synchronization signal, the synchronization signal intensity value and the photon counting intensity value corresponding to each time window are obtained, including: For each of the time windows, a counter is used to count to obtain a photon counting intensity value; For the input synchronization signal, the ITTR mode is used to obtain the synchronization signal intensity value and the photon counting intensity value corresponding to each time window.

5. A device for constructing a time distribution histogram, characterized in that: It includes a signal input module, a time window acquisition module, an intensity value acquisition module, a first histogram acquisition module and a second histogram acquisition module; The signal input module is used to input a synchronization signal into a channel of the device, wherein the synchronization signal is a periodic signal or a non-periodic signal; The time window acquisition module is used to acquire a preset time resolution and a measurement period, and acquire a plurality of time windows according to the time resolution and the measurement period, wherein the measurement period is less than or equal to the signal interval of the synchronization signal, and the time resolution represents the width of the time window; The time window acquisition module is used to obtain the synchronization signal intensity value and the photon counting intensity value corresponding to each time window for the input synchronization signal, wherein the synchronization signal intensity value represents whether there is a synchronization signal in the time window, and the photon counting intensity value represents the number of photons corresponding to the time window; The first histogram acquisition module is used to obtain the first photon counting results corresponding to each first time segment in the measurement period according to the synchronization signal strength value and the photon counting intensity value corresponding to each time window, and obtain a preliminary time distribution histogram according to the first photon counting results, wherein the measurement period includes a plurality of consecutive first time segments, the time lengths of the first time segments are the same, and the total number of the first time segments is equal to the total number of the time windows; The second histogram acquisition module is used to obtain the second photon counting results corresponding to each first time segment in multiple measurement cycles, and add the second photon counting results to the corresponding first time segments in the preliminary time distribution histogram to obtain a final time distribution histogram.

6. A device for constructing a time distribution histogram, characterized in that: It includes a memory and a processor, wherein the memory and the processor are connected to each other via a bus; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the method for constructing a time distribution histogram as described in any one of claims 1 to 4.

7. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions are executed on a computer, the method for constructing a time distribution histogram according to any one of claims 1 to 4 is executed.

Citation Information

Patent Citations

  • Photon counting multi-channel time-resolved fluorescence immunoassay system and counting method

    CN103728446A

  • Single-pixel photon counting three-dimensional imaging system and method based on multi-resolution wavelet approximation

    CN106772430A