FPGA-based three-dimensional reconstruction apparatus, method, and system, and storage medium

By using the FPGA unit to process two-dimensional images in parallel in the three-dimensional reconstruction system, the problem of high cost and large volume of the three-dimensional reconstruction system in the existing technology is solved, efficient and low-cost three-dimensional reconstruction is achieved, and the power consumption of the system is reduced.

WO2024183239A1PCT designated stage expired Publication Date: 2024-09-12SHENZHEN INST OF ADVANCED TECH CHINESE ACAD OF SCI
View PDF -1 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/113481
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-06
Filing Date
2023-08-17
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Existing 3D reconstruction systems rely on high-performance computers or GPUs, which have problems of high cost and large size, making them difficult to embed in portable devices.

Method used

Using an FPGA-based three-dimensional reconstruction device and method, through the image acquisition module, image transformation module and three-dimensional reconstruction module, the FPGA unit is used to process two-dimensional images in parallel to achieve three-dimensional reconstruction, reduce power consumption and reduce costs.

Benefits of technology

It achieves efficient 3D reconstruction, reduces the cost and volume of the system, facilitates embedding in portable devices, and ensures the speed of 3D reconstruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023113481_12092024_PF_FP_ABST
    Figure CN2023113481_12092024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to the technical field of three-dimensional reconstruction, and provide an FPGA-based three-dimensional reconstruction apparatus, method, and system, and a storage medium. The apparatus comprises: an image acquisition module configured to acquire at least one two-dimensional image of a target to be reconstructed, wherein each two-dimensional image corresponds to one projection angle of said target; an image transformation module configured to perform parallel transformation on each two-dimensional image at each projection angle to obtain an intensity image corresponding to each projection angle; and a three-dimensional reconstruction module configured to perform parallel three-dimensional reconstruction on the basis of the intensity image at each projection angle to obtain a three-dimensional image of said target. The embodiments of the present application solve the problems in the related art of high costs and large size of three-dimensional reconstruction systems.
Need to check novelty before this filing date? Find Prior Art

Description

FPGA-based three-dimensional reconstruction device, method, system and storage medium Technical Field

[0001] The present application relates to the field of three-dimensional reconstruction technology. Specifically, the present application relates to a three-dimensional reconstruction device, method, system and storage medium based on FPGA. Background Art

[0002] Three-dimensional reconstruction is a hot topic in medical imaging technology. Currently, there are two main ways to achieve three-dimensional reconstruction of objects. One is to stitch together a large number of two-dimensional images of the object to obtain a three-dimensional image. The other is to perform three-dimensional frequency domain to spatial domain, spatial domain to frequency domain, and other transformations based on the three-dimensional information of the object to obtain a three-dimensional image.

[0003] However, due to the large amount of information contained in three-dimensional images, no matter what method is used to achieve three-dimensional reconstruction of objects, it will generate huge computational overhead. Therefore, current three-dimensional reconstruction systems mainly use high-performance computers or GPUs to achieve three-dimensional reconstruction of objects. However, there are many disadvantages in achieving three-dimensional reconstruction through high-performance computers or GPUs. On the one hand, the cost of high-performance computers or GPUs is high. On the other hand, high-performance computers or GPUs are large in size and are not easy to embed into devices that are easy to transplant.

[0004] Summary of the Invention

[0005] The embodiments of this application provide an FPGA-based 3D reconstruction device, method, system, and storage medium, which can solve the problems of high cost and large size of 3D reconstruction systems in related technologies. The technical solution is as follows:

[0006] According to one aspect of an embodiment of the present application, a 3D reconstruction device based on FPGA includes: an image acquisition module for acquiring at least one two-dimensional image of a target to be reconstructed; wherein each of the two-dimensional images corresponds to a projection angle of the target to be reconstructed; an image transformation module for transforming the two-dimensional images of each of the projection angles in parallel to obtain an intensity image corresponding to each projection angle; and a three-dimensional reconstruction module for performing three-dimensional reconstruction in parallel based on the intensity images of each projection angle to obtain a three-dimensional image of the target to be reconstructed.

[0007] According to one aspect of an embodiment of the present application, a three-dimensional reconstruction method based on FPGA includes: obtaining at least one two-dimensional image of a target to be reconstructed; wherein each of the two-dimensional images corresponds to a projection angle of the target to be reconstructed; transforming the two-dimensional images of each projection angle in parallel to obtain an intensity image corresponding to each projection angle; and performing three-dimensional reconstruction in parallel based on the intensity images of each projection angle to obtain a three-dimensional image of the target to be reconstructed.

