Summary of the invention
Technical problems to be solved in this application are to provide generation method and the dress of a kind of 3-D view
Put, in order to solve prior art use curved surface modeling scheme carry out 3-D view generate time, need place
The high number of the cloud data of reason, hence it is evident that reduce the technical problem of the formation efficiency of 3-D view.
Further, because the application is also without spatial digitizer, so compared with prior art, also
Goods and materials cost and the manufacturing cost of manpower 3-D view can be reduced.
This application provides a kind of generation method of 3-D view, including:
Read the view data of target body;
Described view data is identified, to determine the feature needed for the generation of at least one 3-D view
The data value of point;
According to the data value of each described characteristic point, set up at least one characteristic curve, every described spy
Levy and curve at least includes two characteristic points;
Resolve the data value of each characteristic point in every described characteristic curve, to generate and described target person
The 3-D view that body is corresponding.
Said method, it is preferred that described described view data is identified, to determine at least one
The data value of the characteristic point needed for 3-D view generation, including:
Described view data is identified, to determine the characteristic portion of at least one target body;
Obtain at least one characteristic point corresponding with each described characteristic portion respectively;
Determine the data value of each described characteristic point.
Said method, it is preferred that described acquisition at least one respectively with each described characteristic portion institute
After corresponding characteristic point, before the described data value determining each described characteristic point, described
Method also includes:
Obtain the insertion point being different from described characteristic point in each described characteristic portion, by described insertion point
It is labeled as characteristic point.
Said method, it is preferred that the described generation 3-D view corresponding with described target body it
After, described method also includes:
Obtaining user and revise instruction, described user revises instruction and includes that user needs the target characteristic of revision
Point and the revised data value of each described target characteristic point;
Determine characteristic point corresponding with described target characteristic point in described 3-D view;
The data value being respectively modified the characteristic point determined is its each self-corresponding revised data value;
According to the data value of each described characteristic point, update the graphics corresponding with described target body
Picture.
Said method, it is preferred that the described data value according to each described characteristic point, updates with described
The 3-D view that target body is corresponding, including:
According to the data value of each described characteristic point, re-establish at least one characteristic curve, resolve weight
The data value of each characteristic point in newly-established every described characteristic curve, to regenerate with described
The 3-D view that target body is corresponding;Or
According to the data value of each described characteristic point, amendment and revised spy in described 3-D view
Levy a characteristic of correspondence curve, to revise described 3-D view.
Present invention also provides the generating means of a kind of 3-D view, including:
Data-reading unit, for reading the view data of target body;
Data identification unit, for being identified described view data, to determine that at least one is three-dimensional
The data value of the characteristic point needed for image generation;
Curve sets up unit, for the data value according to each described characteristic point, sets up at least one special
Levy curve, each described characteristic curve at least includes two characteristic points;
Data parsing unit, for resolving the data value of each characteristic point in every described characteristic curve,
To generate the 3-D view corresponding with described target body.
Said apparatus, it is preferred that described data identification unit includes:
Characteristic portion determines subelement, for being identified described view data, determines at least one
The characteristic portion of target body;
Characteristic point obtains subelement, is used for obtaining at least one relative with each described characteristic portion respectively
The characteristic point answered;
Data value determines subelement, for determining the data value of each described characteristic point.
Said apparatus, it is preferred that described device also includes:
Characteristic point increases subelement, obtains each described feature for obtaining subelement in described characteristic point
After at least one characteristic point corresponding to position, determine that subelement determines at described data value each
Before the data value of described characteristic point, obtain in each described characteristic portion and be different from described characteristic point
Insertion point, described insertion point is labeled as characteristic point.
Said apparatus, it is preferred that described device also includes:
Instruction acquiring unit, after generating described 3-D view at described data parsing unit, obtains
Taking family revision instruction, described user revises instruction and includes that user needs the target characteristic of revision to click on
The revised data value of each described target characteristic point;
Target determination unit, corresponding with described target characteristic point for determining in described 3-D view
Characteristic point;
Data value amendment unit, is that it is the most corresponding for being respectively modified the data value of the characteristic point determined
Revised data value;
Image update unit, for the data value according to each described characteristic point, updates and described target
The 3-D view that human body is corresponding.
Said apparatus, it is preferred that described image update unit includes:
Image reconstruction subelement, for the data value according to each described characteristic point, re-establishes at least
Article one, characteristic curve, resolves the data of each characteristic point in every the described characteristic curve re-established
Value, to regenerate the 3-D view corresponding with described target body;Or
Amending image subelement, for the data value according to each described characteristic point, at described graphics
Amendment and the characteristic curve of revised Feature point correspondence in Xiang, to revise described 3-D view.
From such scheme, the generation method and device of a kind of 3-D view that the application provides, lead to
After crossing the view data such as 2-dimentional photo data etc. reading target body, view data is known
, do not obtain the data value of the characteristic point of target body, thus build according to the data value of each characteristic point
Vertical characteristic curve, and then generate 3-D view.During the realization of the application, only need a fixed number
The data value of the characteristic point of amount, the quantity of required characteristic point is much smaller than institute needed in the art
There is the quantity of cloud data, hence it is evident that reduce data amount of calculation, improve modeling efficiency.
Further, the application only needs the most commonly used electronic identifier can realize target person
The identification of the view data of body, it is not necessary to expensive spatial digitizer, hence it is evident that reduce 3-D view
Manufacturing cost.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present application, to the technical scheme in the embodiment of the present application
It is clearly and completely described, it is clear that described embodiment is only that the application part is real
Execute example rather than whole embodiments.Based on the embodiment in the application, ordinary skill
The every other embodiment that personnel are obtained under not making creative work premise, broadly falls into this
The scope of application protection.
With reference to Fig. 1, the flow chart of the generation embodiment of the method one of a kind of 3-D view provided for the application,
Described method, for setting up the three-dimensional people's platform matched with actual human body in a computer, is actual human body
Corresponding 3-D view, it is adaptable to dress designing and cartoon character design etc. need to use answering of three-dimensional people's platform
In with, described method can be realized by following steps:
Step 101: read the view data of target body.
Wherein, described target body refers to actual human body, i.e. needs to generate 3-D view and carries out dress designing
Or the human body of the purposes such as cartoon character design, can include on the body part such as female upper body of the person, man
Body etc., it is also possible to include the whole such as whole body of the person.
And described view data is generally the two-dimensional image data of described target body, such as, target body
Full face data and side picture data.
Step 102: be identified described view data, to determine that at least one 3-D view generates institute
The data value of the characteristic point needed.
Wherein, described step 102 can be accomplished by:
Include full face data and the side picture data of target body by view data as a example by, first divide
Other be scanned each pixel in described full face data and side picture data identifies, determines
Described full face data and side picture data show the pixel of the profile of described target body, enters
And the frontal outline of described target body corresponding to described full face data can be obtained, and, described side
The side profile of the described target body that face picture data is corresponding, then in described frontal outline and described side
Determine on profile that at least one generates the data value of the characteristic point needed for 3-D view respectively, as taken turns in front
Determine the data value of neck feature point on exterior feature, and on side profile, determine the data value of chest characteristic point
Deng.
It should be noted that can be by extracting the frontal outline of described target body in the embodiment of the present application
With the data value including width value, one-tenth-value thickness 1/10 and height value at any one position in side profile, thus
Any one position of described target body can be determined according to described frontal outline and described side profile
Middle data value a little.
Wherein, in the application, can be by body dimension's extractive technique as contactless based on Matlab
Two-dimension human body process of measurement is at described view data each position of target body as described in extract in photo
Width value, one-tenth-value thickness 1/10 and height value etc..Whole body frontal outline and side wheel such as the target body in Fig. 2
Shown in wide.
Therefore, in the partial process view of the embodiment of the present application one as shown in Figure 3, described step 102 is also
Can be realized by each step following:
Step 301: be identified described view data, to determine the feature of at least one target body
Position.
Wherein, described step 301 can be accomplished by:
It is scanned each pixel in described view data identifying, obtains institute in described view data
State frontal outline and the side profile of target body, and true according to described frontal outline and described side profile
The characteristic portion of fixed described target body.Such as, the neck in the profile of the target body shown in Fig. 2 is determined
The characteristic portions such as portion, chest, waist.
And described characteristic portion can include as cervical region, shoulder, chest, pectus, waist, buttocks,
Any one in leg etc. or combination in any.Described characteristic portion can significance embody described mesh
The individuality formation of mark human body, the 3-D view generated therefrom is considered as three closest to described target body
Wei Rentai.
Step 302: obtain at least one characteristic point corresponding with each described characteristic portion respectively.
Wherein, described step 302 can be accomplished by:
According to the contour curve of described target body, determine that the profile of each described characteristic portion is bent respectively
In line, then the point from the contour curve of each described characteristic portion, choose and characterize described characteristic portion
The point of individualized feature is as characteristic point.
Such as, in described contour curve during selected characteristic point, can click according to extension and take rule and enter
Row is chosen, i.e. choose the point furthest conduct that stretches out in described contour curve in described contour curve
Characteristic point.As shown in Figure 4, in the contour curve of the chest of described target body, can choose therein
Breastheight point (BP point), left-hand point, right-hand point, left back point are as the characteristic point of described chest.
Step 303: determine the data value of each described characteristic point.
Wherein, described data value can represent with the position vector etc. of its characteristic of correspondence point.If selected
Characteristic point be cervical region just before point, the most afterwards point, left-hand point, right-hand point, the breastheight point etc. of chest, then
This step directly obtains the data value of these characteristic points.
It is then returned to Fig. 1, performs step 103: according to the data value of each described characteristic point, set up extremely
A few characteristic curve, at least includes two characteristic points in every described characteristic curve.
Wherein, described step 103 can be accomplished by:
Characteristic point in each described feature point group is carried out curve connection, obtains each described feature point group
Characteristic of correspondence curve, at least includes two characteristic points in every described characteristic curve.
Step 104: resolve the data value of each characteristic point in every described characteristic curve, to generate and institute
State the 3-D view that target body is corresponding.
Wherein, described step 104 can be accomplished by:
Call CsGl.dll and run OpenGL program, this OpenGL program resolve every described feature
The data value of each characteristic point in curve, to generate the 3-D view corresponding with described target body.
From such scheme, the generation embodiment of the method one of a kind of 3-D view that the application provides, lead to
After crossing the view data such as 2-dimentional photo data etc. reading target body, view data is identified,
Obtain the data value of the characteristic point of target body, thus set up feature according to the data value of each characteristic point bent
Line, and then generate 3-D view.During the realization of the embodiment of the present application, only need a number of spy
Levying data value a little, the quantity of required characteristic point is much smaller than all cloud datas needed in the art
Quantity, hence it is evident that reduce data amount of calculation, improve modeling efficiency.
Further, the embodiment of the present application only needs the most commonly used electronic identifier can realize mesh
The identification of the view data of mark human body, it is not necessary to expensive spatial digitizer, hence it is evident that reduce 3-D view
Manufacturing cost.
In the above-described embodiments, every characteristic curve is carried out description by least two characteristic point and forms, every
Characteristic point in characteristic curve is the fewest, in the embodiment of the present application required for the quantity that carries out calculating the least, but
It is possible that the highest situation of 3-D view degree of accuracy generated, therefore, so that the graphics generated
As being closer to described target body, it is better able to embody the personalization of three-dimensional people's platform, improves three-dimensional
The degree of accuracy of image, by increasing the characteristic point of each characteristic portion, and then can improve every feature song
The mode of the degree of accuracy of line realizes improving the degree of accuracy of 3-D view.
With reference to Fig. 5, the part stream of the generation embodiment of the method two of a kind of 3-D view provided for the application
Cheng Tu, wherein, after described step 302, before described step 303, described method also includes:
Step S304: obtain the insertion point being different from described characteristic point in each described characteristic portion, will
Described insertion point is labeled as characteristic point.
Wherein, described step S304 can obtain according to default acquisition rule when obtaining described insertion point
Taking, described default acquisition rule is: on the basis of the widthwise central point of described characteristic portion, determine difference
In the insertion point of presently described characteristic point, described insertion point is bent with the feature that presently described characteristic point is set up
What line can become apparent from embodies the personalization at this place, insertion point characteristic portion of the described target body.
Such as, as shown in Figure 6, for all insertion points in the thoracic curve of foundation and characteristic point.
In the actual application of the application, as a example by dress designing, when carrying out fitted garment design, as
Underwear or swimming suit etc., need the actual data value of each characteristic point of actual human body as three-dimensional data such as people's platform
The data basis obtained.
And growth over time, the build of described target body can occur change more or less, described
The size of some characteristic portion of target body such as one-tenth-value thickness 1/10, width value etc. can occur trickle or bigger change
Change so that people's platform feature that the 3-D view of generation is characterized unmatched feelings occurs with actual human body
Condition, when carrying out dress designing, needs to increase quantity of margin or deflation amount on the data value of some characteristic point,
So that the 3-D view generated is better able to embody the personalization of target body, the clothing designed
Human body snugness of fit requirement can be better met over a period to come, can select to apply the application real
Execute example three, the data value of the part or all of characteristic point of described target body is carried out a certain amount of revision.
With reference to Fig. 7, the partial process view of the generation embodiment of the method three of a kind of 3-D view provided for the application,
Wherein, after described step 104, described method also includes:
Step 701: obtain user and revise instruction, described user revises instruction and includes that user needs revision
Target characteristic point and the revised data value of each described target characteristic point.
It should be noted that described step 701 can select to perform after described step 104, i.e. exist
After generating the 3-D view that described target body is corresponding, according to user's request, described 3-D view is entered
Row is revised or regenerates.
It addition, described step 701 can also perform, now after described step 102, it is not necessary to perform
Described step 103 and described step 104, i.e. after determining the data value of each described characteristic point, depend on
According to user's request, the data value of individual features point is modified, and then generate relative with described target body
The 3-D view answered.
Step 702: determine characteristic point corresponding with described target characteristic point in described 3-D view.
Step 703: the data value being respectively modified the characteristic point determined is its each self-corresponding revised data value.
Step 704: according to the data value of each described characteristic point, updates corresponding with described target body
3-D view.
When actual realization, described step 704 can be realized by following first method:
According to the data value of revised each described characteristic point, re-establish at least one characteristic curve;
Resolve the data value of each characteristic point in every the described characteristic curve re-established, to regenerate
The 3-D view corresponding with described target body.
In above-mentioned first method, the 3-D view regenerated covers three set up in described step 104
Dimension image.
It addition, described step 704 can also be realized by following second method:
According to the data value of each described characteristic point, amendment and revised feature in described 3-D view
The characteristic curve that point is corresponding, to revise described 3-D view.
In above-mentioned second method, it is not necessary to regenerate 3-D view, and be based on the characteristic point after to be repaired ordering
Amendment 3-D view.
With reference to Fig. 8, the structure for the generating means embodiment four of a kind of 3-D view of the application offer is shown
Being intended to, described device is applied in computer, for setting up the three-dimensional people's platform matched with actual human body,
It is the 3-D view that actual human body is corresponding, it is adaptable to dress designing and cartoon character design etc. need to use
In the application of three-dimensional people's platform, described device includes:
Data-reading unit 801, for reading the view data of target body.
Wherein, described target body refers to actual human body, i.e. needs to generate 3-D view and carries out dress designing
Or the human body of the purposes such as cartoon character design, can include on the body part such as female upper body of the person, man
Body etc., it is also possible to include the whole such as whole body of the person.
And described view data is generally the two-dimensional image data of described target body, such as, target body
Full face data and side picture data.
Data identification unit 802, for being identified described view data, to determine at least one
The data value of the characteristic point needed for 3-D view generation.
It should be noted that described data identification unit 802 is connected with described data-reading unit 801.
Wherein, described view data is being identified by described data identification unit 802, to determine at least
One 3-D view generate needed for the data value of characteristic point time, can be accomplished by:
Include full face data and the side picture data of target body by view data as a example by, first divide
Other be scanned each pixel in described full face data and side picture data identifies, determines
Described full face data and side picture data show the pixel of the profile of described target body, enters
And the frontal outline of described target body corresponding to described full face data can be obtained, and, described side
The side profile of the described target body that face picture data is corresponding, then in described frontal outline and described side
Determine on profile that at least one generates the data value of the characteristic point needed for 3-D view respectively, as taken turns in front
Determine the data value of neck feature point on exterior feature, and on side profile, determine the data value of chest characteristic point
Deng.
It should be noted that can be by extracting the frontal outline of described target body in the embodiment of the present application
With the data value including width value, one-tenth-value thickness 1/10 and height value at any one position in side profile, thus
Any one position of described target body can be determined according to described frontal outline and described side profile
Middle data value a little
Wherein, in the application, described data identification unit 802 can extract skill by body dimension
Art based on Matlab contactless two-dimension human body process of measurement as described in view data such as photo in carry
Take the width value at each position of described target body, one-tenth-value thickness 1/10 and height value etc..Such as the mesh in Fig. 2
Shown in the whole body frontal outline of mark human body and side profile.
Therefore, in the part-structure schematic diagram of the embodiment of the present application four as shown in Figure 9, described number
Include according to recognition unit 802:
Characteristic portion determines subelement 821, for being identified described view data, determines at least
The characteristic portion of one target body.
Wherein, described characteristic portion determines that the function of subelement 821 can be accomplished by:
It is scanned each pixel in described view data identifying, obtains institute in described view data
State frontal outline and the side profile of target body, and true according to described frontal outline and described side profile
The characteristic portion of fixed described target body.Such as, the neck in the profile of the target body shown in Fig. 2 is determined
The characteristic portions such as portion, chest, waist.
And described characteristic portion can include as cervical region, shoulder, chest, pectus, waist, buttocks,
Any one in leg etc. or combination in any.Described characteristic portion can significance embody described mesh
The individuality formation of mark human body, the 3-D view generated therefrom is considered as three closest to described target body
Wei Rentai.
Characteristic point obtains subelement 822, be used for obtaining at least one respectively with each described characteristic portion
Corresponding characteristic point.
Wherein, described characteristic point obtain subelement 822 obtain at least one respectively with each described feature
During the corresponding characteristic point in position, can be accomplished by:
According to the contour curve of described target body, determine that the profile of each described characteristic portion is bent respectively
In line, then the point from the contour curve of each described characteristic portion, choose and characterize described characteristic portion
The point of individualized feature is as characteristic point.
Such as, in described contour curve during selected characteristic point, can click according to extension and take rule and enter
Row is chosen, i.e. choose the point furthest conduct that stretches out in described contour curve in described contour curve
Characteristic point.As shown in Figure 4, in the contour curve of the chest of described target body, can choose therein
Breastheight point (BP point), left-hand point, right-hand point, left back point are as the characteristic point of described chest.
It should be noted that described characteristic point obtains subelement 822 determines subelement with described characteristic portion
821 are connected.
Data value determines subelement 823, for determining the data value of each described characteristic point.
Wherein, described data value can represent with the position vector etc. of its characteristic of correspondence point.If selected
Characteristic point be cervical region just before point, the most afterwards point, left-hand point, right-hand point, the breastheight point etc. of chest, then
Described data value determines that subelement 823 directly obtains the data value of these characteristic points.
It should be noted that described data value determines that subelement 823 obtains subelement with described characteristic point
822 are connected.
Curve sets up unit 803, for the data value according to each described characteristic point, sets up at least one
Bar characteristic curve, at least includes two characteristic points in each described characteristic curve.
It is connected it should be noted that described curve sets up unit 803 with described data identification unit 802.
Wherein, described curve sets up unit 803 when realizing its function, can be accomplished by:
Characteristic point in each described feature point group is carried out curve connection, obtains each described feature point group
Characteristic of correspondence curve, at least includes two characteristic points in every described characteristic curve.
Data parsing unit 804, for resolving the data of each characteristic point in every described characteristic curve
Value, to generate the 3-D view corresponding with described target body.
It is connected it should be noted that described data parsing unit 804 sets up unit 803 with described curve
Connect.
Wherein, described data parsing unit 804 can be accomplished by its function:
Call CsGl.dll and run OpenGL program, this OpenGL program resolve every described feature
The data value of each characteristic point in curve, to generate the 3-D view corresponding with described target body.
From such scheme, the generating means embodiment four of a kind of 3-D view that the application provides, lead to
After crossing the view data such as 2-dimentional photo data etc. reading target body, view data is identified,
Obtain the data value of the characteristic point of target body, thus set up feature according to the data value of each characteristic point bent
Line, and then generate 3-D view, during the realization of the embodiment of the present application, only need a number of spy
Levying data value a little, the quantity of required characteristic point is much smaller than all cloud datas needed in the art
Quantity, hence it is evident that reduce data amount of calculation, improve modeling efficiency.
Further, the embodiment of the present application only needs the most commonly used electronic identifier can realize mesh
The identification of the view data of mark human body, it is not necessary to expensive spatial digitizer.
In the above-described embodiments, every characteristic curve is carried out description by least two characteristic point and forms, every
Characteristic point in characteristic curve is the fewest, in the embodiment of the present application required for the quantity that carries out calculating the least, but
It is possible that the highest situation of 3-D view degree of accuracy generated, therefore, so that the graphics generated
As being closer to described target body, it is better able to embody the personalization of three-dimensional people's platform, improves three-dimensional
The degree of accuracy of image, by increasing the characteristic point of each characteristic portion, and then can improve every feature song
The mode of the degree of accuracy of line realizes improving the degree of accuracy of 3-D view.
With reference to Figure 10, the part for the generating means embodiment five of a kind of 3-D view of the application offer is tied
Structure schematic diagram, wherein, described device also includes:
Characteristic point increases subelement 824, obtains each for obtaining subelement 822 in described characteristic point
After at least one characteristic point corresponding to described characteristic portion, determine subelement at described data value
Before 823 data values determining each described characteristic point, obtain in each described characteristic portion and be different from
The insertion point of described characteristic point, is labeled as characteristic point by described insertion point.
It should be noted that described characteristic point increases subelement 824 obtains son with described characteristic point respectively
Unit 822 and described data value determine that subelement 823 is connected.
Wherein, can be according in advance when obtaining described insertion point during described characteristic point increases subelement 824
If acquisition Rule, described default acquisition rule is: with the widthwise central point of described characteristic portion as base
Standard, determines the insertion point being different from presently described characteristic point, described insertion point with presently described characteristic point
What the characteristic curve set up can become apparent from embodies described target body in this place, insertion point feature
The personalization at position.Such as, as shown in Figure 6, for all insertion points in the thoracic curve of foundation and spy
Levy a little.
In the actual application of the application, as a example by dress designing, when carrying out fitted garment design, as
Underwear or swimming suit etc., need the actual data value of each characteristic point of actual human body as three-dimensional data such as people's platform
The data basis obtained.
And growth over time, the build of described target body can occur change more or less, described
The size of some characteristic portion of target body such as one-tenth-value thickness 1/10, width value etc. can occur trickle or bigger change
Change so that people's platform feature that the 3-D view of generation is characterized unmatched feelings occurs with actual human body
Condition, when carrying out dress designing, needs to increase quantity of margin or deflation amount on the data value of some characteristic point,
So that the 3-D view generated is better able to embody the personalization of target body, the clothing designed
Human body snugness of fit requirement can be better met over a period to come, can select to apply the application real
Execute example six, the data value of the part or all of characteristic point of described target body is carried out a certain amount of revision.
With reference to Figure 11, the part for the generating means embodiment six of a kind of 3-D view of the application offer is tied
Structure schematic diagram, described device also includes:
Instruction acquiring unit 805, is used for obtaining user and revises instruction, and described user revises instruction and includes
User needs the target characteristic of revision to click on the revised data value of each described target characteristic point.
It should be noted that described instruction acquiring unit 805 can be with described data parsing unit 804
It is connected, i.e. after described data parsing unit 804 has generated described 3-D view, by institute
Stating instruction acquiring unit 805 to receive user and revise instruction, triggering following unit is to described 3-D view
Modify or regenerate.
It addition, described instruction acquiring unit 805 can be connected with described data identification unit 802,
Now set up unit 803 and described data parsing unit 804, i.e. described without triggering described curve
After data identification unit 802 determines the data value of each described characteristic point, described instruction obtain
Unit 805 receives user and revises instruction, and the foundation user's request of triggering following unit is to individual features point
Data value modify, and then generate the 3-D view corresponding with described target body.
Target determination unit 806, is used for determining in described 3-D view relative with described target characteristic point
The characteristic point answered.
Data value amendment unit 807, the data value for being respectively modified the characteristic point determined be its each
Corresponding revised data value.
Image update unit 808, for the data value according to each described characteristic point, updates with described
The 3-D view that target body is corresponding.
When actual realization, with reference to another part structural representation that Figure 12 is the embodiment of the present application six,
Wherein, described image update unit 808 may include that
Image reconstruction subelement 881, for the data value according to revised each described characteristic point, weight
Newly set up at least one characteristic curve, resolve each characteristic point in every the described characteristic curve re-established
Data value, to regenerate the 3-D view corresponding with described target body.
Wherein, the 3-D view that described image reconstruction subelement 881 regenerates covers described data parsing
The 3-D view set up in unit 804.
It addition, with reference to Figure 13, for the another part-structure schematic diagram of the embodiment of the present application six, described image
Updating block 808 can also include:
Amending image subelement 882, is used for the data value according to revised each described characteristic point,
Described 3-D view is revised the characteristic curve corresponding with revised characteristic point, to revise described three-dimensional
Image.
Wherein, in described amending image subelement 882, it is not necessary to regenerate 3-D view, and be based on
Treat that revised characteristic point revises described 3-D view.
Such as, application the embodiment of the present application carry out 3-D view generate time, can under C# environment,
Call the automatic process of measurement of contactless two-dimension human body write by Matlab, extract and build three-dimensional
The actual size of the target body needed for people's platform, by determining characteristic point and respective data in actual size
Value, and then call CsGl.dll and run OpenGL program and carry out Three Dimensional Interface programming, generate personalized three
Dimension image.
Wherein, Matlab is the abbreviation of matrix labotstory (Matrix Laboratory), opens for algorithm
Send out, data visualization, data analysis and the advanced techniques computational language of numerical computations and interactive environment,
There is powerful image processing function.By this software, image is carried out Threshold segmentation and two-value conversion etc.
Reason obtains the profile of target body, as shown in Figure 2.
It addition, in the embodiment of the present application, computer can be utilized by combining buman body type characteristic rule
Graphics knowledge, can determine characteristic point on human body image edge, to obtain characteristics of human body position
Size.Front build curve feature according to human body, with the concavo-convex position easily found in two sides be
Preferentially find a little, use identical further according to each characteristic point height in front, side photo with the ratio of height
Principle determine the position of characteristic point of another side.
In this application, as a example by the generation of the 3-D view of female upper body, carry out based on human body photo
The size that Matlab size automatically extracts includes height dimension, width dimensions and gauge.Wherein, high
Degree size includes height, cervical region height, cervical vertebra point height, shoulder height, breastheight, lower breastheight;Width dimensions bag
Include neck breadth, neck root width, shoulder breadth, chest breadth, breast point away from, lower chest breadth;Gauge includes neck depth, neck root
Thick, shoulder thickness, chest depth, lower chest depth etc..
Below as a example by thoracic curve, sketch characteristic portion curve simulation process.First on thoracic curve
Determining that characteristic point has 18 altogether, including insertion point, these characteristic points are distributed on thoracic curve,
Determining the moulding of curve, be defined in a three-dimensional set, then these points just can be in interface
Display, utilizes Jacobi iterative equation reverse to go out the control point of curve according to these characteristic points, and altogether 21
Individual control point, just can carry out the drafting of B-spline curves, as shown in figure 14.
During with B-spline reconstructed surface, it is generally required to contour line to be carried out compatibility process, the most all profiles
Line has identical knot vector and counts with identical control.But, the characteristic curve building people's platform is come
Say, although there is between adjacent contour curve certain geometric similarity, but several due to differently contoured line
What size and feature are not quite similar, and therefore the characteristic point number at each characteristic portion curve can the most not
With, if cervical region and neck root are all 12 characteristic points, 16 characteristic points of shoulder, 18 features of chest
Point, 16 characteristic points of pectus;And due to the not equal factor in the position of differently contoured starting point, can
The distortion of curved surface can be caused during constructing curve.Accordingly, it would be desirable to it is bent to combine other characteristic portions
Line carries out resampling process of making to become a full member to contour line to each characteristic portion curve so that the number of sampled point
The most equal with on column direction in the row direction, and one_to_one corresponding.
Owing to each characteristic curve is made up of a series of continuously arranged discrete points, and these are discrete
Point is all close-packed arrays, large number of, then if seeking immediate profile by the method for beeline
Starting point, calculative distance is too many and computationally intensive.With on thoracic curve 18 spies in this example
On the basis of levying a little, carry out resampling, as a example by pectus characteristic curve, as shown in figure 15, found
Journey is as follows:
(1) geometric center O of contour curve is found out;
(2) with central point place horizontal line and vertical line as demarcation line, it is classified as four quadrants, respectively
The equal quartering of quadrant, calculates and stores the slope of every layer of characteristic point and central point line, and to all tiltedly
Rate is ranked up obtaining public slope S i;
(3) according to public slope S i, in order each characteristic curve is carried out resampling, so obtain
Sampled point number identical, and one_to_one corresponding, solve contour line simultaneously and become a full member and compatible asking
Topic, the sampled point obtained is represented by Ai, j(i=0,1 ..., m-1;J=0,1 ..., n-1).
Same, the point of these resamplings is also the data point on each characteristic curve, people to be carried out
Platform curve modeling, it is also necessary to go out control point according to these data point reverses.After line direction has calculated,
Carry out the control point inverse of column direction, line direction and column direction curve can be shown in interface, in order to
Check each curve form, as shown in figure 16.
It should be noted that each embodiment in this specification all uses the mode gone forward one by one to describe,
What each embodiment stressed is the difference with other embodiments, between each embodiment
Identical similar part sees mutually.
Finally, in addition it is also necessary to explanation, in this article, the relation art of such as first and second or the like
Language is used merely to separate an entity or operation with another entity or operating space, and not necessarily
Require or imply relation or the order that there is any this reality between these entities or operation.And
And, term " includes ", " comprising " or its any other variant are intended to the bag of nonexcludability
Contain, so that include that the process of a series of key element, method, article or equipment not only include those
Key element, but also include other key elements being not expressly set out, or also include for this process,
The key element that method, article or equipment are intrinsic.In the case of there is no more restriction, by statement
The key element that " including one ... " limits, it is not excluded that include the process of described key element, method,
Article or equipment there is also other identical element.
Above the generation method and device of a kind of 3-D view provided by the present invention is carried out in detail
Introducing, principle and the embodiment of the present invention are set forth by specific case used herein,
The explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;With
Time, for one of ordinary skill in the art, according to the thought of the present invention, in detailed description of the invention
And all will change in range of application, in sum, it is right that this specification content should not be construed as
The restriction of the application.