An incident angle calculation method, device, computer equipment and storage medium

Through methods such as image expansion, linear interpolation fusion and centroid calculation, the calculation of the incident angle of the cylindrical matrix ray detector is simplified, solving the problem of high complexity of traditional methods, achieving real-time efficient calculation and reducing hardware and computing power requirements.

CN113570653BActive Publication Date: 2024-10-15GUANGZHOU RAYDOSE MEDICAL TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110854156.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-28
Publication Date
2024-10-15
Estimated Expiration
2041-07-28

AI Technical Summary

Technical Problem

The calculation method of the incident angle of the traditional cylindrical matrix ray detector is highly complex, and the calculation complexity and uncertainty are large. It is affected by factors such as the size of the radiation field, resulting in a large amount of calculation and difficult optimization judgment.

Method used

Steps such as image expansion, linear interpolation fusion, marginal dose vector summation and centroid calculation are used to simplify the incident angle calculation process and reduce hardware and computing power requirements.

Benefits of technology

Real-time and efficient calculation of incident angle is achieved, reducing costs and simplifying the calculation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113570653B_ABST
    Figure CN113570653B_ABST
Patent Text Reader

Abstract

The embodiment of the present application belongs to the field of detector technology, and relates to a method for calculating the angle of incidence applied to a cylindrical matrix ray detector, including: receiving an original channel image collected by a sensor; performing an image expansion operation on the original channel image to obtain an extended channel image; performing a fusion operation on the extended channel image according to a linear interpolation method to obtain a fused channel image; performing a summation operation along the column direction according to the fused channel image to obtain a marginal dose vector; determining a candidate area according to the marginal dose vector; calculating centroid data according to the candidate area; and calculating the angle of incidence of the original channel image according to the centroid data. The present application also provides an incident angle calculation device, a computer device, and a storage medium applied to a cylindrical matrix ray detector. The present application greatly simplifies the incident angle calculation process of the cylindrical matrix ray detector, realizes real-time and efficient incident angle calculation, and requires low hardware and computing power, which is beneficial to reducing costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of detector technology, and in particular to a method, device, computer equipment and storage medium for calculating an incident angle applied to a cylindrical matrix ray detector. Background Art

[0002] The ray detector is mainly used to collect information related to the energy, distribution and state of high-energy rays, and is an important part of the radiation measurement equipment. The cylindrical matrix obtains the information of the three-dimensional space rays through the probes distributed on the cylindrical surface. The incident angle is the basic information of the ray. Obtaining the accurate incident angle in real time is crucial for subsequent calculation and processing.

[0003] There is a method for calculating the incident angle, which is to assume a projection plane and project the probe readings on and below the plane onto the plane respectively. When the incident direction is perpendicular to the projection plane, the upper and lower projections will match. By iteratively optimizing the inclination angle of the projection plane, the most consistent projection plane is found, and the corresponding angle is the perpendicular direction of the incident direction.

[0004] However, the applicant has found that the traditional method for calculating the angle of incidence applied to cylindrical matrix ray detectors is generally more complex. In practical applications, the attenuation of rays in the cylinder will increase the complexity, uncertainty and amount of calculation of the angle of incidence algorithm. The rays are also affected by the size of the field of view, etc. Even the same angle is not a fixed value, which will affect the optimization judgment. It can be seen that the traditional method for calculating the angle of incidence applied to cylindrical matrix ray detectors has the problem of extremely high computational complexity. Summary of the invention

[0005] The purpose of the embodiments of the present application is to propose a method, device, computer equipment and storage medium for calculating the incident angle applied to a cylindrical matrix ray detector, so as to solve the problem of extremely high computational complexity of the traditional method for calculating the incident angle applied to a cylindrical matrix ray detector.

[0006] In order to solve the above technical problems, the embodiment of the present application provides a method for calculating the incident angle applied to a cylindrical matrix ray detector, which adopts the following technical solution:

[0007] Receive the original channel image collected by the sensor;

[0008] Performing an image expansion operation on the original channel image to obtain an expanded channel image;

[0009] Performing a fusion operation on the extended channel image according to a linear interpolation method to obtain a fused channel image;

[0010] Performing a summation operation along a column direction according to the fused channel image to obtain a marginal dose vector;