[0008] According to one aspect of an embodiment of the present application, a 3D reconstruction system based on FPGA includes the 3D reconstruction device based on FPGA as described above.

[0009] According to one aspect of an embodiment of the present application, a storage medium stores a computer program thereon, and when the computer program is executed by a processor, the FPGA-based three-dimensional reconstruction method described above is implemented.

[0010] According to one aspect of an embodiment of the present application, a computer program product includes a computer program, the computer program is stored in a storage medium, a processor of a computer device reads the computer program from the storage medium, and the processor executes the computer program, so that the computer device implements the FPGA-based three-dimensional reconstruction method described above when executing the computer program.

[0011] The beneficial effects of the technical solution provided by this application are:

[0012] In the above technical solution, based on the two-dimensional images of the target to be reconstructed, the FPGA unit in the three-dimensional reconstruction system is used to perform parallel reconstruction to obtain a three-dimensional image of the target to be reconstructed. On the one hand, the parallel acceleration processing mechanism based on the FPGA unit reduces the power consumption of the three-dimensional reconstruction and ensures the speed of the three-dimensional reconstruction. On the other hand, the FPGA unit has low cost and small size, and is easy to embed into a device that is easy to transplant, effectively solving the problems of high cost and large size of the three-dimensional reconstruction system in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments of the present application.

[0014] FIG1 is a block diagram of a 3D reconstruction system based on FPGA according to the present application;

[0015] FIG2 is a flow chart showing a 3D reconstruction method based on FPGA according to an exemplary embodiment;

[0016] FIG3 is a schematic diagram of a specific implementation of three-dimensional reconstruction involved in the embodiment corresponding to FIG2 ;

[0017] FIG4 is a schematic diagram of the principle of obtaining an intensity image using two-dimensional images according to the embodiment corresponding to FIG2 ;

[0018] FIG5 is a flow chart of step 330 in one embodiment of the embodiment corresponding to FIG2 ;

[0019] FIG6 is a flow chart of step 350 in one embodiment of the embodiment corresponding to FIG2 ;

[0020] FIG7 is a schematic diagram of a specific implementation of cross-sectional strength data involved in the embodiment corresponding to FIG7 ;

[0021] 8 and 9 are schematic diagrams showing a specific implementation of a 3D reconstruction method based on FPGA;

[0022] FIG10 is a structural block diagram of a 3D reconstruction device based on FPGA according to an exemplary embodiment;

[0023] Fig. 11 is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0024] The following describes in detail embodiments of the present application, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limiting the present application.

[0025] It will be understood by those skilled in the art that, unless expressly stated otherwise, the singular forms "a", "an", "said" and "the" used herein may also include the plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, "connected" or "coupled" as used herein may include wireless connections or wireless couplings. The term "and / or" used herein includes all or any units and all combinations of one or more associated listed items.

[0026] Microscopic imaging of cells and tissues is an important imaging technology in the field of modern biomedicine, providing doctors and researchers with tremendous assistance and strong evidence for their research in medicine and life sciences. However, traditional two-dimensional imaging methods are no longer sufficient to meet the ever-growing requirements of scientific research and medical diagnosis, and three-dimensional reconstruction technology has long been developed accordingly. Three-dimensional reconstruction technology can not only fully display the internal microscopic structure of the object being measured, but also reflect the relationship between the internal details of the object being measured, and can provide information far greater than that of a two-dimensional image. Therefore, three-dimensional reconstruction technology is a current research hotspot. A classic method of three-dimensional reconstruction is tomographic reconstruction. Tomography refers to obtaining information about the object being measured layer by layer and then performing three-dimensional reconstruction through an algorithm. In microscopic imaging, the classic method of obtaining object information layer by layer is holographic imaging.

