Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
Optical Coherence Tomography (OCT) is an imaging technique rapidly developed in the last decade, which uses the basic principle of weak coherent Optical interferometer to detect back-reflected or several scattered signals of incident weak coherent light at different depth levels of biological tissue, and then scans the biological tissue to obtain two-dimensional or three-dimensional structural images.
Currently, optical coherence tomography mainly includes time domain optical coherence tomography and frequency domain optical coherence tomography. Time-domain optical coherence tomography is the first generation of OCT, and the mode of detecting the spectrum is to obtain the depth information of the sample by moving the mirror of the reference arm and detecting the light intensity at the same time. The frequency domain optical coherence tomography uses a high-speed spectrometer to indirectly detect the interference spectrum of the reflected light of the sample and the reference light, and obtains the depth information of the sample through Fourier transformation. The frequency domain optical coherence tomography is superior to the time domain optical coherence tomography in the aspects of acquisition speed and signal-to-noise ratio, is the mainstream in the current optical coherence tomography, and has the advantages of high speed, high resolution, non-invasive, non-contact measurement and the like.
Specifically, as shown in fig. 1, the current frequency-domain OCT imaging system may include a light source 110, a fiber coupler 120, a sample arm 130, a reference arm 140, a fiber isolator 150, a signal acquisition device (spectrometer) 160, a signal processing device (computer) 170, and a sample stage 180.
The fiber isolator 150 is disposed on an optical path between the light source 110 and the fiber coupler 120, and is used to introduce the primary light of the light source 110 into the fiber coupler 120 and prevent the light source 110 from being interfered by the interference light. The fiber coupler 120 splits the primary light emitted from the light source 110 to obtain reference light and sample light. The sample light is incident to the sample 200 to be measured placed on the sample stage 180 through the sample arm 130, and is reflected by the sample 200 to be measured, so that sample reflected light is obtained. The reference light is converted into parallel light by the reference collimating lens 141. The parallel light is transmitted to the reference flat mirror 142 and reflected by the reference flat mirror 142 to form reference reflected light. The reference reflected light returns to the fiber coupler 120 along the optical path of the reference light and interferes with the sample reflected light in the fiber coupler 120 to obtain interference light. The signal collecting device (spectrometer) 160 is configured to detect the interference light to obtain an interference signal, and transmit the interference signal to the signal processing device (computer) 170 for processing, so as to obtain a structural image of the sample 200 to be measured.
However, when the frequency domain optical coherence tomography is used to detect the sample to be detected, the sample to be detected is updated at intervals, and the light source 110 continuously emits light, so that the spectrometer 160 continuously collects data, and a large amount of background image data which does not contain the spectral information of the sample to be detected exists in the collected data. When the spectrum data collected by the spectrometer 160 is processed by the computer 170, a large amount of computing resources and storage space are wasted due to the processing of useless background image data, and if the collection speed of the spectrometer 160 is high, the computer 170 may not be in time to process the data, and further the problems of frame loss and blocking are caused.
Based on this, embodiments of the present application provide a signal processing method, an apparatus, a terminal, and a computer-readable storage medium, which can save computing resources and storage space, and simultaneously, can avoid the problem of frame loss and stuck when the acquisition speed of a spectrometer is fast.
Fig. 2 is a schematic flow chart illustrating an implementation of a signal processing method provided by an embodiment of the present application, where the method can be applied to the frequency-domain OCT imaging system shown in fig. 1, and is executed by a signal processing device configured on the frequency-domain OCT imaging system, and is suitable for a situation where computational resources and memory space need to be saved. The signal processing method may include steps 201 to 202.
Step 201, determining whether an interference signal collected by a spectrometer of the frequency domain OCT imaging system is an interference signal collected when a sample to be measured is not placed.
In practical applications, when the sample to be measured is a sample that needs to be replaced continuously, the frequency of the spectrometer for collecting the interference signal is generally greater than the replacement frequency of the sample to be measured, and therefore, the interference signal collected by the spectrometer may be an interference signal (background image data) collected when the sample to be measured is not placed.
For example, when the sample to be detected is a pill to be detected on a pill production line, the pill to be detected appears at intervals, and a light source of the frequency domain OCT imaging system continuously emits light, and the spectrometer continuously collects interference signals, so that the interference signals collected by the spectrometer include interference signals collected when no pill is placed, and the interference signals collected when no pill is placed are redundant data.
Therefore, the interference signal collected when the sample to be detected is not placed can be deleted by judging whether the interference signal collected by the spectrometer of the frequency domain OCT imaging system is the interference signal collected when the sample to be detected is not placed.
And step 202, if the interference signals are interference signals collected when the sample to be detected is not placed, deleting the interference signals.
In the embodiment of the application, when the interference signal acquired by the spectrometer is the interference signal acquired when the sample to be detected is not placed, the data acquired by the spectrometer is the background image data which does not contain the spectrum information of the sample to be detected, so that the interference signal can be deleted, and the interference signal which needs to be processed by the frequency domain OCT imaging system does not contain the interference signal acquired when the sample to be detected is not placed, but only contains the interference signal acquired when the sample to be detected is placed, so that useless background image data does not need to be processed when the spectrum data is processed, and the computing resource and the storage space of a computer are saved; and when the acquisition speed of the spectrometer is high, the problem of frame loss and blockage caused by the fact that a computer cannot process data in time is solved.
In some embodiments of this application, when the interference signal that the spectrum appearance gathered for placing the sample that awaits measuring the time gathers, the data that represent the spectrum appearance and gather are the data that contain the spectral information of the sample that awaits measuring, consequently, need keep this interference signal, so that it is right interference signal carries out image generation and handles, obtains the structural image of the sample image that awaits measuring to realize the function that the sample detected.
In some embodiments of the present application, in the process of determining whether an interference signal collected by a spectrometer of the frequency-domain OCT imaging system is an interference signal collected when a sample to be measured is not placed, the determination may be performed by comparing signal intensities of the signals, and specifically, as shown in fig. 3, the signal processing method may include steps 301 to 304.
Step 301, acquiring an interference signal collected by a spectrometer of the frequency-domain OCT imaging system and a reference signal of the frequency-domain OCT imaging system.
The reference signal of the frequency-domain OCT imaging system refers to an interference signal acquired when a sample to be detected is not placed.
Step 302, obtaining a difference signal obtained by subtracting the reference signal from the interference signal;
step 303, if the maximum signal intensity value of the difference signal is smaller than a preset intensity threshold, determining that the interference signal is an interference signal collected when the sample to be detected is not placed.
Fig. 4 and 5 show spectral images obtained from interference signals collected by the spectrometer when the sample to be measured is not placed and spectral images obtained from interference signals collected when the sample to be measured is placed in a laboratory environment, respectively.
Because the interference signal acquired by the spectrometer cannot be directly used for judging whether the interference signal is the interference signal acquired when the sample to be detected is not placed, a difference signal obtained by subtracting the reference signal from the interference signal acquired by the spectrometer is required, so that the difference signal only comprises a noise signal under the condition that the interference signal is acquired when the sample to be detected is not placed; and when the interference signal is acquired when the sample to be detected is placed, the difference signal only comprises the noise signal and the interference signal between the sample reflection signal and the reference reflection signal.
Fig. 6 and 7 show a spectral image obtained by subtracting a reference signal from an interference signal acquired when a sample to be measured is not placed and a spectral image obtained by subtracting a reference signal from an interference signal acquired when a sample to be measured is placed, respectively, in a laboratory environment.
Fig. 8 and 9 respectively show a difference signal obtained by subtracting the reference signal from the interference signal collected when the sample to be measured is not placed and a difference signal obtained by subtracting the reference signal from the interference signal collected when the sample to be measured is placed in the spectrometer in a laboratory environment, and it can be seen that the maximum signal intensity value of the difference signal obtained by subtracting the reference signal from the interference signal collected when the sample to be measured is placed is much greater than the maximum signal intensity value of the difference signal obtained by subtracting the reference signal from the interference signal collected when the sample to be measured is not placed. Therefore, after the difference signal is obtained, whether the interference signal acquired by the spectrometer of the frequency domain OCT imaging system is the interference signal acquired when the sample to be measured is not placed can be determined by setting the intensity threshold.
Specifically, if the maximum signal intensity value of the difference signal is smaller than a preset intensity threshold, it may be determined that the interference signal is an interference signal collected when the sample to be measured is not placed, and when the maximum signal intensity value of the difference signal is greater than or equal to the preset intensity threshold, it may be determined that the interference signal is an interference signal collected when the sample to be measured is placed. The preset intensity threshold may be obtained according to practical experience, or obtained through experiments in different application scenarios.
In the embodiment of the application, a difference signal obtained by subtracting the reference signal from the interference signal is obtained, whether the interference signal acquired by the spectrometer of the frequency domain OCT imaging system is the interference signal acquired when the sample to be detected is not placed is judged, and when the interference signal acquired by the spectrometer of the frequency domain OCT imaging system is the interference signal acquired when the sample to be detected is not placed, the interference signal is deleted, so that the interference signal to be processed by the frequency domain OCT imaging system does not include the interference signal acquired when the sample to be detected is not placed, but only includes the interference signal acquired when the sample to be detected is placed, and therefore, when spectral data is processed, useless background image data does not need to be processed, and computing resources and storage space of a computer are saved; and when the acquisition speed of the spectrometer is high, the problem of frame loss and blockage caused by the fact that a computer cannot process data in time is solved.
In some embodiments of the present application, in the process of determining whether an interference signal collected by a spectrometer of the frequency-domain OCT imaging system is an interference signal collected when a sample to be measured is not placed, the determination may be performed by obtaining a detection signal of a detection sensor, and specifically, as shown in fig. 10, the signal processing method may further include steps 1001 to 1003.
Step 1001, acquiring a detection signal of an article detection sensor when a spectrometer of the frequency domain OCT imaging system collects an interference signal.
The article detection sensor may be a weight sensor 1101 shown in fig. 11 and provided on the sample stage, an infrared sensor 1201 shown in fig. 12 and provided on the sample stage, or another article detection sensor capable of detecting whether or not a sample to be measured is placed on the sample stage.
And step 1002, judging whether the interference signal is the interference signal acquired when the sample to be detected is not placed according to the detection signal.
Specifically, the interference signal collected when the sample to be detected is not placed can be judged by comparing the detection signal obtained when the sample to be detected is placed with the detection signal obtained when the sample to be detected is not placed, and the description is omitted here.
And 1003, if the interference signals are interference signals collected when the sample to be detected is not placed, deleting the interference signals.
In the embodiment of the application, whether the interference signal is the interference signal acquired when the sample to be detected is not placed is judged according to the detection signal of the article detection sensor; if the interference signal is the interference signal acquired when the sample to be detected is not placed, deleting the interference signal, so that the interference signal required to be processed by the frequency domain OCT imaging system does not comprise the interference signal acquired when the sample to be detected is not placed, but only comprises the interference signal acquired when the sample to be detected is placed, realizing that useless background image data does not need to be processed when spectral data is processed, and saving the computing resources and the storage space of a computer; and when the acquisition speed of the spectrometer is high, the problem of frame loss and blockage caused by the fact that a computer cannot process data in time is solved.
It should be noted that, for simplicity of description, the foregoing method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders.
Fig. 13 is a schematic structural diagram of a signal processing apparatus 1300 configured in a frequency domain OCT imaging system according to an embodiment of the present disclosure, where the signal processing apparatus 1300 may include: a judging unit 1301 and a deleting unit 1302.
The determining unit 1301 is configured to determine whether an interference signal acquired by a spectrometer of the frequency domain OCT imaging system is an interference signal acquired when a sample to be detected is not placed;
a deleting unit 1302, configured to delete the interference signal if the interference signal is an interference signal acquired when the sample to be detected is not placed.
In some embodiments of the present application, the determining unit 1301 is further specifically configured to:
acquiring an interference signal collected by a spectrometer of the frequency domain OCT imaging system and a reference signal of the frequency domain OCT imaging system;
obtaining a difference signal obtained by subtracting the reference signal from the interference signal;
and if the maximum signal intensity value of the difference signal is smaller than a preset intensity threshold value, determining that the interference signal is the interference signal collected when the sample to be detected is not placed.
In some embodiments of the present application, the determining unit 1301 is further specifically configured to:
acquiring a detection signal of the article detection sensor when a spectrometer of the frequency domain OCT imaging system collects the interference signal;
and judging whether the interference signal is the interference signal acquired when the sample to be detected is not placed according to the detection signal.
It should be noted that, for convenience and brevity of description, the specific working process of the signal processing apparatus 1300 described above may refer to the corresponding process of the method described in fig. 1 to fig. 12, and is not described herein again.
Fig. 14 is a schematic diagram of a terminal according to an embodiment of the present application. The terminal 14 may include: a processor 140, a memory 141 and a computer program 142, such as a signal processing program, stored in said memory 141 and executable on said processor 140. The processor 140 implements the steps in the above-described embodiments of the signal processing method, such as the steps 201 to 202 shown in fig. 2, when executing the computer program 142. Alternatively, the processor 140, when executing the computer program 142, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the units 1301 to 1302 shown in fig. 13.
The computer program may be divided into one or more modules/units, which are stored in the memory 141 and executed by the processor 140 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the terminal. For example, the computer program may be divided into a judgment unit and a deletion unit, and each unit has the following specific functions: the judging unit is used for judging whether the interference signal acquired by the spectrometer of the frequency domain OCT imaging system is the interference signal acquired when the sample to be detected is not placed; and the deleting unit is used for deleting the interference signal if the interference signal is the interference signal acquired when the sample to be detected is not placed.
The terminal can be a mobile terminal such as a smart phone or a computing device such as a desktop computer, a notebook, a palm computer and a cloud server. The terminal may include, but is not limited to, a processor 140, a memory 141. Those skilled in the art will appreciate that fig. 14 is merely an example of a terminal and is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or different components, e.g., the terminal may also include input-output devices, network access devices, buses, etc.
The Processor 140 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 141 may be an internal storage unit of the terminal, such as a hard disk or a memory of the terminal. The memory 141 may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal. Further, the memory 141 may also include both an internal storage unit and an external storage device of the terminal. The memory 141 is used for storing the computer program and other programs and data required by the terminal. The memory 141 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.