CN102184555A - Color clustering method for central color fringes of De Bruijn color structure light coding image - Google Patents

Color clustering method for central color fringes of De Bruijn color structure light coding image Download PDF

Info

Publication number
CN102184555A
CN102184555A CN201110080913.5A CN201110080913A CN102184555A CN 102184555 A CN102184555 A CN 102184555A CN 201110080913 A CN201110080913 A CN 201110080913A CN 102184555 A CN102184555 A CN 102184555A
Authority
CN
China
Prior art keywords
class
color
sigma
matrix
rgb value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201110080913.5A
Other languages
Chinese (zh)
Inventor
韩成
杨华民
李明勋
姜会林
范静涛
丁莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changchun University of Science and Technology
Original Assignee
Changchun University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changchun University of Science and Technology filed Critical Changchun University of Science and Technology
Priority to CN201110080913.5A priority Critical patent/CN102184555A/en
Publication of CN102184555A publication Critical patent/CN102184555A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Complex Calculations (AREA)

Abstract

The invention provides a color clustering method for the central color fringes of a De Bruijn color structure light coding image, which belongs to the field of a computer image processing technique. In the color clustering method provided by the invention, the color of each pixel point on each central color fringe of the color structure light coding image is clustered by adopting a clustering analysis method. The color clustering method provided by the invention is suitable for the color structure light coding image which has the pixel points of each color in linear distribution, and can effectively improve the accuracy for determining the color of the central color fringes.

Description