[0011] determining a candidate region according to the marginal dose vector;

[0012] Calculate centroid data according to the candidate area;

[0013] The incident angle of the original channel image is calculated according to the centroid data.

[0014] In order to solve the above technical problems, the embodiment of the present application further provides an incident angle calculation device applied to a cylindrical matrix ray detector, which adopts the following technical solution:

[0015] The original image acquisition module is used to receive the original channel image collected by the sensor;

[0016] An image expansion module, used for performing an image expansion operation on the original channel image to obtain an expanded channel image;

[0017] An image fusion module, used for performing a fusion operation on the extended channel images according to a linear interpolation method to obtain a fused channel image;

[0018] A summing operation module, used for performing a summing operation along a column direction according to the fused channel image to obtain a marginal dose vector;

[0019] A candidate region determination module, used for determining a candidate region according to the marginal dose vector;

[0020] A centroid calculation module, used to calculate centroid data according to the candidate area;

[0021] The incident angle calculation module applied to the cylindrical matrix ray detector is used to calculate the incident angle of the original channel image according to the centroid data.

[0022] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0023] The invention comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the incident angle calculation method applied to the cylindrical matrix ray detector as described above are implemented.

[0024] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0025] The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the incident angle calculation method applied to the cylindrical matrix ray detector as described above are implemented.

[0026] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0027] The present application provides a method for calculating the angle of incidence applied to a cylindrical matrix ray detector, comprising: receiving an original channel image collected by a sensor; performing an image expansion operation on the original channel image to obtain an extended channel image; performing a fusion operation on the extended channel image according to a linear interpolation method to obtain a fused channel image; performing a summation operation along the column direction according to the fused channel image to obtain a marginal dose vector; determining a candidate area according to the marginal dose vector; calculating centroid data according to the candidate area; and calculating the angle of incidence of the original channel image according to the centroid data. The present application greatly simplifies the angle of incidence calculation process of the cylindrical matrix ray detector, realizes real-time and efficient angle of incidence calculation, requires low hardware and computing power, and is beneficial to reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0029] Figure 1 is a flowchart of the implementation of the incident angle calculation method applied to the cylindrical matrix ray detector provided in the first embodiment of the present application;

[0030] Figure 2 is a schematic diagram of the original channel image provided in Example 1 of the present application;

[0031] Figure 3 is a schematic diagram of an image after image expansion provided in Example 1 of the present application;

[0032] Figure 4 is a schematic diagram of an image after image interpolation provided in Example 1 of the present application;

[0033] Figure 5 is an image schematic diagram of a summation operation provided in Example 1 of the present application;

[0034] Figure 6 is an image schematic diagram of determining a candidate area provided in Example 1 of the present application;

[0035] Figure 7 This is an image schematic diagram of calculating centroid data provided in Example 1 of the present application;

[0036] Figure 8 This is a schematic diagram of the image of the screening centroid provided in Example 1 of the present application;

[0037] Fig. 9 is an image schematic diagram of calculating the incident angle provided in Example 1 of the present application;

[0038] Fig.10 : is a schematic diagram of the structure of the incident angle calculation device applied to the cylindrical matrix ray detector provided in the first embodiment of the present application:

[0039] Fig.11 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0041] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0042] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0043] like Figure 1 As shown, a flowchart of the implementation of the incident angle calculation method applied to the cylindrical matrix ray detector provided in the first embodiment of the present application is shown. For the sake of convenience of explanation, only the part related to the present application is shown.

[0044] The above-mentioned incident angle calculation method applied to the cylindrical matrix ray detector includes the following steps:

[0045] Step S101: receiving the original channel image collected by the sensor.

[0046] In the embodiments of this application, see Figure 2 , shows the original channel image collected by the sensor provided in Example 1 of the present application, and the original channel image is a two-channel image with two channels, a single cycle, and low resolution.

[0047] Step S102: performing an image expansion operation on the original channel image to obtain an expanded channel image.

[0048] In the embodiment of the present application, the image expansion operation refers to expanding the image into two periods along the row direction to ensure that the region falls completely inside the image and does not fall on the boundary, see Figure 3 ,The expanded image has dual channels, dual cycles, and low resolution.