[0027] Holographic imaging is a precursor to microscopic three-dimensional tomographic reconstruction, using multi-angle holograms to reconstruct the image of a three-dimensional object. Holographic tomographic three-dimensional reconstruction algorithms can be divided into two types, depending on whether or not diffraction effects are considered: tomographic reconstruction that considers diffraction effects and tomographic reconstruction that does not. Tomographic reconstruction that considers sample diffraction assumes that light not only propagates in a straight line within the sample, but also undergoes diffraction as it passes through the object. This algorithm is based on Fourier diffraction projection theory and can reconstruct high-resolution three-dimensional images. However, its algorithmic theory is relatively complex, utilizing three-dimensional Fourier transforms, including Fourier mapping algorithms and filtered back-propagation algorithms. Tomographic reconstruction that does not consider the sample assumes that light passes through the sample in a straight line without diffraction effects. This algorithm is based on Fourier central slice theorem, and its main algorithms include filtered back-projection, direct back-projection, and iterative reconstruction algorithms.

[0028] Existing holographic tomography 3D reconstruction technologies are mostly based on high-performance computers or GPUs. The method of using the CPU to achieve 3D reconstruction on a high-performance computer requires high computer performance and is slow. Implementing it on a GPU can accelerate the calculation, but GPUs are expensive and power-hungry, making them difficult to embed into easily portable devices. For example, they are not suitable for embedded portable microscopes.

[0029] As can be seen from the above, the related technologies still have the defects of high cost and large size of the three-dimensional reconstruction system.

[0030] To this end, the FPGA-based 3D reconstruction device provided in this application can effectively reduce the size and cost of the 3D reconstruction system while maintaining 3D reconstruction speed, thereby resolving the high cost and bulk issues of 3D reconstruction devices in related technologies. This FPGA-based 3D reconstruction device can be deployed in a 3D reconstruction system or in an electronic device. For example, the electronic device can be a desktop computer, laptop computer, server equipped with a von Neumann architecture, or a mobile device equipped with a single-chip microcomputer. Furthermore, an FPGA-based 3D reconstruction method is provided, and accordingly, this FPGA-based 3D reconstruction method is applicable to an FPGA-based 3D reconstruction device.

[0031] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0032] Please refer to Figure 1, which shows a principle block diagram of a 3D reconstruction system based on FPGA. As shown in Figure 1, the 3D reconstruction system 100 includes a field programmable gate array FPGA module 110; wherein, the FPGA module 110 may include multiple transformation units 111, multiple reconstruction units 113 and a memory bar 115, an AXI bus 117 and a high-speed interface 119.

[0033] Among them, the FPGA module 110 is used to obtain at least one two-dimensional image of the target to be reconstructed; wherein each two-dimensional image corresponds to a projection angle of the target to be reconstructed; the two-dimensional images of each projection angle are transformed in parallel to obtain an intensity image corresponding to each projection angle; and three-dimensional reconstruction is performed in parallel based on the intensity images of each projection angle to obtain a three-dimensional image of the target to be reconstructed.

[0034] In one possible implementation, the FPGA-based 3D reconstruction device may be deployed in the FPGA module 110 .

[0035] Each transformation unit 111 is used to perform Fourier forward transformation on the two-dimensional image at each projection angle to obtain each two-dimensional image after Fourier forward transformation; and perform inverse Fourier transformation based on each two-dimensional image after Fourier forward transformation to obtain an intensity image at each projection angle.

[0036] Each reconstruction unit 113 is used to divide the target to be reconstructed into several sections; based on the intensity images of each section and each projection angle, obtain section intensity data corresponding to each section; wherein the section intensity data includes the intensity images of each projection angle corresponding to a section; perform filtered back projection on each section intensity data in parallel to obtain a slice image corresponding to each section; perform three-dimensional reconstruction based on each slice image to obtain a three-dimensional image of the target to be reconstructed.

[0037] In one embodiment, the reconstruction unit 113 is further configured to perform filtered back-projection on intensity images of various projection angles corresponding to a section in parallel based on one section intensity data among the section intensity data to obtain a slice image corresponding to the section intensity data.

[0038] Furthermore, in one embodiment, the three-dimensional reconstruction system may further include an image scanning module for scanning the target to be reconstructed based on different projection angles to obtain a two-dimensional image corresponding to each projection angle.

[0039] Now, in conjunction with the three-dimensional reconstruction system of Figure 1, the process of three-dimensional reconstruction is explained. Specifically, as shown in Figure 1, the two-dimensional image of the target to be reconstructed is transmitted to the FPGA module 110 through the high-speed interface 119, and the two-dimensional image of each projection angle enters a transformation unit 111, and is transformed in parallel in each transformation unit 111. Among them, the number of transformation units 111 of the FPGA module 110 depends on the speed of generating the two-dimensional image and the speed of processing the transformation unit 111. The number can be adaptively adjusted to ensure maximum transformation efficiency.

