CN103645841B - Realize the method and apparatus that the mouse 3D depth of field is adaptively shown - Google Patents
Realize the method and apparatus that the mouse 3D depth of field is adaptively shown Download PDFInfo
- Publication number
- CN103645841B CN103645841B CN201310684787.3A CN201310684787A CN103645841B CN 103645841 B CN103645841 B CN 103645841B CN 201310684787 A CN201310684787 A CN 201310684787A CN 103645841 B CN103645841 B CN 103645841B
- Authority
- CN
- China
- Prior art keywords
- mouse
- control
- depth
- field
- signified
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000018199 S phase Effects 0.000 claims description 8
- 101100113065 Mus musculus Cfi gene Proteins 0.000 claims description 6
- 238000013316 zoning Methods 0.000 claims description 4
- 230000003993 interaction Effects 0.000 abstract description 3
- 208000002173 dizziness Diseases 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 230000035807 sensation Effects 0.000 description 3
- 230000007423 decrease Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000004069 differentiation Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000005192 partition Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
The present invention, which is disclosed, a kind of realizes the method that the mouse 3D depth of field is adaptively shown, including step:Obtain mouse current location and mouse picture size;Count the signified control quantity of mouse;The mouse depth of field is set according to pre-defined rule;Mouse is shown according to the mouse depth of field of setting, and when the signified control quantity of mouse is in two or more, judge the relation of the depth of field and the mouse depth of field of each signified control of mouse, if the depth of field of mouse is more than the depth of field of the signified control of mouse, then remove and mouse progress 3D is shown after the lap of mouse and control on mouse, if the depth of field of mouse is less than or equal to the depth of field of each signified control of mouse, 3D directly is carried out to mouse and shown.The equipment that the mouse 3D depth of field is adaptively shown is realized invention additionally discloses a kind of.The present invention, so as to realize that the 3D of mouse is shown, can be conducive to the human-computer interaction of 3D field of video displaying when mouse is moved according to the depth of field of the depth of field adjust automatically mouse of different background object or control.
Description
Technical field
The present invention relates to 3D(It is three-dimensional)Field of video displaying, more particularly to a kind of realize what the mouse 3D depth of field was adaptively shown
Method and apparatus.
Background technology
Mouse on the TV without touch function, there is very important work as a kind of conventional TV peripheral hardware
With.It is enhanced interacts impression with TV, especially can more easily freely be played when game is played.On the one hand it brings
A kind of interaction of TV it is convenient;On the other hand us have also been brought more to challenge.Current mouse in TV domain into
For a kind of indispensable equipment, or even its function is integrated into remote control.These certain mouses are in television
In be all with 2D(Two dimension)Form exist, although some application scenarios are under 3D states, in 3D states, have it is many not
Same object or control, the depth of field that these objects and control are embodied is different, and following two sides are primarily present here
The problem of face:First, when the depth of field of mouse is less than the signified background object of mouse or control, sensuously mouse is floatd in object or control
On part;The second is the depth of field of mouse is more than the signified background object of mouse or control, this just has a kind of effect of dizziness.
The content of the invention
It is a primary object of the present invention to provide a kind of to realize the method and apparatus that the mouse 3D depth of field is adaptively shown, it is intended to
Realize that mouse can be according to the depth of field of the depth of field adjust automatically mouse of different background object or control, to improve use when mobile
The experience index at family.
To achieve these goals, present invention offer is a kind of realizes the method that the mouse 3D depth of field is adaptively shown, including step
Suddenly:
S1, acquisition mouse current location and mouse picture size;
S2, the mouse current location according to acquisition and mouse picture size, the signified control quantity of statistics mouse;
S3, according to the signified control quantity of mouse, set the mouse depth of field according to pre-defined rule;
S4, mouse is shown according to the mouse depth of field of setting, and when the signified control quantity of mouse is in two or more, judged
The relation of the depth of field and the mouse depth of field of each control of mouse meaning, if the depth of field of mouse is more than the depth of field of the signified control of mouse,
Then remove and mouse progress 3D is shown after the lap of mouse and control on mouse, if the depth of field of mouse is less than or equal to
The depth of field of each control of mouse meaning, then directly carry out 3D to mouse and show.
Preferably, the step S2 is specifically included:
S21, multiple theoretical subregions are divided on a display screen;
S22, all control positions of traversal;
S23, each control is calculated in each theoretical subregion percentage;It is the control to select the maximum subregion of percentage
Subregion where part;By the edge of the boundary adjustment of other subregions shared by control to control, the control is set to be merely present in shared hundred
Divide than maximum subregion, the multiple actual subregions corresponding with the multiple theoretical subregion are obtained after boundary adjustment;
S24, according to the mouse current location that gets and mouse picture size, obtain mouse institute on a display screen in theory
The region S accounted for;Determine the actual subregion SZ of mouse in theory on a display screen belonging to shared region S;To the reality belonging to mouse
The region C shared by each control in the subregion SZ of border is compared with region S-phase shared by mouse one by one, if region C and region S has weight
Folded part, then it is the signified control of mouse to record current control;According to the signified control quantity of record result statistics mouse.
Preferably, the step S3 is specifically included:
When the signified control quantity of mouse is in two or more, mouse is indicated on multiple controls, calculates mouse and mouse institute
Refer to the lap after each control compares, obtain each with mouse picture size by each control and mouse lap
The overlapping percentages of individual control, the mouse depth of field is set according to the overlapping percentages of each control according to pre-defined rule.
Preferably, the step of overlapping percentages according to each control set the mouse depth of field according to pre-defined rule is specific
Including:
Maximum overlap percentage Dmax is selected from the overlapping percentages of each signified control of mouse by the method for sequence;
Whether have sensing control, if the mouse point of mouse has sensing control, obtain mouse if judging the mouse point of mouse
The signified control of mouse point overlapping percentages Dn and set threshold values D0, accused Maximum overlap percentage Dmax and mouse are sharp
The overlapping percentages Dn of part difference is compared with D0, if Dmax-Dn>D0, setting Maximum overlap percentage Dmax institutes are right
The depth of field for the control answered is the depth of field of mouse, if | Dmax-Dn |<=D0, sets the depth of field of the signified control of mouse point as mouse
The depth of field;If the mouse point of mouse is not pointed towards control, the scape of the control corresponding to setting Maximum overlap percentage Dmax
Depth is the depth of field of mouse.Preferably, the step S3 specifically also includes:
When the signified control quantity of mouse is zero, mouse is indicated in background, obtains the depth of field of the current signified background of mouse
For the depth of field of mouse;
When the signified control quantity of mouse is one, mouse is only indicated on a control, obtains the signified control of mouse
The depth of field is the depth of field of mouse.
The present invention also provide it is a kind of realize the equipment that the mouse 3D depth of field is adaptively shown, including:
Mouse attribute acquisition module, for obtaining mouse current location and mouse picture size;
Control statistical module, for the mouse current location obtained according to the mouse attribute acquisition module and mouse picture
Size, the signified control quantity of statistics mouse;
Mouse depth of field setting module, for the signified control quantity of mouse according to the control statistical module counts, according to
Pre-defined rule sets the mouse depth of field;
Mouse 3D display module, for showing mouse according to the mouse depth of field of setting, and when the signified control quantity of mouse
In two or more, the relation of the depth of field and the mouse depth of field of each signified control of mouse is judged, if the depth of field of mouse is more than mouse
The depth of field of the signified control of mark, then remove and mouse progress 3D shown after the lap of mouse and control on mouse, if mouse
The target depth of field is less than or equal to the depth of field of each signified control of mouse, then directly carrying out 3D to mouse shows.
Preferably, the control statistical module includes:
Theoretical zoning unit, for dividing multiple theoretical subregions on a display screen;
Control acquiring unit, for traveling through all control positions;
Adjustment unit, for calculating each control in each theoretical subregion percentage;Select percentage maximum
Subregion is subregion where the control;By the edge of the boundary adjustment of other subregions shared by control to control, the control is set only to deposit
It is the maximum subregion of percentage, the multiple reality corresponding with the multiple theoretical subregion is obtained after boundary adjustment
Subregion;
Statistic unit, for according to the mouse current location and mouse picture size got, obtaining mouse and existing in theory
Shared region S on display screen;Determine the actual subregion SZ of mouse in theory on a display screen belonging to shared region S;, to mouse
The region C shared by each control in actual subregion SZ belonging to mark is compared with region S-phase shared by mouse one by one, if region C
There is lap with region S, then it is the signified control of mouse to record current control;Count the signified control quantity of mouse.
Preferably, the mouse depth of field setting module includes:
Computing unit, for when the signified control quantity of mouse is in two or more, calculating mouse and each signified control of mouse
Part compare after lap, each control is obtained by each control and mouse lap and mouse picture size
Overlapping percentages;And
Mouse depth of field setup unit, mouse scape is set for the overlapping percentages according to each control according to pre-defined rule
It is deep.
Preferably, the mouse depth of field setup unit specifically for:
Maximum overlap percentage Dmax is selected from the overlapping percentages of each signified control of mouse by the method for sequence;
Whether have sensing control, if the mouse point of mouse has sensing control, obtain mouse if judging the mouse point of mouse
The signified control of mouse point overlapping percentages Dn and set threshold values D0, accused Maximum overlap percentage Dmax and mouse are sharp
The overlapping percentages Dn of part difference is compared with D0, if Dmax-Dn>D0, setting Maximum overlap percentage Dmax institutes are right
The depth of field for the control answered is the depth of field of mouse, if | Dmax-Dn |<=D0, sets the depth of field of the signified control of mouse point as mouse
The depth of field;If the mouse point of mouse is not pointed towards control, the scape of the control corresponding to setting Maximum overlap percentage Dmax
Depth is the depth of field of mouse.Preferably, the mouse depth of field setup unit is additionally operable to:When the signified control quantity of mouse is zero, obtain
The depth of field for taking the current signified background of mouse is the depth of field of mouse;When the signified control quantity of mouse is one, mouse is obtained signified
The depth of field of control is the depth of field of mouse.
The present invention realizes the method and apparatus that the mouse 3D depth of field is adaptively shown, can be according to difference when mouse is moved
Background object or control depth of field adjust automatically mouse the depth of field, it is achieved thereby that the 3D of mouse is shown, be conducive to 3D videos
The human-computer interaction of display field, gives people with good Consumer's Experience.
Brief description of the drawings
Fig. 1 realizes the schematic flow sheet for the embodiment of method one that the mouse 3D depth of field is adaptively shown for the present invention.
Fig. 2 is the refined flow chart that step S2 in the method that the mouse 3D depth of field is adaptively shown is realized shown in Fig. 1.
Fig. 3 is in step S2 shown in Fig. 2, display screen theory subregion divides the exemplary plot with boundary adjustment.
Fig. 4 realized in the step S4 of the method that the mouse 3D depth of field is adaptively shown for the present invention, according to mouse it is signified each
The depth of field of control carries out an exemplary plot of mouse setting with the relation of the mouse depth of field.
Fig. 5 realizes the schematic block diagram for the embodiment of equipment one that the mouse 3D depth of field is adaptively shown for the present invention.
Embodiment
To make the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings
The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and without
It is of the invention in limiting.
As shown in figure 1, Fig. 1 realizes the flow signal for the embodiment of method one that the mouse 3D depth of field is adaptively shown for the present invention
Figure.What the present embodiment was provided realizes the method that the mouse 3D depth of field is adaptively shown, including step:
Step S1, acquisition mouse current location and mouse picture size;
Specific coordinate of the mouse current location as obtained mouse is obtained, it is X in X-direction scope to set mouses1~Xs2,
It is Y in Y direction scopes1~Ys2。
It is the size that mouse is presented on onscreen icons to obtain mouse picture size.
By obtaining mouse current location and mouse picture size, theoretical institute when mouse is shown on a display screen can be obtained
The position and region accounted for.
Step S2, the mouse current location according to acquisition and mouse picture size, the signified control quantity of statistics mouse;
According to the mouse current location of acquisition and mouse picture size, it is determined that theoretical institute when mouse is shown on a display screen
Behind the position and region that account for, then it is compared with the display picture of display screen, obtains in the display picture of display screen existing with mouse
The quantity of the equitant control in position and region when showing screen display shared by theory, if without equitant control,
Mouse meaning control quantity is zero;If equitant control, mouse meaning control quantity is corresponding overlapping number, for example
It is one or more.
Step S3, according to the signified control quantity of mouse, set the mouse depth of field according to pre-defined rule;
According to the signified control quantity of mouse, the mouse depth of field is set according to pre-defined rule, wherein, can be with according to pre-defined rule
It is that, when mouse points to two or more control simultaneously, the depth of field of the selection control maximum with mouse lap is set to mouse
The depth of field, the rule can also be Else Rule, for example, selects the depth of field of the signified control of mouse point to be set to the scape of mouse
It is deep.
Step S4, mouse is shown according to the mouse depth of field of setting, and when the signified control quantity of mouse is in two or more,
The relation of the depth of field and the mouse depth of field of each signified control of mouse is judged, if the depth of field of mouse is more than the scape of the signified control of mouse
It is deep, then remove and 3D is carried out to mouse after the lap of mouse and control on mouse shown, if the depth of field of mouse be less than or
Equal to the depth of field of each signified control of mouse, then 3D directly is carried out to mouse and shown.When the signified control quantity of mouse two with
May not be in step s3 that the depth of field is most in the signified whole controls of mouse according to the mouse depth of field set by pre-defined rule when upper
Small one, in such cases, mouse still can be overlapping with the control that the depth of field is minimum, and mouse is shown in outermost layer, can so give
User brings a kind of sensation of dizziness.Therefore, when the signified control quantity of mouse is in two or more, it is necessary to judge that mouse is signified each
The depth of field of individual control and the relation of the mouse depth of field, if the depth of field of mouse is more than the depth of field of the signified control of mouse, remove mouse
On mouse and control lap after to mouse carry out 3D show so that avoid mark with the depth of field minimum control form overlapping
Caused by dizziness feel, to achieve more preferably 3D display effects.
Reference picture 2 and Fig. 3, described to realize in the method that the mouse 3D depth of field is adaptively shown, the step S2 is specifically included:
S21, multiple theoretical subregions are divided on a display screen;
On a display screen during Partition Theory subregion, display screen is generally divided into equal size and in 3x3 arrangements by such as Fig. 3
Nine big rectangular areas, but the division of theoretical subregion is not so limited, and can also be divided into other forms, for example, is divided into
Equal size and in 4x4 16th National Congress of Communist Party of China rectangular areas arranged etc..
S22, all control positions of traversal;
In the picture that display screen is currently shown, it is understood that there may be multiple controls, it is necessary to look for after the division of theoretical subregion is carried out
Go out the location of each control piece, think that follow-up be adjusted to theoretical subregion is prepared.
S23, each control is calculated in each theoretical subregion percentage;It is the control to select the maximum subregion of percentage
Subregion where part;By the edge of the boundary adjustment of other subregions shared by control to control, the control is set to be merely present in shared hundred
Divide than maximum subregion, the multiple actual subregions corresponding with the multiple theoretical subregion are obtained after boundary adjustment;
One control, by aforesaid operations, may be carried out across two or more theoretical subregions to the border of theoretical subregion
Adjustment obtains the multiple actual subregions corresponding with the multiple theoretical subregion so that all controls are all repartitioned big nine
In actual subregion, and each control is only in an actual subregion.
Schematic diagram as given by Fig. 3, display screen is divided into equal size and the nine broad theory subregions arranged in 3x3
(The region that dotted line is divided in Fig. 3), there are 3 controls A1, A2, A3 in the current display picture of display screen, define nine broad theories
Subregion is followed successively by theoretical subregion one to theoretical subregion nine by order from left to right, from top to bottom, wherein, control A1 is across theory
Subregion three and theoretical subregion six, control A2 is across theoretical subregion four and theoretical subregion five, by above-mentioned steps S23 to theoretical subregion
Border be adjusted, obtain the big actual subregion of nine corresponding with nine broad theory subregions(The region that solid line is divided in Fig. 3), make
Control A1 is obtained only in actual subregion three, control A2 is only in actual subregion four.
Mouse meaning control is influence or the key factor for determining the mouse depth of field, and the control of display screen display may be very
It is many, all controls are handled by using the method for subregion, and a control is carried out across two or more regions
Adjustment, can make mouse ensure the vision fluency of mouse movement while not stopping to convert the 3D depth of field.
S24, according to the mouse current location that gets and mouse picture size, obtain mouse institute on a display screen in theory
The region S accounted for;Determine the actual subregion SZ of mouse in theory on a display screen belonging to shared region S;To the reality belonging to mouse
The region C shared by each control in the subregion SZ of border is compared with region S-phase shared by mouse one by one, if region C and region S has weight
Folded part, then it is the signified control of mouse to record current control;According to the signified control quantity of record result statistics mouse.
The process compared on the region C shared by control with region S-phase shared by mouse is as described below.Set shared by mouse
Region S is X in X-direction scopes1~Xs2, it is Y in Y direction scopes1~Ys2;Four tops of region C shared by control are set
Point is C1, C2, C3, C4 respectively, one is obtained in following formula if met, the control is mouse signified control, i.e. control
Part will influence or determine the mouse depth of field.
Xs1<C1x<Xs2&&Ys1<C1y<Ys2
Xs1<C2x<Xs2&&Ys1<C2y<Ys2
Xs1<C3x<Xs2&&Ys1<C3y<Ys2
Xs1<C4x<Xs2&&Ys1<C4y<Ys2
The step S3 is specifically included:
When the signified control quantity of mouse is in two or more, mouse is indicated on multiple controls, calculates mouse and mouse institute
Refer to the lap after each control compares, obtain each with mouse picture size by each control and mouse lap
The overlapping percentages of individual control, the mouse depth of field is set according to the overlapping percentages of each control according to pre-defined rule.
In the present embodiment, the overlapping percentages according to each control set the step of the mouse depth of field according to pre-defined rule
Suddenly specifically include:
Maximum overlap percentage Dmax is selected from the overlapping percentages of each signified control of mouse by the method for sequence;
Whether have sensing control, if the mouse point of mouse has sensing control, obtain mouse if judging the mouse point of mouse
The signified control of mouse point overlapping percentages Dn and set threshold values D0, accused Maximum overlap percentage Dmax and mouse are sharp
The overlapping percentages Dn of part difference is compared with D0, if Dmax-Dn>D0, setting Maximum overlap percentage Dmax institutes are right
The depth of field for the control answered is the depth of field of mouse, if | Dmax-Dn |<=D0, sets the depth of field of the signified control of mouse point as mouse
The depth of field;If the mouse point of mouse is not pointed towards control, the scape of the control corresponding to setting Maximum overlap percentage Dmax
Depth is the depth of field of mouse.
Wherein, threshold values D0 is a constant, can freely be set according to different needs, can generally be selected from 5%~20%.
It is mouse point position that usual mouse, which plays the position of practical operation, by for mouse meaning control quantity not
Together, above-mentioned differentiation processing is carried out, the optimal depth of field of mouse can be obtained, so that mouse depth of field value is more accurate.
Reference picture 4, Fig. 4 is realized for the present invention in the step S4 for the method that the mouse 3D depth of field is adaptively shown, according to mouse
The depth of field of each signified control carries out an exemplary plot of mouse setting with the relation of the mouse depth of field.In example given by Fig. 4, mouse
Target mouse point has sensing control, and the signified control quantity of mouse is two, the overlapping percentages of two signified controls of mouse
Respectively D1, D2, wherein D1 are Maximum overlap percentage, and D2 is the overlapping percentages of the signified control of mouse point, and sets valve
Value D0, then in such cases:
If D1-D2>D0, sets the depth of field of control corresponding to Maximum overlap percentage D1 as the depth of field of mouse, if |
D1-D2|<=D0, sets the depth of field of the signified control of mouse point as the depth of field of mouse.
Described to realize the method that the mouse 3D depth of field is adaptively shown, in step s3, mouse meaning control quantity is also possible to
It is zero or one, in this case, the step S3 specifically also includes:
When the signified control quantity of mouse is zero, mouse is indicated in background, obtains the depth of field of the current signified background of mouse
For the depth of field of mouse;
When the signified control quantity of mouse is one, mouse is only indicated on a control, obtains the signified control of mouse
The depth of field is the depth of field of mouse.
When mouse meaning control quantity is zero or one, the depth of field conduct of the signified figure viewed from behind of mouse or control is directly obtained
The mouse depth of field, then carries out 3D to mouse and shows, more convenient operation, quick.
Reference picture 5, Fig. 5 realizes the structure square for the embodiment of equipment one that the mouse 3D depth of field is adaptively shown for the present invention
Figure.What the present embodiment was provided realizes the equipment that the mouse 3D depth of field is adaptively shown, including mouse attribute acquisition module 10, control system
Module 20, mouse depth of field setting module 30 and mouse 3D display module 40 are counted, wherein:
The mouse attribute acquisition module 10 is used to obtain mouse current location and mouse picture size;
By obtaining mouse current location and mouse picture size, theoretical institute when mouse is shown on a display screen can be obtained
The position and region accounted for.
The control statistical module 20, for the mouse current location obtained according to mouse attribute acquisition module 10 and mouse
Picture size, the signified control quantity of statistics mouse;
According to the mouse current location of acquisition and mouse picture size, it is determined that theoretical institute when mouse is shown on a display screen
Behind the position and region that account for, then it is compared with the display picture of display screen, the signified control quantity of statistics mouse can be counted,
If mouse does not point to control, mouse meaning control quantity is zero;If mouse points to control, mouse meaning control number
Measure as corresponding number, such as it is one or more.
The mouse depth of field setting module 30, the signified control number of mouse for being counted according to the control statistical module 20
Amount, the mouse depth of field is set according to pre-defined rule;
According to the signified control quantity of mouse, the mouse depth of field is set according to pre-defined rule, wherein, can be with according to pre-defined rule
It is that, when mouse points to two or more control simultaneously, the depth of field of the selection control maximum with mouse lap is set to mouse
The depth of field, the rule can also be Else Rule, for example, selects the depth of field of the signified control of mouse point to be set to the scape of mouse
It is deep.
The mouse 3D display module 40, for showing mouse according to the mouse depth of field of setting, and when mouse is accused
Number of packages amount judges the relation of the depth of field and the mouse depth of field of each signified control of mouse, if the depth of field of mouse in two or more
More than the depth of field of the signified control of mouse, then remove and mouse progress 3D shown after the lap of mouse and control on mouse,
If the depth of field of mouse is less than or equal to the depth of field of each signified control of mouse, 3D directly is carried out to mouse and shown.
When the signified control quantity of mouse is in two or more, may not be according to the mouse depth of field set by pre-defined rule
The depth of field is minimum in the signified whole controls of mouse one, in such cases, mouse still can the minimum control of the depth of field form overlapping,
Mouse is shown in outermost layer, and a kind of sensation of dizziness can be so brought to user.Therefore, when the signified control quantity of mouse is at two
, it is necessary to the relation of the depth of field and the mouse depth of field of each signified control of mouse be judged, if the depth of field of mouse is more than mouse during the above
The depth of field of signified control, then remove and mouse progress 3D shown after the lap of mouse and control on mouse, so as to avoid
Mark and the control that the depth of field is minimum formed it is overlapping caused by dizziness sensation, to achieve more preferably 3D display effects.
Specifically, the control statistical module 20 includes theoretical zoning unit 21, control acquiring unit 22, adjustment unit 23
And statistic unit 24, wherein:
The theoretical zoning unit 21, for dividing multiple theoretical subregions on a display screen;
On a display screen during Partition Theory subregion, display screen is generally divided into equal size and in 3x3 arrangements by such as Fig. 3
Nine big rectangular areas, but the division of theoretical subregion is not so limited, and can also be divided into other forms, for example, is divided into
Equal size and in 4x4 16th National Congress of Communist Party of China rectangular areas arranged etc..
The control acquiring unit 22, for traveling through all control positions;
In the picture that display screen is currently shown, it is understood that there may be multiple controls, it is necessary to look for after the division of theoretical subregion is carried out
Go out the location of each control piece, think that follow-up be adjusted to theoretical subregion is prepared.
The adjustment unit 23, for calculating each control in each theoretical subregion percentage;Select percentage
Maximum subregion subregion where the control;By the edge of the boundary adjustment of other subregions shared by control to control, make the control
The maximum subregion of percentage is merely present in, obtains corresponding with the multiple theoretical subregion many after boundary adjustment
Individual actual subregion;
One control, by aforesaid operations, may be carried out across two or more theoretical subregions to the border of theoretical subregion
Adjustment obtains the multiple actual subregions corresponding with the multiple theoretical subregion so that all controls are all repartitioned big nine
In actual subregion, and each control is only in an actual subregion.
Mouse meaning control is influence or the key factor for determining the mouse depth of field, and the control of display screen display may be very
It is many, all controls are handled by using the method for subregion, and a control is carried out across two or more regions
Adjustment, can make mouse ensure the vision fluency of mouse movement while not stopping to convert the 3D depth of field.
The statistic unit 24, for according to the mouse current location and mouse picture size got, obtaining mouse reason
By upper shared region S on a display screen;Determine the actual subregion of mouse in theory on a display screen belonging to shared region S
SZ;, the region C shared by each control in the actual subregion SZ belonging to mouse is compared with region S-phase shared by mouse one by one, such as
Fruit region C and region S has lap, then it is the signified control of mouse to record current control;Count the signified control quantity of mouse.
The process compared on the region C shared by control with region S-phase shared by mouse is as described below.Set shared by mouse
Region S is X in X-direction scopes1~Xs2, it is Y in Y direction scopes1~Ys2;Four tops of region C shared by control are set
Point is C1, C2, C3, C4 respectively, one is obtained in following formula if met, the control is mouse signified control, i.e. control
Part will influence or determine the mouse depth of field.
Xs1<C1x<Xs2&&Ys1<C1y<Ys2
Xs1<C2x<Xs2&&Ys1<C2y<Ys2
Xs1<C3x<Xs2&&Ys1<C3y<Ys2
Xs1<C4x<Xs2&&Ys1<C4y<Ys2
The mouse depth of field setting module 30 includes computing unit 31 and mouse depth of field setup unit 32, wherein:
The computing unit 31, for when the signified control quantity of mouse is in two or more(I.e. mouse is indicated in multiple controls
On part), calculate mouse and mouse meaning each control compared with after lap, pass through each control and mouse overlapping portion
Divide the overlapping percentages that each control is obtained with mouse picture size,
The mouse depth of field setup unit 32, mouse is set for the overlapping percentages according to each control according to pre-defined rule
Mark the depth of field.
In the present embodiment, the mouse depth of field setup unit 32 specifically for:It is signified from mouse by the method for sequence
Maximum overlap percentage Dmax is selected in the overlapping percentages of each control;
Whether have sensing control, if the mouse point of mouse has sensing control, obtain mouse if judging the mouse point of mouse
The signified control of mouse point overlapping percentages Dn and set threshold values D0, accused Maximum overlap percentage Dmax and mouse are sharp
The overlapping percentages Dn of part difference is compared with D0, if Dmax-Dn>D0, setting Maximum overlap percentage Dmax institutes are right
The depth of field for the control answered is the depth of field of mouse, if | Dmax-Dn |<=D0, sets the depth of field of the signified control of mouse point as mouse
The depth of field;If the mouse point of mouse is not pointed towards control, the scape of the control corresponding to setting Maximum overlap percentage Dmax
Depth is the depth of field of mouse.Wherein, threshold values D0 be a constant, can according to it is different needs freely set, generally can be selected from 5%~
20%。
It is the sharp position of mouse that usual mouse, which plays the position of practical operation, for the difference of the signified control quantity of mouse,
Above-mentioned differentiation processing is carried out by the computing unit 31 and mouse depth of field setup unit 32, the most fine landscape of mouse can be obtained
It is deep, so that mouse depth of field value is more accurate.
The signified control quantity of the mouse of the control statistical module counts is also possible to be zero or one, in such a situation
Under, the mouse depth of field setup unit 32 is additionally operable to:When the signified control quantity of mouse is zero(I.e. mouse is indicated in background),
The depth of field for obtaining the current signified background of mouse is the depth of field of mouse;When the signified control quantity of mouse is one(I.e. mouse only refers to
Show on a control), the depth of field for obtaining the signified control of mouse is the depth of field of mouse.
When mouse meaning control quantity is zero or one, mouse depth of field setup unit 32 directly obtains the signified back of the body of mouse
The depth of field of shadow or control carries out 3D to mouse as the mouse depth of field, then and shown, more convenient operation, quick.
It should be appreciated that the foregoing is merely illustrative of the preferred embodiments of the present invention, it e insufficient to the limitation present invention's
Technical scheme, for those of ordinary skills, within the spirit and principles in the present invention, can add according to the above description
With increase and decrease, replace, convert or improve, and the technical scheme after all these increases and decreases, replacement, conversion or improvement, it should all belong to this
The protection domain of invention appended claims.
Claims (10)
1. a kind of realize the method that the mouse 3D depth of field is adaptively shown, it is characterised in that including step:
S1, acquisition mouse current location and mouse picture size;
S2, the mouse current location according to acquisition and mouse picture size, and the control in mouse picture and display picture
The overlapping cases of part, the signified control quantity of statistics mouse;
S3, the overlapping cases according to the signified control quantity of mouse and the mouse picture control signified with it, according to pre-defined rule
Set the mouse depth of field;
S4, mouse is shown according to the mouse depth of field of setting, and when the signified control quantity of mouse is in two or more, judge mouse
The relation of the depth of field and the mouse depth of field of each signified control, if the depth of field of mouse is more than the depth of field of the signified control of mouse, goes
Fall and mouse progress 3D is shown after the lap of mouse and control on mouse, if the depth of field of mouse is less than or equal to mouse
The depth of field of each signified control, then directly carry out 3D to mouse and show.
2. realize the method that the mouse 3D depth of field is adaptively shown as claimed in claim 1, it is characterised in that the step S2 tools
Body includes:
S21, multiple theoretical subregions are divided on a display screen;
S22, all control positions of traversal;
S23, each control is calculated in each theoretical subregion percentage;It to select by control the maximum subregion of percentage
In subregion;By the edge of the boundary adjustment of other subregions shared by control to control, the control is set to be merely present in percentage
Maximum subregion, obtains the multiple actual subregions corresponding with the multiple theoretical subregion after boundary adjustment;
Mouse current location and mouse picture size that S24, basis are got, obtain mouse shared on a display screen in theory
Region S;Determine the actual subregion SZ of mouse in theory on a display screen belonging to shared region S;To the reality belonging to mouse point
The region C shared by each control in area SZ is compared with region S-phase shared by mouse one by one, if region C and region S has overlapping portion
Point, then it is the signified control of mouse to record current control;According to the signified control quantity of record result statistics mouse.
3. realize the method that the mouse 3D depth of field is adaptively shown as claimed in claim 1 or 2, it is characterised in that the step
S3 is specifically included:
When the signified control quantity of mouse is in two or more, mouse is indicated on multiple controls, calculates mouse signified each with mouse
Individual control compare after lap, each is obtained by each control and mouse lap and mouse picture size and controlled
The overlapping percentages of part, the mouse depth of field is set according to the overlapping percentages of each control according to pre-defined rule.
4. realize the method that the mouse 3D depth of field is adaptively shown as claimed in claim 3, it is characterised in that described according to each
The step of overlapping percentages of control set the mouse depth of field according to pre-defined rule specifically includes:
Maximum overlap percentage Dmax is selected from the overlapping percentages of each signified control of mouse by the method for sequence;
Whether have sensing control, if the mouse point of mouse has sensing control, obtain the mouse of mouse if judging the mouse point of mouse
The overlapping percentages Dn of the signified control of mark point simultaneously sets threshold values D0, by the sharp signified control of Maximum overlap percentage Dmax and mouse
Overlapping percentages Dn difference is compared with D0, if Dmax-Dn>Corresponding to D0, setting Maximum overlap percentage Dmax
The depth of field of control is the depth of field of mouse, if | Dmax-Dn |<=D0, sets the depth of field of the signified control of mouse point as mouse
The depth of field;If the mouse point of mouse is not pointed towards control, the depth of field of the control corresponding to setting Maximum overlap percentage Dmax
For the depth of field of mouse.
5. realize the method that the mouse 3D depth of field is adaptively shown as claimed in claim 3, it is characterised in that the step S3 tools
Body also includes:
When the signified control quantity of mouse is zero, mouse is indicated in background, and the depth of field for obtaining the current signified background of mouse is mouse
The target depth of field;
When the signified control quantity of mouse is one, mouse is only indicated on a control, obtains the depth of field of the signified control of mouse
For the depth of field of mouse.
6. a kind of realize the equipment that the mouse 3D depth of field is adaptively shown, it is characterised in that including:
Mouse attribute acquisition module, for obtaining mouse current location and mouse picture size;
Control statistical module, the mouse current location and mouse picture for being obtained according to the mouse attribute acquisition module is big
It is small, and according to the overlapping cases of mouse picture and the control in display picture, the signified control quantity of statistics mouse;
Mouse depth of field setting module, for the signified control quantity of mouse and mouse figure according to the control statistical module counts
The overlapping cases of the piece control signified with it, the mouse depth of field is set according to pre-defined rule;
Mouse 3D display module, for showing mouse according to the mouse depth of field of setting, and when the signified control quantity of mouse is two
During the individual above, the relation of the depth of field and the mouse depth of field of each signified control of mouse is judged, if the depth of field of mouse is more than mouse institute
The depth of field of part is accused, then removes and mouse progress 3D is shown after the lap of mouse and control on mouse, if mouse
The depth of field is less than or equal to the depth of field of each signified control of mouse, then directly carrying out 3D to mouse shows.
7. realize the equipment that the mouse 3D depth of field is adaptively shown as claimed in claim 6, it is characterised in that the control statistics
Module includes:
Theoretical zoning unit, for dividing multiple theoretical subregions on a display screen;
Control acquiring unit, for traveling through all control positions;
Adjustment unit, for calculating each control in each theoretical subregion percentage;The subregion for selecting percentage maximum
The subregion where the control;By the edge of the boundary adjustment of other subregions shared by control to control, it is merely present in the control
The maximum subregion of percentage, obtains the multiple reality corresponding with the multiple theoretical subregion point after boundary adjustment
Area;
Statistic unit, for according to the mouse current location and mouse picture size got, obtaining mouse in theory in display
Shared region S on screen;Determine the actual subregion SZ of mouse in theory on a display screen belonging to shared region S;To mouse institute
The region C shared by each control in the actual subregion SZ of category is compared with region S-phase shared by mouse one by one, if region C and area
Domain S has lap, then it is the signified control of mouse to record current control;Count the signified control quantity of mouse.
8. realize the equipment that the mouse 3D depth of field is adaptively shown as claimed in claim 7, it is characterised in that the mouse depth of field
Setting module includes:
Computing unit, for when the signified control quantity of mouse is in two or more, calculating mouse and each signified control phase of mouse
Lap after comparing, the overlapping of each control is obtained by each control with mouse lap with mouse picture size
Percentage;And
Mouse depth of field setup unit, the mouse depth of field is set for the overlapping percentages according to each control according to pre-defined rule.
9. realize the equipment that the mouse 3D depth of field is adaptively shown as claimed in claim 8, it is characterised in that the mouse depth of field
Setup unit specifically for:
Maximum overlap percentage Dmax is selected from the overlapping percentages of each signified control of mouse by the method for sequence;
Whether have sensing control, if the mouse point of mouse has sensing control, obtain the mouse of mouse if judging the mouse point of mouse
The overlapping percentages Dn of the signified control of mark point simultaneously sets threshold values D0, by the sharp signified control of Maximum overlap percentage Dmax and mouse
Overlapping percentages Dn difference is compared with D0, if Dmax-Dn>Corresponding to D0, setting Maximum overlap percentage Dmax
The depth of field of control is the depth of field of mouse, if | Dmax-Dn |<=D0, sets the depth of field of the signified control of mouse point as mouse
The depth of field;If the mouse point of mouse is not pointed towards control, the depth of field of the control corresponding to setting Maximum overlap percentage Dmax
For the depth of field of mouse.
10. realize the equipment that the mouse 3D depth of field is adaptively shown as claimed in claim 8, it is characterised in that the mouse scape
Deep setup unit is additionally operable to:When the signified control quantity of mouse is zero, the depth of field for obtaining the current signified background of mouse is mouse
The depth of field;When the signified control quantity of mouse is one, the depth of field for obtaining the signified control of mouse is the depth of field of mouse.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310684787.3A CN103645841B (en) | 2013-12-12 | 2013-12-12 | Realize the method and apparatus that the mouse 3D depth of field is adaptively shown |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310684787.3A CN103645841B (en) | 2013-12-12 | 2013-12-12 | Realize the method and apparatus that the mouse 3D depth of field is adaptively shown |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103645841A CN103645841A (en) | 2014-03-19 |
CN103645841B true CN103645841B (en) | 2017-11-03 |
Family
ID=50251068
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310684787.3A Expired - Fee Related CN103645841B (en) | 2013-12-12 | 2013-12-12 | Realize the method and apparatus that the mouse 3D depth of field is adaptively shown |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103645841B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104820558B (en) * | 2015-05-11 | 2018-03-30 | 北京白鹭时代信息技术有限公司 | A kind of method and device for picking up the image that is blocked |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101587386A (en) * | 2008-05-21 | 2009-11-25 | 深圳华为通信技术有限公司 | Method for processing cursor, Apparatus and system |
CN102340678A (en) * | 2010-07-21 | 2012-02-01 | 深圳Tcl新技术有限公司 | Stereoscopic display device with adjustable field depth and field depth adjusting method |
CN102681766A (en) * | 2011-01-27 | 2012-09-19 | 微软公司 | Presenting selectors within three-dimensional graphical environments |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004070604A2 (en) * | 2003-02-05 | 2004-08-19 | Philips Intellectual Property & Standards Gmbh | Method of selecting objects of a user interface on a display screen |
-
2013
- 2013-12-12 CN CN201310684787.3A patent/CN103645841B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101587386A (en) * | 2008-05-21 | 2009-11-25 | 深圳华为通信技术有限公司 | Method for processing cursor, Apparatus and system |
CN102340678A (en) * | 2010-07-21 | 2012-02-01 | 深圳Tcl新技术有限公司 | Stereoscopic display device with adjustable field depth and field depth adjusting method |
CN102681766A (en) * | 2011-01-27 | 2012-09-19 | 微软公司 | Presenting selectors within three-dimensional graphical environments |
Also Published As
Publication number | Publication date |
---|---|
CN103645841A (en) | 2014-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9342921B2 (en) | Control apparatus, electronic device, control method, and program | |
EP3176678A2 (en) | Gesture-based object measurement method and apparatus | |
CN102665086B (en) | Method for obtaining parallax by using region-based local stereo matching | |
CN103677240B (en) | Virtual touch exchange method and virtual touch interactive device | |
US10540918B2 (en) | Multi-window smart content rendering and optimizing method and projection method based on cave system | |
US8538135B2 (en) | Pulling keys from color segmented images | |
CN106610761A (en) | Icon color adjusting method and device | |
JP7254405B2 (en) | Lighting rendering method, device, electronic device and computer program | |
CN102510508B (en) | Detection-type stereo picture adjusting device and method | |
CN106973288B (en) | A kind of three-dimensional video-frequency Comfort Evaluation method and device | |
TWI531212B (en) | System and method of rendering stereoscopic images | |
CN104093013B (en) | In a kind of stereo vision three-dimensional visualization system, automatically regulate the method for image parallactic | |
US20170185147A1 (en) | A method and apparatus for displaying a virtual object in three-dimensional (3d) space | |
CN102385752B (en) | Stereo matching method based on distance difference and color difference | |
EP2590418A1 (en) | Dynamic depth image adjusting device and method thereof | |
CN104978030B (en) | The software and method of display interface of mobile phone are automatically adjusted based on right-hand man | |
WO2016150322A1 (en) | Target object attribute adjustment method and device | |
CN103645841B (en) | Realize the method and apparatus that the mouse 3D depth of field is adaptively shown | |
CN105573491B (en) | The virtual man-machine interactive system of bore hole 3D privacy formulas and method | |
TWI478100B (en) | Method of image depth estimation and apparatus thereof | |
US10924721B2 (en) | Volumetric video color assignment | |
WO2011071978A1 (en) | Three dimensional image rendering | |
CN104469338B (en) | A kind of control method and device | |
CN105203072B (en) | A kind of information processing method and electronic equipment | |
CN110910482B (en) | Method, system and readable storage medium for video data organization and scheduling |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171103 |