CN117649484A - Three-dimensional optical reconstruction method based on CT image - Google Patents

Three-dimensional optical reconstruction method based on CT image Download PDF

Info

Publication number
CN117649484A
CN117649484A CN202311304245.9A CN202311304245A CN117649484A CN 117649484 A CN117649484 A CN 117649484A CN 202311304245 A CN202311304245 A CN 202311304245A CN 117649484 A CN117649484 A CN 117649484A
Authority
CN
China
Prior art keywords
dimensional
data
optical
projection
voxel data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311304245.9A
Other languages
Chinese (zh)
Inventor
降雨强
黄璐
王瑜
李超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Genetics and Developmental Biology of CAS
Original Assignee
Institute of Genetics and Developmental Biology of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Institute of Genetics and Developmental Biology of CAS filed Critical Institute of Genetics and Developmental Biology of CAS
Priority to CN202311304245.9A priority Critical patent/CN117649484A/en
Publication of CN117649484A publication Critical patent/CN117649484A/en
Priority to NL2038335A priority patent/NL2038335A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • G06T7/33Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/003Reconstruction from projections, e.g. tomography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/08Indexing scheme for image data processing or generation, in general involving all processing steps from image acquisition to 3D model generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10072Tomographic images
    • G06T2207/10081Computed x-ray tomography [CT]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Analysing Materials By The Use Of Radiation (AREA)

Abstract

本发明涉及一种基于CT图像的三维光学重建方法,包括:借助于同轴扫描装置获取待重建物体多角度的CT投影信号和光学数据;对所有角度的CT投影信号进行重建,得到CT三维体素数据并提取CT三维体素数据的CT表面体素数据;将光学数据中每一像素点和CT三维表面体素数据中对应像素点对齐配准,并将光学数据中像素点的坐标映射到CT三维表面体素数据的CT图像坐标系中,获得所有角度下具有CT图像坐标系中三维空间坐标的第一光学数据集;对该数据集中所有光学数据进行拼接,形成三维光学重建后的信息。上述方法通过利用CT扫描为三维光学重建提供物体准确的三维空间信息,可以生成准确、全面的光学三维重建物体。

The invention relates to a three-dimensional optical reconstruction method based on CT images, which includes: using a coaxial scanning device to obtain multi-angle CT projection signals and optical data of an object to be reconstructed; reconstructing CT projection signals from all angles to obtain a CT three-dimensional volume voxel data and extract the CT surface voxel data of the CT three-dimensional voxel data; align each pixel point in the optical data with the corresponding pixel point in the CT three-dimensional surface voxel data, and map the coordinates of the pixel points in the optical data to In the CT image coordinate system of the CT three-dimensional surface voxel data, the first optical data set with three-dimensional spatial coordinates in the CT image coordinate system at all angles is obtained; all optical data in this data set are spliced to form three-dimensional optically reconstructed information . The above method can generate accurate and comprehensive optical three-dimensional reconstructed objects by using CT scanning to provide accurate three-dimensional spatial information of the object for three-dimensional optical reconstruction.

Description

一种基于CT图像的三维光学重建方法A three-dimensional optical reconstruction method based on CT images

技术领域Technical field

本发明属于三维光学重建技术领域,尤其涉及一种基于CT图像的三维光学重建方法。The invention belongs to the technical field of three-dimensional optical reconstruction, and in particular relates to a three-dimensional optical reconstruction method based on CT images.

背景技术Background technique

三维重建(3-dimensional reconstruction)是指将二维图像或投影数据转化为三维物体的空间信息,重构出的模型方便计算机显示和进一步处理,在医学、生物学、工程学、计算机视觉等多个领域有广泛的应用,对于研究和分析物体的结构和形态具有重要意义。随着成像技术的不断进步,高分辨率三维重建成为一个重要的研究方向。研究人员通过改进算法、使用高分辨率传感器和改进数据采集方法等手段,以实现更精确和详细的三维重建结果。在相关技术中,基于深度相机的三维重构方法可以提供物体的深度信息,因此可以直接建模,主要有结构光投影(Structured light projection)和TOF飞行时间(Time offlight)方法。结构光投影方法是利用光源向被测物体投影按一定规则编码的图像,编码图案受到物体表面形状的调制而产生形变。利用相机拍摄带有形变的结构光,通过相机与投影光源之间的位置关系和结构光形变的程度获得被探测物体的深度信息。该方法虽然精确度高,但是容易受物体周围环境光干扰,而且结构光投影仪必须预先标定。TOF飞行时间方法通过记录光束传播时间来计算被测物体表面的深度距离。系统发射装置发射脉冲信号,经被测物体反射后被探测器接收,通过光信号从发出到接收的时间与光速便可以计算出深度值。TOF技术在长距离或弱光条件下可能受到噪声和精度限制,其分辨率较低,无法实现高精度的三维重建,进而无法准确还原物体的形状和几何结构。Three-dimensional reconstruction refers to converting two-dimensional images or projection data into spatial information of three-dimensional objects. The reconstructed model is convenient for computer display and further processing. It is used in medicine, biology, engineering, computer vision, etc. It has a wide range of applications in various fields and is of great significance for studying and analyzing the structure and form of objects. With the continuous advancement of imaging technology, high-resolution three-dimensional reconstruction has become an important research direction. Researchers improve algorithms, use high-resolution sensors and improve data acquisition methods to achieve more accurate and detailed 3D reconstruction results. In related technologies, three-dimensional reconstruction methods based on depth cameras can provide depth information of objects and therefore can be directly modeled. They mainly include structured light projection and TOF time-of-flight (Time offlight) methods. The structured light projection method uses a light source to project an image encoded according to certain rules to the object being measured. The encoding pattern is modulated by the shape of the object's surface and deforms. A camera is used to capture deformed structured light, and the depth information of the detected object is obtained through the positional relationship between the camera and the projection light source and the degree of deformation of the structured light. Although this method is highly accurate, it is easily interfered by ambient light around the object, and the structured light projector must be calibrated in advance. The TOF time-of-flight method calculates the depth distance of the surface of the measured object by recording the beam propagation time. The system transmitting device emits a pulse signal, which is received by the detector after being reflected by the object being measured. The depth value can be calculated based on the time from emission to reception of the optical signal and the speed of light. TOF technology may be limited by noise and accuracy at long distances or under low-light conditions. Its resolution is low and it cannot achieve high-precision three-dimensional reconstruction, and thus cannot accurately restore the shape and geometric structure of the object.

发明内容Contents of the invention

(一)要解决的技术问题(1) Technical problems to be solved

为了解决现有技术的上述问题,本发明提供一种基于CT图像的三维光学重建方法。In order to solve the above problems of the prior art, the present invention provides a three-dimensional optical reconstruction method based on CT images.

(二)技术方案(2) Technical solutions

为了达到上述目的,本发明采用的主要技术方案包括:In order to achieve the above objectives, the main technical solutions adopted by the present invention include:

本发明提供了一种基于CT图像的三维光学重建方法,包括:The present invention provides a three-dimensional optical reconstruction method based on CT images, including:

S10、借助于同轴扫描装置获取待重建物体多角度的CT投影信号和光学数据;所述多角度中每一角度为旋转的同轴扫描装置相对于静止的待重建物体的旋转角度;同轴扫描装置中固定有CT成像设备和与该CT成像设备具有安装夹角的光学成像设备;S10. Acquire multi-angle CT projection signals and optical data of the object to be reconstructed with the help of a coaxial scanning device; each of the multiple angles is the rotation angle of the rotating coaxial scanning device relative to the stationary object to be reconstructed; coaxial A CT imaging device and an optical imaging device having an installation angle with the CT imaging device are fixed in the scanning device;

S20、根据重建算法对所有角度的CT投影信号进行重建,得到待重建物体的CT三维体素数据,并提取物体CT三维体素数据的表面体素数据,得到待重建物体的CT三维表面体素数据;S20. Reconstruct the CT projection signals from all angles according to the reconstruction algorithm to obtain the CT three-dimensional voxel data of the object to be reconstructed, and extract the surface voxel data of the CT three-dimensional voxel data of the object to obtain the CT three-dimensional surface voxel of the object to be reconstructed. data;

S30、将所述光学数据中每一像素点和CT三维表面体素数据中对应像素点对齐配准,以及将对齐配准的光学数据中像素点的坐标映射到CT三维表面体素数据的CT图像坐标系中,获得所有角度下具有CT图像坐标系中三维空间坐标的第一光学数据集;S30. Align and register each pixel point in the optical data with the corresponding pixel point in the CT three-dimensional surface voxel data, and map the coordinates of the pixel points in the aligned optical data to the CT of the CT three-dimensional surface voxel data. In the image coordinate system, obtain the first optical data set with three-dimensional spatial coordinates in the CT image coordinate system at all angles;

S40、将第一光学数据集中所有光学数据进行拼接,形成三维光学重建后的信息。S40. Splice all the optical data in the first optical data set to form three-dimensional optically reconstructed information.

可选地,所述光学成像设备为高光谱成像设备,则所述光学数据为高光谱数据;Optionally, the optical imaging device is a hyperspectral imaging device, then the optical data is hyperspectral data;

所述光学成像设备为荧光成像设备,则所述光学数据为荧光光学数据;If the optical imaging device is a fluorescence imaging device, the optical data is fluorescence optical data;

所述光学成像设备为RGB成像设备,则所述光学数据为RGB光学数据;If the optical imaging device is an RGB imaging device, the optical data is RGB optical data;

多角度的CT投影信号和光学数据包括:N个CT投影信号和N个光学数据;Multi-angle CT projection signals and optical data include: N CT projection signals and N optical data;

其中,同轴扫描装置的旋转架每次相对物体转过角度为则同轴扫描装置相对物体转过360°时产生的数据个数为/> Among them, the rotating frame of the coaxial scanning device rotates relative to the object through an angle of Then the number of data generated when the coaxial scanning device rotates 360° relative to the object is/>

可选地,所述S20中的根据重建算法对所有角度的CT投影信号进行重建,得到待重建物体的CT三维体素数据,包括:Optionally, in S20, CT projection signals from all angles are reconstructed according to the reconstruction algorithm to obtain CT three-dimensional voxel data of the object to be reconstructed, including:

对每一角度的CT投影信号进行预处理,采用滤波反投影算法对所有角度的预处理后的CT投影信号进行重建,得到待重建物体的CT三维体素数据。The CT projection signals from each angle are preprocessed, and the filtered back-projection algorithm is used to reconstruct the preprocessed CT projection signals from all angles to obtain the CT three-dimensional voxel data of the object to be reconstructed.

可选地,采用滤波反投影算法对所有角度的预处理后的CT投影信号进行重建,得到待重建物体的CT三维体素数据,包括:Optionally, use the filtered back-projection algorithm to reconstruct the preprocessed CT projection signals from all angles to obtain the CT three-dimensional voxel data of the object to be reconstructed, including:

S21、对N个预处理后的CT投影信号分别进行一维傅里叶变换,得到N个频域中的第一投影信号;S21. Perform one-dimensional Fourier transform on the N preprocessed CT projection signals to obtain N first projection signals in the frequency domain;

S22、对N个频域中的第一投影信号进行滤波处理,得到滤波后的N个第二投影信号;S22. Filter the first projection signals in N frequency domains to obtain filtered N second projection signals;

S23、将N个第二投影信号进行一维傅里叶逆变换,还原到时域,得到时域中的滤波后的N个第三投影信号;S23. Perform one-dimensional inverse Fourier transform on the N second projection signals, restore them to the time domain, and obtain filtered N third projection signals in the time domain;

S24、对每一个第三投影信号进行反投影,反投影是将每个角度下的投影信号按照各自的原投影路径,平均分配到经过物体的每一个点上,将所有角度下物体上同一点的反投影信号进行累加,得到物体各点的射线衰减系数,重建出物体的CT三维体素数据;S24. Back-project each third projection signal. The back-projection is to evenly distribute the projection signal at each angle to each point passing through the object according to its original projection path, and project the same point on the object at all angles. The back-projection signals are accumulated to obtain the ray attenuation coefficient of each point of the object, and the CT three-dimensional voxel data of the object is reconstructed;

所述CT三维体素数据包括:重建物体CT图像中各体素的三维空间坐标以及各体素位置的HU值,该HU值反应了待重建物体对X射线的吸收程度。The CT three-dimensional voxel data includes: the three-dimensional spatial coordinates of each voxel in the CT image of the reconstructed object and the HU value of each voxel position. The HU value reflects the degree of X-ray absorption of the object to be reconstructed.

可选地,所述S20中的提取物体CT三维体素数据的表面体素数据,得到待重建物体的CT三维表面体素数据,还包括:Optionally, extracting the surface voxel data of the CT three-dimensional voxel data of the object in S20 to obtain the CT three-dimensional surface voxel data of the object to be reconstructed also includes:

S25、对所述CT三维体素数据进行优化处理,获得优化处理后的CT三维体素数据;S25. Optimize the CT three-dimensional voxel data to obtain optimized CT three-dimensional voxel data;

S26、对优化处理后的CT三维体素数据提取所述CT三维体素数据的表面信息;S26. Extract the surface information of the CT three-dimensional voxel data from the optimized CT three-dimensional voxel data;

S27、基于预先设定的体素数据阈值,将所述CT三维体素数据的表面信息划分为物体所属体素数据和背景所属体素数据;S27. Based on the preset voxel data threshold, divide the surface information of the CT three-dimensional voxel data into voxel data belonging to the object and voxel data belonging to the background;

S28、基于物体所属体素数据,采用遍历方式获取物体边界的体素数据;将物体所属体素数据中非物体边界的体素数据的HU值设置为0,得到物体的表面体素数据即CT三维表面体素数据。S28. Based on the voxel data of the object, use traversal method to obtain the voxel data of the object boundary; set the HU value of the non-object boundary voxel data in the voxel data of the object to 0 to obtain the surface voxel data of the object, that is, CT 3D surface voxel data.

可选地,所述S30包括:Optionally, the S30 includes:

同轴扫描装置相对物体旋转,每个成像位置的成像视角与物体夹角为CT成像设备与光学成像设备之间安装夹角为θ;The coaxial scanning device rotates relative to the object, and the angle between the imaging perspective and the object at each imaging position is The installation angle between the CT imaging equipment and the optical imaging equipment is θ;

同轴扫描装置各成像设备坐标系为:坐标原点位于旋转架的中心轴且与成像设备光轴位于同一高度,坐标Z轴由坐标原点指向各成像设备中心,X射线成像Z轴由坐标原点指向X射线中心,XY平面垂直于Z轴;The coordinate system of each imaging device of the coaxial scanning device is: the coordinate origin is located at the central axis of the rotating frame and is at the same height as the optical axis of the imaging device, the coordinate Z axis points from the coordinate origin to the center of each imaging device, and the X-ray imaging Z axis points from the coordinate origin X-ray center, the XY plane is perpendicular to the Z axis;

S31、针对每一个成像视角下的表面体素数据,选择XY平面为投影平面,沿着Z轴负方向进行正交投影,将含有物体表面体素的三维数据(x,y,z,HU)投影到对应角度下的XY平面内,平面内的每个像素点为三维表面体素数据在投影平面上的投影位置,形成该角度下CT二维投影图像(x,y,HU);以获得所有成像视角/>下的CT二维投影图像;S31, for every imaging angle For the surface voxel data under In the plane, each pixel point in the plane is the projection position of the three-dimensional surface voxel data on the projection plane, forming the CT two-dimensional projection image (x, y, HU) at this angle; to obtain all imaging angles/> CT two-dimensional projection image below;

S32、对于成像视角下的CT二维投影图像和成像视角/>下的光学数据进行特征检测,获得该CT二维投影图像和光学数据中各自显著的特征点;S32. Regarding imaging angle CT two-dimensional projection images and imaging angles/> Perform feature detection on the optical data under the CT two-dimensional projection image and obtain the significant feature points in the optical data;

S33、获取各自显著的特征点的特征描述子并进行匹配,获取超过预设阈值的匹配的特征点;S33. Obtain the feature descriptors of respective significant feature points and perform matching, and obtain matching feature points that exceed the preset threshold;

S34、根据匹配的特征点对,获取成像视角下的CT二维投影图像和成像视角下的光学数据的空间坐标转换映射;S34. Obtain the imaging perspective based on the matched feature point pairs. CT two-dimensional projection image and imaging perspective Spatial coordinate transformation mapping of optical data;

S35、基于空间坐标转换映射将成像视角下的CT二维投影图像和成像视角下的光学数据进行配准;S35. Convert the imaging perspective based on spatial coordinate conversion mapping CT two-dimensional projection image and imaging perspective Perform registration with the optical data below;

基于所述S32至所述S35的方式,遍历所有成像视角将所有成像视角下CT二维投影图像和光学数据实现对齐配准。Based on the method from S32 to S35, all imaging angles are traversed Align and register CT two-dimensional projection images and optical data from all imaging angles.

可选地,所述S34包括:Optionally, the S34 includes:

S341、基于每个匹配的特征点对,将各成像设备所属的特征点的坐标除以该成像设备焦距获得归一化的特征点对坐标;S341. Based on each matching feature point pair, divide the coordinates of the feature points belonging to each imaging device by the focal length of the imaging device to obtain the normalized feature point pair coordinates;

S342、基于归一化的特征点对坐标,构建一个线性方程;S342. Construct a linear equation based on the normalized feature point pair coordinates;

设定p(x,y)和p’(x’,y’)是归一化的特征点对坐标;Set p(x,y) and p’(x’,y’) to be the normalized feature point pair coordinates;

p(x,y)对应CT二维投影图像,p’(x’,y’)对应光学数据;p(x,y) corresponds to the CT two-dimensional projection image, p’(x’,y’) corresponds to the optical data;

通过线性方程p′TFp=0,确定基础矩阵,其中F为基础矩阵;Determine the basic matrix through the linear equation p′ T Fp=0, where F is the basic matrix;

集合所有特征点对所构建的线性方程,求解基础矩阵;Set the linear equation constructed by all pairs of feature points to solve the basic matrix;

S343、基于基础矩阵,使用CT成像设备和光学成像设备的内参进行三角测量,将归一化的特征点对坐标映射到世界坐标系中的三维点上;S343. Based on the basic matrix, use the internal parameters of the CT imaging equipment and the optical imaging equipment to perform triangulation, and map the normalized feature point pair coordinates to three-dimensional points in the world coordinate system;

S344、利用世界坐标系中归一化的特征点对映射的三维点坐标,获取所述空间坐标转换映射,该空间坐标转换映射包括平移矢量和旋转矩阵。S344. Use the three-dimensional point coordinates mapped by the normalized feature point pairs in the world coordinate system to obtain the spatial coordinate transformation mapping. The spatial coordinate transformation mapping includes a translation vector and a rotation matrix.

可选地,所述S34包括:Optionally, the S34 includes:

对每个角度下光学数据中的像素位置转换为配准后的CT二维投影图像坐标系统中的坐标;Convert the pixel positions in the optical data at each angle into coordinates in the registered CT two-dimensional projection image coordinate system;

建立光学数据中的像素与CT三维体素数据中的空间位置之间的对应关系,将每个角度下的光学数据中的像素信息对应到CT三维表面体素数据的空间位置上,获得所有角度下具有三维空间坐标的第一光学数据集。Establish a correspondence between the pixels in the optical data and the spatial positions in the CT three-dimensional voxel data, map the pixel information in the optical data at each angle to the spatial positions of the CT three-dimensional surface voxel data, and obtain all angles The first optical data set with three-dimensional spatial coordinates.

可选地,所述S40包括:Optionally, the S40 includes:

采用所述S30方式遍历所有相邻的光学数据,将相邻光学数据进行配准,识别重叠区域,基于识别的重叠区域将第一光学数据集中所有光学数据进行拼接,形成三维光学重建后的信息;The S30 method is used to traverse all adjacent optical data, register the adjacent optical data, identify overlapping areas, and splice all optical data in the first optical data set based on the identified overlapping areas to form three-dimensional optically reconstructed information. ;

对三维光学重建后的信息进行优化,得到完整的三维光学重建的信息。Optimize the three-dimensional optically reconstructed information to obtain complete three-dimensional optically reconstructed information.