[0040] In one embodiment, the transformation unit may further include a first transformation unit and a second transformation unit, wherein the first transformation unit is used to perform a Fourier transform on the two-dimensional image to obtain a two-dimensional image that has completed the Fourier transform; and the second transformation unit is used to perform an inverse Fourier transform based on the two-dimensional image that has completed the Fourier transform to obtain an intensity image.

[0041] Subsequently, the intensity images generated by the transformation unit 111 are stored in the memory bar 115 through the AXI bus 117 on the FPGA module 110 chip. When the intensity images of all projection angles are stored, the reconstruction units 113 perform reconstruction in parallel based on the intensity images to obtain a three-dimensional image of the target to be reconstructed.

[0042] In one embodiment, the reconstruction unit 113 may include a data indexing unit, a filtering unit and an interpolation back-projection unit. The indexing module is used to divide the target to be reconstructed into several sections to obtain section intensity data corresponding to each section; the filtering unit is used to filter the section intensity data to remove noise; the interpolation back-projection unit is used to filter and back-project the section intensity data to obtain slice images corresponding to each section, and obtain a three-dimensional image of the target to be reconstructed based on the slice images corresponding to each section.

[0043] Referring to FIG. 2 , an embodiment of the present application provides a 3D reconstruction method based on FPGA, which is applicable to the 3D reconstruction system 100 in the principle block diagram shown in FIG. 1 .

[0044] In the following method embodiments, for ease of description, the execution subject of each step of the method is taken as an example of a three-dimensional reconstruction system, but this does not constitute a specific limitation.

[0045] As shown in FIG2 , the method may include the following steps:

[0046] Step 310: Acquire at least one two-dimensional image of the object to be reconstructed.

[0047] The two-dimensional image can be obtained by scanning the target to be reconstructed in real time, or it can be a two-dimensional image pre-stored in the electronic device for a historical time period. Therefore, after the electronic device scans and obtains the two-dimensional image, it can process the two-dimensional image in real time, or it can pre-store the image for later processing, for example, processing the two-dimensional image when the electronic device is less occupied, or processing the two-dimensional image according to the instructions of the staff. Therefore, the three-dimensional reconstruction in this embodiment can be based on two-dimensional images acquired in real time or acquired in a historical time period, without specific limitation here.

[0048] Each 2D image corresponds to a projection angle of a target to be reconstructed, which may be an object to be 3D reconstructed. An image scanning module may be used to scan the target to be reconstructed at different projection angles to obtain a 2D image corresponding to each projection angle.

[0049] It should be noted that projection angle refers to the angle at which imaging technologies such as X-rays, electron beams, or laser beams illuminate the target from different directions during 3D reconstruction. To obtain sufficient 2D images, the target must be illuminated from different directions, collecting 2D images at multiple projection angles. Each 2D image at each projection angle can be considered a 2D projection of the target in that direction and provides crucial information for reconstructing the 3D image.

[0050] When determining projection angles, multiple factors must be considered, such as the shape, size, and imaging requirements of the object to be reconstructed. Generally speaking, selecting more projection angles improves the accuracy and quality of 3D images, but this also increases the time and cost of 3D reconstruction. Therefore, it's important to balance time and quality to select the most appropriate projection angles. For example, selecting 30 to 200 projection angles can yield good reconstruction results.

[0051] Regarding changing the projection angle, the projection angle may be changed by rotating the object to be reconstructed or by rotating the light, which is not limited here.

[0052] FIG3 shows a schematic diagram of a specific implementation of three-dimensional reconstruction. As shown in FIG3 , light and its coherent light are irradiated on the target to be reconstructed, and a two-dimensional image is recorded on the CCD or CMOS sensor. At this time, the projection angle is 0°. The light or the target to be reconstructed is rotated around the Z axis so that the light produces a projection angle theta relative to the target to be reconstructed, and the two-dimensional image at this theta projection angle is continuously obtained. The rotation is sequentially performed so that theta is 1°, 2°, 3°, ..., 179°. In this way, two-dimensional images of the target to be reconstructed at 180 angles can be obtained.

