Summary of the invention
Embodiments provide a kind of method and apparatus by touch screen regulating time gain compensation function, the button overcome in prior art on logical keyboard regulates TGC, causes button easily aging, makes the shortcoming of TGC functional failure.
Embodiments provide a kind of method by touch screen regulating time gain compensation function, described method comprises:
Instruction unpack time gain compensation control inerface is touched according to user;
The time gain compensation of user's input is obtained by the time gain compensation control inerface on touch screen;
According to the time gain compensation that described user inputs, change the setting of equipment.
Preferably, described user touches instruction is the curve that draws on the touchscreen of user or straight line.
Preferably, described touch instruction unpack time gain compensation control inerface according to user after, described acquisition user input time gain compensation before, described method also comprises:
Judge the touch operation in described touch screen, whether time gain compensation interface having in setup times user, if had, then perform the described time gain compensation being obtained user's input by the time gain compensation control inerface on touch screen;
If not, then terminate.
Preferably, the described time gain compensation being obtained user's input by the time gain compensation control inerface on touch screen, is specifically comprised:
By the time gain compensation that the time gain compensation control inerface acquisition user on touch screen inputs different depth.
Preferably, after the setting of described change equipment, described method also comprises:
Record the setting of described change equipment.
The embodiment of the present invention also provides a kind of Vltrasonic device, comprising: open units of pages, touches acquiring unit, and setting unit,
Describedly open units of pages, for touching instruction unpack time gain compensation control inerface according to user;
Described touch acquiring unit, for obtaining the time gain compensation of user's input by the time gain compensation control inerface on touch screen;
Described setting unit, for the time gain compensation inputted according to described user, changes the setting of described Vltrasonic device.
Preferably, described user touches instruction is the curve that draws on the touchscreen of user or straight line.
Preferably, described device also comprises: judging unit, for judging the touch operation in described touch screen, whether time gain compensation interface having in setup times user, if had, then notify that described touch acquiring unit performs the described time gain compensation being obtained user's input by the time gain compensation control inerface on touch screen; If not, then terminate.
Preferably, described touch acquiring unit, calculates specifically for the position of sliding to user on described touch screen, using the time gain compensation that the time gain compensation obtained after calculating inputs as user.
Preferably, described device also comprises:
Record cell, for recording the setting of described change equipment.
As can be seen from the above technical solutions, the embodiment of the present invention obtains the TGC of user's input by the TGC control inerface on touch screen, thus the TGC changing equipment is arranged, the scheme that the embodiment of the present invention provides compare with prior art in regulate the scheme of TGC, due to the TGC adopting the TGC control inerface input user on touch screen to arrange, user only needs to touch on screen, do not need special button, avoid button problem of aging of a specified duration, simultaneously, reduce the cost increasing button hardware, overcome and the problems such as upgrading are not easy to TGC regulatory function.
Detailed description of the invention
Embodiments provide a kind of method and apparatus by touch screen regulating time gain compensation function, the decay of ultrasonic echo in human body of launching at ultrasonic device increases with degree of depth increase, need ultrasonoscopy from closely regulating, to make remote tissue can obtain clear display equally to different depth distribution far away.When needing the gain increasing a certain certain depth, regulate corresponding TGC.The technical scheme that the embodiment of the present invention provides obtains the TGC of user's input by the TGC control inerface on touch screen, thus the TGC changing equipment is arranged, the scheme that the embodiment of the present invention provides compare with prior art in regulate the scheme of TGC, due to the TGC adopting the TGC control inerface input user on touch screen to arrange, user only needs to touch on screen, do not need special button, avoid button problem of aging of a specified duration, simultaneously, reduce the cost increasing button hardware, overcome and the problems such as upgrading are not easy to TGC regulatory function.
Being described in detail as follows the embodiment of the present invention:
As shown in Figure 1, be a kind of method by touch screen regulating time gain compensation function that the embodiment of the present invention provides, the method comprises:
Step 101: touch instruction unpack TGC control inerface according to user;
Step 102: the TGC being obtained user's input by the TGC control inerface on touch screen;
Wherein, obtain by TGC control inerface on touch screen the time gain compensation that user inputs different depth.User inputs TGC by touch screen to a certain certain depth, can be specifically on screen, show the interface that TGC is regulated, by this interface showing the slide block to multiple depth adjustment, as shown in Figure 2, the adjusting slider to 8 degree of depth is shown in current display interface, user can by the slip of each slide block TGC as input, the input of user also can be that each slide block slides separately, also can be, as shown in Figure 2 A for TGC display interface touching in 8 of adjustment the TGC slide block of the degree of depth of illustrating, as in Fig. 2 B, user draws a curve or straight line on the touchscreen, the intersection point of this curve and every bar slide block place track is as the TGC inputted, wherein, the straight line at place when the track at every bar slide block place can be understood as skid.It is also to be appreciated that, user can only to the TGC partly or completely regulated according to actual needs in current 8 kinds of degree of depth, as shown in Figure 2 B, for user regulates the TGC of 8 of present examples degree of depth, as shown in FIG. 2 C, for user draw curve only on the touchscreen, have intersection point with the track at part slide block place, currently the TGC of the degree of depth in 5 to be re-entered as middle display, namely represent that user only regulates the TGC of partial depth; Have the degree of depth in 3 to regulate, then the TGC not carrying out regulating keeps last user to arrange.Fig. 2 A, 2B, 2C are only that the one for the ease of understanding illustrates, and the restriction not to the embodiment of the present invention, equipment is also not limited to 8 degree of depth of present examples to the setting of the degree of depth, can be other degree of depth different arbitrarily.
It is also to be appreciated that in step 102, the concrete operations being obtained the TGC of user's input by the TGC control inerface on touch screen also can be comprised: calculate the position that user on touch screen slides, using the TGC that the TGC obtained after calculating inputs as user.
Still for the interface in Fig. 2 A, the scope can slided for each slide block is 0 to 255, and namely the adjustable scope of TGC is 0 ~ 255.When certain on the straight line that user touches slide block place is put, namely slide block drops on this point, and equipment calculates this position, obtains the TGC value of this position.
Step 103: according to the TGC of user's input, changes the setting of equipment.
By the TGC of input in above-mentioned steps 102, the TGC that equipment will change in each degree of depth, makes ultrasonic equipment show more accurate.
By the above-mentioned explanation to a kind of method by touch screen regulating time gain compensation function that the embodiment of the present invention provides, the program obtains the TGC of user's input by the TGC control inerface on touch screen, thus the TGC changing equipment is arranged, the scheme that the embodiment of the present invention provides compare with prior art in regulate the scheme of TGC, due to the TGC adopting the TGC control inerface input user on touch screen to arrange, user only needs to touch on screen, do not need special button, avoid button problem of aging of a specified duration, simultaneously, reduce the cost increasing button hardware, overcome and the problems such as upgrading are not easy to TGC regulatory function.
And the technical scheme that the embodiment of the present invention provides, user only needs to draw on the touchscreen the adjustment that straight line or curve just can realize time gain compensation function, and operational approach is very convenient.
Further, after step 101, or before step 102, the method can also comprise:
Step 104: judge the touch operation in touch screen, whether TGC interface having in setup times user, if so, performs step 102; If not, then terminate, or return to the main interface of touch screen;
Wherein, the shortcut at TGC interface can be shown on the touchscreen, user clicks this shortcut, TGC interface can be opened, after opening TGC interface, how within the time arranged, such as setup times is in 3 seconds, do not touch the control on TGC interface or this TGC interface further, equipment can be given tacit consent to not to be needed to operate this TGC interface, thus closes this function.If user has operation on TGC interface, then perform subsequent step 102 further, the TGC of equipment is regulated.
Making the method more intelligent by increasing above-mentioned steps 104, realizing when without operation, automatic closing function window.
Further, after step 103, the method can also comprise:
Step 105: the setting changing equipment in recording step 103.
By increasing step 105, make actuating equipment can preserve user's historical operating data, for recovering historical operation.Simultaneously, equipment optionally can send new TGC to ultrasonic system by the TGC of input last on touch screen, the absolute value of the TGC that such as new TGC and last time are arranged just sends data to ultrasonic system when differing 4, and this phase difference value user can configure.
By increasing step 105, also can make the next time setting of user to equipment more accurate and visual.
The embodiment of the present invention also provides a kind of Vltrasonic device, and as shown in Figure 3, this Vltrasonic device comprises: open units of pages 301, touches acquiring unit 302, and setting unit 303.
Wherein, open units of pages 301, for touching instruction unpack TGC control inerface according to user;
Touch acquiring unit 302, for being obtained the time gain compensation of user's input by the TGC control inerface of touch screen;
Setting unit 303, for the time gain compensation inputted according to described user, changes the setting of this Vltrasonic device.
By the above-mentioned explanation to a kind of Vltrasonic device that the embodiment of the present invention provides, acquiring unit obtains user's input TGC by the TGC control inerface on touch screen is touched in this device, thus the TGC changing equipment is arranged, the scheme that the embodiment of the present invention provides compare with prior art in regulate the scheme of TGC, due to the TGC adopting the TGC control inerface input user on touch screen to arrange, user only needs to touch on screen, do not need special button, avoid button problem of aging of a specified duration, simultaneously, reduce the cost increasing button hardware, overcome and the problems such as upgrading are not easy to TGC regulatory function.
Further, this Vltrasonic device can also comprise: judging unit 304, for judging the touch operation in touch screen, whether time gain compensation interface having in setup times user, if had, then notice is touched acquiring unit and performs the time gain compensation being obtained user's input by the TGC control inerface on touch screen; If not, then terminate.
Wherein, the shortcut at TGC interface can be shown on the touchscreen, user clicks this shortcut, TGC interface can be opened, after opening TGC interface, how within the time arranged, such as setup times is in 3 seconds, do not touch the control on TGC interface or this TGC interface further, equipment can be given tacit consent to not to be needed to operate this TGC interface, thus closes this function.If user has operation on TGC interface, then perform subsequent step 102 further, the TGC of equipment is regulated.
Making this device more intelligent by increasing above-mentioned judging unit 304, realizing when without operation, automatic closing function window.
Further, touch acquiring unit 302, calculate specifically for the position of sliding to user on touch screen, using the time gain compensation that the time gain compensation obtained after calculating inputs as user.
Further, touch acquiring unit 302, specifically for being obtained the time gain compensation that user inputs different depth by the TGC control inerface on touch screen.
Further, this Vltrasonic device can also comprise: record cell 305, for recording the setting of described change equipment.
By increasing record cell 305, make actuating equipment can preserve user's historical operating data, for recovering historical operation.Simultaneously, equipment optionally can send new TGC to ultrasonic system by the TGC of input last on touch screen, the absolute value of the TGC that such as new TGC and last time are arranged just sends data to ultrasonic system when differing 4, and this phase difference value user can configure.
By increasing record cell 305, also can make the next time setting of user to equipment more accurate and visual.
More detailed descriptions about this Vltrasonic device with reference to the explanation in said method embodiment, can not repeat herein.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read only memory, disk or CD etc.
Above a kind of method and apparatus by touch screen regulating time gain compensation function provided by the present invention is described in detail, for one of ordinary skill in the art, according to the thought of the embodiment of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.