第二方面,本发明还提供一种计算设备,包括:存储器和处理器,所述存储器中存储计算机程序,所述处理器执行所述存储器中的计算机程序,并执行上述第一方面任一所述的一种基于CT图像的三维光学重建方法的步骤。In a second aspect, the present invention also provides a computing device, including: a memory and a processor, the memory stores a computer program, the processor executes the computer program in the memory, and executes any of the above-mentioned first aspects. The steps of the three-dimensional optical reconstruction method based on CT images are described.

(三)有益效果(3) Beneficial effects

本发明的三维光学重建方法,无需提前预先标定,受环境光影响小并且提高三维光学数据重建的精确度。CT图像具有较高的空间分辨率,能够提供物体的细微结构和准确的三维空间坐标,这使得基于CT图像的三维光学重建方法能够实现高精度的三维光学重建,准确还原物体的光学图像中的形状和几何结构,尤其适用于表面变化剧烈,即深度变化剧烈的物体的三维光学重建。The three-dimensional optical reconstruction method of the present invention does not require pre-calibration in advance, is less affected by ambient light, and improves the accuracy of three-dimensional optical data reconstruction. CT images have high spatial resolution and can provide the fine structure and accurate three-dimensional spatial coordinates of the object. This enables the three-dimensional optical reconstruction method based on CT images to achieve high-precision three-dimensional optical reconstruction and accurately restore the objects in the optical image. Shape and geometric structure, especially suitable for three-dimensional optical reconstruction of objects with drastic surface changes, that is, drastic depth changes.

附图说明Description of drawings

图1为本发明提供的一种基于CT图像的三维光学重建方法的流程示意图;Figure 1 is a schematic flow chart of a three-dimensional optical reconstruction method based on CT images provided by the present invention;

图2(a)和图2(b)均为本发明提供的同轴扫描装置的示意图;Figure 2(a) and Figure 2(b) are both schematic diagrams of the coaxial scanning device provided by the present invention;

图3(a)为成像设备相对物体转过角度时X射线成像示意图;Figure 3(a) shows the rotation of the imaging device relative to the object Schematic diagram of X-ray imaging at angle;

图3(b)为重构后的包含物体和背景的CT三维体素数据经过分割物体背景以及表面提取后的CT表面体素数据示意图;Figure 3(b) is a schematic diagram of the reconstructed CT three-dimensional voxel data containing the object and background, segmenting the object background and extracting the surface of the CT surface voxel data;

图3(c)为对CT表面体素数据进行二维投影得到CT二维投影图像示意图;Figure 3(c) is a schematic diagram of a CT two-dimensional projection image obtained by two-dimensional projection of CT surface voxel data;

图3(d)为成像设备相对物体转过角度时光学成像示意图;Figure 3(d) shows the rotation of the imaging device relative to the object Schematic diagram of optical imaging at angle;

图3(e)为采集的光学图像数据示意图;Figure 3(e) is a schematic diagram of the collected optical image data;

图3(f)为将角度下的CT二维投影图像与/>角度下的光学数据进行配准示意图。Figure 3(f) shows the CT two-dimensional projection image under angle and/> Schematic diagram of registration of optical data at different angles.

具体实施方式Detailed ways

为了更好的理解上述技术方案,下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更清楚、透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。In order to better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that the present invention may be understood more clearly and thoroughly, and the scope of the present invention may be fully conveyed to those skilled in the art.

本发明实施例的三维光学重建方法并不属于医学领域人体图像的光学重建,本发明实施例中待重建的物体可以是体积较大的植物或其他粮食类的植物。The three-dimensional optical reconstruction method in the embodiment of the present invention does not belong to the optical reconstruction of human body images in the medical field. The objects to be reconstructed in the embodiment of the present invention may be larger plants or other food plants.

实施例一Embodiment 1

如图1至图3所示,本发明提供一种基于CT图像的三维光学重建方法,该方法的执行主体为任一计算设备,其包括下述步骤:As shown in Figures 1 to 3, the present invention provides a three-dimensional optical reconstruction method based on CT images. The method is executed by any computing device and includes the following steps:

S10、借助于同轴扫描装置获取待重建物体多角度的CT投影信号和光学数据;所述多角度中每一角度为旋转的同轴扫描装置相对于静止的待重建物体的旋转角度;同轴扫描装置中固定有CT成像设备和与该CT成像设备具有安装夹角的光学成像设备,本实施例的计算设备可电连接CT成像设备和光学成像设备。在其他实施例中,计算设备的处理功能可集成在CT成像设备或集成在光学成像设备中。S10. Acquire multi-angle CT projection signals and optical data of the object to be reconstructed with the help of a coaxial scanning device; each of the multiple angles is the rotation angle of the rotating coaxial scanning device relative to the stationary object to be reconstructed; coaxial A CT imaging device and an optical imaging device having an installation angle with the CT imaging device are fixed in the scanning device. The computing device of this embodiment can be electrically connected to the CT imaging device and the optical imaging device. In other embodiments, the processing functionality of the computing device may be integrated with the CT imaging device or integrated with the optical imaging device.

该步骤中的光学数据可理解为光学图像,在本实施例中均以光学数据进行说明。The optical data in this step can be understood as optical images. In this embodiment, optical data are used for explanation.

举例来说,所述光学成像设备为高光谱成像设备,则所述光学数据为高光谱数据;For example, if the optical imaging device is a hyperspectral imaging device, then the optical data is hyperspectral data;

所述光学成像设备为荧光成像设备,则所述光学数据为荧光光学数据。上述的光学成像设备可为RGB成像设备,则光学数据还可以是RGB光学数据。If the optical imaging device is a fluorescence imaging device, the optical data is fluorescence optical data. The above-mentioned optical imaging device may be an RGB imaging device, and the optical data may also be RGB optical data.

在本实施例中,多角度的CT投影信号和光学数据包括:N个CT投影信号和N个光学数据;In this embodiment, the multi-angle CT projection signals and optical data include: N CT projection signals and N optical data;

其中,同轴扫描装置的旋转架每次相对物体转过角度为则同轴扫描装置相对物体转过360°时产生的数据个数为/>N为大于等于1的自然数。优选N为大于等于10的自然数。在本实施例中,N可以为360,即,旋转架相对物体转过角度从0°到360°,将每个角度下的数据依次记为/>例如,每次转过角度为1°时,数据个数为360个。不同角度精度得到不同的CT成像分辨率。Among them, the rotating frame of the coaxial scanning device rotates relative to the object through an angle of Then the number of data generated when the coaxial scanning device rotates 360° relative to the object is/> N is a natural number greater than or equal to 1. Preferably, N is a natural number equal to or greater than 10. In this embodiment, N can be 360, that is, the rotation angle of the rotating frame relative to the object is from 0° to 360°, and the data at each angle are recorded as/> For example, each time the rotation angle is 1°, the number of data is 360. Different angle accuracy results in different CT imaging resolutions.

S20、根据重建算法对所有角度的CT投影信号进行重建,得到待重建物体的CT三维体素数据,并提取物体CT三维体素数据的表面体素数据,得到待重建物体的CT三维表面体素数据。S20. Reconstruct the CT projection signals from all angles according to the reconstruction algorithm to obtain the CT three-dimensional voxel data of the object to be reconstructed, and extract the surface voxel data of the CT three-dimensional voxel data of the object to obtain the CT three-dimensional surface voxel of the object to be reconstructed. data.

通常,对每一角度的CT投影信号进行预处理,采用滤波反投影算法对所有角度的预处理后的CT投影信号进行重建,得到待重建物体的CT三维体素数据,进而提取所述CT三维体素数据的表面信息,得到待重建物体的CT三维表面体素数据。Usually, the CT projection signals from each angle are preprocessed, and a filtered back-projection algorithm is used to reconstruct the preprocessed CT projection signals from all angles to obtain the CT three-dimensional voxel data of the object to be reconstructed, and then extract the CT three-dimensional voxel data. The surface information of the voxel data is obtained to obtain the CT three-dimensional surface voxel data of the object to be reconstructed.

S30、将所述光学数据中每一像素点和CT三维表面体素数据中对应像素点的对齐配准,以及将对齐配准的光学数据中像素点的坐标映射到CT三维表面体素数据的CT图像坐标系中,获得所有角度下具有CT图像坐标系中三维空间坐标的第一光学数据集。S30. Align and register each pixel point in the optical data with the corresponding pixel point in the CT three-dimensional surface voxel data, and map the coordinates of the pixel points in the aligned optical data to the CT three-dimensional surface voxel data. In the CT image coordinate system, a first optical data set with three-dimensional spatial coordinates in the CT image coordinate system at all angles is obtained.

S40、将第一光学数据集中所有光学数据进行拼接,形成三维光学重建后的信息。S40. Splice all the optical data in the first optical data set to form three-dimensional optically reconstructed information.

本实施例的方法,无需提前预先标定,受环境光影响小并且提高三维光学数据重建的精确度。CT图像具有较高的空间分辨率,能够提供物体的细微结构和准确的三维空间坐标,这使得基于CT图像的三维光学重建方法能够实现高精度的三维光学重建,准确还原物体的光学图像中的形状和几何结构,尤其适用于表面变化剧烈,即深度变化剧烈的物体的三维光学重建。The method of this embodiment does not require pre-calibration in advance, is less affected by ambient light, and improves the accuracy of three-dimensional optical data reconstruction. CT images have high spatial resolution and can provide the fine structure and accurate three-dimensional spatial coordinates of the object. This enables the three-dimensional optical reconstruction method based on CT images to achieve high-precision three-dimensional optical reconstruction and accurately restore the objects in the optical image. Shape and geometric structure, especially suitable for three-dimensional optical reconstruction of objects with drastic surface changes, that is, drastic depth changes.

为更好的理解上述的步骤S20和步骤S30的过程,下面对步骤S20和步骤S30进行逐个步骤的说明。In order to better understand the above-mentioned processes of step S20 and step S30, step S20 and step S30 will be explained step by step below.

针对步骤S20的过程包括下述子步骤:The process for step S20 includes the following sub-steps:

S21、对N个预处理后的CT投影信号分别进行一维傅里叶变换,得到N个频域中的第一投影信号;S21. Perform one-dimensional Fourier transform on the N preprocessed CT projection signals to obtain N first projection signals in the frequency domain;

S22、对N个频域中的第一投影信号进行滤波处理,得到滤波后的N个第二投影信号;S22. Filter the first projection signals in N frequency domains to obtain filtered N second projection signals;

