Background technology
Three-dimensional visualization technique is for clinical medical accurate diagnosis and the more and more important effect of surgical planning. and advanced medical imaging device is advanced person's the Medical Image Processing and the basis of analysis, particularly many row CT and High-Field MR bring and clinical be: sweep velocity (0.5S), higher image resolution ratio (0.3MM), more single patient data measure (>2000 layers), wider clinical application (CTA faster, MRA) etc., meanwhile, need abundanter software processes ability.In medical diagnosis, the medical worker carries out the reconstruction of three-dimensional data by observing many group two-dimensional ct images in brain, determine the space structure of pathology body with this.This just is difficult to accurately to determine locus, size, geometric configuration and and the relation between the biological tissue on every side of pathology body.Therefore, generating 3-D view from a series of two-dimensional ct images is more and more to need with urgent medical observation.For the doctor who uses single CT over a long period of time, advanced image documentation equipment is not the lifting on the simple hardware, is the revolutionary change on diagnostic techniques, the diagnostic mode yet.If scanning, processing, the diagnostic mode of single CT of the past of continuity still or common MR, to a large extent, do not bring into play the revolutionary upgrading of equipment to the great influence in the diagnosis, but simply sophisticated equipment is thought that image is better, speed is image documentation equipment faster, to be subjected to our traditional restriction of using on idea and the method in clinical effect, and do not brought into play to the full extent.Give full play to advanced image documentation equipment clinical value, excavate the diagnosis content of mass data, just need read the sheet workstation from the 2D of routine grows with each passing hour to the 3D professional workstation. and the doctor can find real valuable image from the great amount of images data, reduced the careless omission on the diagnostic message.Except that radiology department, the 3D medical imaging plays considerable effect equally at surgical planning and teaching demonstration etc.The doctor relies on advanced PACS system and digitizing 3D professional software, can be more directly perceived, accurately, multi-angle comes the tissues observed morphosis, real enjoy by professional software bring fast, effectively, working environment intuitively.3D professional workstation system will provide solution of new generation for the clinical sheet of readding.Traditional 2D reads on the basis of sheet workstation in compatibility, and the diagnostic message that is more suitable for doctor's understanding and thinking is provided.
There are a lot of links in the concrete application of three-dimensional visualization technique, and calculate and the front end displaying rear end that comprises in data organization, pre-service, the visualization process, is a systems engineering.Here, our the front end screen of mainly describing three-dimensional visualization shows content.3-D display is crossed in the degree, need to consider how said three-dimensional body is operated intuitively, because the said three-dimensional body after we handle shows on two dimensional display, mouse action on the screen also can only have the effect of two dimension, to on two-dimensional screen, show a three-dimensional content, and will allow the user feel to be in said three-dimensional body of operation, be a cumbersome thing.Traditional method is by the mouse move left and right and moves up and down the rotary manipulation of realizing object, switches to reach with other operational motion by mouse state and switch, as shown in Figure 1, 2
The three-dimensional body center is constant when mouse moves to left, and object will be to anticlockwise; The three-dimensional body center is constant when mouse moves to right, and object will be to right rotation.
The three-dimensional body center is constant when moving on the mouse, and object will rotate up; The three-dimensional body center is constant when mouse moves down, and object will be rotated down.
Adopt this method can realize the rotary manipulation of three-dimensional body by two-dimentional mouse moving, but use in actual applications and inconvenience, at first the process of mouse moving is not a rule, as user the time to a direction translation, it not is straight that mouse moves, for example we wish mouse to left, but actual conditions tend to cause upwards or deviation to some extent downwards, so just are difficult to reach the sense of rotation that we envision.If in addition the state of mouse is defined as the state of operation rotation, other operation will change by switching mouse state, frequent switching mouse state in operating process, will have more a lot of unnecessary operational motions like this, will recognize the user for a long time and feel pretty troublesome, inconvenient service time one.
Summary of the invention
The present invention is a kind of three-dimensional image volume spinning solution, has some problems though use conventional methods, and can reach its intended purposes really.How it is improved? adopting mouse that said three-dimensional body is operated is unique operation tool that existing employing computing machine shows 3-D effect, and we can not go to change it.For the Optimizing operation process, improve the predictability of object rotation, avoid the frequent switching of state, we have introduced an operation chart.This synoptic diagram will float above three-dimensional body, and the focus that provides the user to be rotated operation is arranged on the synoptic diagram, and the operation focus can be divided into: the control focus of the control focus of single axial rotary manipulation and any rotary manipulation.Mouse moves on the non-synoptic diagram focus and can be used for object is done other operation.Adopt this method the method for rotation can be quantized to decompose, avoided the frequent switching of operational motion simultaneously.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be:
A kind of three-dimensional image volume spinning solution, set up unified coordinate system, set up a cube on 3-D view, each bar line center and line link position described cube of position all are provided with an operating point, are used to provide the focus of action that is rotated operation to the user;
When choosing parallel with the coordinate system X-axis on described cube lines center operating point, 3-D view rotates around X-axis with mouse,
When choosing parallel with the coordinate system Y-axis on described cube lines center operating point, 3-D view rotates around Y-axis with mouse,
When choosing parallel on described cube lines center operating point with coordinate system Z axle, 3-D view with mouse around the rotation of Z axle,
When choosing described cube to reach the standard grade the link position operating point, 3-D view is with the free direction rotation of mouse.
During rotation, sense of rotation prompting sign is arranged on the described cube.
Described cube floats and is presented at the 3-D view top.
When mouse was removed described cube graph frame or mouse and stopped to move, described cube was hidden automatically, and mouse is retracted the described cube of described cube graph frame and shown.
Embodiment
With embodiment the present invention is described in further detail with reference to the accompanying drawings below:
There are some problems though use conventional methods, can reach its intended purposes really.How it is improved? adopting mouse that said three-dimensional body is operated is unique operation tool that existing employing computing machine shows 3-D effect, and we can not go to change it.For the Optimizing operation process, improve the predictability of object rotation, avoid the frequent switching of state, we have introduced an operation chart.
This synoptic diagram will float above three-dimensional body, and the focus that provides the user to be rotated operation is arranged on the synoptic diagram, and the operation focus can be divided into: the control focus of the control focus of single axial rotary manipulation and any rotary manipulation.Mouse moves on the non-synoptic diagram focus and can be used for object is done other operation.Adopt this method the method for rotation can be quantized to decompose, avoided the frequent switching of operational motion simultaneously.
In operating process synoptic diagram will float be presented at object above, the cube gyrobearing of real-time change synoptic diagram, the current object of prompting user shows situation.Synoptic diagram overlapped on the object show that together the viewpoint that can recognize the user does not need frequent other position that moves to, the visual fatigue that the continuous moving view point of the eyeball position of avoiding working long hours causes.
When the user removes frames images or mouse and stops to move, synoptic diagram will be hidden automatically.We can think that working as mouse removes frames images, and the user just can not operate image, can hide synoptic diagram.When mouse stopped to move, the user was analyzing 3-D view, and in order not block picture material, synoptic diagram should be hidden.Again retract frames images when mouse, should again synoptic diagram be shown when perhaps re-moving mouse.
The effect that the three-dimensional visualization effect is calculated by different algorithm prototypes is different, concrete diagnostic significance is also different, in order to allow the user can lower learning cost, we have adopted unified operation method with several reconstruct modes, and the unified method of identical synoptic diagram of using is controlled.
The pattern of normal use is a cube in describing three dimensions, in order to allow the user more be accustomed to, we use the synoptic diagram of cube as three-dimensional body, and cube is that operation chart is in the said three-dimensional body rotation, synoptic diagram can together rotate, the position of the concrete rotation of the current object of prompting user.The operating point that each bar line center and line link position in cube position all is provided with a black is used to provide the focus of action that is rotated operation to the user.
When mouse moves to the operating point position, system can provide the information of sense of rotation, and concrete method of operating has two kinds, and a kind of is with the rotation of single shaft direction, and a kind of is any direction rotation.
As shown in Figure 3, when mouse chose the small circle focus of synoptic diagram to move, object will be rotated according to the direction of Y-axis.
As shown in Figure 4, when mouse chooses the small circle focus of synoptic diagram to move, object will be rotated according to X-direction.
As shown in Figure 5, when mouse chooses the small circle focus of synoptic diagram to move, object will be rotated according to Z-direction.
As shown in Figure 6, when mouse chooses the small circle focus of synoptic diagram to move, object will be rotated according to free direction.
Adopt this method, the actuating quantity of mouse can be changed into our needed different operating type, avoided the problem of the frequent switching state of user's action need.
Three-dimensional variation can represent that what relate generally in the Spin Control is rotational transform with the matrix of a 4*4, and all transformation relations are defined in the right-handed coordinate system, successively the rotation relationship that rotates around three axles: x '=xcos γ-ysin γ
y′=xsinγ+ycosγ
z′=z
y′=ycosα-zsinα
z′=ysinα+zcosα
x′=x
z′=zcosβ-xsinβ
x′=zsinβ+xcosβ
y′=y
Be expressed as follows with rotation matrix:
Suppose along X, Y, three axles of Z Fen Bie rotation alpha, β, γ, then the rotation matrix of Chan Shenging is:
M wherein
z(γ), M
y(β), M
x(α) be respectively around the X-axis rotation alpha, around Y-axis rotate β, around the formed rotation matrix of Z axle rotation γ, the formula that embodies is with reference to the front.Following formula is as can be known:
β=asin(M[2][0])
Here unique for realizing rotation matrix and angular transition, limit
In continuous change procedure, this condition satisfies.
Around the rotation matrix that arbitrary uHat anglec of rotation θ produces following (note uHat (and x, y, z), w=cos θ):
Realization for three-dimensional body rotation on the computing machine, the general method that adopts simulation track ball: suppose that current rotation matrix is curMatrix, by the position of mouse previous moment and current location are mapped to initial point on 2 lines be projected as the centre of sphere, the cube catercorner length is in the ball of diameter, and normalization, be designated as prePos, curPos respectively; Utilize current inverse of a matrix matrix to obtain prePos, the curPos coordinate in original coordinate system and be designated as prePos ', curPos ', the turning axle that rotates to curPos ' by prePos ' is so: the cosine of uHat=prePos * curPos rotation angle θ is: w=cos θ=prePoscurPos is according to trying to achieve the rotation matrix M that is rotated to curPos ' by prePos ' around the formula of arbitrary rotation
r, so postrotational rotation matrix Martrix can represent:
Matrix=M
r*curMatrix
Following formula is that the matrix of operation arbitrarily changes formula, if only think that object around a certain axle rotation, then needs M
rConvert Euler angle Angle (α, beta, gamma) to, wherein α, β, γ are respectively the angle around x, y, z rotation; Get corresponding component and convert rotation matrix M to
A, with M
AReplace the M in the following formula
rGet final product.
Can predict next step and can produce what effect in operation, very meaningful concerning the user can avoid a lot of unnecessary operations like this, prevents maloperation also easilier, and it is more confident to allow the user operate.In order to reach this purpose, we have introduced sense of rotation prompting sign for synoptic diagram.Every kind of operation all has corresponding prompt in the operation of above-mentioned chapters and sections.
System can provide corresponding sense of rotation prompting when mouse moves to operating point, and the user can press mouse and carry out move left and right, and system will make corresponding processing.Identical method, exercisable focus all will have corresponding prompt if mouse moves to other axis of orientation.
Above-mentioned described all be the prompting of the rotation carried out at single axial, just explanation is pressed mouse button and can be carried out rotary manipulation arbitrarily to three-dimensional body when the user moves to mouse between line and the line link position.
When mouse moves on line and the position that line is connected, demonstrate the direction of rotation on the line that system will be relevant with this tie point simultaneously, the user is current can carry out the rotation of free angle to said three-dimensional body in prompting.In order to see the rotation result of cube and actual object in the process that allows the user operate simultaneously, we carry out overlapping demonstration with two contents, the realization position that operates like this and just be more readily understood current three-dimensional body more helps guiding the user to understand three-dimensional relation.
We have realized the automatic hidden function of synoptic diagram for the operation link that reduces the user, can think that when mouse shifts out the image display box user does not operate this image, and the synoptic diagram of current demonstration just should be hidden automatically.Another kind of situation be when mouse stop mobile after, can think the just some positions on analysis image of user, this time, we should hide synoptic diagram, so just can not influence the diagnosis effect to check image.
There is different reconstruction effects in the visual imaging of medical 3 D, produce by different Prototype Algorithm, the also corresponding different diagnostic significance of its different effect, more convenient in order to allow the user operate, we unify to adopt identical synoptic diagram method of operating with these imaging effects.When the user is switched reconstruct mode, position of rotation and synoptic diagram will not change.
Those skilled in the art do not break away from essence of the present invention and spirit, can there be the various deformation scheme to realize the present invention, the above only is the preferable feasible embodiment of the present invention, be not so limit to interest field of the present invention, the equivalent structure that all utilizations instructions of the present invention and accompanying drawing content are done changes, and all is contained within the interest field of the present invention.