[0053] Step 330 : transform the two-dimensional images at each projection angle in parallel to obtain an intensity image corresponding to each projection angle.

[0054] The transformation of two-dimensional images can be achieved through the angular spectrum method. Figure 4 shows the principle diagram of using each two-dimensional image to obtain an intensity image. As shown in Figure 4, in the rectangular coordinate system, let the object plane coordinates be x0, y0, the light wave field be U0(x0, y0), the diffraction screen coordinates after diffraction at a certain spatial distance d be x, y, and the diffraction field be U(x, y). Reference Fourier transform and inverse transform symbols The angular spectrum diffraction integral can be written as Equation (1) and Equation (2):

[0055] Where fx, fy are frequency domain coordinates, j is the imaginary unit, k = 2π / λ, and λ is the wavelength of light. Solving the above equation in reverse, U0(x0, y0) is the intensity image, as shown in equation (3):

[0056] Wherein, j is an imaginary unit, k = 1 / λ, and λ is the wavelength of light.

[0057] From the above, we can see that the angular spectrum method applies a two-dimensional Fourier transform and a two-dimensional inverse Fourier transform.

[0058] In one embodiment, the Fourier transform can be implemented by the transformation unit in the FPGA unit. Specifically, the steps include: performing a forward Fourier transform on the two-dimensional image at each projection angle to obtain each two-dimensional image that has completed the forward Fourier transform; performing an inverse Fourier transform based on each two-dimensional image that has completed the forward Fourier transform to obtain an intensity image at each projection angle.

[0059] It is further explained that, since there are multiple transformation units in the FPGA unit, multiple two-dimensional images can be transformed in parallel through the multiple transformation units. Specifically, in one embodiment, as shown in FIG5 , the following steps are included:

[0060] Step 331 : Select a set number of two-dimensional images from the two-dimensional images at each projection angle and perform parallel transformation.

[0061] Step 333: If the parallel transformation is completed for each of the two-dimensional images, a set number of two-dimensional images are selected from the remaining two-dimensional images for parallel transformation, until the parallel transformation of the two-dimensional images at each of the projection angles is completed.

[0062] First, it's important to note that multiple transform units can be used in parallel, depending on the speed of the 2D image input and the computational resources of the FPGA unit. For example, if the first 2D image has not yet been processed by the first transform unit and a second 2D image is input, an idle second transform unit can be used to process the second 2D image.

[0063] Based on this, the set number can be determined according to the number of transformation units in the three-dimensional system to achieve maximum parallel transformation efficiency. For example, the set number is equal to the number of transformation units, which is not limited here.

[0064] Through the above embodiment, by utilizing the parallel calculation of multiple transformation units in the FPGA unit, the delay in two-dimensional image processing can be reduced, the speed of two-dimensional image processing can be accelerated, and the efficiency of three-dimensional reconstruction can be improved.

[0065] Step 350 : Perform three-dimensional reconstruction in parallel based on the intensity images at each projection angle to obtain a three-dimensional image of the target to be reconstructed.

[0066] The three-dimensional reconstruction can be performed using the reconstruction units in the three-dimensional system, as shown in FIG6 , including the following steps:

[0067] Step 351: Divide the object to be reconstructed into several sections.

[0068] Step 353 : Obtaining cross-sectional intensity data corresponding to each cross-section based on the intensity images of each cross-section and each projection angle.

[0069] Step 355 , performing filtered back projection on the cross-sectional intensity data in parallel to obtain slice images corresponding to each cross section.

[0070] Step 357 : Perform three-dimensional reconstruction based on each slice image to obtain a three-dimensional image of the target to be reconstructed.

[0071] The cross-sectional intensity data includes intensity images at various projection angles corresponding to a cross-section.

[0072] Regarding the cross-sectional intensity data, please refer back to FIG3 . As shown in FIG3 , the cross-section of the target to be reconstructed when z=0 may correspond to intensity images at various projection angles, thereby forming an intensity image at 180 projection angles. Furthermore, the intensity image at 180 projection angles is the cross-sectional intensity data.

[0073] For example, as shown in FIG7 , a circle represents a cross section. The light scans around the cross section. The intensity image at each projection angle can obtain a one-dimensional intensity image. The intensity images at multiple angles are arranged according to the angle to form a cross-sectional intensity data.