[0049] Step S103: performing a fusion operation on the extended channel image according to a linear interpolation method to obtain a fused channel image;

[0050] In the embodiment of the present application, the information of the two channels is fused into one channel by using the linear interpolation method, and the physical position represented by the obtained channel data is between the inner layer and the outer layer, so as to make full use of the data and improve the calculation accuracy. Figure 4 ,The interpolated image, including the inner circle (top), the outer circle (middle), and the interpolation result (bottom). The result has a single channel, dual cycle, and high resolution.

[0051] Step S104: performing a summation operation along the column direction according to the fused channel image to obtain a marginal dose vector.

[0052] In the embodiment of the present application, the obtained single-channel image is summed along the column direction to obtain the marginal dose vector, and a set of boundary lines for dividing the region is determined by analyzing the minimum and maximum points of the boundary dose vector. This set of boundary lines is used to determine the candidate regions of the incident region and the exit region, see Figure 5 , sum the image along the column direction to obtain the marginal dose vector, and analyze its minimum and maximum points.

[0053] Step S105: determining a candidate region according to the marginal dose vector.

[0054] In the embodiment of the present application, a threshold coefficient k is set, and the threshold value in each region is determined by the following formula, which is expressed as:

[0055] threshold=P min +k(P max -P min )

[0056] Where P min ,P max Indicates the minimum and maximum doses in the region, and performs threshold processing on each region to obtain a set of candidate regions. Figure 6 , segmentation points are selected from the minimum points of the marginal dose vector to segment multiple regions.

[0057] Step S106: Calculate centroid data according to the candidate area;

[0058] In the embodiments of the present application, Figure 7 A schematic diagram of finding the centroid of each region is shown. For ease of explanation, only the part related to the present application is shown.

[0059] In the embodiment of the present application, after obtaining a set of candidate regions, the centroid of each region is calculated as the representative point of the region. The advantage of using the centroid as the representative point is that the centroid will be related to the selection of the threshold, but it will not be very sensitive. In contrast, the maximum point of the marginal dose vector is independent of the threshold, and the threshold parameter cannot be used to adjust the algorithm to improve the accuracy. The centroid is calculated using the image geometric moment, and the calculation formula is as follows:

[0060]

[0061] In the embodiment of the present application, after obtaining a set of centroids, the centroids are screened, see Figure 8 First, take the centroid of the area with the largest area as the first centroid x1, and then determine a suitable safety distance d for the minimum positive period T of the image in the row direction according to the area from large to small, and select the first x2 that meets the following requirements as the centroid of the second area

[0062] d<|x2-x1| <T-d

[0063] Step S107: Calculate the incident angle of the original channel image according to the centroid data.

[0064] In an embodiment of the present application, after screening out two suitable regional centroids, the values ​​of the marginal dose vectors on both sides of the centroid position are summed to obtain a value as a representative of the dose around the centroid. The area with the larger value is used as the incident area, and the remaining one is used as the exit area. The x value of the centroid is then converted into the corresponding physical cylindrical coordinate angle.

[0065] In the embodiments of this application, see Fig. 9 , under the projection of the cylindrical cross section, the angle calculation is transformed into the following geometric problem: given ∠GAE, ∠GAC, length DA, radius r, find ∠GAD to draw the auxiliary line AF⊥CD,

[0066] ∠GAD=∠GAC-∠CAF-∠FAD

[0067] In an embodiment of the present application, a method for calculating the angle of incidence applied to a cylindrical matrix ray detector is provided, comprising: receiving an original channel image collected by a sensor; performing an image expansion operation on the original channel image to obtain an extended channel image; performing a fusion operation on the extended channel image according to a linear interpolation method to obtain a fused channel image; performing a summation operation along the column direction according to the fused channel image to obtain a marginal dose vector; determining a candidate area according to the marginal dose vector; calculating centroid data according to the candidate area; and calculating the angle of incidence of the original channel image according to the centroid data. The present application greatly simplifies the angle of incidence calculation process of the cylindrical matrix ray detector, realizes real-time and efficient angle of incidence calculation, and requires low hardware and computing power, which is beneficial to reducing costs.

[0068] In some optional implementations of this embodiment, before step S102, the following steps are also included:

[0069] An image reconstruction operation is performed on the original channel image according to a bilinear interpolation method.

[0070] In the embodiment of the present application, a higher resolution image is reconstructed based on the sensor readings using a bilinear interpolation method, which is helpful for accurately obtaining the true physical position of the center of the area to improve the calculation accuracy.

[0071] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0072] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the computer-readable instructions are executed, they can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0073] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0074] Embodiment 2

[0075] Further references Fig.10 , as a response to the above Figure 1 The present application provides an embodiment of an incident angle calculation device for a cylindrical matrix ray detector. Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0076] like Fig.10 As shown, the incident angle calculation device 100 applied to the cylindrical matrix ray detector described in this embodiment includes: an original image acquisition module 110, an image expansion module 120, an image fusion module 130, a summation operation module 140, a candidate region determination module 150, a centroid calculation module 160 and an incident angle calculation module 170 applied to the cylindrical matrix ray detector. Among them:

[0077] The original image acquisition module 110 is used to receive the original channel image collected by the sensor;

[0078] An image expansion module 120 is used to perform an image expansion operation on the original channel image to obtain an expanded channel image;

[0079] An image fusion module 130 is used to perform a fusion operation on the extended channel images according to a linear interpolation method to obtain a fused channel image;

[0080] A summing operation module 140 is used to perform a summing operation along a column direction according to the fused channel image to obtain a marginal dose vector;

[0081] A candidate region determination module 150, configured to determine a candidate region according to a marginal dose vector;

[0082] A centroid calculation module 160, used to calculate centroid data according to the candidate area;

[0083] The incident angle calculation module 170 applied to the cylindrical matrix ray detector is used to calculate the incident angle of the original channel image according to the centroid data.

[0084] In the embodiments of this application, see Figure 2 , shows the original channel image collected by the sensor provided in Example 1 of the present application, and the original channel image is a two-channel image with two channels, a single cycle, and low resolution.

[0085] In the embodiment of the present application, the image expansion operation refers to expanding the image into two periods along the row direction to ensure that the region falls completely inside the image and does not fall on the boundary, see Figure 3 ,The expanded image has dual channels, dual cycles, and low resolution.

[0086] In the embodiment of the present application, the information of the two channels is fused into one channel by using the linear interpolation method, and the physical position represented by the obtained channel data is between the inner layer and the outer layer, so as to make full use of the data and improve the calculation accuracy. Figure 4 ,The interpolated image, including the inner circle (top), the outer circle (middle), and the interpolation result (bottom). The result has a single channel, dual cycle, and high resolution.

[0087] In the embodiment of the present application, the obtained single-channel image is summed along the column direction to obtain the marginal dose vector, and a set of boundary lines for dividing the region is determined by analyzing the minimum and maximum points of the boundary dose vector. This set of boundary lines is used to determine the candidate regions of the incident region and the exit region, see Figure 5 , sum the image along the column direction to obtain the marginal dose vector, and analyze its minimum and maximum points.

[0088] In the embodiment of the present application, a threshold coefficient k is set, and the threshold value in each region is determined by the following formula, which is expressed as:

[0089] threshold=P min +k(P max -P min )

[0090] Where P min ,Pmax Indicates the minimum and maximum doses in the region, and performs threshold processing on each region to obtain a set of candidate regions. Figure 6 , segmentation points are selected from the minimum points of the marginal dose vector to segment multiple regions.

[0091] In the embodiments of the present application, Figure 7 A schematic diagram of finding the centroid of each region is shown. For ease of explanation, only the part related to the present application is shown.

[0092] In the embodiment of the present application, after obtaining a set of candidate regions, the centroid of each region is calculated as the representative point of the region. The advantage of using the centroid as the representative point is that the centroid will be related to the selection of the threshold, but it will not be very sensitive. In contrast, the maximum point of the marginal dose vector is independent of the threshold, and the threshold parameter cannot be used to adjust the algorithm to improve the accuracy. The centroid is calculated using the image geometric moment, and the calculation formula is as follows:

[0093]

[0094] In the embodiment of the present application, after obtaining a set of centroids, the centroids are screened, see Figure 8 First, take the centroid of the area with the largest area as the first centroid x1, and then determine a suitable safety distance d for the minimum positive period T of the image in the row direction according to the area from large to small, and select the first x2 that meets the following requirements as the centroid of the second area

