Summary of the invention
The application's technical matters to be solved provides a kind of generation method and device of 3-D view, when adopting the curved surface modeling scheme to carry out the 3-D view generation in order to solve prior art, need the quantity of cloud data to be processed very big, obviously reduce the technical matters of the formation efficiency of 3-D view.Further, because the application does not need spatial digitizer yet, so compared with prior art, also can reduce the manufacturing cost of goods and materials cost and manpower 3-D view.
The application provides a kind of generation method of 3-D view, comprising:
Read the view data of target body;
Described view data is identified, generated the data value of required unique point to determine at least one 3-D view;
According to the data value of each described unique point, set up at least one characteristic curve, comprise at least two unique points in every described characteristic curve;
Resolve the data value of each unique point in every described characteristic curve, to generate the 3-D view corresponding with described target body.
Said method, preferred, described described view data is identified, generate the data value of required unique point to determine at least one 3-D view, comprising:
Described view data is identified, to determine the characteristic portion of at least one target body;
Obtain at least one respectively unique point corresponding with each described characteristic portion;
Determine the data value of each described unique point.
Said method, preferred, obtain at least one respectively after the unique point corresponding with each described characteristic portion described, before the described data value of determining each described unique point, described method also comprises:
Obtain the insertion point that is different from described unique point in each described characteristic portion, described insertion point is labeled as unique point.
Said method, preferred, after the described generation 3-D view corresponding with described target body, described method also comprises:
Obtain the user and revise instruction, described user revises target signature point that instruction comprises that the user need to revise and the revised data value of each described target signature point;
Determine unique point corresponding with described target signature point in the described 3-D view;
The data value of revising respectively the unique point of determining is its each self-corresponding revised data value;
According to the data value of each described unique point, upgrade the 3-D view corresponding with described target body.
Said method, preferred, described data value according to each described unique point upgrades the 3-D view corresponding with described target body, comprising:
According to the data value of each described unique point, rebulid at least one characteristic curve, resolve the data value of each unique point in every the described characteristic curve that rebulids, to regenerate the 3-D view corresponding with described target body; Or
According to the data value of each described unique point, in described 3-D view, revise and revised unique point characteristic of correspondence curve, to revise described 3-D view.
The application also provides a kind of generating apparatus of 3-D view, comprising:
Data-reading unit is for the view data that reads target body;
Data identification unit is used for described view data is identified, and generates the data value of required unique point to determine at least one 3-D view;
Curve is set up the unit, is used for the data value according to each described unique point, sets up at least one characteristic curve, comprises at least two unique points in each described characteristic curve;
The Data Analysis unit is for the data value of resolving every described each unique point of characteristic curve, to generate the 3-D view corresponding with described target body.
Said apparatus, preferred, described data identification unit comprises:
Characteristic portion is determined subelement, is used for described view data is identified, and determines the characteristic portion of at least one target body;
Unique point is obtained subelement, is used for obtaining at least one respectively unique point corresponding with each described characteristic portion;
Data value is determined subelement, is used for determining the data value of each described unique point.
Said apparatus, preferred, described device also comprises:
Unique point increases subelement, be used for obtaining after subelement obtains corresponding at least one unique point of each described characteristic portion in described unique point, before described data value determines that subelement is determined the data value of each described unique point, obtain the insertion point that is different from described unique point in each described characteristic portion, described insertion point is labeled as unique point.
Said apparatus, preferred, described device also comprises:
Instruction fetch unit is used for obtaining the user and revising instruction after described Data Analysis unit generates described 3-D view, and described user revises the revised data value that target signature that instruction comprises that the user need to revise is clicked each described target signature point;
The target determining unit is used for determining the described 3-D view unique point corresponding with described target signature point;
Data value is revised the unit, and the data value that is used for the definite unique point of respectively modification is its each self-corresponding revised data value;
The image update unit is used for the data value according to each described unique point, upgrades the 3-D view corresponding with described target body.
Said apparatus, preferred, described image update unit comprises:
The image reconstruction subelement, be used for the data value according to each described unique point, rebulid at least one characteristic curve, resolve the data value of each unique point in every the described characteristic curve that rebulids, to regenerate the 3-D view corresponding with described target body; Or
The amending image subelement is used for the data value according to each described unique point, revises and revised unique point characteristic of correspondence curve in described 3-D view, to revise described 3-D view.
By such scheme as can be known, generation method and the device of a kind of 3-D view that the application provides, after view data by reading target body such as 2-dimentional photo data etc., view data is identified, obtain the data value of the unique point of target body, set up characteristic curve according to the data value of each unique point thus, and then the generating three-dimensional image.In the application's implementation procedure, only need the data value of the unique point of some, the quantity of required unique point has obviously reduced the data calculated amount much smaller than the quantity of all cloud datas needed in the art, has improved modeling efficiency.
Further, the electronic identifier that the application only need generally use can be realized the identification to the view data of target body, need not expensive spatial digitizer, obviously reduces the manufacturing cost of 3-D view.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment only is the application's part embodiment, rather than whole embodiment.Based on the embodiment among the application, those of ordinary skills are not making the every other embodiment that obtains under the creative work prerequisite, all belong to the scope of the application's protection.
With reference to figure 1, the process flow diagram of the generation embodiment of the method one of a kind of 3-D view that provides for the application, described method is used for setting up the three-dimensional people's platform that is complementary with actual human body at computing machine, be 3-D view corresponding to actual human body, be applicable to dress designing and cartoon character design etc. and need to use in the application of three-dimensional people's platform, described method can realize by following steps:
Step 101: the view data that reads target body.
Wherein, described target body refers to actual human body, namely need the generating three-dimensional image to carry out the human body of the purposes such as dress designing or cartoon character design, can comprise part body such as women upper body, the male upper body etc. of the person, also can comprise the whole in whole body of the person.
And described view data is generally the two-dimensional image data of described target body, for example, and the full face data of target body and side picture data.
Step 102: described view data is identified, generated the data value of required unique point to determine at least one 3-D view.
Wherein, can realize in the following manner in the described step 102:
Comprise that take view data the full face data of target body and side picture data are as example, at first respectively each pixel in described full face data and the side picture data is carried out scanning recognition, determine to show in described full face data and the side picture data pixel of the profile of described target body, and then can obtain the positive facial contour of described target body corresponding to described full face data, with, the side profile of the described target body that described side picture data is corresponding, on described positive facial contour and described side profile, determine respectively again the data value of the unique point that at least one generating three-dimensional image is required, as determining the data value of neck feature point at positive facial contour, and at the data value of the definite chest unique point of side profile etc.
Need to prove, the data value that comprises width value, one-tenth-value thickness 1/10 and height value at any one position in positive facial contour that can be by extracting described target body in the embodiment of the present application and the side profile can be determined the data value of having a few in any one position of described target body according to described positive facial contour and described side profile thus.
Wherein, among the application, can by the human dimension extractive technique as based on the contactless two-dimension human body process of measurement of Matlab as described in view data extract in such as photo as described in width value, one-tenth-value thickness 1/10 and the height value etc. at each position of target body.Shown in the positive facial contour of the whole body of the target body among Fig. 2 and side profile.
Therefore, in the part process flow diagram of the embodiment of the present application one as shown in Figure 3, described step 102 can also realize by following each step:
Step 301: described view data is identified, to determine the characteristic portion of at least one target body.
Wherein, described step 301 can realize in the following manner:
Each pixel in the described view data is carried out scanning recognition, obtain positive facial contour and the side profile of target body described in the described view data, and determine the characteristic portion of described target body according to described positive facial contour and described side profile.For example, determine the characteristic portion such as neck, chest, waist in the profile of target body shown in Figure 2.
And described characteristic portion can comprise such as any one or combination in any in neck, shoulder, chest, pectus, waist, buttocks, the shank etc.Described characteristic portion can conspicuousness the individuality formation that embodies described target body, the 3-D view that generates therefrom is considered as the most the three-dimensional people's platform near described target body.
Step 302: obtain at least one respectively unique point corresponding with each described characteristic portion.
Wherein, described step 302 can realize in the following manner:
According to the contour curve of described target body, determine respectively the contour curve of each described characteristic portion, the point from the contour curve of each described characteristic portion, choose the point of the individualized feature that characterizes described characteristic portion as unique point again.
For example, in described contour curve during selected characteristic point, can click according to extension and get rule and choose, that is, in described contour curve, choose the point that stretches out in the described contour curve farthest as unique point.As shown in Figure 4, in the contour curve of the chest of described target body, can choose wherein breastheight point (BP point), left-hand point, right-hand point, left back unique point as described chest.
Step 303: the data value of determining each described unique point.
Wherein, described data value can be with the expressions such as position vector of its characteristic of correspondence point.If the unique point of selecting be neck just before point, the just rear breastheight point etc. of point, left-hand point, right-hand point, chest, then this step is directly obtained the data value of these unique points.
Then return Fig. 1, execution in step 103: according to the data value of each described unique point, set up at least one characteristic curve, comprise at least two unique points in every described characteristic curve.
Wherein, described step 103 can realize in the following manner:
Unique point in each described feature point group is carried out curve connect, obtain each described feature point group characteristic of correspondence curve, comprise at least two unique points in every described characteristic curve.
Step 104: resolve the data value of each unique point in every described characteristic curve, to generate the 3-D view corresponding with described target body.
Wherein, described step 104 can realize in the following manner:
Call CsGl.dll operation OpenGL program, resolved the data value of each unique point in every described characteristic curve by this OpenGL program, to generate the 3-D view corresponding with described target body.
By such scheme as can be known, the generation embodiment of the method one of a kind of 3-D view that the application provides, after view data by reading target body such as 2-dimentional photo data etc., view data is identified, obtain the data value of the unique point of target body, set up characteristic curve according to the data value of each unique point thus, and then the generating three-dimensional image.In the implementation procedure of the embodiment of the present application, only need the data value of the unique point of some, the quantity of required unique point has obviously reduced the data calculated amount much smaller than the quantity of all cloud datas needed in the art, has improved modeling efficiency.
Further, the electronic identifier that the embodiment of the present application only need generally have been used can be realized the identification to the view data of target body, need not expensive spatial digitizer, obviously reduces the manufacturing cost of 3-D view.
In the above-described embodiments, every characteristic curve is described to form by at least two unique points, unique point in every characteristic curve is fewer, the required quantity of calculating is less in the embodiment of the present application, but the not high situation of the 3-D view degree of accuracy that may occur generating, therefore, for so that the 3-D view that generates more close to described target body, more can embody the personalization of three-dimensional people's platform, improve the degree of accuracy of 3-D view, can be by increasing the unique point of each characteristic portion, and then the mode that improves the degree of accuracy of every characteristic curve realizes improving the degree of accuracy of 3-D view.
With reference to figure 5, the part process flow diagram of the generation embodiment of the method two of a kind of 3-D view that provides for the application, wherein, after described step 302, before described step 303, described method also comprises:
Step S304: obtain the insertion point that is different from described unique point in each described characteristic portion, described insertion point is labeled as unique point.
Wherein, can be according to the default Rule that obtains when obtaining described insertion point among the described step S304, describedly default obtain rule and be: take the width central point of described characteristic portion as benchmark, determine to be different from the insertion point of current described unique point, described insertion point can more significantly embody described target body in the personalization of this place, insertion point characteristic portion at the characteristic curve with current described unique point foundation.For example, as shown in Figure 6, be all insertion points and the unique point in the chest curve of setting up.
In the application's practical application, take dress designing as example, carrying out fitted garment when design, such as underwear or swimming suit etc., the data basis that the actual data value that needs each unique point of actual human body is obtained as three-dimensional data such as people's platform.
And along with the growth of time, variation more or less can occur in the build of described target body, the size of some characteristic portion of described target body such as one-tenth-value thickness 1/10, trickle or larger variation can occur in width values etc., so that unmatched situation appears in the human body of people's platform feature that the 3-D view that generates characterizes and reality, when carrying out dress designing, need to increase quantity of margin or deflation amount at the data value of some unique point, for so that the 3-D view that generates can embody the personalization of target body more, the clothes of designing can better meet the requirement of human body snugness of fit over a period to come, can select to use the embodiment of the present application three, the data value of the part or all of unique point of described target body is carried out a certain amount of revision.With reference to figure 7, the part process flow diagram of the generation embodiment of the method three of a kind of 3-D view that provides for the application, wherein, after described step 104, described method also comprises:
Step 701: obtain the user and revise instruction, described user revises target signature point that instruction comprises that the user need to revise and the revised data value of each described target signature point.
Need to prove, described step 701 can be chosen in after the described step 104 and carry out, and namely after generating 3-D view corresponding to described target body, the User demand is made amendment or regenerated described 3-D view.
In addition, described step 701 can also be carried out after described step 102, at this moment, need not to carry out described step 103 and described step 104, namely after the data value of determining each described unique point, the User demand is made amendment to the data value of individual features point, and then the generation 3-D view corresponding with described target body.
Step 702: determine unique point corresponding with described target signature point in the described 3-D view.
Step 703: the data value of revising respectively the unique point of determining is its each self-corresponding revised data value.
Step 704: according to the data value of each described unique point, upgrade the 3-D view corresponding with described target body.
When reality realized, described step 704 can realize by following the first mode:
Data value according to revised each described unique point rebulids at least one characteristic curve;
The data value of each unique point in every described characteristic curve that parsing rebulids is to regenerate the 3-D view corresponding with described target body.
In above-mentioned the first mode, the 3-D view that regenerates covers the 3-D view of setting up in the described step 104.
In addition, described step 704 also can realize by following the second mode:
According to the data value of each described unique point, in described 3-D view, revise the characteristic curve corresponding with revised unique point, to revise described 3-D view.
In above-mentioned the second mode, need not to regenerate 3-D view, but according to treating revised unique point modification 3-D view.
With reference to figure 8, the structural representation of the generating apparatus embodiment four of a kind of 3-D view that provides for the application, described application of installation is in computing machine, be used for setting up the three-dimensional people's platform that is complementary with actual human body, be 3-D view corresponding to actual human body, be applicable to dress designing and cartoon character design etc. and need to use in the application of three-dimensional people's platform, described device comprises:
Data-reading unit 801 is for the view data that reads target body.
Wherein, described target body refers to actual human body, namely need the generating three-dimensional image to carry out the human body of the purposes such as dress designing or cartoon character design, can comprise part body such as women upper body, the male upper body etc. of the person, also can comprise the whole in whole body of the person.
And described view data is generally the two-dimensional image data of described target body, for example, and the full face data of target body and side picture data.
Data identification unit 802 is used for described view data is identified, and generates the data value of required unique point to determine at least one 3-D view.
Need to prove, described data identification unit 802 is connected with described data-reading unit 801.
Wherein, described data identification unit 802 is being identified described view data, when generating the data value of required unique point with definite at least one 3-D view, can realize in the following manner:
Comprise that take view data the full face data of target body and side picture data are as example, at first respectively each pixel in described full face data and the side picture data is carried out scanning recognition, determine to show in described full face data and the side picture data pixel of the profile of described target body, and then can obtain the positive facial contour of described target body corresponding to described full face data, with, the side profile of the described target body that described side picture data is corresponding, on described positive facial contour and described side profile, determine respectively again the data value of the unique point that at least one generating three-dimensional image is required, as determining the data value of neck feature point at positive facial contour, and at the data value of the definite chest unique point of side profile etc.
Need to prove, the data value that comprises width value, one-tenth-value thickness 1/10 and height value at any one position in positive facial contour that can be by extracting described target body in the embodiment of the present application and the side profile can be determined the data value of having a few in any one position of described target body according to described positive facial contour and described side profile thus
Wherein, among the application, described data identification unit 802 can by the human dimension extractive technique as based on the contactless two-dimension human body process of measurement of Matlab as described in view data extract in such as photo as described in width value, one-tenth-value thickness 1/10 and the height value etc. at each position of target body.Shown in the positive facial contour of the whole body of the target body among Fig. 2 and side profile.
Therefore, in the part-structure schematic diagram of the embodiment of the present application four as shown in Figure 9, described data identification unit 802 comprises:
Characteristic portion is determined subelement 821, is used for described view data is identified, and determines the characteristic portion of at least one target body.
Wherein, described characteristic portion determines that the function of subelement 821 can realize in the following manner:
Each pixel in the described view data is carried out scanning recognition, obtain positive facial contour and the side profile of target body described in the described view data, and determine the characteristic portion of described target body according to described positive facial contour and described side profile.For example, determine the characteristic portion such as neck, chest, waist in the profile of target body shown in Figure 2.
And described characteristic portion can comprise such as any one or combination in any in neck, shoulder, chest, pectus, waist, buttocks, the shank etc.Described characteristic portion can conspicuousness the individuality formation that embodies described target body, the 3-D view that generates therefrom is considered as the most the three-dimensional people's platform near described target body.
Unique point is obtained subelement 822, is used for obtaining at least one respectively unique point corresponding with each described characteristic portion.
Wherein, described unique point is obtained subelement 822 and is being obtained at least one respectively during the unique point corresponding with each described characteristic portion, can realize in the following manner:
According to the contour curve of described target body, determine respectively the contour curve of each described characteristic portion, the point from the contour curve of each described characteristic portion, choose the point of the individualized feature that characterizes described characteristic portion as unique point again.
For example, in described contour curve during selected characteristic point, can click according to extension and get rule and choose, that is, in described contour curve, choose the point that stretches out in the described contour curve farthest as unique point.As shown in Figure 4, in the contour curve of the chest of described target body, can choose wherein breastheight point (BP point), left-hand point, right-hand point, left back unique point as described chest.
Need to prove, described unique point is obtained subelement 822 and is determined that with described characteristic portion subelement 821 is connected.
Data value is determined subelement 823, is used for determining the data value of each described unique point.
Wherein, described data value can be with the expressions such as position vector of its characteristic of correspondence point.If the unique point of selecting be neck just before point, the just rear breastheight point etc. of point, left-hand point, right-hand point, chest, then described data value determines that subelement 823 directly obtains the data value of these unique points.
Need to prove, described data value determines that subelement 823 and described unique point obtain subelement 822 and be connected.
Curve is set up unit 803, is used for the data value according to each described unique point, sets up at least one characteristic curve, comprises at least two unique points in each described characteristic curve.
Need to prove, described curve is set up unit 803 and is connected with described data identification unit 802.
Wherein, described curve is set up unit 803 when realizing its function, can realize in the following manner:
Unique point in each described feature point group is carried out curve connect, obtain each described feature point group characteristic of correspondence curve, comprise at least two unique points in every described characteristic curve.
Data Analysis unit 804 is for the data value of resolving every described each unique point of characteristic curve, to generate the 3-D view corresponding with described target body.
Need to prove, described Data Analysis unit 804 is set up unit 803 with described curve and is connected.
Wherein, described Data Analysis unit 804 can be realized its function in the following manner:
Call CsGl.dll operation OpenGL program, resolved the data value of each unique point in every described characteristic curve by this OpenGL program, to generate the 3-D view corresponding with described target body.
By such scheme as can be known, the generating apparatus embodiment four of a kind of 3-D view that the application provides, after view data by reading target body such as 2-dimentional photo data etc., view data is identified, obtain the data value of the unique point of target body, set up characteristic curve according to the data value of each unique point thus, and then generating three-dimensional image, in the implementation procedure of the embodiment of the present application, only need the data value of the unique point of some, the quantity of required unique point has obviously reduced the data calculated amount much smaller than the quantity of all cloud datas needed in the art, has improved modeling efficiency.
Further, the electronic identifier that the embodiment of the present application only need generally have been used can be realized the identification to the view data of target body, need not expensive spatial digitizer.
In the above-described embodiments, every characteristic curve is described to form by at least two unique points, unique point in every characteristic curve is fewer, the required quantity of calculating is less in the embodiment of the present application, but the not high situation of the 3-D view degree of accuracy that may occur generating, therefore, for so that the 3-D view that generates more close to described target body, more can embody the personalization of three-dimensional people's platform, improve the degree of accuracy of 3-D view, can be by increasing the unique point of each characteristic portion, and then the mode that improves the degree of accuracy of every characteristic curve realizes improving the degree of accuracy of 3-D view.
With reference to Figure 10, the part-structure schematic diagram of the generating apparatus embodiment five of a kind of 3-D view that provides for the application, wherein, described device also comprises:
Unique point increases subelement 824, be used for obtaining after subelement 822 obtains corresponding at least one unique point of each described characteristic portion in described unique point, before described data value determines that subelement 823 is determined the data value of each described unique point, obtain the insertion point that is different from described unique point in each described characteristic portion, described insertion point is labeled as unique point.
Need to prove, described unique point increase subelement 824 obtains subelement 822 with described unique point respectively and described data value determines that subelement 823 is connected.
Wherein, described unique point increases can be according to the default Rule that obtains when obtaining described insertion point in the subelement 824, describedly default obtain rule and be: take the width central point of described characteristic portion as benchmark, determine to be different from the insertion point of current described unique point, described insertion point can more significantly embody described target body in the personalization of this place, insertion point characteristic portion at the characteristic curve with current described unique point foundation.For example, as shown in Figure 6, be all insertion points and the unique point in the chest curve of setting up.
In the application's practical application, take dress designing as example, carrying out fitted garment when design, such as underwear or swimming suit etc., the data basis that the actual data value that needs each unique point of actual human body is obtained as three-dimensional data such as people's platform.
And along with the growth of time, variation more or less can occur in the build of described target body, the size of some characteristic portion of described target body such as one-tenth-value thickness 1/10, trickle or larger variation can occur in width values etc., so that unmatched situation appears in the human body of people's platform feature that the 3-D view that generates characterizes and reality, when carrying out dress designing, need to increase quantity of margin or deflation amount at the data value of some unique point, for so that the 3-D view that generates can embody the personalization of target body more, the clothes of designing can better meet the requirement of human body snugness of fit over a period to come, can select to use the embodiment of the present application six, the data value of the part or all of unique point of described target body is carried out a certain amount of revision.
With reference to Figure 11, the part-structure schematic diagram of the generating apparatus embodiment six of a kind of 3-D view that provides for the application, described device also comprises:
Instruction fetch unit 805 is used for obtaining the user and revises instruction, and described user revises the revised data value that target signature that instruction comprises that the user need to revise is clicked each described target signature point.
Need to prove, described instruction fetch unit 805 can be connected with described Data Analysis unit 804, namely after described 3-D view is finished in 804 generations of described Data Analysis unit, receiving the user by described instruction fetch unit 805 and revise instruction, makes amendment to described 3-D view or regenerates in the triggering following unit.
In addition, described instruction fetch unit 805 can be connected with described data identification unit 802, need not to trigger described curve and set up unit 803 and described Data Analysis unit 804 this moment, namely after described data identification unit 802 is determined the data value of each described unique point, receive the user by described instruction fetch unit 805 and revise instruction, triggering following unit User demand is made amendment to the data value of individual features point, and then the generation 3-D view corresponding with described target body.
Target determining unit 806 is used for determining the described 3-D view unique point corresponding with described target signature point.
Data value is revised unit 807, and the data value that is used for the definite unique point of respectively modification is its each self-corresponding revised data value.
Image update unit 808 is used for the data value according to each described unique point, upgrades the 3-D view corresponding with described target body.
When reality realizes, be another part structural representation of the embodiment of the present application six with reference to Figure 12, wherein, described image update unit 808 can comprise:
Image reconstruction subelement 881, be used for the data value according to revised each described unique point, rebulid at least one characteristic curve, resolve the data value of each unique point in every the described characteristic curve that rebulids, to regenerate the 3-D view corresponding with described target body.
Wherein, the 3-D view that regenerates of described image reconstruction subelement 881 covers the 3-D view of setting up in the described Data Analysis unit 804.
In addition, with reference to Figure 13, be the another part-structure schematic diagram of the embodiment of the present application six, described image update unit 808 also can comprise:
Amending image subelement 882 is used for the data value according to revised each described unique point, revises the characteristic curve corresponding with revised unique point in described 3-D view, to revise described 3-D view.
Wherein, in the described amending image subelement 882, need not to regenerate 3-D view, but according to treating that revised unique point revises described 3-D view.
For example, use the embodiment of the present application when carrying out the 3-D view generation, can be under the C# environment, call by Matlab and write the automatic process of measurement of contactless two-dimension human body of finishing, extract the physical size that makes up the required target body of three-dimensional people's platform, by definite unique point and data value separately in the physical size, and then call CsGl.dll operation OpenGL program and carry out the Three Dimensional Interface programming, generate the personalized three-dimensional image.
Wherein, Matlab is the abbreviation of matrix experiment chamber (Matrix Laboratory), is used for advanced techniques computational language and the interactive environment of algorithm development, data visualization, data analysis and numerical evaluation, has powerful image processing function.By this software image is carried out Threshold segmentation and two-value conversion etc. and process the profile that obtains target body, as shown in Figure 2.
In addition, in the embodiment of the present application, can utilize computer graphical to gain knowledge by in conjunction with the buman body type characteristic rule, can determine unique point at the human body image edge, to obtain the size at characteristics of human body position.According to the front build curve characteristics of human body, the concavo-convex position of easily seeking in the two sides is the preferential point of seeking, and with ratio in front, side photo the employing of height identical principle high according to each unique point determined the position of the unique point of another side again.
In this application, with the example that is generated as of the 3-D view of women upper body, carry out the size that the Matlab size extracts automatically based on the human body photo and comprise height dimension, width dimensions and gauge.Wherein, height dimension comprises height, neck is high, cervical vertebra point is high, shoulder is high, breastheight, lower breastheight; Width dimensions comprises that neck breadth, neck root are wide, shoulder breadth, chest breadth, breast point be apart from, lower chest breadth; Gauge comprises that neck depth, neck root are thick, shoulder is thick, chest depth, lower chest depth etc.
Below take the chest curve as example, summary characteristic portion curve simulation process.At first determine 18 altogether of unique points at the chest curve, comprising the insertion point, these unique points are distributed on the chest curve, determined the moulding of curve, it is defined in the three-dimensional set, then these points just can show in the interface, utilize the counter reference mark of obtaining curve of Jacobi iterative equation according to these unique points, the drafting of B-spline curves just can be carried out, as shown in figure 14 in 21 reference mark altogether.
During with B Reconstructing B-Spline curved surface, generally need to carry out compatibility to outline line and process, namely all outline lines have identical knot vector and count with identical control.Yet, concerning the characteristic curve that makes up people's platform, although have certain geometric similarity between the adjacent contour curve, but because physical dimension and the feature of differently contoured line are not quite similar, therefore can be different at the unique point number of each characteristic portion curve, all be 12 unique points such as neck and neck root, 16 unique points of shoulder, 18 unique points of chest, 16 unique points of pectus; And because the not equal factor in the position of differently contoured starting point may cause the distortion of curved surface in the process of constructing curve.Therefore, need to resample to each characteristic portion curve and to outline line processings of doing to become a full member in conjunction with other characteristic portion curves, so that the number of sampled point all equates in the row direction with on the column direction, and correspondence one by one.
Because each characteristic curve is comprised of a series of continuously arranged discrete points, and these discrete points all are close-packed arrays, One's name is legion, if seek immediate profile starting point with the method for bee-line so, calculative distance is too many and calculated amount is large.In this example on the chest curve 18 unique points resample as benchmark, take the pectus characteristic curve as example, as shown in figure 15, the searching process is as follows:
(1) finds out the geometric center O of contour curve;
(2) take central point place horizontal line and perpendicular line as the separatrix, it is divided into four quadrants, the slope of every layer of unique point and central point line is calculated and stored to the equal quartern of all quadrants, and all slopes are sorted obtain public slope S i;
(3) according to public slope S i, in order each characteristic curve is resampled, the sampled point number that obtains like this is identical, and corresponding one by one, solved simultaneously outline line and become a full member and compatible problem, the sampled point that obtains can be expressed as Ai, j(i=0,1 ..., m-1; J=0,1 ..., n-1).
Same, the point of these resamplings also is the data point on each characteristic curve, carry out people's platform curve modeling, also must be according to the anti-reference mark of obtaining of these data points.After line direction calculates and finishes, carry out the reference mark inverse of column direction, line direction and column direction curve can be shown in the interface, in order to check each curve form, as shown in figure 16.
Need to prove, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
At last, also need to prove, in this article, relational terms such as the first and second grades only is used for an entity or operation are separated with another entity or operational zone, and not necessarily requires or hint and have the relation of any this reality or sequentially between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby not only comprise those key elements so that comprise process, method, article or the equipment of a series of key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.In the situation that not more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
Above generation method and device to a kind of 3-D view provided by the present invention is described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.