Disclosure of Invention
The invention aims to provide a method and a system for calibrating filament current of an X-ray tube, and aims to solve the problems that in the prior art, the current precision is insufficient, the calibration time is long, and the anode of the X-ray tube is heated seriously due to multiple exposures during the calibration of the filament current.
The invention is realized in such a way that a method for calibrating the filament current of an X-ray tube comprises the following steps:
collecting the current value of the X-ray tube for multiple times, and calculating the average current value;
judging whether the current filament current value is suitable for a preset current value of a current gear to be calibrated of the X-ray tube or not according to the average current value;
if not, calibrating the filament current value, performing the step of collecting the current value of the X-ray tube for multiple times, and calculating the average current value;
and if the current value is suitable, saving the filament current value and finishing the calibration.
Further, the acquiring current values of the X-ray tube a plurality of times and calculating an average current value includes:
collecting the current value flowing through the X-ray tube according to a preset time interval within a preset time;
calculating the average current value of the X-ray tube in the preset time according to the current value of the X-ray tube acquired in the preset time;
judging whether the current filament current value is suitable for the preset current value of the current gear to be calibrated of the X-ray tube according to the average current value comprises the following steps:
judging whether the average current value is within the error range of a preset current value or not;
if the current filament current value is not suitable for the preset current value of the current gear to be calibrated of the X-ray tube, judging that the current filament current value is not suitable for the preset current value of the current gear to be calibrated of the X-ray tube.
Further, the calibrating the filament current value includes:
acquiring a target filament current value corresponding to the preset current value according to the corresponding relation between the current value of the X-ray tube and the filament current value;
acquiring an actual filament current value corresponding to the preset current value according to a preset identification parameter algorithm;
calculating a deviation amount of the target filament current value and the actual filament current value;
and calibrating the filament current value according to the deviation amount.
Further, the obtaining of the actual filament current value corresponding to the average current value according to a preset identification parameter algorithm includes:
representing the preset current value by I, respectively representing the preset current value by I1And I2The preset current values of the last two times are shown as Fdata1Is represented by1Corresponding filament current value in Fdata2Is represented by2Corresponding filament current value in FdataAnd representing the actual filament current value corresponding to the preset current value, then:
Fdata=[(Fdata1-Fdata2)/(I1-I2)]*(I-I1)+Fdata1。
further, after saving the filament current value, the method further includes:
judging whether all current gears to be calibrated of the X-ray tube are completely calibrated or not, and if so, finishing calibration;
and if not, executing the step of calibrating the filament current value.
The invention also provides a calibration system for the filament current of the X-ray tube, which comprises the following components:
the current acquisition unit is used for acquiring the current value of the X-ray tube for multiple times and calculating the average current value;
the current judging unit is used for judging whether the current filament current value is suitable for the preset current value of the current gear to be calibrated of the X-ray tube or not according to the average current value;
and the judgment execution unit is used for calibrating the filament current value if the filament current value is not suitable, instructing the current acquisition unit to execute the steps of acquiring the current value of the X-ray tube for multiple times and calculating the average current value, and if the filament current value is suitable, saving the filament current value and finishing calibration.
Further, the current collection unit is specifically configured to:
collecting the current value flowing through the X-ray tube within preset time according to preset time intervals, and calculating the average current value of the X-ray tube within the preset time according to the current value of the X-ray tube collected within the preset time;
the current determination unit is specifically configured to:
and judging whether the average current value is within the error range of a preset current value, if so, judging that the current filament current value is suitable for the preset current value of the current gear to be calibrated of the X-ray tube, and if not, judging that the current filament current value is not suitable for the preset current value of the current gear to be calibrated of the X-ray tube.
Further, the judgment execution unit includes:
the target value acquisition module is used for acquiring a target filament current value corresponding to the preset current value according to the corresponding relation between the current value of the X-ray tube and the filament current value;
the deviation value calculation module is used for acquiring an actual filament current value corresponding to the preset current value according to a preset identification parameter algorithm and calculating the deviation value of the target filament current value and the actual filament current value;
and the current value calibration module is used for calibrating the filament current value according to the deviation amount.
Further, the deviation amount calculation module is specifically configured to:
representing the preset current value by I, respectively representing the preset current value by I1And I2The preset current values of the last two times are shown as Fdata1Is represented by1Corresponding filament current value in Fdata2Is represented by2Corresponding filament current value in FdataAnd representing the actual filament current value corresponding to the preset current value, then:
Fdata=[(Fdata1-Fdata2)/(I1-I2)]*(I-I1)+Fdata1。
further, the determination execution unit is further configured to:
judging whether all current gears to be calibrated of the X-ray tube are completely calibrated or not, and if so, finishing calibration;
and if not, executing the step of calibrating the filament current value.
Compared with the prior art, the invention has the beneficial effects that: in the embodiment of the invention, the current value of the X-ray tube is acquired for multiple times, the average current value is calculated, whether the current filament current value is suitable for the preset current value of the X-ray tube is judged according to the average current value, if so, the filament current value is stored, and if not, the calibration is carried out again. Through this embodiment, only need just can judge that present filament current value is enough to be fit for X-ray tube's the current value of predetermineeing through average current value, because can know whether filament current value is suitable through a large amount of tests, calibration time is short, reduces the anode exposure number of times, because the average current value that obtains according to sampling calculation many times simultaneously judges and calibrates, and the current precision of calibrating out is high, and calibration time is short.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 illustrates a calibration method for a filament current of an X-ray tube according to an embodiment of the present invention, including:
s101, collecting the current value of the X-ray tube for multiple times, and calculating the average current value;
s102, judging whether the current filament current value is suitable for a preset current value of a current gear to be calibrated of the X-ray tube or not according to the average current value;
s103, if the current value is not suitable, calibrating the filament current value, and returning to the step S101;
s104, if the current values are suitable, the filament current values are stored, whether all current gears to be calibrated of the X-ray tube are calibrated completely is judged, and if the current gears to be calibrated are calibrated completely, the calibration is finished;
if not completed, S105 returns to step S103.
In step S101, one sampling time and one sampling interval are set, and for example, within a certain time period for starting calibration, the current of the X-ray tube is sampled at 50 seconds as the sampling time and at 5 seconds as the sampling interval to obtain 10 sampled current values, and the obtained 10 sampled current values are averaged to obtain an average current value.
In particular, the usual current steps of an X-ray tube include: 10mA, 11mA, 12.5mA, 14mA, 16mA, 18mA, 20mA, 22mA, 25mA, 28mA, 32mA, 36mA, 40mA, 45mA, 50mA, 56mA, 63mA, 71mA, 80mA, 90mA, 100mA, 110mA, 125mA, 140mA, 160mA, 180mA, 200mA, 220mA, 250mA, 280mA, 320mA, 360mA, 400mA, 450mA, 500mA, 560mA, 630mA, the output voltage range of the X-ray tube is as follows: 40kv-150kv, and the stepping voltage is 1 kv. In a specific calibration process, calibration is generally started with an output voltage of 40kv and a current tap of 10mA, in step S102, an error range of a preset current value is set, for example, during calibration, the current value of the X-ray tube is set to 200mA, and an error range of an average current value calculated in the calibration process is set, for example, an upper error limit of +5mA and a lower error limit of-5 mA of the current value of the X-ray tube are set, when the calculated average current value is in a range of 195mA to 205mA, it can be determined that the current filament current value is suitable for the preset current value of the current tap to be calibrated of the X-ray tube, and if the calculated average current value is not in a range of 195mA to 205mA, it is determined that the current filament current value is not suitable for the preset current tap to be calibrated of the X-ray tube, and the filament current needs to be calibrated.
In step S103, if the determination result obtained in step S102 is that the current filament current value is not suitable for the preset current value of the current gear to be calibrated of the X-ray tube, the filament current needs to be calibrated again, specifically, the calibration step is:
and S1031, acquiring a target filament current value corresponding to the preset current value according to the corresponding relation between the current value of the X-ray tube and the filament current value. In this step, the calibration system obtains a target filament current value corresponding to the average current value according to a preset correspondence between the current value of the X-ray tube and the filament current value, so as to perform the subsequent steps according to the target filament current value.
S1032, acquiring an actual filament current value corresponding to the preset current value according to a preset identification parameter algorithm. In this step, the preset current values are represented by I, and I is used for each1And I2The preset current values of the last two times are shown as Fdata1Is represented by1Corresponding lampFilament current value of Fdata2Is represented by2Corresponding filament current value in FdataRepresenting the actual filament current value corresponding to the preset current value according to a formula Fdata=[(Fdata1-Fdata2)/(I-I1)]*(I1-I2)+Fdata1Calculating to obtain an actual filament current value corresponding to the preset current value, specifically, in the formula, I1Indicating the last set preset current value, I, of the X-ray tube2Indicating the last set preset current value of the X-ray tube. For example, the current value of the X-ray tube set at the present time is I-80 mA, and the current value of the X-ray tube set at the last time is I163mA, and the last filament current value is Fdata1The current value of the X-ray tube set last time is I4.2A250mA, and the current value of the filament at the last time is Fdata2When the current value is 4.0A, the filament current value corresponding to the X-ray tube at the current time is Fdata=[(Fdata1-Fdata2)/(I1-I2)]*(I-I1)+Fdata1=[(4.2-4.0)/(63-50)]*[80-63]+4.2 ═ 4.55 mA. When the filament is heated at 4.55mA, the output tube current is I3(ii) a Current value I sampled during calibration3If the deviation is larger than the preset I deviation, recalibration is needed: fdata3=[(Fdata2-Fdata)/(I2-I3)]*(I-I3)+Fdata2。
S1033, a deviation amount of the target filament current value and the actual filament current value is calculated. In this step, the deviation amount is calculated from the target filament current value obtained in step S1031 and the actual filament current value calculated in step S1032, and assuming that the target filament current value obtained in step S1031 is 4.7mA, the deviation amount is 4.55-4.7-0.15 mA, and if the target filament current value obtained in step S1031 is 4.3, the deviation amount is 4.55-4.3-0.25 mA.
S1034, calibrating the filament current value according to the deviation amount. In this step, the calibration system performs calibration based on the deviation amount calculated in step S1033.
In step S104, after the current gear to be calibrated is calibrated, the next gear to be calibrated is continuously calibrated according to a preset calibration order, after all the current gears to be calibrated are calibrated, the calibration procedure is exited, and if there is an unfinished current gear, the unfinished current gear is continuously calibrated.
According to the embodiment provided by the invention, whether the current filament current value is suitable or not can be determined only by collecting the current value of the X-ray tube within the preset time for multiple times and calculating the average current value according to the current values collected for multiple times, if not, the filament current value is calibrated, and if so, the filament current value is stored. Furthermore, the current actual filament current value is calculated according to a preset formula, so that the accurate value of the current actual filament current value can be accurately calculated. According to the embodiment of the invention, whether the filament current value is suitable can be known without a large number of tests, the calibration time is short, the anode exposure times are reduced, and meanwhile, the current precision obtained by calibration is high because the average current value obtained by multiple sampling calculation is judged and calibrated.
The present invention also provides a system for calibrating a filament current of an X-ray tube as shown in fig. 2, comprising:
a current collecting unit 201 for collecting a current value of the X-ray tube for a plurality of times and calculating an average current value;
a current determining unit 202, configured to determine whether a current filament current value is suitable for a preset current value of the X-ray tube according to the average current value;
and the judgment execution unit 203 is used for calibrating the filament current value if the filament current value is not suitable, instructing the current acquisition unit to execute the step of acquiring the current value flowing through the X-ray tube, and storing the filament current value if the filament current value is suitable and finishing calibration.
Further, the current collecting unit 201 is specifically configured to:
collecting the current value flowing through the X-ray tube within preset time according to preset time intervals, and calculating the average current value of the X-ray tube within the preset time according to the current value of the X-ray tube collected within the preset time;
the current determination unit 202 is specifically configured to:
and judging whether the average current value is within the error range of a preset current value, if so, judging that the current filament current value is suitable for the preset current value of the current gear to be calibrated of the X-ray tube, and if not, judging that the current filament current value is not suitable for the preset current value of the X-ray tube.
Further, as shown in fig. 3, the judgment execution unit 203 includes:
a target value obtaining module 2031 configured to obtain a target filament current value corresponding to the preset current value according to a correspondence between a current value of the X-ray tube and a filament current value;
a deviation amount calculation module 2032, configured to obtain an actual filament current value corresponding to the preset current value according to a preset identification parameter algorithm, and calculate a deviation amount between the target filament current value and the actual filament current value;
a current value calibration module 2033, configured to calibrate the filament current value according to the deviation amount.
Further, the deviation amount calculating module 2032 is specifically configured to:
representing the preset current value by I, respectively representing the preset current value by I1And I2The preset current values of the last two times are shown as Fdata1Is represented by1Corresponding filament current value in Fdata2Is represented by2Corresponding filament current value in FdataAnd representing the actual filament current value corresponding to the preset current value, then:
Fdata=[(Fdata1-Fdata2)/(I1-I2)]*(I-I1)+Fdata1。
further, the judgment execution unit 203 is further configured to:
judging whether all current gears to be calibrated of the X-ray tube are completely calibrated or not, and if so, finishing calibration;
and if not, executing the step of calibrating the filament current value.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.