[0095] d<|x2-x1| <T-d

[0096] In an embodiment of the present application, after screening out two suitable regional centroids, the values ​​of the marginal dose vectors on both sides of the centroid position are summed to obtain a value as a representative of the dose around the centroid. The area with the larger value is used as the incident area, and the remaining one is used as the exit area. The x value of the centroid is then converted into the corresponding physical cylindrical coordinate angle.

[0097] In the embodiments of this application, see Fig. 9 , under the projection of the cylindrical cross section, the angle calculation is transformed into the following geometric problem: given ∠GAE, ∠GAC, length DA, radius r, find ∠GAD to draw the auxiliary line AF⊥CD,

[0098] ∠GAD=∠GAC-∠CAF-∠FAD

[0099] In an embodiment of the present application, an incident angle calculation device applied to a cylindrical matrix ray detector is provided, including: an original image acquisition module 110, for receiving an original channel image collected by a sensor; an image expansion module 120, for performing an image expansion operation on the original channel image to obtain an extended channel image; an image fusion module 130, for performing a fusion operation on the extended channel image according to a linear interpolation method to obtain a fused channel image; a summation operation module 140, for performing a summation operation along the column direction according to the fused channel image to obtain a marginal dose vector; a candidate region determination module 150, for determining a candidate region according to the marginal dose vector; a centroid calculation module 160, for calculating centroid data according to the candidate region; an incident angle calculation module 170 applied to a cylindrical matrix ray detector, for calculating the incident angle of the original channel image according to the centroid data. The present application greatly simplifies the incident angle calculation process of the cylindrical matrix ray detector, realizes real-time and efficient incident angle calculation, and requires low hardware and computing power, which is beneficial to reducing costs.

[0100] In some optional implementations of this embodiment, the incident angle calculation device 100 applied to the cylindrical matrix ray detector further includes: an image reconstruction module.

[0101] The image reconstruction module is used to perform an image reconstruction operation on the original channel image according to a bilinear interpolation method.

[0102] In the embodiment of the present application, a higher resolution image is reconstructed based on the sensor readings using a bilinear interpolation method, which is helpful for accurately obtaining the true physical position of the center of the area to improve the calculation accuracy.

[0103] To solve the above technical problems, the present application also provides a computer device. Fig.11 , Fig.11 This is a basic structural block diagram of the computer device in this embodiment.

[0104] The computer device 200 includes a memory 210, a processor 220, and a network interface 230 that are interconnected and communicated through a system bus. It should be noted that the figure only shows a computer device 200 having components 210-230, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0105] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0106] The memory 210 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 210 can be an internal storage unit of the computer device 200, such as a hard disk or memory of the computer device 200. In other embodiments, the memory 210 can also be an external storage device of the computer device 200, such as a plug-in hard disk equipped on the computer device 200, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Of course, the memory 210 can also include both the internal storage unit of the computer device 200 and its external storage device. In this embodiment, the memory 210 is generally used to store an operating system and various application software installed on the computer device 200, such as computer-readable instructions for an incident angle calculation method applied to a cylindrical matrix ray detector. In addition, the memory 210 can also be used to temporarily store various data that have been output or are to be output.

[0107] The processor 220 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 220 is generally used to control the overall operation of the computer device 200. In this embodiment, the processor 220 is used to run the computer-readable instructions or process data stored in the memory 210, such as running the computer-readable instructions of the incident angle calculation method applied to the cylindrical matrix ray detector.

[0108] The network interface 230 may include a wireless network interface or a wired network interface. The network interface 230 is generally used to establish a communication connection between the computer device 200 and other electronic devices.

[0109] The embodiment of the present application provides a computer device that greatly simplifies the incident angle calculation process of a cylindrical matrix ray detector, realizes real-time and efficient incident angle calculation, and has low requirements on hardware and computing power, which is beneficial to reducing costs.

[0110] The present application also provides another embodiment, namely, providing a computer-readable storage medium, which stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the incident angle calculation method applied to the cylindrical matrix ray detector as described above.

