A cell activity imaging method and device
Through Fourier transform and spectrum processing of OCT three-dimensional data, B-scan cell activity RGB images and videos are generated, which solves the problem that existing technology cannot effectively display dynamic information of cell activity, and achieves accurate display and evaluation of cell activity information. .
Patent Information
- Application Number
- CN202410813441.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-06-24
AI Technical Summary
Existing technology is difficult to effectively display dynamic information on cell activity, and cannot present dynamic cell activity status and related values through static images.
OCT three-dimensional data is used for processing, and B-scan cell activity RGB images and videos are generated through Fourier transform, spectrum division, color channel assignment and normalization processing. Combined with pixel gray value statistics, cell activity information is displayed.
Displaying cell activity through different colors and brightness provides accurate presentation and numerical evaluation of dynamic information of cell activity, and verifies the positive correlation between gray value and cell activity.
Smart Images

Figure CN118397128B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent imaging, and in particular to a cell activity imaging method and device. Background Art
[0002] Optical Coherence Tomography (OCT) is a technology developed in recent years that can provide in vivo, non-invasive, high-resolution imaging, and plays an important role in disease diagnosis and pathological research. Dynamic Optical Coherence Tomography is a non-invasive detection technology developed from OCT technology that can see the state of cell activity.
[0003] Cell activity refers to the proportion of healthy cells in a sample population. Cell activity can be affected by environmental factors, including changes in cell culture parameters, drug stimulation, and the response of cells to various diseases. For example, cancer cells show enhanced cell activity, which in turn causes abnormal cell proliferation. Injury and infection can also have a negative impact on cell survival, leading to necrosis or apoptosis. Detecting cell activity can assess the health of tissues. Through cell activity, we can determine whether the tissue is in a healthy state or in an unhealthy state.
[0004] Cell activity is dynamic, and using video to show cell activity is undoubtedly a more convenient method, but it is impossible to show videos in articles. Therefore, it is very important to show dynamic cell activity in the form of static images. In the prior art, images show the current state of a person or object, which cannot show dynamic information or give specific values that need to be presented in a dynamic state. Summary of the invention
[0005] In view of this, an object of the present invention is to provide a cell activity imaging method and device to solve the problems in the prior art to a certain extent.
[0006] According to a first aspect of an embodiment of the present invention, a cell activity imaging method is provided, comprising:
[0007] Collect OCT three-dimensional data of the sample to be tested;
[0008] Taking the first B-scan image in the OCT three-dimensional data as the first frame of the three-dimensional data in the time dimension, taking the first frame as a reference frame, and correcting each frame in the time dimension;
[0009] Perform Fourier transform on the time dimension of the corrected OCT three-dimensional data to obtain the comprehensive spectrum on the time dimension at the same (X, Z) pixel position on all B-scan images;
[0010] The actual physical frequency at the (X, Z) pixel position is used as the abscissa value of the integrated spectrum, and the absolute value of the value obtained after Fourier transformation is used as the ordinate value of the integrated spectrum;
[0011] The abscissa of the integrated spectrum is divided into three integrated spectrum channels, four abscissa thresholds of the integrated spectrum are set, the sum of the ordinates of the main frequency bands of each integrated spectrum segment is calculated, and the sum of the ordinate values of the main frequency bands of each integrated spectrum channel is used as the color channel value of the RGB image;
[0012] Take all the actual physical frequencies between two thresholds on the color channel corresponding to each frequency signal on the comprehensive spectrum, calculate the sum of the main frequency bands of the frequency interval according to the actual physical frequency and the step value, and use the normalized value of the sum of the main frequency bands of each frequency interval as the value of the color channel to form a two-dimensional matrix consistent with the B-scan image matrix;
[0013] Normalize the two-dimensional matrix of each color channel to obtain a normalized image of each color channel;
[0014] The normalized images of each color channel are stacked to obtain B-scan cell activity RGB images and videos.
[0015] Preferably, after obtaining the B-scan cell activity RGB image, the method further comprises:
[0016] The RGB image of the sample to be tested is divided into several segments, and the grayscale value of the pixels in each segment is counted to obtain a statistical graph that is strictly positively correlated with cell activity.
[0017] Preferably, the method of using the first B-scan image in the OCT three-dimensional data as the first frame of the three-dimensional data in the time dimension, using the first frame as a reference frame, and correcting each frame in the time dimension includes:
[0018] Performing sub-pixel displacement correction on the B-scan image, finding a transformation matrix of the first frame of the B-scan image, and placing each frame of the B-scan image starting from the second frame in the time dimension in the same transformation matrix as the first frame of the B-scan image;
[0019] According to the shape of the sample to be tested acquired on the previous B-scan image, all B-scan images on the OCT three-dimensional data are corrected starting from the second B-scan image.
[0020] Preferably, the method of using the actual physical frequency of the pixel point at the (X, Z) pixel position as the abscissa value of the comprehensive spectrum includes:
[0021] The highest signal frequency on the integrated spectrum is obtained according to Shannon's theorem, and the actual physical frequency represented by each coordinate value on the abscissa of the integrated spectrum is calculated according to the highest signal frequency and the number of point scans in the process of forming OCT three-dimensional data;
[0022] By formula Calculate the highest signal frequency, where f is the signal frequency, B-scan is the B-scan image, and f{B-scan} is the B-scan image signal frequency.
[0023] Preferably, the abscissa of the integrated spectrum is divided into three integrated spectrum channels, four abscissa thresholds of the integrated spectrum are set, the sum of the ordinates of the main frequency bands of each integrated spectrum segment is calculated, and the sum of the ordinate values of the main frequency bands of each integrated spectrum channel is used as the color channel value of the RGB image, including:
[0024] The three integrated spectrum channels are low frequency band, mid frequency band and high frequency band;
[0025] The four comprehensive spectrum horizontal coordinate thresholds are respectively: Xlow, Xmid, Xhigh, and X0.
[0026] Preferably, all actual physical frequencies between two thresholds on the color channel corresponding to each frequency signal on the comprehensive spectrum are obtained, the sum of the main frequency bands of the frequency interval is calculated according to the actual physical frequency and the step value, and the normalized value of the sum of the main frequency bands of each frequency interval is used as the value of the color channel, wherein,
[0027] The color channels of RGB images are blue, green, and red, corresponding to the low-frequency signal, medium-frequency signal, and high-frequency signal on the comprehensive spectrum, respectively.
[0028] Preferably, after taking the sum of the main frequency band ordinate values of each integrated spectrum channel as the RGB image color channel value, the method further includes:
[0029] The color channel value represents the color and brightness contribution of the pixel at the (X, Z) pixel position.
[0030] Preferably, the cell activity imaging method further comprises:
[0031] After the two-dimensional matrix of each color channel is normalized, the grayscale value of the normalized image of each color channel is between 0 and 255.
[0032] Preferably, the statistical analysis based on the pixel grayscale values of each image segment to obtain a statistical graph that is strictly positively correlated with cell activity includes:
[0033] The mean and variance of the pixel grayscale values of each segment of the image are calculated, and a statistical graph that is strictly positively correlated with cell activity is obtained based on the mean and variance of the pixel grayscale values.
[0034] According to a second aspect of an embodiment of the present invention, there is provided a cell activity imaging device, comprising:
[0035] A main controller, and a memory connected to the main controller;
[0036] The memory stores program instructions;
[0037] The main controller is used to execute program instructions stored in the memory to perform any of the above methods.
[0038] The technical solution provided by the embodiments of the present invention may have the following beneficial effects:
[0039] It can be understood that a cell activity imaging method and device shown in the present invention can correct the B-scan image in the sample OCT three-dimensional data, obtain the comprehensive spectrum and its horizontal and vertical coordinate values of the pixel points at the same (X, Z) pixel position on all B-scan images in the time dimension, divide the horizontal coordinate of the comprehensive spectrum into three comprehensive spectrum channels, set four comprehensive spectrum horizontal coordinate thresholds, and calculate the sum of the vertical coordinates of the main frequency bands of each comprehensive spectrum; take all the actual physical frequencies between the two thresholds on the color channel corresponding to each frequency signal on the comprehensive spectrum, and calculate the sum of the main frequency bands of the frequency interval according to the actual physical frequency and the step value; take the normalized value of the sum of the main frequency bands of each frequency interval as the value of the color channel to form a two-dimensional matrix consistent with the B-scan image matrix; normalize the two-dimensional matrix of each color channel to obtain the normalized image of each color channel, and after stacking, obtain the B-scan cell activity RGB image and video. It can be understood that the RGB image obtained by the present invention can show the activity of cells in the current state through different colors and brightness.
[0040] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0042] Figure 1 is a schematic diagram of steps of a cell activity imaging method according to an exemplary embodiment;
[0043] Figure 2is a B-scan image of the corneal epithelium of a model mouse in an OCT time series according to an exemplary embodiment;
[0044] Figure 3 1 is a normalized image of a blue channel (low frequency), a green channel (middle frequency) and a red channel (high frequency) of the corneal epithelium of a model mouse according to an exemplary embodiment;
[0045] Figure 4 is a B-scan RGB image of cell activity in the corneal epithelium of a model mouse according to an exemplary embodiment;
[0046] Figure 5 is a segmented RGB image of B-scan cell activity in the corneal epithelium of a model mouse according to an exemplary embodiment;
[0047] Figure 6 It is a box plot of grayscale values and variances of each segment according to an exemplary embodiment. DETAILED DESCRIPTION
[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0049] Embodiment 1
[0050] Figure 1 is a schematic diagram of a method for imaging cell activity according to an exemplary embodiment. Figure 1 , providing a cell activity imaging method, comprising:
[0051] Step S11, collecting OCT three-dimensional data of the sample to be tested. The collected data is the optical coherence tomography (OCT) three-dimensional data of the sample to be tested, and the three-dimensional data are the image length (X), imaging depth (Z) and the number of frames in the time dimension (T);
[0052] Step S12: taking the first B-scan image in the OCT three-dimensional data as the first frame of the three-dimensional data in the time dimension, taking the first frame as a reference frame, and correcting each frame in the time dimension;
[0053] Step S13, performing Fourier transform on the corrected OCT three-dimensional data in the time dimension to obtain a comprehensive spectrum in the time dimension at the same (X, Z) pixel position on all B-scan images;
[0054] Step S14, using the actual physical frequency at the (X, Z) pixel position as the abscissa value of the integrated spectrum, and using the absolute value of the value obtained after Fourier transform as the ordinate value of the integrated spectrum;
[0055] Step S15, dividing the abscissa of the integrated spectrum into three integrated spectrum channels, setting four abscissa thresholds of the integrated spectrum, calculating the sum of the ordinates of the main frequency bands of each integrated spectrum segment, and taking the sum of the ordinate values of the main frequency bands of each integrated spectrum channel as the color channel value of the RGB image;
[0056] Step S16, taking all actual physical frequencies between two thresholds on the color channel corresponding to each frequency signal on the comprehensive spectrum, calculating the sum of the main frequency bands of the frequency interval according to the actual physical frequency and the step value, and taking the normalized value of the sum of the main frequency bands of each frequency interval as the value of the color channel, to form a two-dimensional matrix consistent with the B-scan image matrix;
[0057] Step S17, normalizing the two-dimensional matrix of each color channel to obtain a normalized image of each color channel;
[0058] Step S18, stacking the normalized images of each color channel to obtain B-scan cell activity RGB images and videos.
[0059] It can be understood that a cell activity imaging method shown in the present invention can correct the B-scan image in the sample OCT three-dimensional data, obtain the comprehensive spectrum and its horizontal and vertical coordinate values of the pixel points at the same (X, Z) pixel position on all B-scan images in the time dimension, divide the horizontal coordinate of the comprehensive spectrum into three comprehensive spectrum channels, set four comprehensive spectrum horizontal coordinate thresholds, and calculate the sum of the vertical coordinates of the main frequency bands of each comprehensive spectrum; take all the actual physical frequencies between the two thresholds on the color channel corresponding to each frequency signal on the comprehensive spectrum, and calculate the sum of the main frequency bands of the frequency interval according to the actual physical frequency and the step value; take the normalized value of the sum of the main frequency bands of each frequency interval as the value of the color channel to form a two-dimensional matrix consistent with the B-scan image matrix; normalize the two-dimensional matrix of each color channel to obtain the normalized image of each color channel, and after stacking, obtain the B-scan cell activity RGB image and video. It can be understood that the RGB image obtained by the present invention can show the activity of cells in the current state through different colors and brightness.
[0060] It should be noted that after obtaining the B-scan cell activity RGB image, the following steps are also included:
[0061] Step S19, dividing the RGB image of the sample to be tested into several segments, performing statistics based on the pixel grayscale values of each segment of the image, and obtaining a statistical graph that is strictly positively correlated with cell activity.
[0062] The statistical graphs strictly positively correlated with cell activity are obtained by performing statistics based on the pixel grayscale values of each segment of the image, including:
[0063] The mean and variance of the pixel grayscale values of each segment of the image are calculated, and a statistical graph strictly positively correlated with cell activity is obtained based on the mean and variance of the pixel grayscale values. The higher the mean of the pixel grayscale value, the higher the cell activity, and vice versa, the lower the pixel grayscale value, the lower the cell activity.
[0064] It can be understood that the present invention processes the collected three-dimensional data in a time series, processes each frame of the time series, and combines it with the three channels of the RGB image to display the activity of the cells in the current state through different colors and brightness, and at the same time gives the grayscale value and variance of the cell activity B-scan RGB image segmentation, and the grayscale value and variance show a strict positive correlation with the cell activity. According to the grayscale value and variance, the accuracy of displaying cell activity through different colors and brightness can be verified from the side.
[0065] It should be noted that, in step S12, the first B-scan image (see Figure 2 ) as the first frame of the three-dimensional data in the time dimension, taking the first frame as a reference frame, and correcting each frame in the time dimension, including:
[0066] Step S121, perform sub-pixel displacement correction on the B-scan image, find the transformation matrix of the first frame B-scan image, and make each frame B-scan image starting from the second frame in the time dimension be in the same transformation matrix as the first frame B-scan image.
[0067] In specific practice, the cv2.findTransformECC function in the OpenCV library is used to find the transformation matrix of all B-scan images. Starting from the second B-scan image, the previous B-scan image is used as a reference to move the current B-scan image up and down and left and right, so that each B-scan image in the time dimension is in the same transformation matrix.
[0068] Among them, the OpenCV library is an open source computer vision library, and the cv2.findTransformECC function is a function for evaluating a motion model based on the enhanced correlation coefficient (ECC).
[0069] Step S122: Based on the shape of the sample to be tested acquired on the previous B-scan image, all B-scan images on the OCT three-dimensional data are corrected starting from the second B-scan image. By performing the correction, the shapes of the sample to be tested acquired on all B-scan images are ensured to be completely consistent.
[0070] In practice, the enhanced correlation coefficient (ECC) algorithm is used to stretch or shrink the shape of the sample to be tested collected on the B-scan image starting from the second frame to ensure that the shape of the sample to be tested collected on all B-scan images is completely consistent. The following formula is used to obtain:
[0071]
[0072] in, is the transformation parameter to be optimized (such as translation, rotation, scaling, etc.); and are the reference image and the current image after transformation respectively; and are versions with their respective means of 0. and Subtract the corresponding arithmetic mean to obtain; is the conventional Euclidean norm; is a reference vector with a mean of zero Normalization of is a reference vector with a mean of zero Normalization of Used to measure the distorted image With reference image deviation.
[0073] It should be noted that in step S13, the corrected OCT three-dimensional data is Fourier transformed in the time dimension to obtain the comprehensive spectrum of the pixel points at the same (X, Z) pixel position on all B-scan images in the time dimension, including:
[0074] Perform a one-dimensional fast Fourier transform (FFT) along the T dimension. Let I(x,y,t) represent the pixel intensity at position (x,y) in the tth frame of the image stack. The calculation formula is as follows:
[0075]
[0076] Where I is the OCT signal intensity, N is the number of frames, k ranges from 0 to N−1, and i is a complex number.
[0077] Extract the comprehensive spectrum A. For each position (x, y), A(x, y, f) is the amplitude spectrum at the position (x, y) and frequency f:
[0078]
[0079] Use the following formula to normalize A so that the value is within [0, 1]:
[0080]
[0081] Calculate the mathematical variant B of A using the following formula:
[0082]
[0083] Normalize B:
[0084]
[0085] Calculate the integrated spectrum PSF:
[0086]
[0087] It should be noted that, in step S14, the actual physical frequency at the (X, Z) pixel position is used as the abscissa value of the comprehensive spectrum, including:
[0088] The highest signal frequency on the integrated spectrum is obtained according to Shannon's theorem, and the actual physical frequency represented by each coordinate value on the abscissa of the integrated spectrum is calculated according to the highest signal frequency and the number of point scans in the process of forming OCT three-dimensional data;
[0089] By formula Calculate the highest signal frequency, where f is the signal frequency, B-scan is the B-scan image, and f{B-scan} is the B-scan image signal frequency.
[0090] In one embodiment, the signal frequency of the B-scan image is 80 Hz. After calculation according to f{B-scan} / 2, the maximum signal frequency is 40 Hz. If the number of point scans of the OCT three-dimensional data is 6000, the abscissa of the integrated spectrum is 3000, which means that the actual signal physical frequency is 40 Hz, the abscissa of the integrated spectrum is 1500, which means that the actual signal physical frequency is 20 Hz, the abscissa of the integrated spectrum is 375, which means that the actual signal physical frequency is 5 Hz, and the abscissa of the integrated spectrum is 37.5, which means that the actual signal physical frequency is 0.5 Hz.
[0091] It should be noted that, in step S15, the abscissa of the integrated spectrum is divided into three integrated spectrum channels, four abscissa thresholds of the integrated spectrum are set, and the sum of the ordinates of the main frequency bands of each integrated spectrum is calculated, including:
[0092] The three integrated spectrum channels are low frequency band, mid frequency band and high frequency band;
[0093] The four comprehensive spectrum abscissa thresholds are: low , X mid , X high , X0.
[0094] Among them, in the abscissa of the comprehensive spectrum, the low frequency band (X low ,X mid ), mid-band (X mid ,X high ), high frequency band (X high to X0), use S low , S mid and S high Represents the sum of the ordinates of the main frequency band in the comprehensive spectrum of the low frequency band, mid-frequency band and high frequency band respectively:
[0095]
[0096] Each (X, Z) is processed in the same way to obtain three two-dimensional matrices, which are normalized to 0-255 as the grayscale images of the B-scan in the three active channels. M is a two-dimensional matrix with a minimum value of M min and the maximum value M max , the normalized matrix M norm The calculation formula is:
[0097]
[0098] Where M(x,y) represents the B-scan two-dimensional matrix at frequency Z.
[0099] In a specific embodiment, taking the corneal epithelium of a model mouse as an example, the comprehensive spectrum threshold is set to 0 Hz, 0.5 Hz, 5 Hz and 20 Hz;
[0100] In a specific embodiment, taking the heart, brain, liver, kidney, lung and other internal organs of a model rat as an example, the comprehensive spectrum threshold is set to 0 Hz, 20 Hz, 50 Hz and 100 Hz;
[0101] In a specific embodiment, taking the thighs and other limbs, skin, and tongue of a model rabbit as an example, the comprehensive spectrum thresholds are set to 0 Hz, 2 Hz, 10 Hz, and 50 Hz;
[0102] It should be noted that, after taking all the actual physical frequencies between two thresholds on the color channel corresponding to each frequency signal on the comprehensive spectrum, the sum of the main frequency bands of the frequency interval is calculated according to the actual physical frequency and the step value, and normalized to [0-255] as the value of the color channel, where:
[0103] The color channels of RGB images are blue, green, and red, corresponding to the low-frequency signal, medium-frequency signal, and high-frequency signal on the comprehensive spectrum, respectively;
[0104] In a specific embodiment,
[0105] ① Take all the actual physical frequencies between the two thresholds on the blue channel corresponding to the low-frequency signal on the comprehensive spectrum, calculate the sum of the main frequency band of the frequency interval according to the actual physical frequency and the step value, and normalize it to [0-255] as the value of the blue channel;
[0106] ② Take all the actual physical frequencies between the two thresholds on the green channel corresponding to the intermediate frequency signal on the comprehensive spectrum, calculate the sum 2 of the main frequency band of the frequency interval according to the actual physical frequency and the step value, and normalize it to [0-255] as the value of the green channel;
[0107] ③ Take all the actual physical frequencies between the two thresholds on the red channel corresponding to the high-frequency signal on the comprehensive spectrum, calculate the sum 3 of the main frequency band of the frequency interval according to the actual physical frequency and the step value, and normalize it to [0-255] as the value of the red channel.
[0108] In one embodiment, for a point at position (X, Z) such as (200, 50) on the B-scan, the mean value in the low frequency band of the integrated spectrum (abscissa 0-37.5) is 3000, and 3000 is the value of the blue channel before normalization; the mean value of the point at the same position in the mid-frequency band of the integrated spectrum (abscissa 37.5-375) is 2000, and 2000 is the value of the green channel before normalization; the mean value of the point at the same position in the high frequency band of the integrated spectrum (abscissa 375-1500) is 1000, and 1000 is the value of the red channel before normalization.
[0109] It should be noted that after taking the average value as the value of each color channel, it also includes:
[0110] The color channel value represents the color and brightness contribution of the pixel at the (X, Z) pixel position. The larger the color value, the brighter the color, and in the color image, this color contributes the most.
[0111] In practice, the closer the value of each color channel is to the maximum threshold value in each color channel, the greater the proportion of a certain color of the pixel at the X, Z pixel position, and the brighter the brightness of the color; the (X, Z) position of each B-scan is processed in the same way to obtain three color channel two-dimensional matrices. After normalizing the three color channel two-dimensional matrices to 0-255, the brightness values of the three color channels are obtained, and the color activity map is formed after superposition. The color channel value represents the color and brightness contribution of the pixel at the X, Z pixel position.
[0112] In a specific embodiment, the actual physical frequency interval of the blue channel of a pixel point at a certain (X, Z) pixel position such as (200, 50) is 0-0.5Hz, the horizontal coordinate interval of the integrated spectrum is 0-37.5, and the blue channel value is 60; the actual physical frequency interval of the green channel is 0.5-5Hz, the horizontal coordinate interval of the integrated spectrum is 37.5-375, and the green channel is 110; the actual physical frequency interval of the red channel is 5-20Hz, the horizontal coordinate interval of the integrated spectrum is 375-1500, and the red channel value is 130. The larger the color value, the brighter the color, and in the color map, this color contributes the most. This means that the color and brightness of red contribute more at this pixel point, and the color of this pixel point is mainly red, followed by green, and the least blue.
[0113] In one embodiment, a normalized image of the blue channel (low frequency band), green channel (mid frequency band) and red channel (high frequency band) of the corneal epithelium of a model mouse is obtained by normalization. Figure 3 As shown in Figure 2, after stacking the normalized images of the three channels, the B-scan cell activity RGB image is obtained. Figure 4 shown.
[0114] It should be noted that the cell activity imaging method further includes:
[0115] After the two-dimensional matrix of each color channel is normalized, the grayscale value of the normalized image of each color channel is between 0 and 255.
[0116] In step S19, the RGB image of the sample to be tested is divided into several segments, and the grayscale values of the pixels in each segment are counted to obtain a statistical graph that is strictly positively correlated with the cell activity;
[0117] Furthermore, the mean and variance of the pixel grayscale values of each segment of the image are calculated. The higher the mean of the pixel grayscale value, the higher the cell activity. Conversely, the lower the pixel grayscale value, the lower the cell activity.
[0118] In one specific embodiment, the corneal epithelium of the model mouse is divided into three sections: A, B, and C. Figure 5 , the mean and variance of the pixel gray value of each segment of the image are calculated. The mean and variance of segment A are: 122.09±1.16, the mean and variance of segment B are: 109.19±2.44, and the mean and variance of segment C are: 121.73±1.1602. A box plot is drawn based on the mean and variance calculated for each segment, see Figure 6 .
[0119] Embodiment 2
[0120] A cell activity imaging device is provided, comprising:
[0121] A main controller, and a memory connected to the main controller;
[0122] The memory stores program instructions;
[0123] The main controller is used to execute program instructions stored in the memory to perform any of the above methods.
[0124] It can be understood that a cell activity imaging device shown in this embodiment can correct the B-scan image in the sample OCT three-dimensional data to obtain the comprehensive spectrum and its horizontal and vertical coordinate values of the pixel points at the same (X, Z) pixel position on all B-scan images in the time dimension, divide the horizontal coordinate of the comprehensive spectrum into three comprehensive spectrum channels, set four comprehensive spectrum horizontal coordinate thresholds, and calculate the sum of the vertical coordinates of the main frequency bands of each comprehensive spectrum; take all actual physical frequencies between two thresholds on the color channel corresponding to each frequency signal on the comprehensive spectrum, and calculate the sum of the main frequency bands of the frequency interval according to the actual physical frequency and the step value; use the normalized value of the sum of the main frequency bands of each frequency interval as the value of the color channel to form a two-dimensional matrix consistent with the B-scan image matrix; normalize the two-dimensional matrix of each color channel to obtain the normalized image of each color channel, and after stacking, obtain the B-scan cell activity RGB image and video. It can be understood that the present invention processes the collected three-dimensional data in a time series, processes each frame of the time series, and combines it with the three channels of the RGB image to display the activity of the cells in the current state through different colors and brightness, and at the same time gives the grayscale value and variance of the cell activity B-scan RGB image segmentation, and the grayscale value and variance show a strict positive correlation with the cell activity. According to the grayscale value and variance, the accuracy of displaying cell activity through different colors and brightness can be verified from the side.
[0125] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0126] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0127] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0128] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0129] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0130] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0131] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0132] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0133] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for imaging cell activity, It is characterized in that include: Collect OCT three-dimensional data of the sample to be tested; The first B-scan image in the OCT three-dimensional data is used as the first frame of the three-dimensional data in the time dimension, and the first frame is used as a reference frame, and each frame in the time dimension is corrected, including: performing sub-pixel displacement correction on the B-scan image, finding the transformation matrix of the first frame B-scan image, and placing each frame B-scan image starting from the second frame in the time dimension in the same transformation matrix as the first frame B-scan image; according to the shape of the sample to be tested collected on the previous frame B-scan image, starting from the second frame B-scan image, all B-scan images on the OCT three-dimensional data are corrected; Perform Fourier transform on the time dimension of the corrected OCT three-dimensional data to obtain the comprehensive spectrum on the time dimension at the same (X, Z) pixel position on all B-scan images; The actual physical frequency at the (X, Z) pixel position is used as the abscissa value of the integrated spectrum, and the absolute value of the value obtained after Fourier transformation is used as the ordinate value of the integrated spectrum; The abscissa of the integrated spectrum is divided into three integrated spectrum channels, four abscissa thresholds of the integrated spectrum are set, the sum of the ordinates of the main frequency bands of each integrated spectrum segment is calculated, and the sum of the ordinate values of the main frequency bands of each integrated spectrum channel is used as the color channel value of the RGB image; Take all the actual physical frequencies between two thresholds on the color channel corresponding to each frequency signal on the comprehensive spectrum, calculate the sum of the main frequency bands of the frequency interval according to the actual physical frequency and the step value, and use the normalized value of the sum of the main frequency bands of each frequency interval as the value of the color channel to form a two-dimensional matrix consistent with the B-scan image matrix; Normalize the two-dimensional matrix of each color channel to obtain a normalized image of each color channel; The normalized images of each color channel are stacked to obtain B-scan cell activity RGB images and videos.
2. The cell activity imaging method according to claim 1, It is characterized in that After obtaining the B-scan cell activity RGB image, it also includes: The RGB image of the sample to be tested is divided into several segments, and the grayscale value of the pixels in each segment is counted to obtain a statistical graph that is strictly positively correlated with cell activity.
3. The cell activity imaging method according to claim 1, It is characterized in that The method of using the actual physical frequency of the pixel point at the (X, Z) pixel position as the abscissa value of the comprehensive spectrum includes: The highest signal frequency on the integrated spectrum is obtained according to Shannon's theorem, and the actual physical frequency represented by each coordinate value on the abscissa of the integrated spectrum is calculated according to the highest signal frequency and the number of point scans in the process of forming OCT three-dimensional data; By formula Calculate the highest signal frequency, where f is the signal frequency, B-scan is the B-scan image, and f{B-scan} is the B-scan image signal frequency.
4. The cell activity imaging method according to claim 1, It is characterized in that The abscissa of the integrated spectrum is divided into three integrated spectrum channels, four abscissa thresholds of the integrated spectrum are set, the sum of the ordinates of the main frequency bands of each integrated spectrum segment is calculated, and the sum of the ordinate values of the main frequency bands of each integrated spectrum channel is used as the color channel value of the RGB image, including: The three integrated spectrum channels are low frequency band, mid frequency band and high frequency band; The four comprehensive spectrum abscissa thresholds are: low , X mid , X high , X 0 .
5. The cell activity imaging method according to claim 4, It is characterized in that Take all the actual physical frequencies between two thresholds on the color channel corresponding to each frequency signal on the comprehensive spectrum, calculate the sum of the main frequency bands of the frequency interval according to the actual physical frequency and the step value, and take the normalized value of the sum of the main frequency bands of each frequency interval as the value of the color channel, where: The color channels of RGB images are blue, green, and red, corresponding to the low-frequency signal, medium-frequency signal, and high-frequency signal on the comprehensive spectrum, respectively.
6. The cell activity imaging method according to claim 1, It is characterized in that After the sum of the main frequency band ordinate values of each integrated spectrum channel is used as the RGB image color channel value, it also includes: The color channel value represents the color and brightness contribution of the pixel at the (X, Z) pixel position.
7. The cell activity imaging method according to claim 1, It is characterized in that Also includes: After the two-dimensional matrix of each color channel is normalized, the grayscale value of the normalized image of each color channel is between 0 and 255.
8. The cell activity imaging method according to claim 2, It is characterized in that The statistical graphs strictly positively correlated with cell activity are obtained by performing statistics based on the pixel grayscale values of each segment of the image, including: The mean and variance of the pixel grayscale values of each segment of the image are calculated, and a statistical graph that is strictly positively correlated with cell activity is obtained based on the mean and variance of the pixel grayscale values.
9. A cell activity imaging device, It is characterized in that include: A main controller, and a memory connected to the main controller; The memory stores program instructions; The main controller is used to execute program instructions stored in the memory and execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Synthetic aperture radar residual range migration correction method
CN104730500A
Dual-mode full-field optical coherence tomography method
CN111855613A
Intelligent safety helmet image anti-jittering method and device
CN112565607A
Dynamic quantitative visualization method for three-dimensional biological sample cells
CN117953145A
KR20200144899A