S23、将N个第二投影信号进行一维傅里叶逆变换,还原到时域,得到时域中的滤波后的N个第三投影信号;S23. Perform one-dimensional inverse Fourier transform on the N second projection signals, restore them to the time domain, and obtain filtered N third projection signals in the time domain;

S24、对每一个第三投影信号进行反投影,反投影是将每个角度下的投影信号按照各自的原投影路径,平均分配到经过物体的每一个点上,将所有角度下在物体上同一点的反投影信号进行累加,得到物体各点的射线衰减系数,重建出物体的CT三维体素数据。S24. Back-project each third projection signal. Back-projection is to evenly distribute the projection signal at each angle to each point passing through the object according to its original projection path, and project all angles on the object at the same time. The back-projection signals of one point are accumulated to obtain the ray attenuation coefficient of each point of the object, and the CT three-dimensional voxel data of the object is reconstructed.

也就是说,所有角度下累加得到的一个CT三维体素数据。In other words, a CT three-dimensional voxel data accumulated from all angles.

所述CT三维体素数据包括:重建物体CT图像中各体素的三维空间坐标以及各体素位置的HU值(Hounsfiled Unit值),该HU值反应了待重建物体对X射线的吸收程度。The CT three-dimensional voxel data includes: the three-dimensional spatial coordinates of each voxel in the CT image of the reconstructed object and the HU value (Hounsfiled Unit value) of each voxel position. The HU value reflects the degree of X-ray absorption of the object to be reconstructed.

在本领域中,三维图像中的数据格点称为体素,二维图像中称为像素。以下子步骤是对S20中的提取物体CT三维体素数据的表面体素数据,得到待重建物体的CT三维表面体素数据的详细说明。In this field, data grid points in three-dimensional images are called voxels, and in two-dimensional images they are called pixels. The following sub-steps are detailed descriptions of extracting the surface voxel data of the CT three-dimensional voxel data of the object in S20 and obtaining the CT three-dimensional surface voxel data of the object to be reconstructed.

S25、对所述CT三维体素数据进行优化处理,获得优化处理后的CT三维体素数据;S25. Optimize the CT three-dimensional voxel data to obtain optimized CT three-dimensional voxel data;

S26、对所述优化处理后的CT三维体素数据提取所述CT三维体素数据的表面信息。S26: Extract surface information of the CT three-dimensional voxel data from the optimized CT three-dimensional voxel data.

例如,对于上述CT体素数据,选择可以区分物体体素和背景体素的合适的阈值,该阈值将用于将体素分为两个部分:物体体素数据和背景体素数据;使用选择的阈值将体素数据分割成两个区域:一个是物体的体素数据,一个是背景的体素数据,如子步骤S27的记载。For example, for the above CT voxel data, select an appropriate threshold that can distinguish object voxels from background voxels. This threshold will be used to divide the voxels into two parts: object voxel data and background voxel data; use select The threshold of divides the voxel data into two areas: one is the voxel data of the object, and the other is the voxel data of the background, as recorded in sub-step S27.

S27、基于预先设定的体素数据阈值,将所述CT三维体素数据划分为物体所属体素数据和背景所属体素数据;S27. Based on the preset voxel data threshold, divide the CT three-dimensional voxel data into voxel data belonging to the object and voxel data belonging to the background;

S28、基于物体所属体素数据,采用遍历方式获取物体边界的体素数据;S28. Based on the voxel data of the object, use traversal method to obtain the voxel data of the object boundary;

即,遍历所有的物体的体素数据,对于每个体素数据,检查其相邻体素数据是否属于背景体素数据,如果某个体素数据的相邻体素数据中有背景体素数据,那么这个体素数据就在物体的边界上;That is, traverse the voxel data of all objects, and for each voxel data, check whether its adjacent voxel data belongs to the background voxel data. If there is background voxel data in the adjacent voxel data of a certain voxel data, then This voxel data is right on the boundary of the object;

S29、将物体体素数据中非物体边界的体素数据的HU值设置为0,得到物体的表面体素数据即CT三维表面体素数据。S29. Set the HU value of the non-object boundary voxel data in the object voxel data to 0 to obtain the object's surface voxel data, that is, the CT three-dimensional surface voxel data.

例如,将不在边界的体素数据的HU值设置为0,边界体素数据HU值维持不变,这样形成的三维体素数据只含有物体表面体素数据。For example, the HU value of the voxel data that is not at the boundary is set to 0, and the HU value of the boundary voxel data remains unchanged. The three-dimensional voxel data formed in this way only contains the object surface voxel data.

通过上述子步骤S21至子步骤S29,其说明一种步骤S20中的获取待重建物体的CT三维体素数据,以及获取CT三维表面体素数据的过程,在其他实施例还可采用其他方式实现,本实施例不对其限定。Through the above sub-steps S21 to sub-step S29, a process of obtaining CT three-dimensional voxel data of the object to be reconstructed and obtaining CT three-dimensional surface voxel data in step S20 is described. In other embodiments, other methods can be used to implement it. , this embodiment does not limit it.

本实施例中,同轴扫描装置相对物体旋转,每个成像位置的成像视角与物体夹角为CT成像设备与光学成像设备之间安装夹角为θ;In this embodiment, the coaxial scanning device rotates relative to the object, and the angle between the imaging angle of each imaging position and the object is The installation angle between the CT imaging equipment and the optical imaging equipment is θ;

(转过的角度指的是每个成像位置,有N个成像位置,则有N个/>N个成像数据);(the angle turned Refers to each imaging position. If there are N imaging positions, then there are N/> N imaging data);

本实施例中定义各成像设备坐标系为:坐标原点位于旋转架的中心轴且与成像设备光轴位于同一高度,坐标Z轴由坐标原点指向成像设备中心,X射线成像Z轴由坐标原点指向X射线中心,XY平面垂直于Z轴。In this embodiment, the coordinate system of each imaging device is defined as follows: the coordinate origin is located at the central axis of the rotating frame and is at the same height as the optical axis of the imaging device, the coordinate Z axis points from the coordinate origin to the center of the imaging device, and the X-ray imaging Z axis points from the coordinate origin. X-ray center, the XY plane is perpendicular to the Z axis.

相应地,步骤S30的过程包括下述子步骤:Correspondingly, the process of step S30 includes the following sub-steps:

S31、针对每一个成像视角下的表面体素数据,选择XY平面为投影平面,沿着Z轴负方向进行正交投影,将含有物体表面体素的三维数据(x,y,z,HU)投影到对应角度下的XY平面内,平面内的每个像素点为三维表面体素数据在投影平面上的投影位置,形成该角度下CT的二维投影图像(x,y,HU);以获得所有成像视角/>下的CT二维投影图像。S31, for every imaging angle For the surface voxel data under In the plane, each pixel point in the plane is the projection position of the three-dimensional surface voxel data on the projection plane, forming a two-dimensional CT projection image (x, y, HU) at this angle; to obtain all imaging angles/> The two-dimensional CT projection image below.

S32、对于成像视角下的CT二维投影图像和成像视角/>下的光学数据进行特征检测,获得该CT二维投影图像和光学数据中各自显著的特征点;S32. Regarding imaging angle CT two-dimensional projection images and imaging angles/> Perform feature detection on the optical data under the CT two-dimensional projection image and obtain the significant feature points in the optical data;

S33、获取各自显著的特征点的特征描述子并进行匹配,获取超过预设阈值的匹配的特征点对;S33. Obtain the feature descriptors of respective significant feature points and perform matching, and obtain matching feature point pairs that exceed the preset threshold;

S34、根据匹配的特征点对,获取成像视角下的CT二维投影图像和成像视角下的光学数据的空间坐标转换映射;S34. Obtain the imaging perspective based on the matched feature point pairs. CT two-dimensional projection image and imaging perspective Spatial coordinate conversion mapping of optical data;

该子步骤S34还包括下述的子步骤:This sub-step S34 also includes the following sub-steps:

S341、基于每个匹配的特征点对,将各成像设备所属的特征点的坐标除以该成像设备焦距获得归一化的特征点对坐标;S341. Based on each matching feature point pair, divide the coordinates of the feature points belonging to each imaging device by the focal length of the imaging device to obtain the normalized feature point pair coordinates;

S342、基于归一化的特征点对坐标,构建一个线性方程;S342. Construct a linear equation based on the normalized feature point pair coordinates;

设定p(x,y)和p’(x’,y’)是归一化的特征点对坐标;Set p(x,y) and p’(x’,y’) to be the normalized feature point pair coordinates;

p(x,y)对应CT二维投影图像,p’(x’,y’)对应光学数据;p(x,y) corresponds to the CT two-dimensional projection image, p’(x’,y’) corresponds to the optical data;

通过线性方程p′TFp=0,确定基础矩阵,其中F为基础矩阵,T为转置;Through the linear equation p′ T Fp=0, determine the basic matrix, where F is the basic matrix and T is the transpose;

集合所有特征点对所构建的线性方程,求解基础矩阵;Set the linear equation constructed by all pairs of feature points to solve the basic matrix;

S343、基于基础矩阵,使用CT二维投影图像所属的成像设备和光学数据所属的成像设备的内参进行三角测量,将归一化的特征点对坐标映射到世界坐标系中的三维点上;S343. Based on the basic matrix, use the internal parameters of the imaging device to which the CT two-dimensional projection image belongs and the imaging device to which the optical data belongs to perform triangulation, and map the normalized feature point pair coordinates to a three-dimensional point in the world coordinate system;

S344、利用世界坐标系中归一化的特征点对映射的三维点坐标,获取所述空间坐标转换映射,该空间坐标转换映射包括平移矢量和旋转矩阵。S344. Use the three-dimensional point coordinates mapped by the normalized feature point pairs in the world coordinate system to obtain the spatial coordinate transformation mapping. The spatial coordinate transformation mapping includes a translation vector and a rotation matrix.

S35、基于空间坐标转换映射将成像视角下的CT二维投影图像和成像视角下的光学数据进行配准;S35. Convert the imaging perspective based on spatial coordinate conversion mapping CT two-dimensional projection image and imaging perspective Perform registration with the optical data below;