[0111] The embodiment of the present application provides a computer-readable storage medium, and the embodiment of the present application provides a computer device, which greatly simplifies the incident angle calculation process of the cylindrical matrix ray detector, realizes real-time and efficient incident angle calculation, and has low requirements on hardware and computing power, which is beneficial to reduce costs.

[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0113] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A method for calculating the incident angle applied to a cylindrical matrix ray detector, characterized in that: The steps include: Receive the original channel image collected by the sensor; Performing an image expansion operation on the original channel image to obtain an expanded channel image; Performing a fusion operation on the extended channel image according to a linear interpolation method to obtain a fused channel image; Performing a summation operation along a column direction according to the fused channel image to obtain a marginal dose vector; determining a candidate region according to the marginal dose vector; Calculate centroid data according to the candidate area; Calculating the incident angle of the original channel image according to the centroid data; The step of determining the candidate region according to the marginal dose vector specifically includes: Dividing the marginal dose vector into a plurality of boundary lines according to the minimum value point and the maximum value point; Calculate each of the boundary lines according to the image geometry matrix to obtain the centroid data; The step of calculating each of the boundary lines according to the image geometry matrix to obtain the centroid data specifically includes: Calculate each of the boundary lines according to the image geometry matrix to obtain a centroid data set; The centroid data with the largest area is taken as the first centroid data; Performing a screening operation on the centroid data group according to a centroid screening rule to obtain second centroid data; The centroid screening rule is: d<|x2-x1| <T-d Wherein, d represents the safety distance; x1 and x2 represent the first centroid data and the second centroid data respectively; and T represents the minimum positive period of the fused channel image in the row direction.

2. The incident angle calculation method for a cylindrical matrix ray detector according to claim 1, characterized in that: Before the step of performing an image expansion operation on the original channel image to obtain an expanded channel image, the step further includes: An image reconstruction operation is performed on the original channel image according to a bilinear interpolation method.

3. An incident angle calculation device applied to a cylindrical matrix ray detector, characterized in that: include: The original image acquisition module is used to receive the original channel image collected by the sensor; An image expansion module, used for performing an image expansion operation on the original channel image to obtain an expanded channel image; An image fusion module, used for performing a fusion operation on the extended channel images according to a linear interpolation method to obtain a fused channel image; A summing operation module, used for performing a summing operation along a column direction according to the fused channel image to obtain a marginal dose vector; A candidate region determination module, used for determining a candidate region according to the marginal dose vector; A centroid calculation module, used to calculate centroid data according to the candidate area; An incident angle calculation module applied to the cylindrical matrix ray detector, used to calculate the incident angle of the original channel image according to the centroid data; The candidate region determination module comprises: A boundary line division submodule, used for dividing the marginal dose vector into a plurality of boundary lines according to the minimum value point and the maximum value point; A candidate region determination submodule, used to calculate each of the boundary lines according to the image geometry matrix to obtain the centroid data; The step of calculating each of the boundary lines according to the image geometry matrix to obtain the centroid data specifically includes: Calculate each of the boundary lines according to the image geometry matrix to obtain a centroid data set; The centroid data with the largest area is taken as the first centroid data; Performing a screening operation on the centroid data group according to a centroid screening rule to obtain second centroid data; The centroid screening rule is: d<|x2-x1| <T-d Wherein, d represents the safety distance; x1 and x2 represent the first centroid data and the second centroid data respectively; and T represents the minimum positive period of the fused channel image in the row direction.

4. The incident angle calculation device for cylindrical matrix ray detector according to claim 3, characterized in that: The device also includes: The image reconstruction module is used to perform an image reconstruction operation on the original channel image according to a bilinear interpolation method.

5. A computer device, characterized in that: It comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the incident angle calculation method applied to a cylindrical matrix ray detector as described in any one of claims 1 to 2 are implemented.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the incident angle calculation method applied to a cylindrical matrix ray detector as described in any one of claims 1 to 2.

Citation Information

Patent Citations

  • Calculation method and device of sunbeam incidence angles

    CN101571386A

  • Image correction method and device, computer equipment and storage medium

    CN113012075A

  • System for determination of angle of arrival of laser beam and method thereof

    KR101386637B1

  • Image matching method, image matching apparatus, image matching system, and storage medium

    US20190266737A1