CN102289779A - Device for obtaining width of Moire fringe by using image processing technology - Google Patents
Device for obtaining width of Moire fringe by using image processing technology Download PDFInfo
- Publication number
- CN102289779A CN102289779A CN2011102163813A CN201110216381A CN102289779A CN 102289779 A CN102289779 A CN 102289779A CN 2011102163813 A CN2011102163813 A CN 2011102163813A CN 201110216381 A CN201110216381 A CN 201110216381A CN 102289779 A CN102289779 A CN 102289779A
- Authority
- CN
- China
- Prior art keywords
- moire fringe
- straight line
- image
- width
- ask
- 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.)
- Granted
Links
Images
Landscapes
- Length Measuring Devices By Optical Means (AREA)
Abstract
The invention relates to a device for obtaining the width of a Moire fringe by using an image processing technology. The device comprises a device for acquiring an image of the Moire fringe, a device for obtaining the direction of the Moire fringe and a device for calculating the width of the Moire fringe, wherein the device for obtaining the direction of the Moire fringe defines a group of straight lines aj which are intersected into the same point on the image of the Moire fringe, obtains image gray value root mean square errors sigma j in the direction of the straight lines alpha j by using pixel values xij of each point on the image of the Moire fringe at positions where the straight lines aj pass, and uses a straight line au which corresponds to the minimum image gray value root mean square error sigma u in the sigma j as the direction of the Moire fringe. According to gray values of pixel points on the image of the Moire fringe which is acquired by a computer, the device provided by the invention automatically identifies a direction angle of the Moire fringe, calculates the width of the Moire fringe, is high in calculation speed and high in accuracy, and can be widely applied to the fields of small-angle accurate measurement, photoelectric displacement accurate measurement and the like.
Description
Technical field
The present invention relates to a kind of device of asking for the Moire fringe width, particularly a kind of device that utilizes image processing techniques to ask for the Moire fringe width.
Technical background
Moire fringe has the optical characteristics that high magnification amplifies, utilize the measurement of moire fringe displacement can realize high Precision Detection, therefore have the important application prospect in hull modification, machine tooling field, quick and precisely ask for the Moire fringe orientation angle and width has good practical significance.
Comprise that frequency asks for algorithm, Threshold Segmentation Algorithm etc. as long as ask for the method for Moire fringe at present, the thresholding method computing velocity is very fast but computational accuracy is low, and frequency domain Processing Algorithm calculated amount is difficult to satisfy the requirement on the speed greatly.Therefore how to seek the problem that a kind of algorithm of quick and precisely asking for the Moire fringe width becomes urgent solution.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of device that utilizes image processing techniques to ask for the Moire fringe width fast and accurately.
In order to solve the problems of the technologies described above, the device that utilizes image processing techniques to ask for the Moire fringe width of the present invention comprises:
Moire fringe image harvester;
Ask for the device of Moire fringe direction;
Calculate the device of Moire fringe width;
The described device of asking for the Moire fringe direction: definition gang meets at the straight line a of same point o on the Moire fringe image
j(j=1,2 ... m), cut-off line a
jPixel value x through each point on the Moire fringe image of position
Ij(i=1,2 ... n); Utilize formula (1) calculated line a
jDirectional image gray-scale value root-mean-square error σ
j
Get σ
jMiddle minimum gradation of image value root-mean-square error σ
uPairing straight line a
uDirection as Moire fringe.
The present invention according to computer acquisition to the Mohr's circle picture on gray values of pixel points, discern the deflection of Moire fringe automatically and calculate the width of striped, computing velocity is fast and precision is high.Can be widely used in fields such as low-angle precision measurement, photoelectric displacement precision measurement.
Described some o is positioned at the brightest position, picture centre zone or the darkest position.
Described straight line a
jEvenly distribute in 360 ° of scopes, adjacent straight wire spacing angle is in 0.25~0.5 ° of scope.
Described straight line a
j(j=1,2 ... m) comprise two groups of straight line a in
c(c=1,2 ... l) (l<m) and a
d(d=1,2 ... p) (p=m-l); Straight line a
c(c=1,2 ... l) evenly distribute in 360 ° of scopes, adjacent straight wire spacing angle is in 1~2 ° of scope; Straight line a
d(d=1,2 ... p) be distributed in straight line a
V-1With straight line a
V+1Between, straight line a
d(d=1,2 ... p) adjacent straight wire spacing angle is in 0.05~0.1 ° of scope in; Its cathetus a
V-1, straight line a
V+1Be straight line a
c(c=1,2 ... l) in a
vTwo adjacent straight lines, a
vBe straight line a
c(c=1,2 ... l) in the gradation of image value root-mean-square error σ of minimum
vCorresponding straight line; Straight line a
d(d=1,2 ... p) in the gradation of image value root-mean-square error σ of minimum
wCorresponding straight line a
wDirection be the Moire fringe direction.
The device of described calculating Moire fringe width: define a straight line, obtain the period of change of this straight line, promptly obtain the width of Moire fringe through each point pixel value on the Moire fringe image of position perpendicular to the Moire fringe direction.
The device of described calculating Moire fringe width:
As true origin, set up coordinate system as horizontal ordinate, the v axle parallel as ordinate, utilize sciagraphy to obtain a sinusoidal curve with the o point with the Moire fringe direction with the vertical u axle of Moire fringe direction; Wherein the ordinate of each point is total gray-scale value that horizontal ordinate is identical on the Moire fringe each point grey scale pixel value adds up and obtains on the sinusoidal curve; Obtain this sinusoidal cycle, this cycle is the width of Moire fringe.
Description of drawings
Below in conjunction with the drawings and specific embodiments the present invention is described in further detail.
Fig. 1 is the apparatus structure synoptic diagram that utilizes image processing techniques to ask for the Moire fringe width automatically of the present invention.
Fig. 2 is a lowest mean square root error schematic diagram.
Fig. 3 a, 3b are the straight line a that meets at same point o
j(j=1,2 ... m) with Moire fringe image relative position synoptic diagram.
Fig. 4 is the figure of Moire fringe projection coordinate.
Fig. 5 is that Moire fringe is along the stripe direction perspective view.
Fig. 6 is a process flow diagram of asking for Moire fringe width program thereby.
Embodiment
As shown in Figure 1, the device that utilizes image processing techniques to ask for the Moire fringe width automatically of the present invention comprises
Moire fringe image harvester 101;
Ask for the device 102 of Moire fringe direction: definition gang meets at the straight line a of same point o on the Moire fringe image
j(j=1,2 ... m), cut-off line a
jPixel value x through each point on the Moire fringe image of position
Ij(i=1,2 ... n); Utilize formula (1) calculated line a
jDirectional image gray-scale value root-mean-square error σ
j
Get σ
jMiddle minimum gradation of image value root-mean-square error σ
uPairing straight line a
uDirection as Moire fringe;
Calculate the device 103 of Moire fringe width.
One, Moire fringe angle calculation
For one group of data x
1x
2..x
i... x
n, its average as shown in Equation (3):
The data root-mean-square error is as shown in Equation (4):
By formula (4) as can be seen, if numerical value is approaching more between should group data, its root-mean-square error is more little, principle according to this, and we are the center with the Moire fringe picture centre, draw a straight line, and get Moire fringe image grey scale pixel value at this straight line through the position.As shown in Figure 2: straight line a direction is consistent with the Moire fringe direction, and then this rectilinear direction image grey scale pixel value is approximate, in the formula (4) in the radical sign data near 0, root-mean-square error value minimum; Straight line c direction is vertical with the Moire fringe direction, and this rectilinear direction image gradation data fluctuation is maximum, and its root-mean-square error is also maximum; And straight line b direction root-mean-square error falls between.
In Fig. 2, straight line a is parallel to the Moire fringe direction, find that by statistics lowest mean square root error error amount σ is relevant with the position of straight line a process, when straight line a process striped brightest area or dark areas, the σ value is minimum, and when straight line process Moire fringe light and shade transitional region, this location drawing causes the σ value bigger more greatly as the gray-value variation amplitude, this position is unfavorable for the calculating of Moire fringe deflection, so straight line is chosen and will be followed certain principle.Family of straight lines intersection point o should be chosen at the brightest position, picture centre zone or the darkest position (being gray-scale value maximum position place or gray-scale value minimum position place).
Each straight line a
j(j=1,2 ... m) in 360 ° of scopes, can be evenly distributed, also can be uneven distribution.
Two, calculate the Moire fringe width
After accurately obtaining the Moire fringe deflection, can obtain the Moire fringe width along the direction vertical with the Moire fringe direction.
Because there is noise in the Moire fringe imaging, it is very big to cause the Moire fringe width to calculate stochastic error.Sciagraphy is that a series of related datas are carried out data accumulation by fixed-direction since sciagraphy to have the good restraining effect to have calculated amount simultaneously to noise little, the present invention adopts sciagraphy to calculate the Moire fringe width.The tradition sciagraphy adopts x direction of principal axis projection or the projection of y direction of principal axis, because the Moire fringe deflection at random, the present invention adopts and carries out projection along the Moire fringe direction.As shown in Figure 4, set up coordinate system, the u axle is and the Moire fringe vertical direction, and the v axle is and the Moire fringe parallel direction, and view field is the white box enclosing region, with v axle permutation data projection at the u direction of principal axis.
Fig. 4 obtains the Moire fringe perspective view for adopting sciagraphy at the u axle, u coordinate representation Moire fringe image horizontal ordinate wherein, and ordinate is represented the gray-scale value that adds up of Moire fringe projection on the u coordinate, handles back Moire fringe data through sciagraphy and becomes level and smooth.Ask for the Moire fringe width and become and ask for the sinusoidal curve cycle (as shown in Figure 5), in Fig. 5, seek first crest location of sinusoidal curve u
1With last crest location u
2Utilize formula (5) to ask for width of fringe B.
In the formula (5): u
1Represent first crest, u
2Represent last crest, k represents crest quantity.
Shown in Fig. 3 a, straight line a
j(j=1,2 ... m) intersection point o is chosen at the darkest position, Moire fringe picture centre zone, and family of straight lines a
j(j=1,2 ... m) evenly distribute in 360 ° of scopes, adjacent straight wire spacing angle is 0.3 °, 0.4 ° or 0.5 °.
Cut-off line a
jPixel value x through each point on the Moire fringe image of position
Ij(i=1,2 ... n); Utilize formula (1) calculated line a
jDirectional image gray-scale value root-mean-square error σ
j
Get σ
jMiddle minimum gradation of image value root-mean-square error σ
uPairing straight line a
uDirection as Moire fringe.
Define one by an o and perpendicular to straight line a
uStraight line b
u, straight line b
uMoire fringe image pixel gray-scale value through the position is the variation of sinusoidal curve cycle, obtains the width that this sinusoidal cycle is Moire fringe.
Embodiment 2
Family of straight lines a
j(j=1,2 ... m) intersection point o is chosen at the brightest position, Moire fringe picture centre zone, family of straight lines a
j(j=1,2 ... m) comprise two groups of straight line a
c(c=1,2 ... l) (l<m) and a
d(d=1,2 ... p) (p=m-l).
Straight line group a
c(c=1,2 ... l) evenly distribute in 360 ° of scopes, adjacent straight wire spacing angle is 1 °, 1.5 ° or 2 °.
Cut-off line a
cPixel value x through each point on the Moire fringe image of position
Ic(i=1,2 ... n); Utilize formula (11) calculated line a
cDirectional image gray-scale value root-mean-square error σ
c
Get σ
cMiddle minimum gradation of image value root-mean-square error σ
vPairing straight line a
vApproximate direction as Moire fringe.
Straight line group a
d(d=1,2 ... p) be distributed in straight line a
V-1With straight line a
V+1Between (shown in Fig. 3 b), straight line a
V-1, straight line a
V+1Be straight line group a
c(c=1,2 ... l) in a
vTwo adjacent straight lines.Straight line group a
d(d=1,2 ... p) adjacent straight wire spacing angle is 0.05 °, 0.07 ° or 0.1 ° in.
According to asking straight line a
vSame method is obtained straight line group a
d(d=1,2 ... p) the pairing straight line a of gradation of image value root-mean-square error of minimum in
wAs the Moire fringe direction.
As shown in Figure 4, as true origin, set up coordinate system as horizontal ordinate, the v axle parallel as ordinate, utilize sciagraphy to obtain a sinusoidal curve with the o point with the Moire fringe direction with the vertical u axle of Moire fringe direction; Wherein the ordinate p of each point is total gray-scale value that horizontal ordinate is identical on the Moire fringe each point grey scale pixel value adds up and obtains on the sinusoidal curve; In Fig. 4, seek first crest location of sinusoidal curve u
1With last crest location u
2Utilize formula (5) can try to achieve width of fringe B.
In the formula 3: u
1Represent first crest, u
2Represent last crest, k represents crest quantity.
The invention is not restricted to the foregoing description, straight line a
j(j=1,2 ... m) can also select to comprise many group straight lines in.For example first group of adjacent straight wire spacing angle is 10 °, totally 18 straight lines; Obtaining the pairing straight line of gradation of image value root-mean-square error minimum in these 18 straight lines is a
7, then second group of straight line is distributed in straight line a
6With straight line a
8Between, adjacent straight wire spacing angle is 1 °, totally 18 straight lines; Obtaining the pairing straight line of gradation of image value root-mean-square error minimum in these 18 straight lines is a
30, then the 3rd component is distributed in straight line a
29With straight line a
31Between, adjacent straight wire spacing angle is 0.1 °, totally 18 straight lines, and obtaining the pairing straight line of gradation of image value root-mean-square error minimum in these 18 straight lines again is a
40, with straight line a
40The place direction is as the direction of Moire fringe.The calculating of Moire fringe width also is not limited to aforesaid way, embodiment 1 cathetus b
uAlso can be not by an o but perpendicular to straight line a
uAny straight line.Should be understood that every any simple deformation of making all the invention is intended within the protection domain on claim 1 of the present invention basis.
The present invention is exactly the Mohr's circle picture that arrives according to computer acquisition, discerns the deflection of Moire fringe and the width of striped automatically.As straight line a
j(j=1,2 ... m) intersection point o is chosen at the brightest position, picture centre zone, selects to be spaced apart between the adjacent straight line 1 ° of preliminary straight line a of determining
vDirection is the Moire fringe direction, then at straight line a
V-1With straight line a
V+1Between another group of definition straight line a
d(d=m-c), adjacent straight wire spacing angle is 0.1 °, gets minimum gradation of image value root-mean-square error σ in this group again
vPairing straight line a
vDirection as Moire fringe shows the result.Every two field picture is handled and is finished within 40ms, and the width of fringe error of calculation is less than 1%.
The present invention adopts the VC6.0 programming to realize that the program circuit of algorithm as shown in Figure 6 by at double-core Duo 2.4GHz, internal memory 2G computer.
Claims (6)
1. device that utilizes image processing techniques to ask for the Moire fringe width is characterized in that comprising:
Moire fringe image harvester;
Ask for the device of Moire fringe direction;
Calculate the device of Moire fringe width;
The described device of asking for the Moire fringe direction: definition gang meets at the straight line a of same point o on the Moire fringe image
j(j=1,2 ... m), cut-off line a
jPixel value x through each point on the Moire fringe image of position
Ij(i=1,2 ... n); Utilize formula (1) calculated line a
jDirectional image gray-scale value root-mean-square error σ
j
Get σ
jMiddle minimum gradation of image value root-mean-square error σ
uPairing straight line a
uDirection as Moire fringe.
2. the device that utilizes image processing techniques to ask for the Moire fringe width according to claim 1 is characterized in that described some o is positioned at the brightest position, picture centre zone or the darkest position.
3. the device that utilizes image processing techniques to ask for the Moire fringe width according to claim 1 and 2 is characterized in that described straight line a
jEvenly distribute in 360 ° of scopes, adjacent straight wire spacing angle is in 0.25~0.5 ° of scope.
4. the device that utilizes image processing techniques to ask for the Moire fringe width according to claim 1 and 2 is characterized in that described straight line a
j(j=1,2 ... m) comprise two groups of straight line a in
c(c=1,2 ... l) (l<m) and a
d(d=1,2 ... p) (p=m-l); Straight line a
c(c=1,2 ... l) evenly distribute in 360 ° of scopes, adjacent straight wire spacing angle is in 1~2 ° of scope; Straight line a
d(d=1,2 ... p) be distributed in straight line a
V-1With straight line a
V+1Between, straight line a
d(d=1,2 ... p) adjacent straight wire spacing angle is in 0.05~0.1 ° of scope in; Its cathetus a
V-1, straight line a
V+1Be straight line a
c(c=1,2 ... l) in a
vTwo adjacent straight lines, a
vBe straight line a
c(c=1,2 ... l) in the gradation of image value root-mean-square error σ of minimum
vCorresponding straight line; Straight line a
d(d=1,2 ... p) in the gradation of image value root-mean-square error σ of minimum
wCorresponding straight line a
wDirection be the Moire fringe direction.
5. the device that utilizes image processing techniques to ask for the Moire fringe width according to claim 1, the device that it is characterized in that described calculating Moire fringe width: define a straight line perpendicular to the Moire fringe direction, obtain the period of change of this straight line, promptly obtain the width of Moire fringe through each point pixel value on the Moire fringe image of position.
6. the device that utilizes image processing techniques to ask for the Moire fringe width according to claim 1 is characterized in that the device of described calculating Moire fringe width:
As true origin, set up coordinate system as horizontal ordinate, the v axle parallel as ordinate, utilize sciagraphy to obtain a sinusoidal curve with the o point with the Moire fringe direction with the vertical u axle of Moire fringe direction; Wherein the ordinate of each point is total gray-scale value that horizontal ordinate is identical on the Moire fringe each point grey scale pixel value adds up and obtains on the sinusoidal curve; Obtain this sinusoidal cycle, this cycle is the width of Moire fringe.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110216381 CN102289779B (en) | 2011-07-29 | 2011-07-29 | Device for obtaining width of Moire fringe by using image processing technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110216381 CN102289779B (en) | 2011-07-29 | 2011-07-29 | Device for obtaining width of Moire fringe by using image processing technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102289779A true CN102289779A (en) | 2011-12-21 |
CN102289779B CN102289779B (en) | 2013-08-21 |
Family
ID=45336176
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110216381 Expired - Fee Related CN102289779B (en) | 2011-07-29 | 2011-07-29 | Device for obtaining width of Moire fringe by using image processing technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102289779B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107067392A (en) * | 2017-04-11 | 2017-08-18 | 北京小米移动软件有限公司 | The method and device of identification flower screen image |
US10126562B2 (en) | 2015-02-09 | 2018-11-13 | Samsung Electronics Co., Ltd. | Apparatus and methods for reducing moire fringe |
CN112556734A (en) * | 2020-11-30 | 2021-03-26 | 中国科学院长春光学精密机械与物理研究所 | Moire fringe subdivision method for photoelectric encoder |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100561120C (en) * | 2008-02-01 | 2009-11-18 | 黑龙江科技学院 | A kind of formation method of three-dimension measuring system |
CN101667303A (en) * | 2009-09-29 | 2010-03-10 | 浙江工业大学 | Three-dimensional reconstruction method based on coding structured light |
-
2011
- 2011-07-29 CN CN 201110216381 patent/CN102289779B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100561120C (en) * | 2008-02-01 | 2009-11-18 | 黑龙江科技学院 | A kind of formation method of three-dimension measuring system |
CN101667303A (en) * | 2009-09-29 | 2010-03-10 | 浙江工业大学 | Three-dimensional reconstruction method based on coding structured light |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10126562B2 (en) | 2015-02-09 | 2018-11-13 | Samsung Electronics Co., Ltd. | Apparatus and methods for reducing moire fringe |
CN107067392A (en) * | 2017-04-11 | 2017-08-18 | 北京小米移动软件有限公司 | The method and device of identification flower screen image |
CN107067392B (en) * | 2017-04-11 | 2020-11-10 | 北京小米移动软件有限公司 | Method and device for identifying screen-patterned image |
CN112556734A (en) * | 2020-11-30 | 2021-03-26 | 中国科学院长春光学精密机械与物理研究所 | Moire fringe subdivision method for photoelectric encoder |
CN112556734B (en) * | 2020-11-30 | 2021-09-28 | 中国科学院长春光学精密机械与物理研究所 | Moire fringe subdivision method for photoelectric encoder |
Also Published As
Publication number | Publication date |
---|---|
CN102289779B (en) | 2013-08-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103292701B (en) | The online dimension measurement method of accurate device based on machine vision | |
CN104966308B (en) | A kind of method for calculating laser beam spot size | |
CN106197612B (en) | A kind of transparent bottled liquid-level detecting method based on machine vision | |
CN101465002B (en) | Method for orientating secondary pixel edge of oval-shaped target | |
CN109060836A (en) | High-pressure oil pipe joint external screw thread detection method based on machine vision | |
CN105678757B (en) | A kind of ohject displacement measuring method | |
CN103983188A (en) | Volume measurement method and device of moving object | |
CN102289779B (en) | Device for obtaining width of Moire fringe by using image processing technology | |
CN102682424B (en) | Image amplification processing method based on edge direction difference | |
CN107818542B (en) | Image deformation repairing method and device | |
EP4276407A2 (en) | Wire rope measuring device and wire rope measuring method | |
CN103093223A (en) | Light spot image center quick locating method | |
CN112254635A (en) | Volume measurement method, device and system | |
CN103090792A (en) | Method and device which are based on machine vision and used for automatic and separate detection of unaccepted ball-pin product | |
CN111260708A (en) | Line structure optical center extraction method and system | |
CN111385558B (en) | TOF camera module precision measurement method and system thereof | |
Tian et al. | An experimental evaluation method for the performance of a laser line scanning system with multiple sensors | |
CN113808121A (en) | Yarn sub-pixel level diameter measurement method and system | |
CN108088381A (en) | A kind of contactless minim gap method for measuring width based on image procossing | |
CN103413319A (en) | Industrial camera parameter on-site calibration method | |
CN103049785A (en) | Multi-sensor counting device and counting method | |
CN104573144A (en) | System and method for simulating offline point cloud of measuring equipment | |
CN106122430A (en) | A kind of fine module gear rim detection accuracy computation method of feature based image | |
CN103697833B (en) | Agricultural product shape detecting method and device | |
CN117372498A (en) | Multi-pose bolt size measurement method based on three-dimensional point cloud |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130821 Termination date: 20150729 |
|
EXPY | Termination of patent right or utility model |