[0074] Furthermore, the filtered back-projection method can be used to reconstruct the slice image of the target at z = 0 from the cross-sectional intensity data. Therefore, by traversing all z, the slice image corresponding to each cross section can be reconstructed. By combining all the slice images for 3D reconstruction, a 3D image of the target can be obtained.

[0075] Regarding combining all slice images for three-dimensional reconstruction, it can be achieved using a computer algorithm, such as a model fitting algorithm, a voxelization algorithm, a viewpoint-based voxelization algorithm, or a point cloud-based algorithm, which is not limited here.

[0076] Furthermore, because the FPGA unit includes multiple reconstruction units, multiple cross-sectional intensity data can be transformed in parallel through the multiple reconstruction units. Multiple reconstruction units can be used in parallel in appropriate quantities based on the speed of cross-sectional intensity data input and the computing resources of the FPGA unit. For example, if the first cross-sectional intensity data has not yet been processed by the first reconstruction unit and the second cross-sectional intensity data is input, then the second cross-sectional intensity data can be processed by an idle second reconstruction unit.

[0077] Of course, since the cross-sectional intensity data includes intensity images of each projection angle corresponding to a cross-section, then, by utilizing the parallel computing characteristics of the reconstruction unit in the FPGA unit, in one possible implementation method, based on one cross-sectional intensity data among the cross-sectional intensity data, the intensity images of each projection angle corresponding to a cross-section are filtered back-projected in parallel to obtain a slice image corresponding to the cross-sectional intensity data.

[0078] It can be understood that since a section intensity data includes intensity images corresponding to each projection angle in a section, if the reconstruction unit simultaneously reconstructs the intensity images corresponding to each projection angle in parallel, then the speed of obtaining the corresponding slice image from the section intensity data can be greatly accelerated.

[0079] Through the above process, on the one hand, multiple reconstruction units process multiple cross-sectional intensity data in parallel, thereby realizing frame-parallel accelerated processing of multiple cross-sectional intensity data and speeding up the efficiency of three-dimensional reconstruction; on the other hand, a reconstruction unit performs filtered back-projection on a cross-sectional intensity data in multiple rows in parallel, thereby realizing row-parallel accelerated processing of the cross-sectional intensity data, thereby improving the processing speed and processing capacity of each reconstruction unit.

[0080] To sum up, in combination with the above embodiments, based on the two-dimensional images of the target to be reconstructed, the FPGA unit in the three-dimensional reconstruction system is used to perform parallel reconstruction to obtain a three-dimensional image of the target to be reconstructed; on the one hand, the parallel acceleration processing mechanism based on the FPGA unit reduces the power consumption of the three-dimensional reconstruction and ensures the speed of the three-dimensional reconstruction; on the other hand, the FPGA unit has low cost and small size, and is easy to embed into a device that is easy to transplant, effectively solving the problems of high cost and large size of the three-dimensional reconstruction system in related technologies.

[0081] FIG8 is a schematic diagram of a specific implementation of a 3D reconstruction method based on FPGA, and FIG9 is a flow chart of the 3D reconstruction method. FIG8 will now be described in conjunction with FIG9 :

[0082] Through step 701, a two-dimensional image of the target to be detected at each projection angle is acquired by using an image scanning unit.

[0083] Through step 703, the transform units in the FPGA unit are used to perform Fourier transform on the two-dimensional images in parallel to obtain intensity images.

[0084] Through step 705, each reconstruction unit in the FPGA unit is used to perform row and frame parallel 3D reconstruction based on each intensity image to obtain a 3D image of the target to be reconstructed.

[0085] As can be seen from the above, the 3D reconstruction system of this solution is based on the idea of ​​dual parallel acceleration of rows and frames of the FPGA unit to achieve 3D reconstruction of the reconstruction target; on the one hand, it can achieve a 3D reconstruction speed similar to that of a GPU; on the other hand, the 3D system is small in size, low in cost, and low in power consumption, thus solving the defects of high cost and large size of 3D reconstruction systems in related technologies.

[0086] The following are embodiments of the apparatus of the present application, which can be used to perform the FPGA-based 3D reconstruction method involved in this application. For details not disclosed in the apparatus embodiments of the present application, please refer to the method embodiments of the FPGA-based 3D reconstruction method involved in this application.

[0087] Please refer to FIG. 10 . An embodiment of the present application provides a 3D reconstruction device 900 based on FPGA, including but not limited to: an image acquisition module 910 , an image transformation module 930 , and a 3D reconstruction module 950 .