A kind of color cluster method of center color fringe of De Bruijn color structured light coded image
Technical field
The present invention relates to a kind of color cluster method of center color fringe of De Bruijn color structured light coded image, belong to the computer image processing technology field.
Background technology
The optical three-dimensional measurement technology refers to the pattern of the means Measuring Object of using optics, thereby obtains the three-dimensional coordinate data of object shape face, and with these data the shape face of object is made judgement and assessment, or the three-dimensional appearance of object is rebuild.And be a kind of improvement of conventional stereo vision system and extend based on the three-dimensional reconfiguration system of structured light.
The structured light method is the light that the light beam that laser instrument or projector etc. sends is formed certain form through optical system, comprise trend of purchasing scenery such as point, single line, multi-thread, Dan Yuan, with one heart more circles, grid, right-angled intersection, gray-coded pattern, color coding pattern and random grain projection, on scenery, form pattern and absorb by video camera, then by image according to trigonometry and and the structural parameters of relevant device calculate, obtain the depth image on scenery surface, further calculate the D coordinates value of object plane.Wherein the research to the coding method of structured light has had a lot, and time encoding is to use the most extensive first kind of coded system.Time encoding is a plurality of different coding patterns successively to be projected body surface chronologically obtain the respective coding image sequence, coded video sequences combined decode, thereby solve the correspondence problem of projective patterns and images acquired, it is the coding method that present resolution is the highest, measuring error is minimum, but its speed is lower, can not be reconstructed object in real time fast.Because coloured image provides than the gray level image information of horn of plenty more, and fast based on color structured light encoding measurement speed, can be reconstructed object in real time.Therefore, just being subjected to people based on the pattern method of coloud coding more and more pays close attention to.
People such as Lee of Harbin University of Science and Technology powder orchid have proposed a kind of continuous changes colour encoding scheme, the color of color coding pattern from red, to green, be linear change to indigo plant, utilize the relation between wavelength and the phase-shifted, set up the geometric position of its optical plane and the mathematical model between the projected angle, thereby realize using the coding of the wavelength (color) of light wave the projected angle of its place optical plane.Because Di Buluying (De Bruijn) sequence, have in advance confirmability and repeatability, so the color structured light coding method that is generated by the Di Buluying pseudo-random sequence has become one of method of the widespread use of color structured light three-dimensionalreconstruction.In research in the past, the color structured light coding method is used for space encoding and direct coding more, and great majority can both be used for the measurement of dynamic object, but owing to be subjected to the influence of the color fidelity and the resolution of ccd video camera, be easy to be subjected to the influence of ccd video camera and can't obtain desirable effect and precision, be not easy to find clearly, the correspondence of unambiguity, not high to the measuring accuracy of three-dimensional body, be difficult to the measurement of accurate object.Simultaneously, because the color of utilization occurs color easily and obscure problem not easy to identify generally more than three kinds, and usually sampling density and resolution are not high.The coding method of color structured light and decoding technique play crucial effects and affect measuring accuracy, speed and the reliability of system in the data of structured light are obtained.
Summary of the invention
Classify for the color to the center color fringe of De Bruijn color structured light coded image exactly, the present invention proposes a kind of color cluster method of center color fringe of De Bruijn color structured light coded image.
A kind of color cluster method of center color fringe of De Bruijn color structured light coded image is characterized in that, this method equipment needed thereby and performing step are as follows:
Equipment needed thereby: as shown in Figure 1, equipment needed thereby comprises projector 1, projection screen 2, video camera 3, computing machine 4, object under test 5; Wherein projector 1 all is connected with computing machine 4 by cable with video camera 3.
Performing step:
Step 1, in computing machine 4, utilization has random character and deterministic De Bruijn pseudo-random sequence, produce one 7 yuan 3 grades De Bruijn sequential color structure light coding images, this image background color is a black, and its rgb value is (0,0,0), the width of every color fringe is a pixel, all inequality and 3 pixels in interval of any two adjacent color fringe colors, and 7 kinds of colors are used a respectively 1, a 2, a 3, a 4, a 5, a 6, a 7Expression, wherein color a xRgb value use r respectively x, g x, b xExpression, x=1,2 ..., 7; Color a 1Rgb value be (0,0,1), color a 2Rgb value be (0,1,0), color a 3Rgb value be (0,1,1), color a 4Rgb value be (1,0,0), color a 5Rgb value be (1,0,1), color a 6Rgb value be (1,1,0), color a 7Rgb value be (1,1,1).
Step 2, computing machine 4 project on the projection screen 2 after by projector 1 the De Bruijn sequential color structure light coding image that produces in the step 1 being modulated through object under test 5, generate the projected image after modulating.
Step 3, computing machine 4 pass through the projected image after video camera 3 is taken the modulation of steps 2 generation, obtain the color structured light encoded picture.
The coboundary and the lower boundary of every color fringe in the color structured light encoded picture that step 4, the traditional canny algorithm extraction step 3 of computing machine 4 employings obtain, calculate the coboundary of every color fringe and the centre position of lower boundary again, obtain the center color fringe of every color fringe; If obtain m bar center color fringe altogether, every center color fringe has n pixel; On m is capable, be arranged in order the rgb value of n pixel of every center color fringe, obtain m * n rank matrix Z that the rgb value by these pixels constitutes; The capable j column element of i of matrix Z be Z (i, j)=(R (and i, j), G (i, j), B (i, j)), wherein R (i, j), G (i, j), B (i j) is the rgb value of j pixel of i bar center color fringe, i=1,2 ..., m, j=1,2 ..., n; Note Z (i, j, k) expression Z (i, k element j), k=1,2,3.
Step 5, according to formula Z (i, j)=Z (i j)/255, carries out normalization to each element among the matrix Z, i=1,2 ..., m, j=1,2 ..., n; If M qRepresent to belong in all center color fringes the number of q kind color pixel point, establish M q=0, q=1,2 ..., 7.
Step 6, the coordinate of O in the RGB color space of setting up an office are (0,0,0), with k the element of O (k) expression O, k=1,2,3; Structure 7 * 3 matrix class, its k row element is followed successively by r k, g k, b k, k=1 wherein, 2 ..., 7; And with class (i, j) the capable j column element of i of representing matrix class, i=1,2 ..., 7; J=1,2,3; According to formula
Class (i, j)=class (i, j)/(class (i, 1) 2+ class (i, 2) 2+ clas (i, 3) 2) 1/2Element on each row of matrix class carry out unitization.
Step 7, establish N q=0, q=1,2 ..., 7; Structural matrix D, wherein D (i, j, s) expression Z (described distance is defined as follows for i, the j) distance of the straight line that is constituted to being linked to each other with the represented point of the capable vector of matrix class s by an O:
D ( i , j , s ) = Σ k = 1 3 ( Z ( i , j , k ) - O ( k ) ) 2 - [ Σ k = 1 3 ( class ( s , k ) × ( Z ( i , j , k ) - O ( k ) ) ) ] 2
I=1 wherein, 2 ..., m; J=1,2 ..., n; S=1,2 ..., 7.
Step 8, to fixing i, (i, j), (i, j q) are that minimum value and the q value in { (D (i, j, 1), D (i, j, 2), D (i, j, 3), D (i, j, 4), D (i, j, 5), D (i, j, 6), D (i, j, 7) } is minimum to the Z of j, N to establish D q=N q+ 1; If D (i, j, q)=0, so D (i, j, q)=0.001; Structural matrix minI q, minI wherein q(h y) is matrix minI qThe capable y column element of h, y=1,2,3, minI q(N q, 1)=Z (i, j, 1), minI q(N q, 2)=Z (i, j, 2), minI q(N q, 3)=Z (i, j, 3); Construct vectorial minD q, minD wherein q(i) represent vectorial minD qI element, minD q(N q)=D (i, j, q);
To i=1,2 ..., m, j=1,2 ..., n, the said process in the repeating step 8; If constructed t vectorial minD altogether q
If for each q=1,2 ..., 7 all have N q=M q, so a kind of color cluster method of center color fringe of De Bruijn color structured light coded image finishes, otherwise continues execution in step 9.
Step 9, to q=1,2 ..., 7, if obtained minD q, then according to following formula construction matrix E q, E wherein q(i j) is matrix E qThe capable j column element of i,
E q ( 1,1 ) = Σ i = 1 N q ( ( min I q ( i , 1 ) - O ( 1 ) ) 2 / min D q ( i ) )
E q ( 1,2 ) = E q ( 2,1 ) = Σ i = 1 N q ( ( min I q ( i , 1 ) - O ( 1 ) ) × ( ( min I q ( i , 2 ) - O ( 2 ) ) / min D q ( i ) )
E q ( 1 , 3 ) = E q ( 3,1 ) = Σ i = 1 N q ( ( min I q ( i , 1 ) - O ( 1 ) ) × ( ( min I q ( i , 3 ) - O ( 3 ) ) / min D q ( i ) )
E q ( 2 , 2 ) = Σ i = 1 N q ( ( min I q ( i , 2 ) - O ( 2 ) ) 2 / min D q ( i ) )
E q ( 2 , 3 ) = E q ( 3,2 ) = Σ i = 1 N q ( ( min I q ( i , 2 ) - O ( 2 ) ) × ( ( min I q ( i , 3 ) - O ( 3 ) ) / min D q ( i ) )
E q ( 3,3 ) = Σ i = 1 N q ( ( min I q ( i , 3 ) - O ( 3 ) ) 2 / min D q ( i ) )
Compute matrix E qEigenwert, establish λ q 1, λ q 2, λ q 3Be matrix E qThree eigenwerts, get the eigenwert of a maximum, and calculate the pairing unit character vector of this eigenwert, use P qExpression; The capable vector of q of matrix class is revised as P q
Step 10, according to following formula construction symmetric matrix A, wherein A (i is that matrix A i is capable j), the j column element,
A ( 1,1 ) = Σ q = 1 t ( N q × ( class ( q , 2 ) 2 + class ( q , 3 ) 2 ) )
A ( 1,2 ) = A ( 2,1 ) = - Σ q = 1 t ( N q × class ( q , 1 ) × class ( q , 2 ) )
A ( 1,3 ) = A ( 3,1 ) = - Σ q = 1 t ( N q × class ( q , 1 ) × class ( q , 3 ) )
A ( 2 , 2 ) = Σ q = 1 t ( N q × ( class ( q , 3 ) 2 + class ( q , 1 ) 2 ) )
A ( 2,3 ) = A ( 3 , 2 ) = - Σ q = 1 t ( N q × class ( q , 2 ) × class ( q , 3 ) )
A ( 3 , 3 ) = Σ q = 1 t ( N q × ( class ( q , 1 ) 2 + class ( q , 2 ) 2 ) )
Construct vectorial B, wherein B (i) is i element of vectorial B, according to following formula construction matrix B,
B ( 1 ) = Σ q = 1 t Σ i = 1 N q min I q ( i , 1 ) × ( class ( q , 2 ) 2 + class ( q , 3 ) 2 ) -
min I q ( i , 2 ) × class ( q , 1 ) × class ( q , 2 ) - min I q ( i , 3 ) × class ( q , 1 ) × class ( q , 3 )
B ( 2 ) = Σ q = 1 t Σ i = 1 N q min I q ( i , 2 ) × ( class ( q , 1 ) 2 + class ( q , 3 ) 2 ) -
min I q ( i , 1 ) × class ( q , 2 ) × class ( q , 1 ) - min I q ( i , 3 ) × class ( q , 2 ) × class ( q , 3 )
B ( 3 ) = Σ q = 1 t Σ i = 1 N q min I q ( i , 3 ) × ( class ( q , 1 ) 2 + class ( q , 2 ) 2 ) -
min I q ( i , 1 ) × class ( q , 1 ) × class ( q , 3 ) - min I q ( i , 2 ) × class ( q , 2 ) × class ( q , 3 )
According to formula O=A -1B revises the coordinate of some O at the RGB color space.M q=N q, q=1,2 ..., 7; Then execution in step 7.
The color that has realized each pixel on each bar center color fringe of color structured light encoded picture by above step carry out clusterization.
Beneficial effect
The present invention proposes a kind of color cluster method of center color fringe of De Bruijn color structured light coded image, this method is applicable to that every class color pixel puts the color structured light encoded picture of linear distribution, can improve the accuracy of determining center color fringe color effectively.
Description of drawings
Fig. 1 is a kind of color cluster method equipment needed thereby pie graph of center color fringe of De Bruijn color structured light coded image.This figure also is the specification digest accompanying drawing.Wherein: 1 is projector, and 2 is projection screen, and 3 is video camera, and 4 is computing machine, and 5 is object under test.
Fig. 2 is the De Bruijn sequential color structure light coding image that generates.
Embodiment
A kind of color cluster method of center color fringe of De Bruijn color structured light coded image, this method equipment needed thereby and performing step are as follows:
Equipment needed thereby: as shown in Figure 1, equipment needed thereby comprises projector 1, projection screen 2, video camera 3, computing machine 4, object under test 5; Wherein projector 1 all is connected with computing machine 4 by cable with video camera 3.
Performing step:
Step 1, in computing machine 4, utilization has random character and deterministic De Bruijn pseudo-random sequence, produce one 7 yuan 3 grades De Bruijn sequential color structure light coding images, this image background color is a black, and its rgb value is (0,0,0), the width of every color fringe is a pixel, all inequality and 3 pixels in interval of any two adjacent color fringe colors, and 7 kinds of colors are used a respectively 1, a 2, a 3, a 4, a 5, a 6, a 7Expression, wherein color a xRgb value use r respectively x, g x, b xExpression, x=1,2 ..., 7; Color a 1Rgb value be (0,0,1), color a 2Rgb value be (0,1,0), color a 3Rgb value be (0,1,1), color a 4Rgb value be (1,0,0), color a 5Rgb value be (1,0,1), color a 6Rgb value be (1,1,0), color a 7Rgb value be (1,1,1).
Step 2, computing machine 4 project on the projection screen 2 after by projector 1 the De Bruijn sequential color structure light coding image that produces in the step 1 being modulated through object under test 5, generate the projected image after modulating.
Step 3, computing machine 4 pass through the projected image after video camera 3 is taken the modulation of steps 2 generation, obtain the color structured light encoded picture.
The coboundary and the lower boundary of every color fringe in the color structured light encoded picture that step 4, the traditional canny algorithm extraction step 3 of computing machine 4 employings obtain, calculate the coboundary of every color fringe and the centre position of lower boundary again, obtain the center color fringe of every color fringe; If obtain m bar center color fringe altogether, every center color fringe has n pixel; On m is capable, be arranged in order the rgb value of n pixel of every center color fringe, obtain m * n rank matrix Z that the rgb value by these pixels constitutes; The capable j column element of i of matrix Z be Z (i, j)=(R (and i, j), G (i, j), B (i, j)), wherein R (i, j), G (i, j), B (i j) is the rgb value of j pixel of i bar center color fringe, i=1,2 ..., m, j=1,2 ..., n; Note Z (i, j, k) expression Z (i, k element j), k=1,2,3.
Step 5, according to formula Z (i, j)=Z (i j)/255, carries out normalization to each element among the matrix Z, i=1,2 ..., m, j=1,2 ..., n; If M qRepresent to belong in all center color fringes the number of q kind color pixel point, establish M q=0, q=1,2 ..., 7.
Step 6, the coordinate of O in the RGB color space of setting up an office are (0,0,0), with k the element of O (k) expression O, k=1,2,3; Structure 7 * 3 matrix class, its k row element is followed successively by r k, g k, b k, k=1 wherein, 2 ..., 7; And with class (i, j) the capable j column element of i of representing matrix class, i=1,2 ..., 7; J=1,2,3; According to formula
Class (i, j)=class (i, j)/(class (i, 1) 2+ class (i, 2) 2+ class (i, 3) 2) 1/2Element on each row of matrix class carry out unitization.
Step 7, establish N q=0, q=1,2 ..., 7; Structural matrix D, wherein D (i, j, s) expression Z (described distance is defined as follows for i, the j) distance of the straight line that is constituted to being linked to each other with the represented point of the capable vector of matrix class s by an O:
D ( i , j , s ) = Σ k = 1 3 ( Z ( i , j , k ) - O ( k ) ) 2 - [ Σ k = 1 3 ( class ( s , k ) × ( Z ( i , j , k ) - O ( k ) ) ) ] 2
I=1 wherein, 2 ..., m; J=1,2 ..., n; S=1,2 ..., 7.
Step 8, to fixing i, (i, j), (i, j q) are that minimum value and the q value in { (D (i, j, 1), D (i, j, 2), D (i, j, 3), D (i, j, 4), D (i, j, 5), D (i, j, 6), D (i, j, 7) } is minimum to the Z of j, N to establish D q=N q+ 1; If D (i, j, q)=0, so D (i, j, q)=0.001; Structural matrix minI q, minI wherein q(h y) is matrix minI qThe capable y column element of h, y=1,2,3, minI q(N q, 1)=Z (i, j, l), minI q(N q, 2)=Z (i, j, 2), minI q(N q, 3)=Z (i, j, 3); Construct vectorial minD q, minD wherein q(i) represent vectorial minD qI element, minD q(N q)=D (i, j, q);
To i=1,2 ..., m, j=1,2 ..., n, the said process in the repeating step 8; If constructed t vectorial minD altogether q
If for each q=1,2 ..., 7 all have N q=M q, so a kind of color cluster method of center color fringe of De Bruijn color structured light coded image finishes, otherwise continues execution in step 9.
Step 9, to q=1,2 ..., 7, if obtained minD q, then according to following formula construction matrix E q, E wherein q(i j) is matrix E qThe capable j column element of i,
E q ( 1,1 ) = Σ i = 1 N q ( ( min I q ( i , 1 ) - O ( 1 ) ) 2 / min D q ( i ) )
E q ( 1,2 ) = E q ( 2,1 ) = Σ i = 1 N q ( ( min I q ( i , 1 ) - O ( 1 ) ) × ( ( min I q ( i , 2 ) - O ( 2 ) ) / min D q ( i ) )
E q ( 1,3 ) = E q ( 3,1 ) = Σ i = 1 N q ( ( min I q ( i , 1 ) - O ( 1 ) ) × ( ( min I q ( i , 3 ) - O ( 3 ) ) / min D q ( i ) )
E q ( 2 , 2 ) = Σ i = 1 N q ( ( min I q ( i , 2 ) - O ( 2 ) ) 2 / min D q ( i ) )
E q ( 2 , 3 ) = E q ( 3,2 ) = Σ i = 1 N q ( ( min I q ( i , 2 ) - O ( 2 ) ) × ( ( min I q ( i , 3 ) - O ( 3 ) ) / min D q ( i ) )
E q ( 3,3 ) = Σ i = 1 N q ( ( min I q ( i , 3 ) - O ( 3 ) ) 2 / min D q ( i ) )
Compute matrix E qEigenwert, establish λ q 1, λ q 2, λ q 3Be matrix E qThree eigenwerts, get the eigenwert of a maximum, and calculate the pairing unit character vector of this eigenwert, use P qExpression; The capable vector of q of matrix class is revised as P q
Step 10, according to following formula construction symmetric matrix A, wherein A (i is that matrix A i is capable j), the j column element,
A ( 1,1 ) = Σ q = 1 t ( N q × ( class ( q , 2 ) 2 + class ( q , 3 ) 2 ) )
A ( 1,2 ) = A ( 2,1 ) = - Σ q = 1 t ( N q × class ( q , 1 ) × class ( q , 2 ) )
A ( 1,3 ) = A ( 3,1 ) = - Σ q = 1 t ( N q × class ( q , 1 ) × class ( q , 3 ) )
A ( 2 , 2 ) = Σ q = 1 t ( N q × ( class ( q , 3 ) 2 + class ( q , 1 ) 2 ) )
A ( 2,3 ) = A ( 3 , 2 ) = - Σ q = 1 t ( N q × class ( q , 2 ) × class ( q , 3 ) )
A ( 3 , 3 ) = Σ q = 1 t ( N q × ( class ( q , 1 ) 2 + class ( q , 2 ) 2 ) )
Construct vectorial B, wherein B (i) is i element of vectorial B, according to following formula construction matrix B,
B ( 1 ) = Σ q = 1 t Σ i = 1 N q min I q ( i , 1 ) × ( class ( q , 2 ) 2 + class ( q , 3 ) 2 ) -
min I q ( i , 2 ) × class ( q , 1 ) × class ( q , 2 ) - min I q ( i , 3 ) × class ( q , 1 ) × class ( q , 3 )
B ( 2 ) = Σ q = 1 t Σ i = 1 N q min I q ( i , 2 ) × ( class ( q , 1 ) 2 + class ( q , 3 ) 2 ) -
min I q ( i , 1 ) × class ( q , 2 ) × class ( q , 1 ) - min I q ( i , 3 ) × class ( q , 2 ) × class ( q , 3 )
B ( 3 ) = Σ q = 1 t Σ i = 1 N q min I q ( i , 3 ) × ( class ( q , 1 ) 2 + class ( q , 2 ) 2 ) -
min I q ( i , 1 ) × class ( q , 1 ) × class ( q , 3 ) - min I q ( i , 2 ) × class ( q , 2 ) × class ( q , 3 )
According to formula O=A -1B revises the coordinate of some O at the RGB color space.M q=N q, q=1,2 ..., 7; Then execution in step 7.
The color that has realized each pixel on each bar center color fringe of color structured light encoded picture by above step carry out clusterization.

Claims (1)

1. the color cluster method of the center color fringe of a De Bruijn color structured light coded image is characterized in that, this method equipment needed thereby and performing step are as follows:
Equipment needed thereby: equipment needed thereby comprises projector (1), projection screen (2), video camera (3), computing machine (4), object under test (5); Wherein projector (1) all is connected with computing machine (4) by cable with video camera (3);
Performing step:
Step 1, in computing machine (4), utilization has random character and deterministic De Bruijn pseudo-random sequence, produce one 7 yuan 3 grades De Bruijn sequential color structure light coding images, this image background color is a black, and its rgb value is (0,0,0), the width of every color fringe is a pixel, all inequality and 3 pixels in interval of any two adjacent color fringe colors, and 7 kinds of colors are used a respectively 1, a 2, a 3, a 4, a 5, a 6, a 7Expression, wherein color a xRgb value use r respectively x, g x, b xExpression, x=1,2 ..., 7; Color a 1Rgb value be (0,0,1), color a 2Rgb value be (0,1,0), color a 3Rgb value be (0,1,1), color a 4Rgb value be (1,0,0), color a 5Rgb value be (1,0,1), color a 6Rgb value be (1,1,0), color a 7Rgb value be (1,1,1);
Step 2, computing machine (4) project on the projection screen (2) after by projector (1) the De Bruijn sequential color structure light coding image that produces in the step 1 being modulated through object under test (5), generate the projected image after modulating;
Step 3, computing machine (4) pass through the projected image after video camera (3) is taken the modulation of step 2 generation, obtain the color structured light encoded picture;
The coboundary and the lower boundary of every color fringe in the color structured light encoded picture that step 4, the traditional canny algorithm extraction step 3 of computing machine (4) employing obtain, calculate the coboundary of every color fringe and the centre position of lower boundary again, obtain the center color fringe of every color fringe; If obtain m bar center color fringe altogether, every center color fringe has n pixel; On m is capable, be arranged in order the rgb value of n pixel of every center color fringe, obtain m * n rank matrix Z that the rgb value by these pixels constitutes; The capable j column element of i of matrix Z be Z (i, j)=(R (and i, j), G (i, j), B (i, j)), wherein R (i, j), G (i, j), B (i j) is the rgb value of j pixel of i bar center color fringe, i=1,2 ..., m, j=1,2 ..., n; Note Z (i, j, k) expression Z (i, k element j), k=1,2,3;
Step 5, according to formula Z (i, j)=Z (i j)/255, carries out normalization to each element among the matrix Z, i=1,2 ..., m, j=1,2 ..., n; If M qRepresent to belong in all center color fringes the number of q kind color pixel point, establish M q=0, q=1,2 ..., 7;
Step 6, the coordinate of O in the RGB color space of setting up an office are (0,0,0), with k the element of O (k) expression O, k=1,2,3; Structure 7 * 3 matrix class, its k row element is followed successively by r k, g k, b k, k=1 wherein, 2 ..., 7; And with class (i, j) the capable j column element of i of representing matrix class, i=1,2 ..., 7; J=1,2,3; According to formula
Class (i, j)=class (i, j)/(class (i, 1) 2+ class (i, 2) 2+ class (i, 3) 2) 1/2Element on each row of matrix class carry out unitization;
Step 7, establish N q=0, q=1,2 ..., 7; Structural matrix D, wherein D (i, j, s) expression Z (i, j) to the distance of the straight line that is made of an O and the represented point of the capable vector of matrix class s, described distance is defined as follows:
D ( i , j , s ) = Σ k = 1 3 ( Z ( i , j , k ) - O ( k ) ) 2 - [ Σ k = 1 3 ( class ( s , k ) × ( Z ( i , j , k ) - O ( k ) ) ) ] 2
I=1 wherein, 2 ..., m; J=1,2 ..., n; S=1,2 ..., 7;
Step 8, to fixing i, (i, j), (i, j q) are that minimum value and the q value in { (D (i, j, 1), D (i, j, 2), D (i, j, 3), D (i, j, 4), D (i, j, 5), D (i, j, 6), D (i, j, 7) } is minimum to the Z of j, N to establish D q=N q+ 1; If D (i, j, q)=0, so D (i, j, q)=0.001; Structural matrix minI q, minI wherein q(h y) is matrix minI qThe capable y column element of h, y=1,2,3, minI q(N q, 1)=Z (i, j, l), minI q(N q, 2)=Z (i, j, 2), minI q(N q, 3)=Z (i, j, 3); Construct vectorial minD q, minD wherein q(i) represent vectorial minD qI element, minD q(N q)=D (i, j, q);
To i=1,2 ..., m, j=1,2 ..., n, the said process in the repeating step 8; If constructed t vectorial minD altogether qIf for each q=1,2 ..., 7 all have N q=M q, so a kind of color cluster method of center color fringe of De Bruijn color structured light coded image finishes, otherwise continues execution in step 9;
Step 9, to q=1,2 ..., 7, if obtained minD q, then according to following formula construction matrix E q, E wherein q(i j) is matrix E qThe capable j column element of i,
E q ( 1,1 ) = Σ i = 1 N q ( ( min I q ( i , 1 ) - O ( 1 ) ) 2 / min D q ( i ) )
E q ( 1,2 ) = E q ( 2,1 ) = Σ i = 1 N q ( ( min I q ( i , 1 ) - O ( 1 ) ) × ( ( min I q ( i , 2 ) - O ( 2 ) ) / min D q ( i ) )
E q ( 1 , 3 ) = E q ( 3,1 ) = Σ i = 1 N q ( ( min I q ( i , 1 ) - O ( 1 ) ) × ( ( min I q ( i , 3 ) - O ( 3 ) ) / min D q ( i ) )
E q ( 2 , 2 ) = Σ i = 1 N q ( ( min I q ( i , 2 ) - O ( 2 ) ) 2 / min D q ( i ) )
E q ( 2 , 3 ) = E q ( 3,2 ) = Σ i = 1 N q ( ( min I q ( i , 2 ) - O ( 2 ) ) × ( ( min I q ( i , 3 ) - O ( 3 ) ) / min D q ( i ) )
E q ( 3,3 ) = Σ i = 1 N q ( ( min I q ( i , 3 ) - O ( 3 ) ) 2 / min D q ( i ) )
Compute matrix E qEigenwert, establish λ q 1, λ q 2, λ q 3Be matrix E qThree eigenwerts, get the eigenwert of a maximum, and calculate the pairing unit character vector of this eigenwert, use P qExpression; The capable vector of q of matrix class is revised as P q
Step 10, according to following formula construction matrix symmetry A, wherein A (i is that matrix A i is capable j), the j column element,
A ( 1,1 ) = Σ q = 1 t ( N q × ( class ( q , 2 ) 2 + class ( q , 3 ) 2 ) )
A ( 1,2 ) = A ( 2,1 ) = - Σ q = 1 t ( N q × class ( q , 1 ) × class ( q , 2 ) )
A ( 1,3 ) = A ( 3,1 ) = - Σ q = 1 t ( N q × class ( q , 1 ) × class ( q , 3 ) )
A ( 2 , 2 ) = Σ q = 1 t ( N q × ( class ( q , 3 ) 2 + class ( q , 1 ) 2 ) )
A ( 2,3 ) = A ( 3 , 2 ) = - Σ q = 1 t ( N q × class ( q , 2 ) × class ( q , 3 ) )
A ( 3 , 3 ) = Σ q = 1 t ( N q × ( class ( q , 1 ) 2 + class ( q , 2 ) 2 ) )
Construct vectorial B, wherein B (i) is i element of vectorial B, according to following formula construction matrix B,
B ( 1 ) = Σ q = 1 t Σ i = 1 N q min I q ( i , 1 ) × ( class ( q , 2 ) 2 + class ( q , 3 ) 2 ) -
min I q ( i , 2 ) × class ( q , 1 ) × class ( q , 2 ) - min I q ( i , 3 ) × class ( q , 1 ) × class ( q , 3 )
B ( 2 ) = Σ q = 1 t Σ i = 1 N q min I q ( i , 2 ) × ( class ( q , 1 ) 2 + class ( q , 3 ) 2 ) -
min I q ( i , 1 ) × class ( q , 2 ) × class ( q , 1 ) - min I q ( i , 3 ) × class ( q , 2 ) × class ( q , 3 )
B ( 3 ) = Σ q = 1 t Σ i = 1 N q min I q ( i , 3 ) × ( class ( q , 1 ) 2 + class ( q , 2 ) 2 ) -
min I q ( i , 1 ) × class ( q , 1 ) × class ( q , 3 ) - min I q ( i , 2 ) × class ( q , 2 ) × class ( q , 3 )
According to formula O=A -1B revises the coordinate of some O at the RGB color space, M q=N q, q=1,2 ..., 7; Then execution in step 7;
The color that has realized each pixel on each bar center color fringe of color structured light encoded picture by above step carry out clusterization.
CN201110080913.5A 2011-04-01 2011-04-01 Color clustering method for central color fringes of De Bruijn color structure light coding image Pending CN102184555A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110080913.5A CN102184555A (en) 2011-04-01 2011-04-01 Color clustering method for central color fringes of De Bruijn color structure light coding image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110080913.5A CN102184555A (en) 2011-04-01 2011-04-01 Color clustering method for central color fringes of De Bruijn color structure light coding image

Publications (1)

Publication Number Publication Date
CN102184555A true CN102184555A (en) 2011-09-14

Family

ID=44570724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110080913.5A Pending CN102184555A (en) 2011-04-01 2011-04-01 Color clustering method for central color fringes of De Bruijn color structure light coding image

Country Status (1)

Country Link
CN (1) CN102184555A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683918A (en) * 2018-04-26 2018-10-19 长春理工大学 Multi-source sequential hierarchy encoding method based on color structured light
CN108985310A (en) * 2018-05-04 2018-12-11 长春理工大学 Striped code word matching process based on sequence signature multiplicity
CN113405461A (en) * 2021-04-23 2021-09-17 封泽希 Structured light encoding and decoding method and encoding and decoding device for depth detection
CN116152562A (en) * 2023-02-23 2023-05-23 北京朗视仪器股份有限公司 Method and system for rapid color classification of color structured light image

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833775A (en) * 2010-04-30 2010-09-15 长春理工大学 Encoding method of light image with color structure
CN101840575A (en) * 2010-04-30 2010-09-22 长春理工大学 Method for converting De Bruijn color structure light image into weighted and directed diagraph model and simplifying weighted and directed diagraph model
CN101853385A (en) * 2010-05-14 2010-10-06 长春理工大学 Method for extracting central colored fringe from De Bruijn colored structural light image
CN101853515A (en) * 2010-05-14 2010-10-06 长春理工大学 De Bruijn color structured light decoding method based on dynamic planning

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833775A (en) * 2010-04-30 2010-09-15 长春理工大学 Encoding method of light image with color structure
CN101840575A (en) * 2010-04-30 2010-09-22 长春理工大学 Method for converting De Bruijn color structure light image into weighted and directed diagraph model and simplifying weighted and directed diagraph model
CN101853385A (en) * 2010-05-14 2010-10-06 长春理工大学 Method for extracting central colored fringe from De Bruijn colored structural light image
CN101853515A (en) * 2010-05-14 2010-10-06 长春理工大学 De Bruijn color structured light decoding method based on dynamic planning

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683918A (en) * 2018-04-26 2018-10-19 长春理工大学 Multi-source sequential hierarchy encoding method based on color structured light
CN108985310A (en) * 2018-05-04 2018-12-11 长春理工大学 Striped code word matching process based on sequence signature multiplicity
CN108985310B (en) * 2018-05-04 2021-12-07 长春理工大学 Stripe code word matching method based on sequence characteristic repetition degree
CN113405461A (en) * 2021-04-23 2021-09-17 封泽希 Structured light encoding and decoding method and encoding and decoding device for depth detection
CN116152562A (en) * 2023-02-23 2023-05-23 北京朗视仪器股份有限公司 Method and system for rapid color classification of color structured light image

Similar Documents

Publication Publication Date Title
Van der Jeught et al. Real-time structured light profilometry: a review
CN101813461B (en) Absolute phase measurement method based on composite color fringe projection
CN101504277B (en) Method for acquiring object three-dimensional image by optical three-dimensional sensing
CN201218726Y (en) Cultural relics three-dimensional reconstruction apparatus based on colorful structured light
CN105844633B (en) Single frames structure optical depth acquisition methods based on De sequence and phase code
CN101509764A (en) Method for rapidly acquiring object three-dimensional form
CN202074952U (en) Three dimensional profiles and colored textures acquisition system based on single camera-single overhead projector
CN108955571B (en) The method for three-dimensional measurement that double frequency heterodyne is combined with phase-shift coding
CN106643562B (en) Structural light stripes projective techniques based on time domain airspace hybrid coding
WO2014020823A1 (en) Image processing system, and image processing method
CN108955574A (en) A kind of method for three-dimensional measurement and system
CN104390608A (en) Projection grating phase method based structured light three-dimensional shape construction method
CN105046743A (en) Super-high-resolution three dimensional reconstruction method based on global variation technology
CN101482398B (en) Fast three-dimensional appearance measuring method and device
CN102261896A (en) Method and system for measuring three-dimensional shape of object based on phase measurement
CN108592822A (en) A kind of measuring system and method based on binocular camera and structure light encoding and decoding
CN103292741A (en) Structured light vision measurement method for 3D surface profiles of objects on the basis of K-means color clustering
CN105303572B (en) Based on the main depth information acquisition method passively combined
CN105069789A (en) Structured light dynamic scene depth acquiring method based on encoding network template
Furukawa et al. One-shot entire shape acquisition method using multiple projectors and cameras
CN102184555A (en) Color clustering method for central color fringes of De Bruijn color structure light coding image
CN102840827A (en) Monocular machine vision-based non-contact three-dimensional scanning method
CN102798354A (en) Binary stripe stack based sinusoidal grating generation method
JP2013024655A (en) Image processing method and device
Lyu et al. Structured light-based underwater 3-D reconstruction techniques: A comparative study

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110914