基于子步骤S32至子步骤S35的方式,遍历所有成像视角将所有成像视角下CT二维投影图像和光学数据实现对齐配准。Based on the method of sub-step S32 to sub-step S35, all imaging angles are traversed Align and register CT two-dimensional projection images and optical data from all imaging angles.

对每个角度下光学数据中的像素位置转换为配准后的CT二维投影图像坐标系统中的坐标;Convert the pixel positions in the optical data at each angle into coordinates in the registered CT two-dimensional projection image coordinate system;

建立光学数据中的像素与CT三维体素数据中的空间位置之间的对应关系,将每个角度下的光学数据中的像素信息对应到CT三维表面体素的空间位置上,获得所有角度下具有三维空间坐标的第一光学数据集。Establish a correspondence between the pixels in the optical data and the spatial positions in the CT three-dimensional voxel data, map the pixel information in the optical data at each angle to the spatial positions of the CT three-dimensional surface voxels, and obtain the spatial positions of the CT three-dimensional surface voxels at all angles. The first optical data set with three-dimensional spatial coordinates.

上述过程不仅适用高光谱图像,也使用荧光光学数据和RGB光学数据等,本实施例不对其限定,根据实际需要配置同轴扫描装置的光学成像数据,进而获取对应的光学数据。The above process is not only applicable to hyperspectral images, but also uses fluorescence optical data, RGB optical data, etc. This embodiment is not limited thereto. The optical imaging data of the coaxial scanning device is configured according to actual needs, and then the corresponding optical data is obtained.

实施例二Embodiment 2

结合图2(a)、图2(b)、图3(a)至图3(f)详细示出了本实施例的基于CT图像的三维光学重建方法,本实施例的光学数据为荧光图像或者其他光学图像。本实施例的方法可包括下述步骤:The three-dimensional optical reconstruction method based on CT images in this embodiment is shown in detail in conjunction with Figure 2(a), Figure 2(b), Figure 3(a) to Figure 3(f). The optical data in this embodiment is a fluorescence image. or other optical images. The method of this embodiment may include the following steps:

201、首先,借助于同轴扫描装置获取待重建物体多角度下的CT投影信号和荧光数据,获取三维数据的过程中物体是相对不动的。每一角度下均有一个CT投影信号和荧光数据;该多角度可为同轴扫描装置中成像设备绕待重建物体旋转的角度。201. First, use a coaxial scanning device to obtain CT projection signals and fluorescence data from multiple angles of the object to be reconstructed. The object is relatively motionless during the process of obtaining three-dimensional data. There is a CT projection signal and fluorescence data at each angle; the multiple angles can be the angles at which the imaging equipment in the coaxial scanning device rotates around the object to be reconstructed.

本实施例的同轴扫描装置包括:旋转架,固定在旋转架上的CT成像设备(即X射线源、X射线探测器)、荧光成像设备(即光源和相机)。The coaxial scanning device of this embodiment includes: a rotating frame, CT imaging equipment (ie, X-ray source, X-ray detector), and fluorescence imaging equipment (ie, light source and camera) fixed on the rotating frame.

如图2(a)和图2(b)所示为同轴扫描装置的示意图,其中XYZ为物体坐标系,X’Y’Z为旋转架坐标系。CT成像设备(含X射线源和射线探测器,X射线源对着射线探测器,中间为待重建物体)和光学成像设备(如荧光相机,这里的光学成像设备不限于荧光相机,也可以是别的光学成像设备,并且不限于一种,也可以同时有多种光学成像设备。这里以荧光成像相机为例)安装在环形旋转架上,成像设备中心高度一致,X射线源与荧光成像相机安装夹角为θ,待重建物体位于环形旋转架的中心。Figure 2(a) and Figure 2(b) show the schematic diagram of the coaxial scanning device, where XYZ is the object coordinate system and X’Y’Z is the rotating frame coordinate system. CT imaging equipment (including X-ray source and ray detector, the Other optical imaging equipment, and is not limited to one type, can also have multiple optical imaging equipment at the same time. Here, a fluorescence imaging camera is taken as an example) installed on a ring rotating frame, the center height of the imaging equipment is consistent, the X-ray source and the fluorescence imaging camera The installation angle is θ, and the object to be reconstructed is located in the center of the annular rotating frame.

成像时,物体不动,旋转架转动带动其上的成像设备绕着物体旋转(即物体坐标系保持不变,旋转架坐标系绕Z轴旋转),每转过一定角度(如该角度越小CT重建精度越高)完成一次成像。成像包括:During imaging, the object does not move, and the rotation of the rotating frame drives the imaging equipment on it to rotate around the object (that is, the object coordinate system remains unchanged, and the rotating frame coordinate system rotates around the Z axis). Each time it rotates through a certain angle (such as The smaller the angle, the higher the accuracy of CT reconstruction.) Complete one imaging. Imaging includes:

1)该角度下CT成像,主要指射线探测器接收到该角度下X射线经过物体衰减之后的射线强度信号,称为该角度下的CT投影信号;1) CT imaging at this angle mainly refers to the ray intensity signal received by the ray detector after the X-rays are attenuated by the object at this angle, which is called the CT projection signal at this angle;

2)在该角度下的荧光成像,是用于重建的光学图像数据。旋转一周完成所有角度下CT投影信号和光学图像数据的获取,假设每旋转1°成像一次,当旋转架带着设备旋转扫描了360°后,就能得到360个CT投影信号和360个荧光数据。2) Fluorescence imaging at this angle is the optical image data used for reconstruction. One rotation completes the acquisition of CT projection signals and optical image data at all angles. Assuming that imaging is performed every 1° of rotation, when the rotating frame rotates and scans 360° with the device, 360 CT projection signals and 360 fluorescence data can be obtained. .

202、数据预处理。202. Data preprocessing.

对CT投影信号进行预处理,以减少噪声和增强图像质量。CT projection signals are preprocessed to reduce noise and enhance image quality.

该数据预处理可采用现有方式实现,例如去除伪影、伽马校正、滤波等预处理。本实施例不对其限定,根据实际需要进行选择。This data preprocessing can be implemented using existing methods, such as preprocessing such as artifact removal, gamma correction, and filtering. This embodiment does not limit it, and it can be selected according to actual needs.

203、使用重建算法对所有角度的CT投影信号进行重建,得到待重建物体的CT三维体素数据。203. Use the reconstruction algorithm to reconstruct the CT projection signals from all angles to obtain the CT three-dimensional voxel data of the object to be reconstructed.

CT重建本质是利用步骤201中得到的CT投影信号求解物体内部的X射线衰减系数分布(即物体不同部位的X射线衰减系数。不同物质对X射线的衰减不同,CT成像就是基于这个达到无损地检测物体内部物质分布的)。The essence of CT reconstruction is to use the CT projection signal obtained in step 201 to solve the X-ray attenuation coefficient distribution inside the object (that is, the X-ray attenuation coefficient of different parts of the object. Different materials have different attenuation of X-rays, and CT imaging is based on this to achieve non-destructive Detecting the distribution of materials inside an object).

本实施例中采用滤波反投影算法(Filtered Back Projection,FBP)。该FBP算法的重建步骤是:In this embodiment, a filtered back projection algorithm (Filtered Back Projection, FBP) is used. The reconstruction steps of the FBP algorithm are:

1)对时域中的360个CT投影信号分别进行一维傅里叶变换,得到360个频域中的投影信号;1) Perform one-dimensional Fourier transform on the 360 CT projection signals in the time domain to obtain 360 projection signals in the frequency domain;

2)对360个频域中的CT投影信号进行滤波处理,得到滤波后的360个CT投影信号;2) Filter the 360 CT projection signals in the frequency domain to obtain 360 filtered CT projection signals;

3)将360个滤波后的CT投影信号进行一维傅里叶逆变换,还原到时域,得到时域中的滤波后的360个CT投影信号;3) Perform one-dimensional inverse Fourier transform on the 360 filtered CT projection signals and restore them to the time domain to obtain the 360 filtered CT projection signals in the time domain;

4)对每一个已经滤波的投影信号进行反投影;把360个角度下的反投影信号进行累加,计算出物体各个部位的衰减,即重建出物体的一个三维体素数据。4) Back-project each filtered projection signal; accumulate the back-projection signals at 360 angles to calculate the attenuation of each part of the object, that is, reconstruct a three-dimensional voxel data of the object.

反投影是将每个角度下的投影信号按照其原投影路径,平均分配到经过物体的每一个点上,物体的三维体素数据包含了三维空间坐标以及该体素内物体对X射线的衰减系数。Back projection is to evenly distribute the projection signal at each angle to each point passing through the object according to its original projection path. The three-dimensional voxel data of the object includes the three-dimensional spatial coordinates and the attenuation of X-rays by the object within the voxel. coefficient.

所有的三维体素即形成了物体的三维空间形态,将用于后面的物体的三维光学重建提供物体准确的三维空间坐标。All three-dimensional voxels form the three-dimensional spatial shape of the object, which will be used for subsequent three-dimensional optical reconstruction of the object to provide the accurate three-dimensional spatial coordinates of the object.

204、对CT重建得到的物体三维体素数据进行后续处理,包括去噪、增强对比度,得到质量改善后的CT三维体素数据。204. Perform subsequent processing on the three-dimensional voxel data of the object obtained through CT reconstruction, including denoising and contrast enhancement, to obtain CT three-dimensional voxel data with improved quality.

去噪是减少图像中的噪声和伪影,以提重建数据的质量;增强对比度可以提高重建数据的可读性。Denoising is to reduce noise and artifacts in images to improve the quality of reconstructed data; enhancing contrast can improve the readability of reconstructed data.

205、对步骤204中得到的物体的CT三维体素数据提取CT三维体素数据的表面信息。205. Extract the surface information of the CT three-dimensional voxel data from the CT three-dimensional voxel data of the object obtained in step 204.

基于预先设定的体素数据阈值,将所述CT三维体素数据划分为物体所属体素数据和背景所属体素数据;基于物体所属体素数据,采用遍历方式获取物体边界的体素数据;将物体所属体素数据中非物体边界的体素数据的HU值设置为0,物体界面的体素数据HU值保留为原始HU值,得到物体的表面体素数据即CT三维表面体素数据。Based on the preset voxel data threshold, the CT three-dimensional voxel data is divided into voxel data belonging to the object and voxel data belonging to the background; based on the voxel data belonging to the object, a traversal method is used to obtain the voxel data of the object boundary; Set the HU value of the non-object boundary voxel data in the voxel data to which the object belongs to 0, and retain the HU value of the voxel data at the object interface as the original HU value, to obtain the surface voxel data of the object, that is, the CT three-dimensional surface voxel data.