[0088] The image acquisition module 910 is configured to acquire at least one two-dimensional image of the target to be reconstructed; each two-dimensional image corresponds to a projection angle of the target to be reconstructed.

[0089] The image transformation module 930 is used to transform the two-dimensional images at each projection angle in parallel to obtain an intensity image corresponding to each projection angle.

[0090] The three-dimensional reconstruction module 950 is configured to perform three-dimensional reconstruction in parallel based on the intensity images at each projection angle to obtain a three-dimensional image of the target to be reconstructed.

[0091] In one embodiment, the image transformation module 930 also includes multiple transformation units, each transformation unit is used to perform Fourier forward transform on the two-dimensional image of each projection angle to obtain each two-dimensional image that has completed the Fourier forward transform; and perform Fourier inverse transform based on each two-dimensional image that has completed the Fourier forward transform to obtain an intensity image at each projection angle.

[0092] In one embodiment, the three-dimensional reconstruction module 950 also includes multiple reconstruction units, each reconstruction unit is used to divide the target to be reconstructed into several sections; based on the intensity images of each section and each projection angle, section intensity data corresponding to each section is obtained; wherein the section intensity data includes the intensity image of each projection angle corresponding to a section; each section intensity data is filtered back-projected in parallel to obtain a slice image corresponding to each section; three-dimensional reconstruction is performed based on each slice image to obtain a three-dimensional image of the target to be reconstructed.

[0093] In one embodiment, the reconstruction unit is further configured to perform filtered back-projection on intensity images of various projection angles corresponding to a section in parallel based on one section intensity data among the section intensity data to obtain a slice image corresponding to the section intensity data.

[0094] It should be noted that the FPGA-based 3D reconstruction device and the FPGA-based 3D reconstruction system provided in the above embodiments are only illustrated by the division of the above-mentioned functional modules when performing FPGA-based 3D reconstruction. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed. That is, the internal structure of the FPGA-based 3D reconstruction device and the FPGA-based 3D reconstruction system will be divided into different functional modules to complete all or part of the functions described above.

[0095] In addition, the embodiments of the FPGA-based 3D reconstruction device, FPGA-based 3D reconstruction system and FPGA-based 3D reconstruction method provided in the above embodiments belong to the same concept, and the specific manner in which each module performs operations has been described in detail in the method embodiments and will not be repeated here.

[0096] Please refer to Figure 11. An electronic device 4000 is provided in an embodiment of the present application. The electronic device 4000 may include: a desktop computer, a laptop computer, a server, a mobile device carrying a single-chip microcomputer, etc., and is suitable for the three-dimensional reconstruction system 100 in the implementation environment of Figure 1.

[0097] In FIG. 11 , the electronic device 4000 includes at least one processor 4001 , at least one communication bus 4002 , and at least one memory 4003 .

[0098] The processor 4001 and the memory 4003 are connected, for example, via a communication bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which may be used for data exchange between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the number of transceivers 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.

[0099] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0100] Communication bus 4002 may include a path for transmitting information between the aforementioned components. Communication bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, for example. Communication bus 4002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, FIG11 shows only one thick line, but this does not indicate that there is only one bus or only one type of bus.

[0101] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0102] The memory 4003 stores a computer program, and the processor 4001 reads the computer program stored in the memory 4003 through the communication bus 4002 .

[0103] When the computer program is executed by the processor 4001 , the FPGA-based three-dimensional reconstruction method in the above-mentioned embodiments is implemented.

[0104] In addition, an embodiment of the present application provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the FPGA-based three-dimensional reconstruction method in the above-mentioned embodiments is implemented.

[0105] In an embodiment of the present application, a computer program product is provided. The computer program product includes a computer program stored in a storage medium. A processor of a computer device reads the computer program from the storage medium and executes the computer program, causing the computer device to perform the FPGA-based 3D reconstruction method described in each of the above embodiments.

[0106] Compared with related technologies, this solution uses the FPGA unit in the 3D reconstruction system for parallel reconstruction to obtain a 3D image of the target to be reconstructed. On the one hand, the parallel acceleration processing mechanism based on the FPGA unit reduces the power consumption of the 3D reconstruction and can achieve a 3D reconstruction speed similar to that of a GPU. On the other hand, the FPGA unit has low cost, small size, and low energy consumption, making it easy to embed into easily portable devices, such as microscopes, effectively solving the problems of high cost and large size of the 3D reconstruction system in related technologies.

