The specific embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and the specific embodiments, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Embodiment one:
See also Fig. 1 and Fig. 2, the sketch map of the demarcation phantom that is used for CT system geometrical parameter calibration that provides for the embodiment of the invention one.
Demarcate phantom 100 and comprise scaling board 110 and bead 120.
The quantity of scaling board 110 is that two and structure are identical.Two scaling boards 110 over against and be arranged in parallel.In embodiment provided by the invention, the spacing of two scaling boards is preferably 46mm, and the width of each scaling board is preferably 150mm, thickness is preferably 2mm.Correspondingly respectively on two scaling boards 110 offer some identical apertures 111.Aperture 111 is the square formation formula and is distributed on the scaling board.See also Fig. 2, the structural representation of the aperture 111 of offering on the scaling board 110 that provides for embodiment one provided by the invention, the square formation that aperture 111 is 7*7 is distributed on the scaling board 110, and the diameter of aperture 111 is preferably 1mm, hole depth is preferably 0.5mm, and spacing is preferably 20mm between the adjacent holes.
Bead 120 is at least four.Bead 120 is installed on respectively in two apertures 111 on the scaling board 110, namely on any one scaling board 110 bead 120 is installed all.The quantity that is appreciated that aperture 120 can also be 6 or other more quantity.
In embodiment provided by the invention, the material of scaling board 110 is preferably vinyon.Bead 120 is preferably the rustless steel bead.
Embodiment two:
See also Fig. 3, the structural representation of the caliberating device that is used for CT system geometrical parameter calibration that Fig. 3 provides for the embodiment of the invention two.
Caliberating device 200 comprises CT system, demarcation phantom 100 and the image processing module (not shown) that is comprised of light source 210, turntable (not shown) and detector 230.
Be provided with turntable between light source 210 and the detector 230.Demarcating phantom 100 is vertically installed on the turntable.Demarcating phantom 100 rotates with turntable.Detector 230 is used for gathering the center point coordinate of the projected image of demarcating each bead 120 in the aperture 111 of offering on the phantom 100.The center point coordinate that is appreciated that the projected image of bead 120 on imaging plane does not all overlap.
Image processing module is used for making up the first projection matrix according to the center point coordinate of projected image.Image processing module also is used for according to the geometry of CT system and demarcates phantom 100 geometries and calculate respectively each bead 120 at the locus of CT system coordinate system coordinate, and makes up the second projection matrix according to the locus coordinate.Image processing module calculates the projection centre point coordinates on detector 230 planes, the distance that light source 210 arrives detector 230, the torsion angle of detector 230, the inclination angle of detector 230, the anglec of rotation of detector 230 and the distance that light source 210 arrives the turntable rotating shaft according to the first projection matrix and the second projection matrix.
Embodiment three:
See also Fig. 3 and Fig. 4, the flow chart of the scaling method of geometric parameter in the CT system that provides for the embodiment of the invention three of Fig. 4 wherein, wherein the CT system comprises light source 210, turntable and detector 230, specifically comprises the steps:
Step S310: the vertical placement demarcated phantom 100 on the turntable between light source 210 and the detector 230.In embodiment provided by the invention, it is identical with the demarcation phantom that the embodiment of the invention one provides to demarcate phantom 100.Be appreciated that bead 120 is at least four and be installed on respectively in two apertures 111 on the scaling board 110, namely demarcate on two scaling boards 110 of phantom 100 and all will place bead 120.
Step S320: will demarcate phantom 100 with turntable rotation, and gather abscissa and the vertical coordinate of central point of the projected image of each beads 120 by detector 230.
See also Fig. 5, pass through the flow chart of steps of center point coordinate that detector 230 gathers the projected image of each beads for what embodiment three provided by the invention provided, it comprises the steps:
Step S321: the plane at definition detector 230 places is as coordinate plane.Wherein take detector 230 lower left corners as zero, orientation U, the V of pixel is respectively axis of abscissas and axis of ordinates on the detector 230.
Step S322: will demarcate phantom 100 and rotate with turntable.Be appreciated that the bead 120 of demarcating in the aperture 111 of offering on the phantom 100 at the uniform velocity rotates with turntable, carries out projection by 210 pairs of beads of light source 120, and obtains projected image.In embodiment provided by the invention, the number of times of projection is preferably 1 time, is appreciated that the number of times of projection can also be for repeatedly, and when the number of times of projection was more, the geometric parameter of the CT system that finally obtains was more accurate.
Step S323: detector 230 gathers the projected image of each bead 120.Be appreciated that each projection bead all obtains 1 projected image at detector 230, namely bead is all obtaining projected image take detector 230 place coordinate planes as imaging plane.
Step S324: the central point that obtains successively each bead 120 projected images by the edge extracting processing method is with the plane at detector 230 places abscissa and the vertical coordinate as coordinate plane.The center point coordinate that is appreciated that the projected image of bead 120 on imaging plane does not all overlap.
Step S330: central point abscissa and vertical coordinate according to projected image make up the first projection matrix.In embodiment provided by the invention, it is specific as follows to make up the first projection matrix according to the central point abscissa of projected image and vertical coordinate:
With the abscissa of the central point of the projected image of each bead 120 and vertical coordinate substitution matrix [u, v, 1] respectively
TIn, make up the first projection matrix [u, v, 1]
T, wherein, u and v represent respectively abscissa and the vertical coordinate of bead 120 projected centre point, [u, v, 1]
TBe the matrix of 3xN, N is the bead number.
Step S340: calculate respectively the locus coordinate of each bead in the CT system coordinate system according to the geometric relationship of CT system and the geometric relationship of demarcation phantom.
See also Fig. 6, calculate respectively the locus coordinate flow chart of steps of each bead 120 in the CT system coordinate system for what the embodiment of the invention three provided according to the geometric relationship of CT system and the geometric relationship of demarcation phantom 100, specifically comprise the steps:
Step S341: definition coordinate system (X, Y, Z), wherein Y-axis is the rotating shaft of turntable, Z axis is that light source 210 is to the ray of rotating shaft.
Step S342: the axis at the central point place of demarcating phantom 100 is overlapped with rotating shaft.In another embodiment of demarcation phantom 100 provided by the invention, the axis that the central point place of phantom 100 is demarcated on the edge is provided with a metal cylinder, and this metal cylinder overlaps with rotating shaft, and this metal cylinder can rotate around rotating shaft.
Step S343: the rotation turntable makes the plane parallel at two scaling boards 110 and detector 230 places, can obtain the locus coordinate (x, y, z) of each bead on coordinate system (X, Y, Z).Be appreciated that because to demarcate the structure of phantom 100 be known, demarcate like this relative tertiary location of each bead 120 on the phantom 100 and determine, will demarcate phantom 100 and be fixed on the turntable, and make that metal cylinder overlaps with the rotating shaft Y-axis in the demarcation phantom 100.The rotation turntable, so that the plane at two scaling board 110 places of demarcation phantom 100 and the plane parallel at detector 230 places, light source 210 is respectively the center on two planes at the vertical point of two scaling boards 110 demarcating phantom 100, can obtain rustless steel bead 120 at coordinate system (X, Y, Z) the locus coordinate (x, y, z) on.
Step S350: make up the second projection matrix according to the locus coordinate.In embodiment provided by the invention, wherein, according to rustless steel bead 120 at coordinate system (X, Y, Z) the locus coordinate (x, y, z) on makes up the second projection matrix, specifically comprise the steps: the locus coordinate (x with each bead, y, z) difference substitution matrix [x, y, z, 1]
TIn, make up the second projection matrix [x, y, z, 1]
TWherein, x, y, z are the locus coordinate (x, y, z) of each bead.
Step S360: according to the first projection matrix and the second projection matrix calculate the projection centre point coordinates, light source of detector plane to the inclination angle of the torsion angle of the distance of detector, detector, detector, the anglec of rotation of detector and light source be to the distance of turntable rotating shaft.
According to the first projection matrix and the second projection matrix calculate the projection centre point coordinates, light source of detector plane to the inclination angle of the torsion angle of the distance of detector, detector, detector, the anglec of rotation of detector and light source be to the flow chart of steps of the distance of turntable rotating shaft, specifically comprise the steps:
Definition coordinate system (X, Y, Z), wherein Y-axis is the rotating shaft of turntable, Z axis is that light source 210 is to the ray of rotating shaft.
Definition detector 230 lower left corners are zero, and U, V are the orientation of pixel on the detector 230, and λ is the size, (u of detector pixel
0, v
0) be the projection centre point coordinates on detector 230 planes, D is the distance that light source 210 arrives detector 230, and α is that the torsion angle of detector 230, inclination angle, the γ that β is detector 230 are the anglec of rotation of detector 230, and R is that light source 210 is to the distance of rotating shaft.
According to the first projection matrix [u, v, 1]
TAnd the second projection matrix [x, y, z, 1]
TMake up formula a[u, v, 1]
T=A[x, y, z, 1]
T, wherein, A is sytem matrix, a is coefficient.Be appreciated that a can rule of thumb choose.
According to formula A=Φ [ζ | ω] and calculate Φ, ζ, wherein,
ω
1=A
34、ω
2=(A
24-Φ
23A
34)/Φ
23、ω
2=(A
24-Φ
23A
34)/Φ
23、ω
2=(A
14-Φ
13A
34-ω
2A
12)/Φ
11。In the above-mentioned formula, D is that light source is to the distance of detector, (u
0, v
0) be light source 210 at the projection centre point coordinates on detector 230 planes, λ is the size of detector 230 pixels, α is that the torsion angle of detector 230, inclination angle, the γ that β is detector 230 are the anglec of rotation of detector 230.
Be appreciated that and obtain first the locus coordinate (x of N bead 120 on coordinate system (X, Y, Z)
i, y
i, z
i), i=1,2,3 ... N and with the plane at detector 230 places abscissa and the vertical coordinate (u as coordinate plane
i, v
i), i=1,2,3 ... N.By formula a[u, v, 1]
T=A[x, y, z, 1]
T, following equation is arranged:
u
ia
i=A
11x
i+A
12y
i+A
13z
i+A
14
v
ia
i=A
21x
i+A
22y
i+A
23z
i+A
24
ω
i=A
31x
i+A
32y
i+A
33z
i+A
34
Coefficient a disappears
i, obtain following two equations:
A
11x
i+A
12y
i+A
13z
i+A
14-u
i(A
31x
i+A
32y
i+A
33z
i+A
34)=0
A
21x
i+A
22y
i+A
23z
i+A
24-v
i(A
31x
i+A
32y
i+A
33z
i+A
34)=0
Write above equation as matrix form, obtained: HA*=0, wherein,
For equation HA*=0, can pass through singular value decomposition method, matrix H is decomposed, obtain A*, get final product to get sytem matrix A.
According to formula A=Φ [ζ | ω], can obtain A
3 * 3=Φ ζ (namely having removed the last string of the 3x4 of matrix A), because Φ is upper triangular matrix, can be to matrix A
3 * 3Carry out " QR decomposition " and obtain Φ, ζ.
According to formula o=[o
x, o
y, o
z]
T=-ζ
Tω, calculating XYZ coordinate is center point coordinate o
x, o
yAnd o
z
Wherein, in the above-mentioned formula, ζ can be obtained by above-mentioned steps,
ω
1=A
34、ω
2=(A
24-Φ
23A
34)/Φ
23、ω
2=(A
24-Φ
23A
34)/Φ
23、ω
2=(A
14-Φ
13A
34-ω
2A
12)/Φ
11。
Projection centre point coordinates (the u on calculating detector 230 planes
0, v
0), light source 210 arrives the distance B of detector 230, the anglec of rotation γ of the torsion angle α of detector 230, the angle of inclination beta of detector 230, detector 230, and light source 210 is to the distance R of rotating shaft.
Be appreciated that ζ and XYZ coordinate are center point coordinate o according to Φ obtained above
x, o
yAnd o
z, can calculate the projection centre point coordinates (u on detector 230 planes
0, v
0), light source 210 arrives the distance B of detector 230, the anglec of rotation γ of the torsion angle α of detector 230, the angle of inclination beta of detector 230, detector 230, and light source 210 is to the distance R of rotating shaft.
Wherein, the projection centre point coordinates (u on detector 230 planes
0, v
0) computing formula be: u
0=Φ
13, v
0=Φ
23, Φ
13The 1st row of representing matrix Φ and element corresponding to the 3rd row, Φ
23The 1st row of representing matrix Φ and element corresponding to the 3rd row.
Light source 210 to the computing formula of the distance B of detector 230 is: D=Φ
11λ, Φ
11The 1st row of representing matrix Φ and element corresponding to the 1st row.
The computing formula of the torsion angle α of detector 230 is: α=Arctan2 (ζ
32, ζ
33), ζ
32The 3rd row of representing matrix ζ and element corresponding to the 2nd row, ζ
33The 3rd row of representing matrix ζ and element corresponding to the 3rd row.
The computing formula of the angle of inclination beta of detector 230 is: β=sin
-1(ζ
31), ζ
31The 3rd row of representing matrix ζ and element corresponding to the 1st row.
The computing formula of the anglec of rotation γ of detector 230 is: γ=Arctan2 (ζ
12, ζ
31), ζ
, 12The 1st row of representing matrix ζ and element corresponding to the 2nd row, ζ
31The of representing matrix ζ, 3 row and element corresponding to the 1st row.
Light source 210 to the computing formula of the distance R of rotating shaft is:
o
x, o
y, o
zFor XYZ coordinate is center point coordinate.
Embodiment four:
See also Fig. 7, for the embodiment of the invention four provide on demarcating phantom, embed 18 prills the time projected image that obtains.Situation when demarcating 18 prills of phantom 100 embeddings.Each correspondence is put into 9 beads, the projected image that obtains on two scaling boards up and down respectively.For the effectiveness of verification algorithm, press extreme case, only carried out 1 projection (equaling 1).In theory, when value was larger, the result can be more close to actual value.System's geometric parameter analogue value that the above-mentioned scaling method Calculation Simulation of foundation obtains and actual value are as shown in Table 1.As can be seen from the results, the method precision is very high.
Form 1
? |
R |
D |
α |
β |
γ |
u
0 |
v
0 |
Actual value |
570 |
1005 |
-1.5708 |
-1.5708 |
0.00 |
257 |
257 |
Value of calculation |
571.7760 |
1008.5622 |
-1.5708 |
-1.5705 |
0.00 |
257 |
255.0620 |
Error |
0.312% |
0.354% |
0% |
0.019% |
0% |
0% |
0.754% |
The scaling method of geometric parameter and caliberating device adopt and demarcate the phantom rotation in the above-mentioned CT system, and light source and detector are motionless, thereby realize the demarcation of geometric parameter in the CT system; Be appreciated that the demarcation that can realize equally geometric parameter in the CT system for vivo CT system (demarcate phantom and fix, light source and detector rotation).
Above-mentioned caliberating device and scaling method for CT system geometric parameter, adopt the simple phantom of demarcating, rotate at turntable, demarcate the center point coordinate of the projected image of each bead on the phantom by the detector collection, center point coordinate according to projected image makes up the first projection matrix, geometry and demarcation phantom geometry according to the CT system calculate respectively the locus coordinate of each bead in described caliberating device coordinate system, and make up the second projection matrix according to described locus coordinate, calculate the projection centre point coordinates of detector plane according to the first projection matrix and the second projection matrix, light source is to the distance of detector, the torsion angle of detector, the inclination angle of detector, the anglec of rotation of detector and light source are to the distance of turntable rotating shaft.
Above-mentioned caliberating device and scaling method only need carry out whole 7 geometric parameters that 1 projection just can be demarcated the CT system simultaneously to demarcating phantom, and be simple to operate, greatly satisfied the image rectification of follow-up CT system; In addition, above-mentioned caliberating device and scaling method can be applicable to exsomatize CT system and vivo CT system, wide adaptability simultaneously; Simultaneously, above-mentioned nominal volume mode structure is simple, preparation cost is cheap, is easy to obtain.
The above, it only is preferred embodiment of the present invention, be not that the present invention is done any pro forma restriction, although the present invention discloses as above with preferred embodiment, yet be not to limit the present invention, any those skilled in the art, within not breaking away from the technical solution of the present invention scope, when the technology contents that can utilize above-mentioned announcement is made a little change or is modified to the equivalent embodiment of equivalent variations, in every case be not break away from the technical solution of the present invention content, any simple modification that foundation technical spirit of the present invention is done above embodiment, equivalent variations and modification all still belong in the scope of technical solution of the present invention.