206、对步骤205中得到的物体的CT三维表面体素数据和步骤201中得到的荧光数据进行配准。206. Register the CT three-dimensional surface voxel data of the object obtained in step 205 and the fluorescence data obtained in step 201.

通常,配准是指对不同时间或者不同成像设备获取的两组或者多组图像数据中的两幅或者多幅图像,通过寻找一种空间变换把一副图像映射到另一幅图像上,使得两幅图像中对应于空间同一位置的点一一对应起来。Generally, registration refers to mapping two or more images from two or more sets of image data acquired at different times or by different imaging devices by finding a spatial transformation to map one image to another image. This makes the points corresponding to the same position in space in the two images correspond one to one.

由于CT成像设备与荧光成像设备都安装在旋转架上,则二者在相同的三维坐标体系中(旋转架的坐标系)二者之间夹角为θ,则旋转架相对物体转过角度时的CT成像视角(如图2(a))和转过角度/>时的成像视角(如图2(b))对应的是物体的同一部位的拍摄。Since the CT imaging equipment and the fluorescence imaging equipment are both installed on the rotating frame, the angle between them in the same three-dimensional coordinate system (the coordinate system of the rotating frame) is θ, and the rotating frame rotates relative to the object. CT imaging angle (as shown in Figure 2(a)) and rotation angle/> The imaging angle (as shown in Figure 2(b)) corresponds to the shooting of the same part of the object.

对步骤205中重建得到的CT三维表面体素数据和荧光数据配准的步骤如下:The steps for registering the CT three-dimensional surface voxel data and fluorescence data reconstructed in step 205 are as follows:

1)同轴扫描装置各成像设备坐标系为:坐标原点位于旋转架的中心轴且与成像设备光轴位于同一高度,坐标Z轴由坐标原点指向各成像设备中心,XY平面垂直于Z轴;针对每一个成像视角下的表面体素数据,选择XY平面为投影平面,沿着Z轴负方向进行正交投影,将含有物体表面体素的三维数据(x,y,z,HU)投影到对应角度下的XY平面内,平面内的每个像素点为三维表面体素数据在投影平面上的投影位置,形成该角度下CT的二维投影图像(x,y,HU);以获得所有成像视角/>下的CT二维投影图像。1) The coordinate system of each imaging device of the coaxial scanning device is: the coordinate origin is located at the central axis of the rotating frame and is at the same height as the optical axis of the imaging device, the coordinate Z axis points from the coordinate origin to the center of each imaging device, and the XY plane is perpendicular to the Z axis; For every imaging angle For the surface voxel data under In the plane, each pixel point in the plane is the projection position of the three-dimensional surface voxel data on the projection plane, forming a two-dimensional CT projection image (x, y, HU) at this angle; to obtain all imaging angles/> The two-dimensional CT projection image below.

2)对于角度下的CT二维投影图像和对应的角度/>下的光学图像采用手动或自动的方式进行特征检测,获得该CT二维投影图像和光学图像中显著的特征点;2) For the angle The following two-dimensional CT projection images and corresponding angles/> Feature detection is performed manually or automatically on the optical image below to obtain significant feature points in the CT two-dimensional projection image and optical image;

例如,可采用手动或自动的方式进行特征检测,以找出图像中显著的特征点(可以是边缘、交线、轮廓、形状、结构等),手动检测方法涉及在图像上标记感兴趣的特征,适用于需要高精度选择特定特征的情况。自动特征检测利用计算机视觉库如OpenCV,通过调用适当的特征检测算法如Harris角点检测、SIFT、SURF、FAST、ORB等,可以有效快速地定位特征点;For example, feature detection can be performed manually or automatically to find significant feature points in the image (which can be edges, intersections, contours, shapes, structures, etc.). Manual detection methods involve marking features of interest on the image. , suitable for situations where specific features need to be selected with high accuracy. Automatic feature detection uses computer vision libraries such as OpenCV, and can effectively and quickly locate feature points by calling appropriate feature detection algorithms such as Harris corner detection, SIFT, SURF, FAST, ORB, etc.;

3)计算角度下的CT二维投影图像和对应的角度/>下的光学图像中找到的特征点的特征描述子(特征描述子是用于表示特征点周围区域的数量向量),通过得到的两幅图像的特征点的特征描述子,匹配两幅图中的特征点(如,采用最近邻匹配,将一个图像中的每个特征点与另一图像中最接近的特征点进行匹配),完成匹配后,通过量化两幅图像特征点的描述子之间的相似性来确定匹配的质量,该相似性度量可以是计算描述子向量之间的欧氏距离,距离越小表示越相似,进一步表示特征点匹配越好。3) Calculate the angle The following two-dimensional CT projection images and corresponding angles/> The feature descriptors of the feature points found in the optical images under Feature points (for example, using nearest neighbor matching to match each feature point in one image with the closest feature point in another image). After completing the matching, the difference between the descriptors of the feature points of the two images is quantified. Similarity is used to determine the quality of matching. The similarity measure can be to calculate the Euclidean distance between descriptor vectors. The smaller the distance, the more similar it is, which further indicates that the feature point matching is better.

由此,找到在二维CT投影图像和对应的荧光图像之间相对应的显著特征。通过比较特征描述子之间的距离度量,选择最匹配的描述子对,从而实现图像之间的特征点匹配;Thereby, the corresponding salient features between the two-dimensional CT projection image and the corresponding fluorescence image are found. By comparing the distance measures between feature descriptors, the most matching descriptor pair is selected to achieve feature point matching between images;

4)通过匹配的特征点对计算得到两幅图像之间的空间坐标变换关系;具体步骤如下:(1)对每个特征点对,将特征点的坐标除以成像设备焦距来进行归一化;(2)对每个特征点对归一化后的坐标,构建一个线性方程。假设p(x,y)和p’(x’,y’)是CT二维投影图像和光学图像中的任意一对匹配点归一化后的坐标,基础矩阵由线性方程p′TFp=0定义,其中F为基础矩阵,结合所有角度下的CT二维投影图像和对应的角度/>下的光学图像中所有特征点对所构建的线性方程求解基础矩阵,获得描述了两个成像设备(CT成像探测器和光学成像相机)之间几何关系的基础矩阵。(3)使用CT成像探测器和光学成像相机的内参进行三角测量,将特征点对映射到世界坐标系中的三维点上。(4)利用世界坐标系中特征点对的三维点坐标,计算得到CT二维投影图像和光学图像之间的空间坐标变换关系,包括了平移矢量和旋转矩阵。4) Calculate the spatial coordinate transformation relationship between the two images through matching feature point pairs; the specific steps are as follows: (1) For each feature point pair, divide the coordinates of the feature point by the focal length of the imaging device for normalization ; (2) Construct a linear equation for the normalized coordinates of each feature point pair. Assume that p(x,y) and p'(x',y') are the normalized coordinates of any pair of matching points in the CT two-dimensional projection image and the optical image. The basic matrix is given by the linear equation p′ T Fp= 0 definition, where F is the basic matrix, combining all angles The following two-dimensional CT projection images and corresponding angles/> The basic matrix is solved by solving the linear equation constructed by all pairs of feature points in the optical image, and the basic matrix describing the geometric relationship between the two imaging devices (CT imaging detector and optical imaging camera) is obtained. (3) Use the internal parameters of the CT imaging detector and the optical imaging camera to perform triangulation and map the feature point pairs to three-dimensional points in the world coordinate system. (4) Using the three-dimensional point coordinates of the feature point pair in the world coordinate system, calculate the spatial coordinate transformation relationship between the CT two-dimensional projection image and the optical image, including the translation vector and rotation matrix.

即,通过匹配的特征点对计算得到角度下的CT二维投影图像和对应的角度下的光学图像之间的空间坐标变换关系(如平移、旋转、缩放等),同理,遍历所有的对所有成像视角完成上述的2)至4)的操作,最后通过计算得到的空间坐标变换关系将两幅图像进行配准。实现每个角度下CT二维投影图像和光学图像像素点之间的对齐配准。即,实现所有成像角度下CT二维投影图像和光学数据的像素点之间的对齐配准。That is, the angle is calculated through the matching feature point pairs The following two-dimensional CT projection images and corresponding angles The spatial coordinate transformation relationship between optical images (such as translation, rotation, scaling, etc.), in the same way, traverse all Complete the above operations 2) to 4) for all imaging angles, and finally register the two images through the calculated spatial coordinate transformation relationship. Realize the alignment between the pixels of the CT two-dimensional projection image and the optical image at each angle. That is, the alignment between the pixel points of the CT two-dimensional projection image and the optical data is achieved at all imaging angles.

207、坐标的映射。207. Coordinate mapping.

首先,将光学图像像素的坐标映射到CT图像坐标系内。First, the coordinates of the optical image pixels are mapped into the CT image coordinate system.

对每个角度下光学数据中的像素位置转换为配准后的CT二维投影图像坐标系统中的坐标;建立光学数据中的像素与CT三维体素数据中的空间位置之间的对应关系,将每个角度下的光学数据中的图像像素信息对应到CT三维表面体素的空间位置上,获得所有角度下具有三维空间坐标的光学数据集。Convert the pixel positions in the optical data at each angle into coordinates in the registered CT two-dimensional projection image coordinate system; establish the corresponding relationship between the pixels in the optical data and the spatial positions in the CT three-dimensional voxel data, The image pixel information in the optical data at each angle is mapped to the spatial position of the CT three-dimensional surface voxel, and an optical data set with three-dimensional spatial coordinates at all angles is obtained.

208、由于相邻角度下光学图像具有足够的重叠,则可以通过步骤205中所用的配准方法,将相邻两个角度下的具有三维空间坐标的光学数据进行配准,从而拼接重建成完整的三维光学图像。208. Since the optical images at adjacent angles have sufficient overlap, the optical data with three-dimensional spatial coordinates at two adjacent angles can be registered through the registration method used in step 205, so as to splice and reconstruct a complete image. 3D optical image.