[0107] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown in sequence as indicated by the arrows, these steps are not necessarily executed 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 some of the steps in the flowcharts 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 portion of the sub-steps or stages of other steps.

[0108] The above description is only part of the implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A 3D reconstruction device based on FPGA, It is characterized in that Applied to FPGA, the FPGA includes a three-dimensional reconstruction device, a bus unit and a storage unit, and the device includes: An image acquisition module, used to acquire at least one two-dimensional image of the target to be reconstructed; wherein each of the two-dimensional images corresponds to a projection angle of the target to be reconstructed; An image transformation module, the image transformation module comprising a plurality of transformation units; each of the transformation units is used to transform the two-dimensional image at each of the projection angles in parallel to obtain an intensity image corresponding to each of the projection angles, and store each of the intensity images in the storage unit through the bus unit; A three-dimensional reconstruction module, the three-dimensional reconstruction module includes multiple reconstruction units; each of the reconstruction units is used to obtain each of the intensity images in the storage unit, and divide the target to be reconstructed into a plurality of sections; based on the intensity images of each of the sections and each of the projection angles, section intensity data corresponding to each of the sections is obtained; wherein the section intensity data includes an intensity image of each of the projection angles corresponding to the section; each of the section intensity data is filtered back-projected in parallel to obtain a slice image corresponding to each of the sections; three-dimensional reconstruction is performed based on each of the slice images to obtain a three-dimensional image of the target to be reconstructed.

2. The device according to claim 1, It is characterized in that The image transformation module includes a plurality of transformation units; Each of the transformation units is used to perform Fourier forward transform on the two-dimensional images of each of the projection angles to obtain each two-dimensional image that has completed the Fourier forward transform; and perform inverse Fourier transform based on each of the two-dimensional images that have completed the Fourier forward transform to obtain an intensity image of each of the projection angles.

3. The device according to claim 1, It is characterized in that The reconstruction unit is further used to perform filtered back-projection in parallel on intensity images of each projection angle corresponding to one of the cross sections based on one of the cross section intensity data to obtain a slice image corresponding to the cross section intensity data.

4. A 3D reconstruction method based on FPGA, It is characterized in that Applied to an FPGA module, the FPGA includes a three-dimensional reconstruction device, a bus unit and a storage unit, and the method includes: Acquire at least one two-dimensional image of the target to be reconstructed; wherein each of the two-dimensional images corresponds to a projection angle of the target to be reconstructed; Transforming the two-dimensional images at each projection angle in parallel to obtain intensity images corresponding to each projection angle; and storing each intensity image in the storage unit through the bus unit; Acquire each of the intensity images in the storage unit, and divide the target to be reconstructed into a plurality of cross sections; Based on the intensity images of each of the cross sections and each of the projection angles, obtaining cross-sectional intensity data corresponding to each of the cross sections, wherein the cross-sectional intensity data includes an intensity image of each of the projection angles corresponding to the cross section; The cross-sectional intensity data are respectively subjected to filtered back-projection in parallel to obtain slice images corresponding to the cross-sections; and three-dimensional reconstruction is performed based on the slice images to obtain a three-dimensional image of the target to be reconstructed.

5. The method according to claim 4, It is characterized in that The transforming of the two-dimensional images at the projection angles in parallel to obtain intensity images corresponding to the projection angles includes: Selecting a set number of two-dimensional images from the two-dimensional images at each of the projection angles for parallel transformation; If the parallel transformation is completed for each of the two-dimensional images, a set number of two-dimensional images are selected from the remaining two-dimensional images for parallel transformation until the parallel transformation of the two-dimensional images at each of the projection angles is completed.

6. A 3D reconstruction system based on FPGA, It is characterized in that The system comprises an FPGA, and the FPGA comprises the three-dimensional reconstruction device according to any one of claims 1 to 3.

7. The system of claim 6, It is characterized in that The system also includes an image scanning module; The image scanning module is used to scan the target to be reconstructed based on different projection angles to obtain a two-dimensional image corresponding to each projection angle.

8. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the FPGA-based three-dimensional reconstruction method according to any one of claims 4 to 5 is implemented.