CN110491517A - A kind of threedimensional model locally translucent display operation implementation method and device - Google Patents

A kind of threedimensional model locally translucent display operation implementation method and device Download PDF

Info

Publication number
CN110491517A
CN110491517A CN201910631609.1A CN201910631609A CN110491517A CN 110491517 A CN110491517 A CN 110491517A CN 201910631609 A CN201910631609 A CN 201910631609A CN 110491517 A CN110491517 A CN 110491517A
Authority
CN
China
Prior art keywords
tri patch
threedimensional model
screen
coordinate
screen coordinate
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.)
Pending
Application number
CN201910631609.1A
Other languages
Chinese (zh)
Inventor
刘静静
吴毅
胡昕
姚洁
陈娜
宋艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Army Medical University
Original Assignee
Army Medical University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Army Medical University filed Critical Army Medical University
Priority to CN201910631609.1A priority Critical patent/CN110491517A/en
Publication of CN110491517A publication Critical patent/CN110491517A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/003Navigation within 3D models or images
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H50/00ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
    • G16H50/50ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for simulation or modelling of medical disorders

Landscapes

  • Engineering & Computer Science (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Primary Health Care (AREA)
  • Remote Sensing (AREA)
  • Databases & Information Systems (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Pathology (AREA)
  • Biomedical Technology (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

This application involves technical field of image processing, more particularly to a kind of threedimensional model locally translucent display operation implementation method and device, in response to the behavior operation for the threedimensional model shown on screen, obtain the screen coordinate set that acquisition is successively picked up in the behavior operation, wherein, it include multiple screen coordinates in screen coordinate set, screen coordinate indicates the two-dimensional coordinate under screen two-dimensional coordinate system, local data block lock out operation of the behavior operation characterization to the threedimensional model;According to screen coordinate set, behavior operation corresponding closed curve on the threedimensional model is determined;Mark the tri patch in the closed curve on the corresponding threedimensional model;By the tri patch of label in such a way that preset transparency is shown, the threedimensional model is shown again on the screen, in this way, can the translucent or hiding display with localized region, actual operation operating process is simulated realistically, the effect of simulation virtual operation is improved.

Description

A kind of threedimensional model locally translucent display operation implementation method and device
Technical field
This application involves technical field of image processing more particularly to a kind of threedimensional model, locally translucent display operation is realized Method and device.
Background technique
Medical 3 D (3Dimensions, 3D) model is capable of providing intuitive human dissection and gains knowledge, in anatomy number Change and all plays a significant role in teaching or surgical operation virtual emulation etc..During virtual operation or anatomic teaching, user Each layer structure of local organization or the anatomical structure of more deep position are wished to, topography, part can be carried out to 3D model It performs the operation or the operations such as part is viewed and emulated still in the prior art, is typically only capable to that the whole translucent display of 3D model progress cannot be expired The demand of the sufficient translucent display of user's localized region tissue, can not the perfect simulation effect that actual operation process is presented.
Summary of the invention
The embodiment of the present application provides a kind of threedimensional model locally translucent display operation implementation method and device, is existed with realizing The translucent display in part, simulates realistically the purpose of actual operative process on 3D model.
Specific technical solution provided by the embodiments of the present application is as follows:
The application one embodiment provides a kind of image procossing threedimensional model locally translucent display operation implementation method, Include:
In response to the behavior operation for the threedimensional model shown on screen, obtains the behavior operation and successively pick up acquisition Screen coordinate set, wherein in the screen coordinate set include multiple screen coordinates, screen coordinate indicate screen two dimension Two-dimensional coordinate under coordinate system, local data block lock out operation of the behavior operation characterization to the threedimensional model;
According to the screen coordinate set, behavior operation corresponding closed curve on the threedimensional model is determined;
Mark the tri patch in the closed curve on the corresponding threedimensional model;
By the tri patch of label in such a way that preset transparency is shown, on the screen again described in display Threedimensional model.
In conjunction with the application one embodiment, further comprise:
Obtain two-dimensional sequence binary image data;
Image iso-surface patch is carried out to the two-dimensional sequence binary image data, obtains corresponding threedimensional model, and show On the screen.
Determine the behavior operation in the three-dimensional according to the screen coordinate set in conjunction with the application one embodiment Corresponding closed curve on model, specifically includes:
According to the screen coordinate set, judge whether each screen coordinate can correspond in the screen coordinate set respectively To the threedimensional model, judge to obtain the screen coordinate that can be corresponded on the threedimensional model;
It determines respectively and judges each screen coordinate obtained corresponding tri patch on the threedimensional model;
Shortest path of each two neighboring tri patch on the threedimensional model is determined respectively, wherein each two neighboring Tri patch is that the screen coordinate sequence successively picked up according to behavior operation determines, is included at least in the shortest path All tri patch passed through between two neighboring tri patch;
According to all tri patch of the composition shortest path including each two neighboring tri patch, the row is determined To operate the corresponding closed curve on the threedimensional model.
Judged in the screen coordinate set respectively in conjunction with the application one embodiment according to the screen coordinate set Whether each screen coordinate can correspond to the threedimensional model, judge that obtaining the screen that can be corresponded on the threedimensional model sits Mark, specifically includes:
Screen coordinate each in the screen coordinate set is subjected to back project respectively, judges whether to obtain described Depth information on threedimensional model, however, it is determined that depth information can be obtained, it is determined that screen coordinate can correspond to threedimensional model On, however, it is determined that depth information cannot be obtained, it is determined that screen coordinate cannot correspond on threedimensional model.
In conjunction with the application one embodiment, determine that each two neighboring tri patch is most short on the threedimensional model respectively When path, wherein be directed to two tri patch of arbitrary neighborhood, determine two tri patch of the arbitrary neighborhood in the three-dimensional mould Shortest path in type, specifically includes:
If two tri patch of the arbitrary neighborhood are respectively tri patch A and tri patch B, the following step of execution is recycled Suddenly, until determining that in the corresponding region of search divided of current new tri patch include the tri patch B being connected:
Multiple is set as radius using Euclidean distance between the mass center of current new tri patch and the tri patch B, with The tri patch A is the center of circle, divides region of search, wherein current new tri patch is initially the tri patch A;
Determine each tri patch being connected in described search region with the current new tri patch, wherein be connected Each tri patch connect indicates the vertex of each tri patch and the current new tri patch under threedimensional model coordinate system Vertex is connected;
Determine the current new tri patch respectively to the shortest distance in the distance for each tri patch being connected The tri patch A ' that is connected corresponding with the shortest distance, by the tri patch A ' as current new tri patch, Continue to return that execute with the multiple that sets of Euclidean distance between the mass center of current new tri patch and the tri patch B be partly Diameter, using current new tri patch as the center of circle, the step of dividing region of search;
It will include tri patch A and tri patch B and the corresponding triangular facet being connected of the shortest distance of all determinations Piece constitutes the shortest path between the tri patch A to the tri patch B.
In conjunction with the application one embodiment, according to the institute of the composition shortest path including each two neighboring tri patch There is tri patch, determine behavior operation corresponding closed curve on the threedimensional model, specifically include:
The mass center of all tri patch of the composition shortest path including each two neighboring tri patch is determined respectively Coordinate;
Each center-of-mass coordinate is subjected to orthographic projection transformation, obtains the corresponding screen coordinate of each center-of-mass coordinate;
The corresponding screen coordinate of each center-of-mass coordinate is subjected to least square method fitting, obtaining includes that each mass center is sat The continuous two-dimensional coordinate including corresponding screen coordinate is marked, and is based on the continuous two-dimensional coordinate, determines that the closure is bent Line.
In conjunction with the application one embodiment, further comprise: the closed curve is shown using setpoint color.
In conjunction with the application one embodiment, the triangular facet in the closed curve on the corresponding threedimensional model is marked Piece specifically includes:
According to the closed curve, the closed surface in the region constituted in the closed curve is determined;
All screen coordinates in the closed surface are subjected to back project, are obtained all in the closed surface Screen coordinate corresponding tri patch on the threedimensional model, and be marked.
In conjunction with the application one embodiment, the value of the preset transparency is less than 1.
Another embodiment provides for a kind of local translucent display operation realization devices of threedimensional model by the application, comprising:
Module is obtained, for operating in response to the behavior for the threedimensional model shown on screen, obtains the behavior behaviour Successively pick up the screen coordinate set of acquisition, wherein include multiple screen coordinates, screen coordinate in the screen coordinate set Indicate the two-dimensional coordinate under screen two-dimensional coordinate system, local data block point of the behavior operation characterization to the threedimensional model From operation;
Determining module, for determining that the behavior operation is right on the threedimensional model according to the screen coordinate set The closed curve answered;
Mark module, for marking the tri patch in the closed curve on the corresponding threedimensional model;
Display module, for by the tri patch of label in such a way that preset transparency is shown, in the screen On show the threedimensional model again.
In conjunction with another embodiment of the application, further comprise, processing module is used for:
Obtain two-dimensional sequence binary image data;
Image iso-surface patch is carried out to the two-dimensional sequence binary image data, obtains corresponding threedimensional model, and show On the screen.
Determine the behavior operation described three according to the screen coordinate set in conjunction with another embodiment of the application On dimension module when corresponding closed curve, determining module is specifically used for:
According to the screen coordinate set, judge whether each screen coordinate can correspond in the screen coordinate set respectively To the threedimensional model, judge to obtain the screen coordinate that can be corresponded on the threedimensional model;
It determines respectively and judges each screen coordinate obtained corresponding tri patch on the threedimensional model;
Shortest path of each two neighboring tri patch on the threedimensional model is determined respectively, wherein each two neighboring Tri patch is that the screen coordinate sequence successively picked up according to behavior operation determines, is included at least in the shortest path All tri patch passed through between two neighboring tri patch;
According to all tri patch of the composition shortest path including each two neighboring tri patch, the row is determined To operate the corresponding closed curve on the threedimensional model.
The screen coordinate set is judged according to the screen coordinate set respectively in conjunction with another embodiment of the application In each screen coordinate whether can correspond to the threedimensional model, screen on the threedimensional model can be corresponded to by judging to obtain When coordinate, determining module is specifically used for:
Screen coordinate each in the screen coordinate set is subjected to back project respectively, judges whether to obtain described Depth information on threedimensional model, however, it is determined that depth information can be obtained, it is determined that screen coordinate can correspond to threedimensional model On, however, it is determined that depth information cannot be obtained, it is determined that screen coordinate cannot correspond on threedimensional model.
In conjunction with another embodiment of the application, determine each two neighboring tri patch on the threedimensional model most respectively When short path, wherein be directed to two tri patch of arbitrary neighborhood, determine two tri patch of the arbitrary neighborhood in the three-dimensional When shortest path on model, determining module is specifically used for:
If two tri patch of the arbitrary neighborhood are respectively tri patch A and tri patch B, the following step of execution is recycled Suddenly, until determining that in the corresponding region of search divided of current new tri patch include the tri patch B being connected:
Multiple is set as radius using Euclidean distance between the mass center of current new tri patch and the tri patch B, with The tri patch A is the center of circle, divides region of search, wherein current new tri patch is initially the tri patch A;
Determine each tri patch being connected in described search region with the current new tri patch, wherein be connected Each tri patch connect indicates the vertex of each tri patch and the current new tri patch under threedimensional model coordinate system Vertex is connected;
Determine the current new tri patch respectively to the shortest distance in the distance for each tri patch being connected The tri patch A ' that is connected corresponding with the shortest distance, by the tri patch A ' as current new tri patch, Continue to return that execute with the multiple that sets of Euclidean distance between the mass center of current new tri patch and the tri patch B be partly Diameter, using current new tri patch as the center of circle, the step of dividing region of search;
It will include tri patch A and tri patch B and the corresponding triangular facet being connected of the shortest distance of all determinations Piece constitutes the shortest path between the tri patch A to the tri patch B.
In conjunction with another embodiment of the application, according to the composition shortest path including each two neighboring tri patch All tri patch determine the behavior operation in corresponding closed curve on the threedimensional model, and determining module is specifically used In:
The mass center of all tri patch of the composition shortest path including each two neighboring tri patch is determined respectively Coordinate;
Each center-of-mass coordinate is subjected to orthographic projection transformation, obtains the corresponding screen coordinate of each center-of-mass coordinate;
The corresponding screen coordinate of each center-of-mass coordinate is subjected to least square method fitting, obtaining includes that each mass center is sat The continuous two-dimensional coordinate including corresponding screen coordinate is marked, and is based on the continuous two-dimensional coordinate, determines that the closure is bent Line.
In conjunction with another embodiment of the application, display module is further used for: the closed curve is used setpoint color Display.
In conjunction with another embodiment of the application, the triangular facet in the closed curve on the corresponding threedimensional model is marked When piece, mark module is specifically used for:
According to the closed curve, the closed surface in the region constituted in the closed curve is determined;
All screen coordinates in the closed surface are subjected to back project, are obtained all in the closed surface Screen coordinate corresponding tri patch on the threedimensional model, and be marked.
In conjunction with another embodiment of the application, the value of the preset transparency is less than 1.
The application is another embodiment provides for a kind of electronic equipment, including memory, processor and is stored in memory Computer program that is upper and can running on a processor, the processor realize any of the above-described kind of three-dimensional mould when executing described program Type locally translucent display operation implementation method the step of.
The application is stored thereon with computer program another embodiment provides for a kind of computer readable storage medium, The computer program realizes any of the above-described kind of threedimensional model locally translucent display operation implementation method when being executed by processor The step of.
It in the embodiment of the present application, is operated in response to the behavior for the threedimensional model shown on screen, obtains behavior operation The screen coordinate set of acquisition is successively picked up, and then determines behavior operation corresponding closed curve on threedimensional model, mark Remember the tri patch in closed curve, thus when showing the threedimensional model again, by the tri patch of label with preset transparent Degree is shown, in this way, operating for behavior, is navigated to threedimensional model itself, is only to three-dimensional mould from the point of view of visualizing angle Type is operated, more specific true, and the regional area of operation is shown with preset transparency, may be implemented The translucent or hiding display of regional area, simulates realistically the operating process of actual operation step-by-step.
Detailed description of the invention
Fig. 1 is the local translucent display operation implementation method flow chart of threedimensional model in the embodiment of the present application;
Fig. 2 is the principle framework figure of the local translucent display operation implementation method of threedimensional model in the embodiment of the present application;
Fig. 3 is the local translucent display operation realization device structural schematic diagram of threedimensional model in the embodiment of the present application;
Fig. 4 is electronic devices structure schematic diagram in the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, is not whole embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
First simply to be introduced several concepts below convenient for the understanding to the embodiment of the present application:
Screen two-dimensional coordinate system: the upper left corner for defining on-screen display (osd) area is the origin of screen two-dimensional coordinate system, and screen is aobvious The line direction for showing region is the positive direction of the x-axis of screen two-dimensional coordinate system, and the column direction of on-screen display (osd) area is screen two-dimensional coordinate The positive direction of the y-axis of system, length unit are 1 pixel.
Threedimensional model coordinate system: the coordinate system of the threedimensional model shown on screen, In are primarily referred to as in the embodiment of the present invention During display, under initial situation, world coordinate system and threedimensional model coordinate system are overlapped, coordinate and three-dimensional in world coordinate system Coordinate in model coordinate systems corresponds.
Orthographic projection: refer to the process of and the coordinate of threedimensional model is converted into screen coordinate.
Back projection: being the process that screen coordinate is converted to the coordinate of threedimensional model.
It in the embodiment of the present application, is operated in response to the behavior for the threedimensional model shown on screen, obtains behavior operation The screen coordinate set of acquisition is successively picked up, and determines closed curve corresponding on threedimensional model, by three in closed curve Tri patch on dimension module shows the threedimensional model in such a way that preset transparency is shown again on the screen, this Sample can be realized the function such as part is translucent, part hides mainly for the selected regional area of the behavior operation of threedimensional model Can, the vivider actual dissection operative process of simulation, such as endoscope-assistant surgery etc. can clearly show that deep needs emphasis prominent Anatomical structure out, and the anatomical structure of superficial part can be allowed not lose a large amount of anatomic informations, and process object can be positioned as Threedimensional model itself, the rear projection screen part except threedimensional model is not involved in calculating, more specific true.
It should be noted that it is applied to field of medical technology mainly for three-dimensional medical model in the embodiment of the present application, but It is to be not limited in medicine service application, is also all applicable for other similar problems and service application.
The image method in the embodiment of the present application is illustrated below, as shown in fig.1, in the embodiment of the present application three The local translucent display operation implementation method flow chart of dimension module, this method comprises:
Step 100: being operated in response to the behavior for the threedimensional model shown on screen, acquisition behavior operation is successively picked up The screen coordinate set of acquisition, wherein include multiple screen coordinates in screen coordinate set, screen coordinate is indicated in screen two dimension Two-dimensional coordinate under coordinate system, local data block lock out operation of the behavior operation characterization to threedimensional model.
In the embodiment of the present application, behavior operation is carried out to threedimensional model, it can be using the interaction such as mouse, touch screen provided Tool is operated, and is not limited, in this way, can get first when carrying out behavior operation by interactive tools such as mouses Each screen coordinate successively picked up forms screen coordinate set, wherein behavior operation is grasped for the local detachment to threedimensional model Make, i.e. realization localized region is individually operated, for example, by mouse, closed curve is delimited on threedimensional model, in closed curve Region be that user needs individually operated regional area, the translucent of the regional area may be implemented in the embodiment of the present application Display.
Further, a kind of threedimensional model display side is additionally provided before executing step 100, in the embodiment of the present application Formula, specifically:
S1, two-dimensional sequence binary image data are obtained.
For example, acquisition medical image, it is assumed that the pixel of every image is i*j, and the number of acquired image is n, thickness It is expressed as slicethickness, pixel separation is expressed as pixcelspacing, carries out tissue to ROI in Medical Image Segmentation and Boundary Extraction, available corresponding two-dimensional sequence binary image, i.e. one group of three-dimensional data matrix, size can be with It indicates are as follows: i*j* [(n*slicethickness)/pixcelspacing] is essentially the three-dimensional initial data of threedimensional model.
S2, image iso-surface patch is carried out to two-dimensional sequence binary image data, obtains corresponding threedimensional model, and be shown in On screen.
Wherein, carrying out image iso-surface patch can be using the iso-surface patch algorithm of setting, in the embodiment of the present application and without aobvious Show, carry out image iso-surface patch, obtains the corresponding threedimensional model of two-dimensional sequence binary image data, data format stl, stl Formatted data can directly display, i.e., can be displayed on the screen object by image iso-surface patch.
In addition, above-mentioned three-dimensional initial data and threedimensional model can be placed in the same coordinate system, the coordinate total energy of threedimensional model Corresponding position is found in three-dimensional initial data.
Step 110: according to screen coordinate set, determining behavior operation corresponding closed curve on threedimensional model.
Step 120: the tri patch in label closed curve on corresponding threedimensional model.
It when executing step 120, specifically includes: according to closed curve, determining that the closure in the region constituted in closed curve is bent Face;All screen coordinates in closed surface are subjected to back project, obtain all screen coordinates in closed surface three Corresponding tri patch on dimension module, and be marked.
Wherein, back project here is identical with back project in above-described embodiment, just repeats no more here.
In this way, the interior zone that closed curve surrounds may be constructed a closed surface, it, can be true by back project The tri patch for determining all screen coordinate back projections in closed surface, is marked these tri patch, it is known that, these marks The tri patch of note is to constitute the regional area of behavior operation respective operations on threedimensional model.
Step 130: by the tri patch of label in such a way that preset transparency is shown, showing again on the screen Threedimensional model.
Wherein, less than 1, the value of specific transparency is simultaneously not limited the value of preset transparency, can be according to reality Border scene and demand are configured, such as transparency is between 0~99%, then can local translucent display, such as can will Skin transparency is arranged to 30%, so that it may local interior tissue organ is seen through skin, it, can be with when transparency is 0 Part hides display.
Also, when showing the threedimensional model again, the tri patch of the label in closed curve is translucent or hiding aobvious Show, remaining unlabelled tri patch is normally shown, it is believed that transparency value is 1, so as to realize three-dimensional mould The translucent or hiding display of regional area, allows a user to the anatomical structure for seeing actual deep part, not by it in type The vision of its display area is interfered, and the operating process of more true dissection operation step-by-step can be simulated, for example, simulation caesarean birth The shearing manipulation of the tissues such as skin, muscle is successively opened in operation, such as simulating endoscope-assistant surgery process, translucent can be shown The part cavity of operative region, rather than whole cavity, in order to avoid cause unnecessary whole translucentizations, convenient for user's study and Viewing.
Further, the corresponding closed curve on threedimensional model operated for determining behavior, in the embodiment of the present application A kind of possible embodiment is additionally provided, closed curve is shown using setpoint color, wherein setpoint color is preferably area The color of other threedimensional model can be formed in this way, can show the closed curve with setpoint color line on threedimensional model surface Behavior operates the outer boundary of picking region, can be used for carrying out vision differentiation to translucent area and opaque region display, mention Visual effect is risen, and closed curve is shown on threedimensional model, rather than on screen, simulation virtual hand truer in this way The process of art, the closed curve may be considered the path of scalpel process.
It closes below to according to screen coordinate set, determining that behavior operation is corresponding on threedimensional model in above-mentioned steps 110 The specific embodiment for closing curve is illustrated, and when executing step 110, is specifically included:
S1, according to screen coordinate set, judge whether each screen coordinate can correspond to three in screen coordinate set respectively Dimension module judges to obtain the screen coordinate that can be corresponded on threedimensional model.
It specifically includes: screen coordinate each in screen coordinate set being subjected to back project respectively, judges whether to obtain Obtain the depth information on threedimensional model, however, it is determined that depth information can be obtained, it is determined that screen coordinate can correspond to three-dimensional mould In type, however, it is determined that depth information cannot be obtained, it is determined that screen coordinate cannot correspond on threedimensional model.
Wherein, it is off screen curtain on threedimensional model that back project, which is mainly by the screen coordinate back projection that behavior operation is picked up, Nearest threedimensional model coordinate, i.e., be converted to threedimensional model coordinate for screen coordinate, and specifically, screen coordinate is to what comes into a driver's body coordinate Conversion, for example, obtaining depth information by glreadpixcel according to screen coordinate;Again by what comes into a driver's body coordinate to open graphic library Threedimensional model coordinate is converted in (Open Graphics Library, OpenGL), such as is obtained currently by gluUnProject Corresponding threedimensional model coordinate under projection, wherein glreadpixcel and gluUnProject is function in OpenGL.
In this way, if screen coordinate is fallen on threedimensional model, can be obtained by the back project of screen coordinate To the depth information of corresponding threedimensional model, if screen coordinate is not fallen on threedimensional model, depth information cannot be got, Therefore, in the embodiment of the present application, depth information can be got by judging whether, the screen coordinate to judge that behavior operates is It is no to fall on threedimensional model, if screen coordinate can be fallen on, that is, correspond on threedimensional model, then save the screen coordinate, if screen Curtain coordinate cannot correspond on threedimensional model, and possible operation has arrived other regions on screen in addition to threedimensional model, then abandons The screen coordinate, so that the sequence of Behavior-based control operation, successively saves the screen coordinate that can be corresponded on threedimensional model.
In such manner, it is possible to which the point for guaranteeing that behavior operation is picked up all is fallen on threedimensional model, process object is navigated into three-dimensional Model itself, behavior operation are all to carry out on threedimensional model, and the subsequent rear projection screen calculated except threedimensional model is not joined It with calculating, is calculated only for the point fallen on threedimensional model, reduces computation complexity, seen in visualization angle, only for Threedimensional model is operated, also more specific true.
For example, the screen coordinate collection that acquisition is successively picked up in behavior operation is combined into U { (sx1,sy1),(sx2,sy2) ... ..., lead to It crosses judgement and only saves the screen coordinate that can wherein correspond on threedimensional model, remaining screen coordinate abandons, such as judgement obtains Each screen coordinate obtained is (sx1,sy1),(sx2,sy2),(sx4,sy4),(sx5,sy5) ..., the screen coordinate of preservation is also and goes It is corresponding for operation order.
S2, each screen coordinate for judging acquisition corresponding tri patch on the threedimensional model is determined respectively.
Specifically, each screen coordinate filtered out is subjected to back project, it is obtained by glreadpixcel function The corresponding tri patch on threedimensional model, and the sequence of each screen coordinate obtained according to the judgement of preservation, successively save each Tri patch.
S3, shortest path of each two neighboring tri patch on threedimensional model is determined respectively, wherein each two neighboring three Edged surface piece is that the screen coordinate sequence successively picked up according to behavior operation determines, two neighboring three are included at least in shortest path All tri patch passed through between edged surface piece.
For example, each screen coordinate that judgement obtains is followed successively by (sx1,sy1),(sx2,sy2),(sx4,sy4),(sx5,sy5) ..., And (sx1,sy1),(sx2,sy2),(sx4,sy4),(sx5,sy5) ... corresponding tri patch is respectively A, B, C, D ..., then knows Each two neighboring tri patch is respectively A and B, B and C, C and D, and so on.
In the embodiment of the present application, the screen successively picked up is operated since two neighboring tri patch here corresponds to behavior Curtain coordinate sequence, and judged the screen coordinate that can be corresponded on threedimensional model, the screen coordinate judged may Be it is discontinuous, therefore, obtained two neighboring tri patch is not necessarily on threedimensional model to be tightly connected, for determination The closed curve being continuously shown on threedimensional model, therefore each two neighboring tri patch is determined in the embodiment of the present application respectively Shortest path on threedimensional model determines all tri patch that passed through shortest path includes.
Specifically, execute determine respectively each two neighboring tri patch in the step of the shortest path on threedimensional model, For ease of description, being illustrated for for any pair of two neighboring tri patch in the embodiment of the present application, it is determined that should Two tri patch of arbitrary neighborhood are specifically included in the shortest path on the threedimensional model:
If two S3.1, arbitrary neighborhood tri patch are respectively tri patch A and tri patch B, it is following to recycle execution Step, until determining that in the corresponding region of search divided of current new tri patch include the tri patch B being connected:
1) multiple is set as radius, with three using Euclidean distance between the mass center of current new tri patch and tri patch B Edged surface piece A is the center of circle, divides region of search, wherein current new tri patch is initially tri patch A.
Wherein, set multiple, preferably 2 times, in this way, can both guarantee to determine two neighboring tri patch it Between shortest path, and the time can be reduced, reduce computation complexity.
Wherein, it for the calculation of Euclidean distance between the mass center of two neighboring tri patch, is mentioned in the embodiment of the present application Supply a kind of possible embodiment:
For example, three vertex P of a tri patch1、P2、P3Coordinate be respectively P1(x1,y1,z1)、P2(x2,y2,z2)、 P3(x3,y3,z3), then the center-of-mass coordinate O of the tri patch is O (xc,yc,zc), wherein
Then the center-of-mass coordinate of for example two neighboring tri patch is respectively O1(xc1,yc1,zc1)、O2(xc2,yc2,zc2), the phase Euclidean distance can indicate between the mass center of adjacent two tri patch are as follows:
2) each tri patch being connected in region of search with current new tri patch is determined, wherein what is be connected is each Tri patch indicates that the vertex of each tri patch is connected with the vertex of current new tri patch under threedimensional model coordinate system.
Wherein, the tri patch being connected here indicates that actual coordinate is connected on threedimensional model, for example, each triangle Dough sheet all includes three vertex, the coordinate on three of them available vertex, and then can be according to three vertex of tri patch Coordinate, judges whether tri patch is connected, and can be a common vertex, or is also possible to there are two common top Point may thereby determine that each tri patch being connected in region of search with current new tri patch.
3) determine current new tri patch respectively in the distance for each tri patch being connected the shortest distance and The corresponding tri patch A ' being connected of the shortest distance continues to return and hold by tri patch A ' as current new tri patch Row sets multiple as radius using Euclidean distance between the mass center of current new tri patch and tri patch B, with current new three The step of edged surface piece is the center of circle, divides region of search.
After determining tri patch A ', by tri patch A ' as current new tri patch, and returns and continue to execute Above-mentioned steps 1), circulation executes above-mentioned steps 1), 2) and 3), until determining the corresponding field of search divided of current new tri patch It include the tri patch B being connected in domain, i.e. tri patch B is connected with current new tri patch.
It S3.2, will include tri patch A and tri patch B and the shortest distance of all determinations is corresponding is connected Tri patch constitutes the shortest path between tri patch A to tri patch B.
All current new tri patch i.e. including tri patch A, and include composition three including tri patch B Shortest path between edged surface piece A and tri patch B.
For example, shortest path between tri patch A and tri patch B can be with are as follows: tri patch A, tri patch A ', three Edged surface piece A ", tri patch B, the length of shortest path are tri patch A to tri patch A ', and tri patch A ' arrives triangular facet Piece A ", tri patch A " between the mass center of tri patch B Euclidean distance the sum of.
In this way, shortest path of each two neighboring tri patch on threedimensional model can successively be calculated, due to being point It is not calculated based on two neighboring tri patch, therefore, what each obtained shortest path was connected to connect, each shortest path can To merge, a complete path may finally be obtained, the path is saved, that is, saves all tri patch for constituting the path.
Certainly, for the determination of the shortest path of two neighboring tri patch, it is not limited in aforesaid way, there are also use Other way in the embodiment of the present application and is not limited, it is therefore an objective to can be bonded by the calculating of shortest path, building The closed curve on threedimensional model surface.
All tri patch of the composition shortest path of S4, basis including each two neighboring tri patch, determine row To operate the corresponding closed curve on threedimensional model.
Specifically, a kind of possible embodiment is provided in the embodiment of the present application:
S4.1, respectively all tri patch of the determining composition shortest path including each two neighboring tri patch Center-of-mass coordinate.
Since tri patch includes three vertex, for that the mass center of tri patch can be sat convenient for calculating orthographic projection transformation It is denoted as the coordinate in threedimensional model coordinate system for the tri patch.
S4.2, each center-of-mass coordinate is subjected to orthographic projection transformation, obtains the corresponding screen coordinate of each center-of-mass coordinate.
It is converted by orthographic projection, the corresponding all tri patch of the shortest path determined projects on screen One screen coordinate point.
Wherein, it is screen coordinate that orthographic projection transformation, which is by threedimensional model coordinate transformation, is displayed on the screen threedimensional model, Three-dimensional coordinate of the center-of-mass coordinate of each tri patch in threedimensional model coordinate system is obtained respectively, and each three-dimensional coordinate is successively multiplied With model transformation matrix, projective transformation matrix and viewport transform matrix, it is right under screen two-dimensional coordinate system to obtain each tri patch The two-dimensional coordinate answered, specifically: viewpoint change: the first step determines the state of camera by gluLookAt function.Second step, mould Type transformation: the position of threedimensional model, including model translation glTranslate, model rotation glRotate and scaling of model are adjusted glScale.Third step, projective transformation: projecting to threedimensional model on two-dimensional screen, including perspective projection GluPerspective and orthogonal projection glOrtho.4th step, the viewport transform: by glViewport by geometric transformation, throwing Shadow converts and cuts transformed object and is shown in the region specified in screen window.
More specifically, providing a kind of possible mode in the embodiment of the present application:
1) during OpenGL is shown, under initial situation, world coordinate system and threedimensional model coordinate system are overlapped, for example, (x, y, z, w) threedimensional model coordinate can use homogeneous coordinates, i.e., threedimensional model coordinate can be converted to the world by conversion Three-dimensional coordinate under coordinate system, all transition matrixes also all use 4*4 matrix, and a conversion command is a corresponding 4*4 rank Transition matrix, including viewpoint change matrix, model transformation matrix, for example, current matrix is C, transition matrix M, threedimensional model Coordinate is v, then after conversion, coordinate system becomes CMv at this time.
2) coordinate dimensionality reduction being carried out using projective transformation, the above-mentioned three-dimensional coordinate finally obtained is reduced to two-dimensional screen coordinate, Projective transformation matrix is created, by projective transformation matrix multiplied by current matrix, and viewport transform matrix is created, will be projected in what comes into a driver's body Object be shown in two-dimensional viewport plane, i.e., current three-dimensional coordinate is converted to screen coordinate.
S4.3, the corresponding screen coordinate of each center-of-mass coordinate is subjected to least square method fitting, obtaining includes each mass center Continuous two-dimensional coordinate including the corresponding screen coordinate of coordinate, and it is based on continuous two-dimensional coordinate, determine closed curve.
In this way, converting by orthographic projection, tri patch on threedimensional model is converted into screen coordinate, in order to guarantee to be connected Continuous closed curve carries out least square to two neighboring screen coordinate respectively for the screen coordinate after center-of-mass coordinate conversion Method fitting obtains continuous two-dimensional coordinate, i.e., continuous point, so that it is bent to obtain the closure that continuous two-dimensional coordinate is constituted Line.
Further, judge that closed curve is inside and outside, obtain the screen coordinate of all the points inside closed curve, obtain Closed surface.
It in the embodiment of the present application, is operated in response to the behavior for the threedimensional model shown on screen, obtains behavior operation The screen coordinate set of acquisition is successively picked up, and is calculated by shortest path, determines that behavior operation is corresponding on threedimensional model Closed curve marks the tri patch in closed curve on corresponding threedimensional model, thus by the tri patch of label with default The mode that is shown of transparency, the threedimensional model is shown again on the screen, in this way, grasping for behavior on the screen Make, determines closed curve corresponding on threedimensional model, and mark the tri patch on threedimensional model, process object can determine Position is threedimensional model itself, and rear projection screen part is not involved in calculating, reduces computation complexity, and can guarantee behavior operation Effect is carried out on threedimensional model, and dissection surgical procedure can be simulated, and is only to threedimensional model from the point of view of visualizing angle It is operated, it is more specific true, also, translucent for the tri patch inside closed curve or hiding display, Ke Yishi Translucent to the regional area of operation or hiding display in surgical procedure is now simulated, the process of virtual operation can be really simulated, For example, the surgical procedure in thoracic cavity is opened in simulation, first remove skin, then cut muscle parts, then wipe out part lung tissue etc., it can With translucent display from level to level, and the tissue of shearing can be retained and individually be operated, to promote simulation virtual hand The effect of art promotes user's learning experience.
Using concrete application scene, to threedimensional model, locally translucent display operation implementation method is illustrated below, with three It is threedimensional model locally translucent display in the embodiment of the present application referring particularly to shown in Fig. 2 for dimension module is medicine 3D model The principle framework figure of operation realizing method.
As shown in Fig. 2, 1) medicine 3D model is shown, is converted by the building and orthographic projection of medicine 3D model, be shown in screen On curtain.
2) visual display in path is picked up in behavior operation.
Specifically: acquisition behavior operates the screen coordinate set for successively picking up acquisition, carries out back project, and determination is being cured Corresponding tri patch on 3D model is learned, and then by determining each two neighboring tri patch on medicine 3D model most respectively Short path determines behavior operation corresponding closed curve on medicine 3D model, the i.e. path of behavior operation pickup, can make It is distinctly displayed with setpoint color.
3) by all tri patch of the composition shortest path including each two neighboring tri patch, orthographic projection is carried out Transformation, obtains corresponding screen coordinate, determines closed curve, and determine all screen coordinates inside closed curve, will close All screen coordinates closed in curve carry out back project, obtain corresponding tri patch, and be marked.
4) based on label as a result, by the tri patch of label in such a way that preset transparency is shown, on the screen Again it shows medicine 3D model, realizes the translucent visualization in part of medicine 3D model.
In this way, the regional area transparence display that behavior can be operated, can simulate realistically actual operation step-by-step Operating process, user not only can see regional area each layer structure or more deep position structure, but also can not lose dissection letter Breath.
Based on the same inventive concept, a kind of threedimensional model locally translucent display operation is additionally provided in the embodiment of the present application Realization device, locally translucent display operation realization device can be hardware configuration, software module or hardware knot to the threedimensional model Structure adds software module.Based on the above embodiment, as shown in fig.3, threedimensional model locally translucent display in the embodiment of the present application Realization device is operated, is specifically included:
Module 30 is obtained, for operating in response to the behavior for the threedimensional model shown on screen, obtains the behavior The screen coordinate set of acquisition is successively picked up in operation, wherein includes multiple screen coordinates in the screen coordinate set, screen is sat Mark indicates the two-dimensional coordinate under screen two-dimensional coordinate system, local data block of the behavior operation characterization to the threedimensional model Lock out operation;
Determining module 31, for determining the behavior operation on the threedimensional model according to the screen coordinate set Corresponding closed curve;
Mark module 32, for marking the tri patch in the closed curve on the corresponding threedimensional model;
Display module 33, for by the tri patch of label in such a way that preset transparency is shown, in the screen Again the threedimensional model is shown on curtain.
Optionally, further comprise that processing module 34 is used for:
Obtain two-dimensional sequence binary image data;Image surface is carried out to the two-dimensional sequence binary image data to draw System obtains corresponding threedimensional model, and shows on the screen.
Optionally, it according to the screen coordinate set, determines that the behavior operation is corresponding on the threedimensional model and closes When closing curve, determining module 31 is specifically used for:
According to the screen coordinate set, judge whether each screen coordinate can correspond in the screen coordinate set respectively To the threedimensional model, judge to obtain the screen coordinate that can be corresponded on the threedimensional model;
It determines respectively and judges each screen coordinate obtained corresponding tri patch on the threedimensional model;
Shortest path of each two neighboring tri patch on the threedimensional model is determined respectively, wherein each two neighboring Tri patch is that the screen coordinate sequence successively picked up according to behavior operation determines, is included at least in the shortest path All tri patch passed through between two neighboring tri patch;
According to all tri patch of the composition shortest path including each two neighboring tri patch, the row is determined To operate the corresponding closed curve on the threedimensional model.
Optionally, according to the screen coordinate set, judge in the screen coordinate set whether is each screen coordinate respectively The threedimensional model can be corresponded to, when judging that acquisition can correspond to the screen coordinate on the threedimensional model, determining module 31 are specifically used for:
Screen coordinate each in the screen coordinate set is subjected to back project respectively, judges whether to obtain described Depth information on threedimensional model, however, it is determined that depth information can be obtained, it is determined that screen coordinate can correspond to threedimensional model On, however, it is determined that depth information cannot be obtained, it is determined that screen coordinate cannot correspond on threedimensional model.
Optionally, determine each two neighboring tri patch in the shortest path on the threedimensional model respectively, wherein needle To two tri patch of arbitrary neighborhood, shortest path of two tri patch of the arbitrary neighborhood on the threedimensional model is determined When, determining module 31 is specifically used for:
If two tri patch of the arbitrary neighborhood are respectively tri patch A and tri patch B, the following step of execution is recycled Suddenly, until determining that in the corresponding region of search divided of current new tri patch include the tri patch B being connected:
Multiple is set as radius using Euclidean distance between the mass center of current new tri patch and the tri patch B, with The tri patch A is the center of circle, divides region of search, wherein current new tri patch is initially the tri patch A;
Determine each tri patch being connected in described search region with the current new tri patch, wherein be connected Each tri patch connect indicates the vertex of each tri patch and the current new tri patch under threedimensional model coordinate system Vertex is connected;
Determine the current new tri patch respectively to the shortest distance in the distance for each tri patch being connected The tri patch A ' that is connected corresponding with the shortest distance, by the tri patch A ' as current new tri patch, Continue to return that execute with the multiple that sets of Euclidean distance between the mass center of current new tri patch and the tri patch B be partly Diameter, using current new tri patch as the center of circle, the step of dividing region of search;
It will include tri patch A and tri patch B and the corresponding triangular facet being connected of the shortest distance of all determinations Piece constitutes the shortest path between the tri patch A to the tri patch B.
Optionally, according to all tri patch of the composition shortest path including each two neighboring tri patch, really In corresponding closed curve on the threedimensional model, determining module 31 is specifically used for for the fixed behavior operation:
The mass center of all tri patch of the composition shortest path including each two neighboring tri patch is determined respectively Coordinate;
Each center-of-mass coordinate is subjected to orthographic projection transformation, obtains the corresponding screen coordinate of each center-of-mass coordinate;
The corresponding screen coordinate of each center-of-mass coordinate is subjected to least square method fitting, obtaining includes that each mass center is sat The continuous two-dimensional coordinate including corresponding screen coordinate is marked, and is based on the continuous two-dimensional coordinate, determines that the closure is bent Line.
Optionally, display module 33 is further used for: the closed curve is shown using setpoint color.
Optionally, when marking the tri patch in the closed curve on the corresponding threedimensional model, mark module 32 It is specifically used for:
According to the closed curve, the closed surface in the region constituted in the closed curve is determined;
All screen coordinates in the closed surface are subjected to back project, are obtained all in the closed surface Screen coordinate corresponding tri patch on the threedimensional model, and be marked.
Optionally, the value of the preset transparency is less than 1.
It is schematical, only a kind of logical function partition to the division of module in the embodiment of the present application, it is practical to realize When there may be another division manner, in addition, each functional module in the embodiment of the present application can integrate in a processor In, it is also possible to physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
Based on the above embodiment, the structural schematic diagram of electronic equipment in the embodiment of the present application is shown refering to Fig. 4.
The embodiment of the present application provides a kind of electronic equipment, which may include 410 (Center of processor Processing Unit, CPU), memory 420, input equipment 430 and output equipment 440 etc., input equipment 430 may include Keyboard, mouse, touch screen etc., output equipment 440 may include display equipment, such as liquid crystal display (Liquid Crystal Display, LCD), cathode-ray tube (Cathode Ray Tube, CRT) etc..
Memory 420 may include read-only memory (ROM) and random access memory (RAM), and mention to processor 410 For the program instruction and data stored in memory 420.In the embodiment of the present application, memory 420 can be used for storing this Shen Please in embodiment the local translucent display operation implementation method of any threedimensional model program.
Processor 410 is by the program instruction for calling memory 420 to store, and processor 410 is for the program according to acquisition The local translucent display operation implementation method of any threedimensional model in instruction execution the embodiment of the present application.
Based on the above embodiment, in the embodiment of the present application, a kind of computer readable storage medium is provided, is stored thereon with Computer program, the computer program realize the part of the threedimensional model in above-mentioned any means embodiment when being executed by processor Translucent display operation implementation method method.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the application range.
Obviously, those skilled in the art can carry out various modification and variations without departing from this Shen to the embodiment of the present application Please embodiment spirit and scope.In this way, if these modifications and variations of the embodiment of the present application belong to the claim of this application And its within the scope of equivalent technologies, then the application is also intended to include these modifications and variations.

Claims (10)

1. a kind of local translucent display operation implementation method of threedimensional model characterized by comprising
In response to the behavior operation for the threedimensional model shown on screen, the screen that acquisition is successively picked up in the behavior operation is obtained Curtain coordinate set, wherein include multiple screen coordinates in the screen coordinate set, screen coordinate is indicated in screen two-dimensional coordinate Two-dimensional coordinate under system, local data block lock out operation of the behavior operation characterization to the threedimensional model;
According to the screen coordinate set, behavior operation corresponding closed curve on the threedimensional model is determined;
Mark the tri patch in the closed curve on the corresponding threedimensional model;
By the tri patch of label in such a way that preset transparency is shown, the three-dimensional is shown again on the screen Model.
2. the method as described in claim 1, which is characterized in that further comprise:
Obtain two-dimensional sequence binary image data;
Image iso-surface patch is carried out to the two-dimensional sequence binary image data, obtains corresponding threedimensional model, and be shown in institute It states on screen.
3. the method as described in claim 1, which is characterized in that according to the screen coordinate set, determine the behavior operation The corresponding closed curve on the threedimensional model, specifically includes:
According to the screen coordinate set, judge whether each screen coordinate can correspond to institute in the screen coordinate set respectively Threedimensional model is stated, judges to obtain the screen coordinate that can be corresponded on the threedimensional model;
It determines respectively and judges each screen coordinate obtained corresponding tri patch on the threedimensional model;
Shortest path of each two neighboring tri patch on the threedimensional model is determined respectively, wherein each two neighboring triangle Dough sheet is that the screen coordinate sequence successively picked up according to behavior operation determines, is included at least in the shortest path adjacent All tri patch passed through between two tri patch;
According to all tri patch of the composition shortest path including each two neighboring tri patch, the behavior behaviour is determined Make the corresponding closed curve on the threedimensional model.
4. method as claimed in claim 3, which is characterized in that according to the screen coordinate set, judge the screen respectively Whether each screen coordinate can correspond to the threedimensional model in coordinate set, and the threedimensional model can be corresponded to by judging to obtain On screen coordinate, specifically include:
Screen coordinate each in the screen coordinate set is subjected to back project respectively, judges whether that the three-dimensional can be obtained Depth information on model, however, it is determined that depth information can be obtained, it is determined that screen coordinate can correspond on threedimensional model, if Determination cannot obtain depth information, it is determined that screen coordinate cannot correspond on threedimensional model.
5. method as claimed in claim 3, which is characterized in that determine each two neighboring tri patch in the three-dimensional mould respectively When shortest path in type, wherein be directed to two tri patch of arbitrary neighborhood, determine that two tri patch of the arbitrary neighborhood exist Shortest path on the threedimensional model, specifically includes:
If two tri patch of the arbitrary neighborhood are respectively tri patch A and tri patch B, execution following steps are recycled, Until determining that in the corresponding region of search divided of current new tri patch include the tri patch B being connected:
Multiple is set as radius, with described using Euclidean distance between the mass center of current new tri patch and the tri patch B Tri patch A is the center of circle, divides region of search, wherein current new tri patch is initially the tri patch A;
Determine each tri patch being connected in described search region with the current new tri patch, wherein be connected Each tri patch indicates the vertex on the vertex of each tri patch and the current new tri patch under threedimensional model coordinate system It is connected;
Determine the current new tri patch respectively in the distance for each tri patch being connected the shortest distance and institute The corresponding tri patch A ' being connected of the shortest distance is stated, by the tri patch A ' as current new tri patch, is continued It returns to execute and multiple is set as radius using Euclidean distance between the mass center of current new tri patch and the tri patch B, with The step of current new tri patch is the center of circle, divides region of search;
Will include tri patch A and tri patch B and the corresponding tri patch being connected of the shortest distance of all determinations, Constitute the shortest path between the tri patch A to the tri patch B.
6. method as claimed in claim 3, which is characterized in that most according to the composition including each two neighboring tri patch All tri patch of short path determine behavior operation corresponding closed curve on the threedimensional model, specifically include:
The center-of-mass coordinate of all tri patch of the composition shortest path including each two neighboring tri patch is determined respectively;
Each center-of-mass coordinate is subjected to orthographic projection transformation, obtains the corresponding screen coordinate of each center-of-mass coordinate;
The corresponding screen coordinate of each center-of-mass coordinate is subjected to least square method fitting, obtaining includes each center-of-mass coordinate pair Continuous two-dimensional coordinate including the screen coordinate answered, and it is based on the continuous two-dimensional coordinate, determine the closed curve.
7. as the method according to claim 1 to 6, which is characterized in that further comprise:
The closed curve is shown using setpoint color.
8. method as claimed in claim 6, which is characterized in that mark in the closed curve on the corresponding threedimensional model Tri patch, specifically include:
According to the closed curve, the closed surface in the region constituted in the closed curve is determined;
All screen coordinates in the closed surface are subjected to back project, obtain all screens in the closed surface Coordinate corresponding tri patch on the threedimensional model, and be marked.
9. the method as described in claim 1, which is characterized in that the value of the preset transparency is less than 1.
10. a kind of local translucent display operation realization device of threedimensional model characterized by comprising
Obtain module, for being operated in response to the behavior for the threedimensional model shown on screen, obtain the behavior operation according to It is secondary to pick up the screen coordinate set obtained, wherein to include multiple screen coordinates in the screen coordinate set, screen coordinate indicates Two-dimensional coordinate under screen two-dimensional coordinate system, the behavior operation characterization separate behaviour to local data's block of the threedimensional model Make;
Determining module, for determining that the behavior operation is corresponding on the threedimensional model according to the screen coordinate set Closed curve;
Mark module, for marking the tri patch in the closed curve on the corresponding threedimensional model;
Display module, in such a way that preset transparency is shown, weighing the tri patch of label on the screen Newly show the threedimensional model.
CN201910631609.1A 2019-07-12 2019-07-12 A kind of threedimensional model locally translucent display operation implementation method and device Pending CN110491517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910631609.1A CN110491517A (en) 2019-07-12 2019-07-12 A kind of threedimensional model locally translucent display operation implementation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910631609.1A CN110491517A (en) 2019-07-12 2019-07-12 A kind of threedimensional model locally translucent display operation implementation method and device

Publications (1)

Publication Number Publication Date
CN110491517A true CN110491517A (en) 2019-11-22

Family

ID=68547108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910631609.1A Pending CN110491517A (en) 2019-07-12 2019-07-12 A kind of threedimensional model locally translucent display operation implementation method and device

Country Status (1)

Country Link
CN (1) CN110491517A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112200892A (en) * 2020-09-30 2021-01-08 京东方科技集团股份有限公司 Display processing method and device
CN117058342A (en) * 2023-10-12 2023-11-14 天津科汇新创科技有限公司 Spine 3D voxel model construction method based on projection image

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793552A (en) * 2013-12-18 2014-05-14 哈尔滨工程大学 Real-time dynamic generating method for local particle spring model with deformed soft tissues
CN107233134A (en) * 2017-05-15 2017-10-10 青岛海信医疗设备股份有限公司 Show method, device and the Medical Devices of 3 D medical model inner marker point
CN108470371A (en) * 2018-03-26 2018-08-31 网易(杭州)网络有限公司 Local processing method, device, processor and the terminal of threedimensional model
US20190103190A1 (en) * 2017-09-29 2019-04-04 K2M, Inc. Systems and methods for simulating spine and skeletal system pathologies

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793552A (en) * 2013-12-18 2014-05-14 哈尔滨工程大学 Real-time dynamic generating method for local particle spring model with deformed soft tissues
CN107233134A (en) * 2017-05-15 2017-10-10 青岛海信医疗设备股份有限公司 Show method, device and the Medical Devices of 3 D medical model inner marker point
US20190103190A1 (en) * 2017-09-29 2019-04-04 K2M, Inc. Systems and methods for simulating spine and skeletal system pathologies
CN108470371A (en) * 2018-03-26 2018-08-31 网易(杭州)网络有限公司 Local processing method, device, processor and the terminal of threedimensional model

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
冯浩 等: ""三维城市规划中的三维模型三角网格自动消隐和分割技术"", 《武汉大学学报(工学版)》 *
刘奇 等: ""一种模拟手术刀轨迹并切割颅骨的方法"", 《计算机技术与发展》 *
孙绪江 等: ""医学图像三维表面模型切割算法"", 《计算机工程》 *
范政昂: ""基于网络影像的开颅手术仿真研究"", 《中国优秀博硕士学位论文全文数据库(硕士) 医药卫生科技辑(月刊)》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112200892A (en) * 2020-09-30 2021-01-08 京东方科技集团股份有限公司 Display processing method and device
CN117058342A (en) * 2023-10-12 2023-11-14 天津科汇新创科技有限公司 Spine 3D voxel model construction method based on projection image
CN117058342B (en) * 2023-10-12 2024-01-26 天津科汇新创科技有限公司 Spine 3D voxel model construction method based on projection image

Similar Documents

Publication Publication Date Title
CN104794758B (en) A kind of method of cutting out of 3-D view
CN109285225B (en) Medical image-based virtual reality assisted surgery establishing method
TWI521469B (en) Two - dimensional Roles Representation of Three - dimensional Action System and Method
CN109064549B (en) Method for generating mark point detection model and method for detecting mark point
JP2008251044A (en) Graphic representation generation method in computer
CN109389669A (en) Human 3d model construction method and system in virtual environment
CN109448137A (en) Exchange method, interactive device, electronic equipment and storage medium
US20120038639A1 (en) Presentation-enhanced solid mechanical simulation
Bornik et al. A hybrid user interface for manipulation of volumetric medical data
CN110491517A (en) A kind of threedimensional model locally translucent display operation implementation method and device
CN108389202B (en) Volume calculation method and device of three-dimensional virtual organ, storage medium and equipment
CN1685381B (en) Device and method for generating a virtual anatomic environment
Vilanova et al. VirEn: A virtual endoscopy system
Trier et al. The visible ear surgery simulator
CN109243614A (en) A kind of Surgery Simulation methods, devices and systems
KR101275938B1 (en) Method for virtual surgery medical simulation and apparatus for thereof
CN113379929A (en) Bone tissue repair virtual reality solution method based on physical simulation
Lin et al. Dynamic volume texture mapping and model deformation for visually realistic surgical simulation
CN108428230B (en) Method, device, storage medium and equipment for processing curved surface in three-dimensional virtual organ
Mills et al. IMEX: A tool for image display and contour management in a windowing environment
Glueck et al. Multiscale 3D reference visualization
CN114267219A (en) Virtual operation simulation device and simulation system
Eagleson et al. Visual perception and human–computer interaction in surgical augmented and virtual reality environments
Shi et al. Error elimination method in moving target tracking in real-time augmented reality
KR101166554B1 (en) Apparatus and method for generating animation effects of cauterization

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191122

WD01 Invention patent application deemed withdrawn after publication