209、三维重建后处理。对生成的三维光学图像进一步优化,可以通过高斯滤波使得拼接处更加的平滑和流畅,以实现更真实的三维光学重建。209. Three-dimensional reconstruction post-processing. To further optimize the generated three-dimensional optical image, Gaussian filtering can be used to make the splicing smoother and smoother to achieve a more realistic three-dimensional optical reconstruction.

在实际应用中,根据图像特点和需求,微调滤波参数获得最佳效果。In practical applications, the filtering parameters are fine-tuned according to the image characteristics and needs to obtain the best results.

本实施例的方法通过利用CT扫描提供的高分辨率和多层面信息,可以生成准确、全面的三维模型。这为可视化、分析和应用提供了强大的工具和资源。The method of this embodiment can generate an accurate and comprehensive three-dimensional model by utilizing the high-resolution and multi-layer information provided by CT scans. This provides powerful tools and resources for visualization, analysis and application.

本实施例中具有高分辨率的优势,即CT图像具有较高的空间分辨率,可以捕捉到物体的微小细节和结构,能够准确地表达物体的形状和特征。通过CT图像作物输入数据,可以提供物体的三维空间的真实坐标信息,为物体的三维光学重建提供准备的三维空间定位,有助于生成高度准确的三维光学模型。This embodiment has the advantage of high resolution, that is, the CT image has a high spatial resolution, can capture the minute details and structure of the object, and can accurately express the shape and characteristics of the object. By inputting data through CT image crops, the real coordinate information of the object's three-dimensional space can be provided, and the three-dimensional space positioning prepared for the three-dimensional optical reconstruction of the object can be provided, which helps to generate a highly accurate three-dimensional optical model.

另外,本发明实施例还提供一种计算设备,包括:存储器和处理器,所述存储器中存储计算机程序,所述处理器执行所述存储器中的计算机程序,并执行上述任意实施例所述的一种基于CT图像的三维光学重建方法的步骤。In addition, an embodiment of the present invention also provides a computing device, including: a memory and a processor, the memory stores a computer program, the processor executes the computer program in the memory, and executes the steps described in any of the above embodiments. The steps of a three-dimensional optical reconstruction method based on CT images.

在本说明书的描述中,术语“一个实施例”、“一些实施例”、“实施例”、“示例”、“具体示例”或“一些示例”等的描述,是指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, the terms "one embodiment", "some embodiments", "embodiments", "examples", "specific examples" or "some examples", etc., refer to the description in conjunction with the embodiment or example. A specific feature, structure, material, or characteristic described is included in at least one embodiment or example of the invention. In this specification, the schematic expressions of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in a combined manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine different embodiments or examples and features of different embodiments or examples described in this specification unless they are inconsistent with each other.

尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行改动、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it can be understood that the above-mentioned embodiments are illustrative and should not be construed as limitations of the present invention. Those of ordinary skill in the art can make modifications to the above-mentioned embodiments within the scope of the present invention. The embodiments are subject to alterations, modifications, substitutions and variations.

Claims (10)

