CN109166175A - The method at control point is evenly distributed in a kind of Fusion Edges program of 3D exploitation - Google Patents
The method at control point is evenly distributed in a kind of Fusion Edges program of 3D exploitation Download PDFInfo
- Publication number
- CN109166175A CN109166175A CN201810962444.1A CN201810962444A CN109166175A CN 109166175 A CN109166175 A CN 109166175A CN 201810962444 A CN201810962444 A CN 201810962444A CN 109166175 A CN109166175 A CN 109166175A
- Authority
- CN
- China
- Prior art keywords
- control point
- row
- model
- column
- vertex
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000004927 fusion Effects 0.000 title claims abstract description 15
- 238000012937 correction Methods 0.000 claims abstract description 47
- 230000000007 visual effect Effects 0.000 claims 1
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000012800 visualization Methods 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/20—Finite element generation, e.g. wire-frame surface description, tesselation
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses the methods that control point is evenly distributed in a kind of Fusion Edges program of 3D exploitation, including call DirectX API, generate the model of a geometric correction in real time;A control point model is generated on each corresponding Vertex three-dimensional vector coordinate, single choice or frame select the control point model to carry out edge adjustment;Calculate single-row or uniline control point coordinates vector maximum value Max and minimum M in;Uniline or single-row middle vertex quantity are Segments, step value Step=(Max-Min)/(Segments-1);Row ordinal sum column ordinal number is CR, then the coordinate vector P=Min+Step*CR after the row or the column average are distributed, and changes the vectorial coordinate of the row or the control point of the column;According to the Vertex array serial number of the Mesh of control point record, coordinate vector value is assigned to the Vertex of 3D model M esh;Until video, picture textures are assigned to geometric correction model after completing last column and last line calculating.Beneficial effects of the present invention are accurately control point to be evenly distributed on column or row, can be done in real time the correction of video.
Description
Technical field
The present invention relates to the Fusion Edges field based on DirectX 3D low level development, the edge of specifically a kind of 3D exploitation
The method at control point is evenly distributed in fusion program.
Background technique
Existing geometric correction model includes existing Fusion Edges device single-point, Multipoint synchronous control, the side API of OpenGL
Formula is corrected:
Single-point control: a control point or multiple control points can only be positioned every time, changes simultaneously geometric correction mould
The vertex position of type.But due to mouse, keyboard, the error visually observed etc., control point column and row can not be allowed to be evenly distributed, made
It is larger at geometric correction model vertex ranks interval error, it is easy to produce geometric distortion.
OpenGL method: method of the OpenGL with the deformation of a model is for calling, and the side under most of Windows
Edge fusion software is also using the method.The method when one move a vertex when, surrounding vertex also can inertia move together, work as school
When the image of positive one complicated screen, the method can allow correction work to become increasingly difficult to.The method not can guarantee every row, each column more
The vertex of geometric correction model is evenly distributed, and can allow geometric correction model that geometry occurs after obtaining video textures, picture textures
Distortion.
Summary of the invention
Against the above deficiency, it is an object of the invention to provide average marks in a kind of Fusion Edges program of 3D exploitation to deploy to ensure effective monitoring and control of illegal activities
Make point method, accurately control point can be evenly distributed on column and row, change simultaneously geometric correction model vertex reach column,
Row is evenly distributed, and can be done in real time the correction of video, improves correction accuracy, can meet harsh geometric correction environment.
It is realized the purpose of the present invention is technical solution in this way, it is average in a kind of Fusion Edges program of 3D exploitation
The method of distributed controll point, comprising the following steps:
Step 1: calling DirectXAPI, generates the model for being used for geometric correction in real time;
Step 2: the Vertex three-dimensional vector coordinate of geometric correction model Mesh is obtained;
Step 3: according to Vertex three-dimensional vector coordinate acquired in step 2, each corresponding Vertex three-dimensional to
It measures and generates a control point model on coordinate, the control point model corresponds to a data in Point3D () array, completes
Visualization Model vertex is shown;
Step 4: the control point model is selected using mouse single choice or frame, adjustment is located at the control point mould of left and right edges
Type or control point model positioned at lower edges are located in the middle control point model without adjustment;
Step 5: the sum of the sum and row that arrange in geometric correction model is calculated, the uniline or list of next step are carried out
Column data calculates;
Step 6: the maxima and minima of single-row or uniline control point X/Y/Z coordinate vector is calculated separately, is somebody's turn to do
Capable or the column Min (minimum value), the Max (maximum value) of the row or the column;
Step 7: single-row or uniline control point coordinates step value is calculated, if uniline or single-row middle vertex quantity are
Segments, then step value Step=(Max-Min)/(Segments-1), calculates the step value of X/Y/Z vector;
Step 8: setting row ordinal sum column ordinal number is CR, then the coordinate vector P=Min+ after the row or the column average are distributed
Step*CR, and change the vectorial coordinate of the row or the control point of the column;
Step 9: by the new coordinate in control point, according to the Vertex array serial number of the Mesh of control point record, by coordinate vector
Value is assigned to the Vertex of 3D model M esh;
Step 10: return step six carries out the calculating of next line or next column again, until completing last column and last
When row calculates, step 11 is carried out;
Step 11: geometric correction model is completed, and video, picture textures are assigned to geometric correction model.
Further, the topological logic of change Vertex is not needed in the step 2.
Further, the control point model or the control point positioned at lower edges that adjustment is located at left and right edges in the step 4
Model is used to adapt to the screen of plurality of specifications.
Further, the geometry school in the quantity of the row ordinal number in the step 8 and the quantity of column ordinal number and the step 2
The sum of column in positive model and the sum of row are corresponding.
Due to the adoption of the above technical scheme, the present invention has the advantage that: this method by using algorithm carry out column and row
Average operation.Control point is evenly distributed on column and row, changing simultaneously geometric correction model vertex, to reach column and row average
Distribution.When control row mean time, it is only necessary to be adjusted position to left and right edges control point, after executing row average algorithm, algorithm is certainly
The dynamic control point coordinates calculated among geometric correction model, and change vertex position.When controlling column average, it is only necessary to right
Lower edges control point is adjusted position, and after executing column average, algorithm calculates among geometric correction model automatically
Control point coordinates, and change vertex position.It can be done in real time the correction of video, improve correction accuracy, the several of harshness can be met
What correction environment.
Other advantages, target and feature of the invention will be illustrated in the following description to a certain extent, and
And to a certain extent, based on will be apparent to those skilled in the art to investigating hereafter, Huo Zheke
To be instructed from the practice of the present invention.Target and other advantages of the invention can be wanted by following specification and right
Book is sought to be achieved and obtained.
Detailed description of the invention
Detailed description of the invention of the invention is as follows.
Fig. 1 be column average before control point and geometric correction model figure.
Fig. 2 be column average after control point and geometric correction model figure.
Fig. 3 is control point and the geometric correction model figure before row is average.
Fig. 4 is control point and the geometric correction model figure after row is average.
Fig. 5 is evenly distributed the method flow diagram at control point in the Fusion Edges program for 3D exploitation.
Specific embodiment
Present invention will be further explained below with reference to the attached drawings and examples.
If attached drawing 1 is to shown in Fig. 5, the invention discloses be evenly distributed control point in a kind of Fusion Edges program of 3D exploitation
Method, the method comprises the following steps: step 1: call DirectXAPI, in real time generate one be used for geometric correction model;
Step 2: obtaining the Vertex three-dimensional vector coordinate of geometric correction model Mesh, does not need opening up for change Vertex
Flutter logic;
Step 3: according to Vertex three-dimensional vector coordinate acquired in step 2, each corresponding Vertex three-dimensional to
It measures and generates a control point model on coordinate, the control point model corresponds to a data in Point3D () array, completes
Visualization Model vertex is shown;
Step 4: the control point model is selected using mouse single choice or frame, adjustment is located at the control point mould of left and right edges
Type or control point model positioned at lower edges are located in the middle control point model so that it is adapted with the screen that need to be shown
Without adjustment;This method is in use, only need the coordinate position for being concerned about geometric correction model control point or more or left and right, by remaining control
System point position transfers to computer to calculate completion automatically according to following algorithms, improves geometric correction speed.
Step 5: the sum of the sum and row that arrange in geometric correction model is calculated, the uniline or list of next step are carried out
Column data calculates;
Step 6: the maxima and minima of single-row or uniline control point X/Y/Z coordinate vector is calculated separately, is somebody's turn to do
Capable or the column Min (minimum value), the Max (maximum value) of the row or the column;
Step 7: single-row or uniline control point coordinates step value is calculated, if uniline or single-row middle vertex quantity are
Segments, then step value Step=(Max-Min)/(Segments-1), calculates the step value of X/Y/Z vector;
Step 8: setting row ordinal sum column ordinal number is CR, then the coordinate vector P=Min+ after the row or the column average are distributed
Step*CR, and change the vectorial coordinate of the row or the control point of the column;
Step 9: by the new coordinate in control point, according to the Vertex array serial number of the Mesh of control point record, by coordinate vector
Value is assigned to the Vertex of 3D model M esh;
Step 10: return step six carries out the calculating of next line or next column again, until completing last column and last
When row calculates, step 11 is carried out;It is calculated line by line, after all row and columns, which complete control point, to be uniformly distributed, into
Row is in next step;
Step 11: geometric correction model is completed, and video, picture textures are assigned to geometric correction model.
Geometric correction model in the quantity of row ordinal number in the step 8 and the quantity of column ordinal number and the step 2
In column sum and row it is total corresponding.
Beneficial effects of the present invention are the average operation that this method directly uses algorithm progress column and row.It can be accurately by control
Point is evenly distributed on column and row, is changed simultaneously geometric correction model vertex and is reached column and row and is evenly distributed.When control row is average
When, it is only necessary to position is adjusted to left and right edges control point, after executing row average algorithm, algorithm is calculated automatically positioned at geometry school
Control point coordinates among positive model, and change vertex position.When controlling column average, it is only necessary to be carried out to lower edges control point
Position is adjusted, after executing column average, algorithm calculates the control point coordinates among geometric correction model automatically, and changes top
Point position.This method can be widely applied to the fields such as display and demonstration, theme park, live performance.The video figure of its real time correction
Picture can complete the correction of video without carrying out preparatory geometry deformation processing to video image in real time.This method proposes simultaneously
The correcting mode of higher precision can meet harsh geometric correction environment.
Finally, it is stated that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although referring to compared with
Good embodiment describes the invention in detail, those skilled in the art should understand that, it can be to skill of the invention
Art scheme is modified or replaced equivalently, and without departing from the objective and range of the technical program, should all be covered in the present invention
Scope of the claims in.
Claims (4)
1. being evenly distributed the method at control point in a kind of Fusion Edges program of 3D exploitation, which comprises the following steps:
Step 1: calling DirectXAPI, generates the model for being used for geometric correction in real time;
Step 2: the Vertex three-dimensional vector coordinate of geometric correction model Mesh is obtained;
Step 3: it according to Vertex three-dimensional vector coordinate acquired in step 2, is sat in each corresponding Vertex three-dimensional vector
It puts on and generates a control point model, the control point model corresponds to a data in Point3D () array, completes visual
Change model vertices to show;
Step 4: selecting the control point model using mouse single choice or frame, adjustment be located at left and right edges control point model or
Positioned at the control point model of lower edges, control point model is located in the middle without adjustment;
Step 5: the sum of the sum and row that arrange in geometric correction model is calculated, the uniline or single-row number of next step are carried out
According to calculating;
Step 6: calculating separately the maxima and minima of single-row or uniline control point X/Y/Z coordinate vector, obtain the row or
The Max (maximum value) of the Min (minimum value) of the column, the row or the column;
Step 7: calculating single-row or uniline control point coordinates step value, if uniline or single-row middle vertex quantity are Segments,
Then step value Step=(Max-Min)/(Segments-1), calculates the step value of X/Y/Z vector;
Step 8: setting row ordinal sum column ordinal number is CR, then the coordinate vector P=Min+ after the row or the column average are distributed
Step*CR, and change the vectorial coordinate of the row or the control point of the column;
Step 9: the new coordinate in control point is assigned coordinate vector value according to the Vertex array serial number of the Mesh of control point record
To the Vertex of 3D model M esh;
Step 10: return step six carries out the calculating of next line or next column again, until completing last column and last line meter
When calculation, step 11 is carried out;
Step 11: geometric correction model is completed, and video, picture textures are assigned to geometric correction model.
2. the method for being evenly distributed control point in the Fusion Edges program of 3D exploitation according to claim 1, feature exist
In: the topological logic of change Vertex is not needed in the step 2.
3. the method for being evenly distributed control point in the Fusion Edges program of 3D exploitation according to claim 2, feature exist
In: control point model of the adjustment positioned at left and right edges or the control point model positioned at lower edges are for adapting in the step 4
The screen of plurality of specifications.
4. the method for being evenly distributed control point in the Fusion Edges program of 3D exploitation according to claim 1, feature exist
In: the column in geometric correction model in the quantity of the row ordinal number in the step 8 and the quantity of column ordinal number and the step 2
Sum and row it is total corresponding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810962444.1A CN109166175A (en) | 2018-08-22 | 2018-08-22 | The method at control point is evenly distributed in a kind of Fusion Edges program of 3D exploitation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810962444.1A CN109166175A (en) | 2018-08-22 | 2018-08-22 | The method at control point is evenly distributed in a kind of Fusion Edges program of 3D exploitation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109166175A true CN109166175A (en) | 2019-01-08 |
Family
ID=64896274
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810962444.1A Pending CN109166175A (en) | 2018-08-22 | 2018-08-22 | The method at control point is evenly distributed in a kind of Fusion Edges program of 3D exploitation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109166175A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030011595A1 (en) * | 2001-05-10 | 2003-01-16 | Vineet Goel | Apparatus for processing non-planar video graphics primitives and associated method of operation |
CN101477682A (en) * | 2009-02-11 | 2009-07-08 | 中国科学院地理科学与资源研究所 | Method for remotely sensing image geometric correction by weighted polynomial model |
CN101950247A (en) * | 2010-09-17 | 2011-01-19 | 广东威创视讯科技股份有限公司 | Method for correcting deformed picture |
US20120262455A1 (en) * | 2010-02-26 | 2012-10-18 | Canon Kabushiki Kaisha | Three-dimensional measurement apparatus, model generation apparatus, processing method thereof, and non-transitory computer-readable storage medium |
CN103716602A (en) * | 2013-12-24 | 2014-04-09 | 北京淳中视讯科技有限公司 | Method, device and system for geometry correction of projection image |
CN104599237A (en) * | 2013-10-30 | 2015-05-06 | 北京莫高丝路文化发展有限公司 | Ball screen multi-channel geometric correction method |
JP2015219679A (en) * | 2014-05-16 | 2015-12-07 | 株式会社リコー | Image processing system, information processing device, and program |
-
2018
- 2018-08-22 CN CN201810962444.1A patent/CN109166175A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030011595A1 (en) * | 2001-05-10 | 2003-01-16 | Vineet Goel | Apparatus for processing non-planar video graphics primitives and associated method of operation |
CN101477682A (en) * | 2009-02-11 | 2009-07-08 | 中国科学院地理科学与资源研究所 | Method for remotely sensing image geometric correction by weighted polynomial model |
US20120262455A1 (en) * | 2010-02-26 | 2012-10-18 | Canon Kabushiki Kaisha | Three-dimensional measurement apparatus, model generation apparatus, processing method thereof, and non-transitory computer-readable storage medium |
CN101950247A (en) * | 2010-09-17 | 2011-01-19 | 广东威创视讯科技股份有限公司 | Method for correcting deformed picture |
CN104599237A (en) * | 2013-10-30 | 2015-05-06 | 北京莫高丝路文化发展有限公司 | Ball screen multi-channel geometric correction method |
CN103716602A (en) * | 2013-12-24 | 2014-04-09 | 北京淳中视讯科技有限公司 | Method, device and system for geometry correction of projection image |
JP2015219679A (en) * | 2014-05-16 | 2015-12-07 | 株式会社リコー | Image processing system, information processing device, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20240153143A1 (en) | Multi view camera registration | |
US10818021B2 (en) | Image processing method, apparatus, and storage medium | |
JP5228826B2 (en) | Cell image analysis apparatus and cell image analysis method | |
US10169891B2 (en) | Producing three-dimensional representation based on images of a person | |
KR101148101B1 (en) | Method for retargeting expression | |
CN109887030A (en) | Texture-free metal parts image position and posture detection method based on the sparse template of CAD | |
CN110123257A (en) | A kind of vision testing method, device, sight tester and computer storage medium | |
CN104778694A (en) | Parameterized and automatic geometric correction method for multi-projector tiled display | |
US8982127B2 (en) | Computing device and method for establishing three dimensional coordinate system using graphics | |
CN108492247A (en) | A kind of eye make-up chart pasting method based on distortion of the mesh | |
US10186051B2 (en) | Method and system for calibrating a velocimetry system | |
CN109543267B (en) | Image processing-based artwork surface spraying simulation and optimization method | |
CN103761708B (en) | Image repair method based on outline | |
JP6061334B2 (en) | AR system using optical see-through HMD | |
CN109948247B (en) | Handicraft surface spraying simulation method capable of automatically optimizing spraying direction | |
JP5998532B2 (en) | Correction formula calculation method, correction method, correction apparatus, and imaging apparatus | |
CN105643265B (en) | A kind of detection method for the cooperation of large-scale workpiece fitting surface | |
KR102023087B1 (en) | Method for camera calibration | |
JP2012255674A (en) | Alignment method | |
CN106323190A (en) | Depth measurement range-customizable depth measurement method and system for obtaining depth image | |
CN103955687B (en) | A kind of method for rapidly positioning of the light spot image center based on centroid method | |
JP6807034B2 (en) | Image processing device and image processing method | |
CN104978558B (en) | The recognition methods of target and device | |
CN109166175A (en) | The method at control point is evenly distributed in a kind of Fusion Edges program of 3D exploitation | |
CN101950247A (en) | Method for correcting deformed picture |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190108 |