1.一种基于CT图像的三维光学重建方法,其特征在于,包括:1. A three-dimensional optical reconstruction method based on CT images, characterized by including: S10、借助于同轴扫描装置获取待重建物体多角度的CT投影信号和光学数据;所述多角度中每一角度为旋转的同轴扫描装置相对于静止的待重建物体的旋转角度;同轴扫描装置中固定有CT成像设备和与该CT成像设备具有安装夹角的光学成像设备;S10. Acquire multi-angle CT projection signals and optical data of the object to be reconstructed with the help of a coaxial scanning device; each of the multiple angles is the rotation angle of the rotating coaxial scanning device relative to the stationary object to be reconstructed; coaxial A CT imaging device and an optical imaging device having an installation angle with the CT imaging device are fixed in the scanning device; S20、根据重建算法对所有角度的CT投影信号进行重建,得到待重建物体的CT三维体素数据,并提取物体CT三维体素数据的表面体素数据,得到待重建物体的CT三维表面体素数据;S20. Reconstruct the CT projection signals from all angles according to the reconstruction algorithm to obtain the CT three-dimensional voxel data of the object to be reconstructed, and extract the surface voxel data of the CT three-dimensional voxel data of the object to obtain the CT three-dimensional surface voxel of the object to be reconstructed. data; S30、将所述光学数据中每一像素点和CT三维表面体素数据中对应像素点对齐配准,以及将对齐配准的光学数据中像素点的坐标映射到CT三维体素数据的CT图像坐标系中,获得所有角度下具有CT图像坐标系中三维空间坐标的第一光学数据集;S30. Align and register each pixel point in the optical data with the corresponding pixel point in the CT three-dimensional surface voxel data, and map the coordinates of the pixel points in the aligned optical data to the CT image of the CT three-dimensional voxel data. In the coordinate system, obtain the first optical data set with three-dimensional spatial coordinates in the CT image coordinate system at all angles; S40、将第一光学数据集中所有光学数据进行拼接,形成三维光学重建后的信息。S40. Splice all the optical data in the first optical data set to form three-dimensional optically reconstructed information. 2.根据权利要求1所述的方法,其特征在于,所述光学成像设备为高光谱成像设备,则所述光学数据为高光谱数据;2. The method of claim 1, wherein the optical imaging device is a hyperspectral imaging device, and the optical data is hyperspectral data; 所述光学成像设备为荧光成像设备,则所述光学数据为荧光光学数据;所述光学成像设备为RGB成像设备,则所述光学数据为RGB光学数据;If the optical imaging device is a fluorescence imaging device, the optical data is fluorescence optical data; if the optical imaging device is an RGB imaging device, the optical data is RGB optical data; 多角度的CT投影信号和光学数据包括:N个CT投影信号和N个光学数据;Multi-angle CT projection signals and optical data include: N CT projection signals and N optical data; 其中,同轴扫描装置的旋转架每次相对物体转过角度为则同轴扫描装置相对物体转过360°时产生的数据个数为/> Among them, the rotating frame of the coaxial scanning device rotates relative to the object through an angle of Then the number of data generated when the coaxial scanning device rotates 360° relative to the object is/> 3.根据权利要求1所述的方法,其特征在于,所述S20中的根据重建算法对所有角度的CT投影信号进行重建,得到待重建物体的CT三维体素数据,包括:3. The method according to claim 1, characterized in that, in S20, CT projection signals from all angles are reconstructed according to the reconstruction algorithm to obtain CT three-dimensional voxel data of the object to be reconstructed, including: 对每一角度的CT投影信号进行预处理,采用滤波反投影算法对所有角度的预处理后的CT投影信号进行重建,得到待重建物体的CT三维体素数据。The CT projection signals from each angle are preprocessed, and the filtered back-projection algorithm is used to reconstruct the preprocessed CT projection signals from all angles to obtain the CT three-dimensional voxel data of the object to be reconstructed. 4.根据权利要求3所述的方法,其特征在于,采用滤波反投影算法对所有角度的预处理后的CT投影信号进行重建,得到待重建物体的CT三维体素数据,包括:4. The method according to claim 3, characterized in that a filtered back-projection algorithm is used to reconstruct the pre-processed CT projection signals from all angles to obtain the CT three-dimensional voxel data of the object to be reconstructed, including: S21、对N个预处理后的CT投影信号分别进行一维傅里叶变换,得到N个频域中的第一投影信号;S21. Perform one-dimensional Fourier transform on the N preprocessed CT projection signals to obtain N first projection signals in the frequency domain; S22、对N个频域中的第一投影信号进行滤波处理,得到滤波后的N个第二投影信号;S22. Filter the first projection signals in N frequency domains to obtain filtered N second projection signals; S23、将N个第二投影信号进行一维傅里叶逆变换,还原到时域,得到时域中的滤波后的N个第三投影信号;S23. Perform one-dimensional inverse Fourier transform on the N second projection signals, restore them to the time domain, and obtain filtered N third projection signals in the time domain; S24、对每一个第三投影信号进行反投影,反投影是将每个角度下的投影信号按照各自的原投影路径,平均分配到经过物体的每一个点上,将所有角度下物体上同一点的反投影信号进行累加,得到物体各点的射线衰减系数,重建出物体的CT三维体素数据;S24. Back-project each third projection signal. The back-projection is to evenly distribute the projection signal at each angle to each point passing through the object according to its original projection path, and project the same point on the object at all angles. The back-projection signals are accumulated to obtain the ray attenuation coefficient of each point of the object, and the CT three-dimensional voxel data of the object is reconstructed; 所述CT三维体素数据包括:重建物体CT图像中各体素的三维空间坐标以及各体素位置的HU值,该HU值反应了待重建物体对X射线的吸收程度。The CT three-dimensional voxel data includes: the three-dimensional spatial coordinates of each voxel in the CT image of the reconstructed object and the HU value of each voxel position. The HU value reflects the degree of X-ray absorption of the object to be reconstructed. 5.根据权利要求4所述的方法,其特征在于,所述S20中的提取物体CT三维体素数据的表面体素数据,得到待重建物体的CT三维表面体素数据,包括:5. The method according to claim 4, characterized in that, in the step S20, the surface voxel data of the CT three-dimensional voxel data of the object is extracted to obtain the CT three-dimensional surface voxel data of the object to be reconstructed, including: S25、对所述CT三维体素数据进行优化处理,获得优化处理后的CT三维体素数据;S25. Optimize the CT three-dimensional voxel data to obtain optimized CT three-dimensional voxel data; S26、对优化处理后的CT三维体素数据提取所述CT三维体素数据的表面信息;S26. Extract the surface information of the CT three-dimensional voxel data from the optimized CT three-dimensional voxel data; S27、基于预先设定的体素数据阈值,将所述CT三维体素数据的表面信息划分为物体所属体素数据和背景所属体素数据;S27. Based on the preset voxel data threshold, divide the surface information of the CT three-dimensional voxel data into voxel data belonging to the object and voxel data belonging to the background; S28、基于物体所属体素数据,采用遍历方式获取物体边界的体素数据;将物体所属体素数据中非物体边界的体素数据的HU值设置为0,得到物体的表面体素数据即CT三维表面体素数据。S28. Based on the voxel data of the object, use traversal method to obtain the voxel data of the object boundary; set the HU value of the non-object boundary voxel data in the voxel data of the object to 0 to obtain the surface voxel data of the object, that is, CT 3D surface voxel data. 6.根据权利要求5所述的方法,其特征在于,所述S30包括:6. The method according to claim 5, characterized in that said S30 includes: 同轴扫描装置相对物体旋转,每个成像位置的成像视角与物体夹角为CT成像设备与光学成像设备之间安装夹角为θ;The coaxial scanning device rotates relative to the object, and the angle between the imaging perspective and the object at each imaging position is The installation angle between the CT imaging equipment and the optical imaging equipment is θ; 同轴扫描装置各成像设备坐标系为:坐标原点位于旋转架的中心轴且与成像设备光轴位于同一高度,坐标Z轴由坐标原点指向各成像设备中心,X射线成像Z轴由坐标原点指向X射线中心,XY平面垂直于Z轴;The coordinate system of each imaging device of the coaxial scanning device is: the coordinate origin is located at the central axis of the rotating frame and is at the same height as the optical axis of the imaging device, the coordinate Z axis points from the coordinate origin to the center of each imaging device, and the X-ray imaging Z axis points from the coordinate origin X-ray center, XY plane is perpendicular to Z axis; S31、针对每一个成像视角下的表面体素数据,选择XY平面为投影平面,沿着Z轴负方向进行正交投影,将含有物体表面体素的三维数据(x,y,z,HU)投影到对应角度下的XY平面内,平面内的每个像素点为三维表面体素数据在投影平面上的投影位置,形成该角度下CT二维投影图像(x,y,HU);以获得所有成像视角/>下的CT二维投影图像;S31, for every imaging angle For surface voxel data under In the plane, each pixel point in the plane is the projection position of the three-dimensional surface voxel data on the projection plane, forming the CT two-dimensional projection image (x, y, HU) at this angle; to obtain all imaging angles/> CT two-dimensional projection image below; S32、对于成像视角下的CT二维投影图像和成像视角/>下的光学数据进行特征检测,获得该CT二维投影图像和光学数据中各自显著的特征点;S32. Regarding imaging angle CT two-dimensional projection images and imaging angles/> Perform feature detection on the optical data under the CT two-dimensional projection image and obtain the significant feature points in the optical data; S33、获取各自显著的特征点的特征描述子并进行匹配,获取超过预设阈值的匹配的特征点对;S33. Obtain the feature descriptors of respective significant feature points and perform matching, and obtain matching feature point pairs that exceed the preset threshold; S34、根据匹配的特征点对,获取成像视角下的CT二维投影图像和成像视角/>下的光学数据的空间坐标转换映射;S34. Obtain the imaging perspective based on the matched feature point pairs. CT two-dimensional projection images and imaging angles/> Spatial coordinate transformation mapping of optical data; S35、基于空间坐标转换映射将成像视角下的CT二维投影图像和成像视角/>下的光学数据进行配准;S35. Convert the imaging perspective based on spatial coordinate conversion mapping CT two-dimensional projection images and imaging angles/> Perform registration with the optical data below; 基于所述S32至所述S35的方式,遍历所有成像视角将所有成像视角下CT二维投影图像和光学数据实现对齐配准。Based on the method from S32 to S35, all imaging angles are traversed Align and register CT two-dimensional projection images and optical data from all imaging angles. 7.根据权利要求6所述的方法,其特征在于,所述S34包括:7. The method according to claim 6, characterized in that said S34 includes: S341、基于每个匹配的特征点对,将各成像设备所属的特征点的坐标除以该成像设备焦距获得归一化的特征点对坐标;S341. Based on each matching feature point pair, divide the coordinates of the feature points belonging to each imaging device by the focal length of the imaging device to obtain the normalized feature point pair coordinates; S342、基于归一化的特征点对坐标,构建一个线性方程;S342. Construct a linear equation based on the normalized feature point pair coordinates; 设定p(x,y)和p’(x’,y’)是归一化的特征点对坐标;Set p(x,y) and p’(x’,y’) to be the normalized feature point pair coordinates; p(x,y)对应CT二维投影图像,p’(x’,y’)对应光学数据;p(x,y) corresponds to the CT two-dimensional projection image, p’(x’,y’) corresponds to the optical data; 通过线性方程p′TFp=0,确定基础矩阵,其中F为基础矩阵;Determine the basic matrix through the linear equation p′ T Fp=0, where F is the basic matrix; 集合所有特征点对所构建的线性方程,求解基础矩阵;Set the linear equation constructed by all pairs of feature points to solve the basic matrix; S343、基于基础矩阵,使用CT成像设备和光学成像设备的内参进行三角测量,将归一化的特征点对坐标映射到世界坐标系中的三维点上;S343. Based on the basic matrix, use the internal parameters of the CT imaging equipment and the optical imaging equipment to perform triangulation, and map the normalized feature point pair coordinates to three-dimensional points in the world coordinate system; S344、利用世界坐标系中归一化的特征点对映射的三维点坐标,获取所述空间坐标转换映射,该空间坐标转换映射包括平移矢量和旋转矩阵。S344. Use the three-dimensional point coordinates mapped by the normalized feature point pairs in the world coordinate system to obtain the spatial coordinate transformation mapping. The spatial coordinate transformation mapping includes a translation vector and a rotation matrix. 8.根据权利要求6所述的方法,其特征在于,所述S34包括:8. The method according to claim 6, characterized in that said S34 includes: 对每个角度下光学数据中的像素位置转换为配准后的CT二维投影图像坐标系统中的坐标;Convert the pixel positions in the optical data at each angle into coordinates in the registered CT two-dimensional projection image coordinate system; 建立光学数据中的像素与CT三维表面体素数据中的空间位置之间的对应关系,将每个角度下的光学数据中的像素信息对应到CT三维表面体素数据的空间位置上,获得所有角度下具有三维空间坐标的第一光学数据集。Establish a correspondence between the pixels in the optical data and the spatial positions in the CT three-dimensional surface voxel data, map the pixel information in the optical data at each angle to the spatial positions of the CT three-dimensional surface voxel data, and obtain all The first optical data set with three-dimensional spatial coordinates under angle. 9.据权利要求8所述的方法,其特征在于,所述S40包括:9. The method according to claim 8, characterized in that said S40 includes: 采用所述S30方式遍历所有相邻的光学数据,将相邻光学数据进行配准,识别重叠区域,基于识别的重叠区域将第一光学数据集中所有光学数据进行拼接,形成三维光学重建后的信息;The S30 method is used to traverse all adjacent optical data, register the adjacent optical data, identify overlapping areas, and splice all optical data in the first optical data set based on the identified overlapping areas to form three-dimensional optically reconstructed information. ; 对三维光学重建后的信息进行优化,得到完整的三维光学重建的信息。Optimize the three-dimensional optically reconstructed information to obtain complete three-dimensional optically reconstructed information. 10.一种计算设备,其特征在于,包括:存储器和处理器,所述存储器中存储计算机程序,所述处理器执行所述存储器中的计算机程序,并执行上述权利要求1至9任一所述的一种基于CT图像的三维光学重建方法的步骤。10. A computing device, characterized in that it includes: a memory and a processor, a computer program is stored in the memory, the processor executes the computer program in the memory, and executes any one of the above claims 1 to 9. The steps of the three-dimensional optical reconstruction method based on CT images are described.
CN202311304245.9A 2023-10-09 2023-10-09 Three-dimensional optical reconstruction method based on CT image Pending CN117649484A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202311304245.9A CN117649484A (en) 2023-10-09 2023-10-09 Three-dimensional optical reconstruction method based on CT image
NL2038335A NL2038335A (en) 2023-10-09 2024-07-25 A method based on CT images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311304245.9A CN117649484A (en) 2023-10-09 2023-10-09 Three-dimensional optical reconstruction method based on CT image

Publications (1)

Publication Number Publication Date
CN117649484A true CN117649484A (en) 2024-03-05

Family

ID=90043972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311304245.9A Pending CN117649484A (en) 2023-10-09 2023-10-09 Three-dimensional optical reconstruction method based on CT image

Country Status (2)

Country Link
CN (1) CN117649484A (en)
NL (1) NL2038335A (en)

Also Published As

Publication number Publication date
NL2038335A (en) 2024-09-20

Similar Documents

Publication Publication Date Title
US10561403B2 (en) Sensor coordinate calibration in an ultrasound system
CN110574071B (en) Apparatus, method and system for aligning 3D data sets
Huang et al. Bezier interpolation for 3-D freehand ultrasound
US7950849B2 (en) Method and device for geometry analysis and calibration of volumetric imaging systems
CN110230979B (en) A three-dimensional target and a three-dimensional color digital system calibration method thereof
US20150302594A1 (en) System and Method For Object Detection Using Structured Light
CN109580630A (en) A kind of visible detection method of component of machine defect
JP2008505712A (en) Diagnostic system for multi-modality mammography
EP3382645B1 (en) Method for generation of a 3d model based on structure from motion and photometric stereo of 2d sparse images
Furukawa et al. Shape acquisition and registration for 3D endoscope based on grid pattern projection
CN111060006B (en) A viewpoint planning method based on three-dimensional model
CN111602177A (en) Method and apparatus for generating a 3D reconstruction of an object
US10278663B2 (en) Sensor coordinate calibration in an ultrasound system
KR102265248B1 (en) Method for discrimination and identification of objects of a scene by 3-d imaging
JP2016198297A (en) Photoacoustic apparatus and image processing method
Pallone et al. Surface scanning through a cylindrical tank of coupling fluid for clinical microwave breast imaging exams
Maas et al. Nerf for 3d reconstruction from x-ray angiography: Possibilities and limitations
Tabkha et al. Semantic enrichment of point cloud by automatic extraction and enhancement of 360° panoramas
CN117649484A (en) Three-dimensional optical reconstruction method based on CT image
CN114159085B (en) PET image attenuation correction method and device, electronic equipment and storage medium
CN109872353A (en) White light data and CT data registration method based on improved iterative closest point algorithm
KR20240152935A (en) Method and system for cross-referencing of two-dimensional (2D) ultrasound scans of tissue volumes
CN113052929B (en) Linear scanning CL reconstruction method based on projection view weighting
CN111587449B (en) Image data processing method, device and system
Yu et al. Method for measuring target depth by using optical field focusing image

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination