Signal processing method, signal processing program, recording medium storing the signal processing program and signal processor

Abstract
A signal processing method is disclosed, where, after inputting a measurement data weighted-spline filter formula is selected to calculate an initial value of a spline filter, weight is adjusted, spline filter output is calculated, convergence is judged thereafter. When the weight is not judged converged, the weight is updated and the weight adjusting and spline filter output calculation are repeated, to conduct a robust spline filtering on the measurement data.
Description
BACKGROUND OF THE INVENTION

1. Field of the Invention


The present invention relates to a signal processing method, more specifically, relates to a signal processing method for filtering a data obtained by measuring surface texture of an object to be measured such as roughness or a contour etc. of the object to be measured.


2. Description of Related Art


Measuring instruments for measuring surface texture of an object to be measured e.g. contour, roughness, waviness, etc. of a surface of the object to be measured such as a coordinate measuring machine for measuring a three-dimensional shape of the object to be measured, a form measuring machine or an image measuring machine for measuring a two-dimensional contour, a roundness measuring machine for measuring roundness, and further, a surface roughness tester for measuring waviness and roughness etc. of the surface of the object to be measured have been conventionally known. In such measuring instruments a contact type or non-contact type sensor and the object to be measured are moved relatively, to collect measurement data of the surface of the object to be measured.


Usually, disturbances such as noise are contained in thus collected measurement data.


Since the disturbance is usually an electric and magnetic induction noise etc. containing high-frequency components, when the contour of the surface of the object is to be measured, the surface roughness and the waviness can be the disturbance of the contour.


In order to remove the disturbance as necessary, the measurement data is often filtered to remove, for example, the high-frequency components. A spline filter is known as such a filter (refer to Document 1: Japanese Patent Laid-Open Publication No. HEI 9-179992, and Document 2: Japanese Patent Laid-Open Publication No. HEI 8-278343). Further, a robust spline filter is known for applying weight on each measurement data and for repeating to update of the weight until this weighting is optimized.


However, the robust spline filter has been applicable to curve data, but it has not been applicable to curved surface data obtained by measuring a surface area.


SUMMARY OF THE INVENTION

A primary object of the present invention is to provide a signal processing method having a high reliability, which allows data obtained by measuring the surface area to be utilized, maintaining a distinctive feature of the spline filter, and is also capable of being applied to surface measurement data such as the surface texture of the object to be measured, and in addition hereto, to provide a signal processing program, a recording medium storing the signal processing program and a signal processor.


A signal-processing method according to an aspect of the present invention is for filtering a measurement data obtained by measuring the surface area the method including: a measurement data input step for inputting the measurement data; a selecting step for selecting a predetermined weighted spline filter formula; an initializing step for applying weight on the measurement data by a unit matrix to obtain an initial value of a spline filter output; a weight-adjusting step for adjusting and determining the weight on the measurement data; a spline filter output calculating step for calculating the spline filter output using the weight determined in the weight-adjusting step; a convergence test step for determining a convergence of the weight; and an output step for outputting a signal-processing result based on the spline filter output, wherein, when it is not judged that the weight is converged in the convergence judging step, the weight is updated and the weight-adjusting step and the spline-filter output-calculating step are repeated and wherein a smoothing spline curved surface corresponding to the measurement data is generated, thereby to conduct a robust spline filtering on the measurement data.


In accordance with this invention, the weighted-spline filter formula is selected and the spline curved surface as a spline filtering output is repeatedly calculated while sequentially updating its weight based upon the selected spline filter formula, so that the robust-spline filtering having the filter output as the signal processing result of the spline curve when the weight is converged can be applied on the measurement data. Accordingly a deformation at the start or end area of the measurement data (an end-effect) can be prevented, and the shape contained in the measurement data can be extracted without being influenced by trackability for waviness component and the noise component in the measurement data. As a result, the filtering with excellent shape trackability can be conducted thereby further enhancing the reliability of the measurement data.


Herein, the measurement data obtained by measuring the surface area refers to, for example, data etc. obtained by scanning the surface of the object to be measured with the coordinate measuring machine or the surface texture measuring machine. That is, it refers to data to be represented with height data f (x, y) from the surface with respect to a sampling position (x, y).


In the signal-processing method according to the above aspect of the present invention, the weight determined in the weight-adjusting step is preferably adjusted to smaller value as a deviation of the measurement data from the spline curve calculated by the weighted-spline filter formula becomes greater.


According to the above arrangement, since the weight of the measurement data is adjusted smaller as the deviation of the measurement data from the spline curve calculated by the weighted-spline filter formula becomes greater, robust-spline filtering without being influenced by singular point data contained in the measurement data is provided. Specifically the spline curve is repeatedly calculated while applying small weight on the measurement data remote from the spline curve and applying heavy weight on the measurement data near the spline curve. Then, the spline curve is gradually approximated to the original shape component (for example, a true shape value etc. of the object to be measured) contained in the measurement data. And, the final spline curve when the weight is judged converged is regarded as a shape component having sufficiently small error relative to the original shape component. As a result, the extremely accurate robust-spline filtering can be conducted.


In the signal-processing method according to the above aspect of the present invention, the weight is preferably judged converged when amount of weight-change in the weight adjusting step becomes a predetermined value or less in the convergence judging step,


According to the above arrangement, since the weight is judged converged when the change in the weight during the repeated-loop process becomes a predetermined value or less, increase in a processing time on account of the unnecessary repetitive loop can be avoided and time required for robust spline filter processing can be reduced. Further, since the error of spline curve is considered small enough relative to the original shape component contained in the measured data when amount of weight-change in the weight adjusting step becomes a predetermined value or less, extremely accurate robust-spline filtering can be conducted.


In the signal-processing method according to the above aspect of the present invention, the output step preferably includes: a weight-updating step for updating the weight to 1 when the weight of the measurement data exceeds a predetermined value, a spline filter re-output calculating step for calculating the spline filter output, based upon the updated weight, and a signal process result output step for outputting the spline filter output in the spline filter re-output calculating step as a signal processing result.


According to the above arrangement when the weight of the measurement data exceeds a predetermined value the weight is updated to 1 and when the weight of the measured data is not greater than a predetermined value the weight is updated to 0, and the spline filter output is re-calculated to be outputted as a signal processing result.


Specifically when the weight is judged converged after repeating the weight adjusting step and the spline filter output calculating step, the measurement data where its weight exceeds a predetermined value is considered as an efficient data with its weight being updated to 1, however, the measurement data where its weight is not greater than a predetermined value is considered as an inefficient data with its weight being updated to 0, and the spline filter output after the updating is obtained again so that the robust spline filter processing can be more securely conducted. Then, since the result is outputted as the signal-processing result, a spline curve with sufficiently small error relative to the original shape component contained in the measurement data can be calculated. Consequently, robust spline filtering with excellent shape trackability can be achieved.


Also, in the present invention, the measurement data inputting step preferably includes a step of deleting singular point data separated locally as against the measurement data.


In accordance with this invention, due to, for example, the strong induced noise occurred from power appliances located in a factory etc., data which has been locally protuberant and has been separated, for example, data which is extremely different from that of data on both sides can be pre-deleted as obviously singular point data, so a reliability of the robust-spline filter process is further enhanced.


The signal process program of the present invention causes a computer to execute the above-mentioned signal processing method. Also, the recording medium of the present invention has the above-mentioned signal process program recorded computer-readably. And, the signal processing unit of the present invention causes a computer to execute the above-mentioned signal processing program.


With the configuration as described above, given that the computer having a CPU (Central Processing Unit) and a memory (memory device) is built-in the signal processing unit and the program is configurated so as for computer to execute each step, parameters can be easily change, for example, various parameters including decision of the separation quantity according to the dimension of the measurement data in addition to the weight adjustment or the convergence determination etc. And, the recording medium with this program recorded therein may be directly inserted into the computer, thereby to install the program in the computer, and a read device for reading out information of the recording medium may be externally attached to the computer, thereby to install the program in the computer from this read device. Additionally, the program may be supplied to and installed in the computer via communication lines such as an Internet, a LAN cable, and a telephone circuit, or a wireless.




BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a flowchart showing signal-processing process in a signal-processing method according to a first reference technology;



FIG. 2 is a functional block diagram of a signal-processing device in the first reference technology;



FIG. 3A and FIG. 3B are illustrations comparing a result of spline processing and a result of robust spline processing for one-dimensional time-series data in the first reference technology;



FIG. 4A and FIG. 4B are illustrations comparing a result of spline processing and a result of robust spline processing in a third reference technology;



FIG. 5 is an illustration showing transfer characteristic of the signal-processing method according to the present invention; and



FIG. 6 is a flowchart showing a modification of the present invention.



FIG. 7 is a view illustrating an example of measurement data to be applied for a first embodiment;



FIG. 8 is a view illustrating a result obtained by applying the robust spline filter on the measurement data to be shown in FIG. 7 in the first embodiment;



FIG. 9 is a view illustrating a result obtained by processing the measurement data to be shown in FIG. 7 with a Gaussian filter;



FIG. 10 is a view illustrating a profile in the X direction in FIG. 7 in the first embodiment;



FIG. 11 is a view illustrating a profile in the Y direction in FIG. 7 in the first embodiment;



FIG. 12 is a view illustrating one example of a transfer characteristic in the first embodiment; and



FIG. 13 is a flowchart illustrating a signal process in the first embodiment relating to the signal processing method.




DETAILED DESCRIPTION OF PREFERRED EMBODIMENT(S)

The signal processing method of the present invention primarily relates to a signal processing method of performing a filter process for the curved surface data obtained by measuring the surface area; however the robust spline filter (spline filter) for the curve data is shown as a reference technology on the premise of explaining the present invention.


<First Reference Technology>


Initially, weighted spline filter will be described below.


As an example, when the number of data is represented by n, measurement data is represented by yk (k=0, 1, . . . , n−1) and spline function is represented by s, a spline filter is obtained by minimizing sum of squares of residual error relative to measurement data
k=0n-1(yk-s(xk))2(1)

under the condition that spline energy
ab{2s(x)x2}2x(2)

is minimized.


In other words, when I(s) is represented by the following formula,
I(s)=k=0n-1{yk-s(xk)}2+λab{2s(x)x2}2x(3)

the spline filter is obtained by minimizing the I(s) (where λ represents Lagrange constant).


When weight for the residual error at respective measurement point is represented by wk (k=0, 1, . . . , n−1), following formula adapted to weighted spline filter can be obtained.
I(s)=k=0n-1wk{yk-s(xk)}2+λab{2s(x)x2}2x(4)


The spline function s is digitized at a constant pitch where the second term is modified as
αk=0n-12s(xk)(5)


Then, following equation is established.
I(s)=k=0n-1wk{yk-s(xk)}2+αk=0n-12s(xk)(6)


In the above:

2s(xk)=s(xk+1)−2s(xk)+s(xk−1)   (7)


Accordingly, a value sk of discrete spline for minimizing I(s) satisfies the following formula.
I(s0,s1,sn-1)sk=0k-0,1,,n-1(8)


The weighted spline filter is defined as a spline function for minimizing I(s) in the formula (6).


In order to represent the weighted spline filter for non-periodic measurement data as a matrix, when a boundary condition of non-periodic measurement is:

2s(x0)=0 ∇2s(xn−1)=0   (9)

since following formula,
Is0=-2w0(y0-s0)=2α(s2-2s1+s0)Is1=-2w1(y1-s1)+2α(s3-4s2+5s1-2s0)Isk=-2wk(yk-sk)+2α(sk+2-4sk+1+6sk-4sk-1+sk-2)k=2,3,,n-3Isn-2=-2wn-2(yn-2-sn-2)+2α(sn-4-4sn-3+5sn-2-2sn-1)Isn-1=-2wn-1(yn-1-sn-1)+2α(sn-3-2sn-2+sn-1)(10)

is established by substituting Q as
Q=(1-21-25-411-46-411-46-411-45-21-21)(11)

the matrix of the weighted spline filter for non-periodic data can be expressed as
(W+αQ)S=WYwhere(12)W=(w0w1wn-3wn-2wn-1)(13)S=(s0s1sn-3sn-2sn-1)Y=(y0y1yn-3yn-2yn-1)


Next, in order to represent the weighted spline filter for periodic measurement data as a matrix, when periodic boundary condition of the periodic measurement data is represented as
sk+n=skk=0,1,,n-1(14)sinceIsk=-2wk(yk-sk)+2α(sk+2-4sk+1+6sk-4sk-1+sk-2)(15)k=0,1,,n-1forQ~=[6-411-4-46-4111-46-411-46-4111-46-4-411-46](16)

the matrix of the weighted spline filter for periodic measurement data can be represented as

(W+α{tilde over (Q)})S=WY   (17)


The amplitude characteristic and phase characteristic of the spline filter at steady state will be described below.


Following spline filter formula

yk=Sk+α(sk+2−4sk+1+6sk−4sk−1+sk−2)k=0,1, . . . ,n−1   (18)

where weight W=I (unit matrix), is expressed by z-transform as

yk=sk+α(z−2−4z−1+6−4z+z2)sk   (19)


Transfer function H(z) of the spline filter is represented by
H(z)=skyk=11+α(z-2-4z-1+6-4z+z2)(20)


In order to examine the amplitude characteristic and phase characteristic, Z is substituted as

z=ejωΔx   (21)

so that following formula is established.
H(ω)=11+α(-2jωΔx-4-jωΔx+6-4jωΔx+jωΔx)(22)Since-jα+jα=2cosα(23)

following equation is established.
-2jωΔx-4-jωΔx+6-4jωΔx+2jωΔx=2cos(2ωΔx)-8cos(ωΔx)+6=2-4sin2(ωΔx)-8cos(ωΔx)+6=-16sin2(ωΔx2)cos2(ωΔx2)-8+16sin2(ωΔx2)+8=16sin4(ωΔx2)(24)


Accordingly, amplitude characteristic can be represented as
H(ω)=11+16αsin4(ωΔx2)(25)


On the other hand, the phase characteristic is represented as

Arg*H(ω)=0   (26)

and it is proved that the spline filter is a phase-compensating filter.


As an example, when a filter of 50% attenuation at a cutoff frequency ω=ωC is to be obtained, the amplitude characteristic may be set as
H(ωc)=12(27)

and a constant a can be expressed as in the following equation.
α=116sin4(ωcΔx2)(28)


The transfer characteristic (amplitude characteristic, phase characteristic) of the 50% attenuation filter at the cutoff frequency ω=107C will be shown in FIG. 5.


Next, solution of thus defined weighted spline filter will be described below.


The matrix form of the weighted spline filter

(W+αQ)S=WY   (29)

has symmetric matrix

M=W+αQ   (30)

on the coefficient matrix at the left-side of the equation.


Decomposition of M into lower triangular matrix L and diagonal matrix D by modified Cholesky decomposition (decomposition of the matrix M can be very efficiently conducted since the matrix M is a sparse matrix) results in

M=LDLT   (31)

and the weighted spline filter can be represented as

LDLTS=WY   (32)


When

DLTS=X   (33)

then

LX=WY   (34)

Since L is a lower triangular matrix, X can be easily calculated. Further, since

LTS=D−1X   (35)

S can be easily calculated based on the calculated X.


In actually applying the present invention, the matrix M may become singular when

wkm=0   (36)


Accordingly, it is ideally preferable that the matrix is solved by singular value decomposition method. However, when singular value decomposition method is employed, a great-capacity storage and much processing time are required. On the other hand, in applying the present invention to the actual measurement data, it is rare that the matrix M becomes singular, and when the matrix M is singular, it is presumed that the measurement data itself is defective. Therefore, Gill-Murray modified Cholesky decomposition capable of outputting some solution even when the matrix M is singular is applied to achieve both calculation efficiency and countermeasure for singular matrix.


Weighted spline filter supported by a solution can be deduced as described above and a robust spline filter is obtained by repeating calculation until convergence condition is satisfied while updating the weight W.



FIG. 1 is a flowchart showing a first process and FIG. 2 is a functional block diagram of a device executing the robust spline processing.


In the above process, a measurement data input step for inputting a measurement data and a selecting step (ST3) for selecting weighted spline filter formula are initially executed.


During the measurement data input step, a step ST1 for inputting the measurement data from a measuring instrument etc. by an input unit 1 to store the data in a storage such as a computer, and a step ST2 for deleting locally isolated singular point data contained in the stored measurement data by a singular point data deleting unit 3 are executed.


In the present reference technology, the measurement data is a one-dimensional time-series data measured by a roughness-measuring machine, where, for instance, a probe of a surface roughness tester is moved in a direction (x-direction) to obtain a roughness data y at a predetermined pitch in x-direction. Whether a data is a singular point data or not can be easily determined by checking whether deviation of the measurement data relative to least square curve is not less than a predetermined value and not more than a predetermined width or not.


Subsequently, in the selecting step ST3, whether the measurement data is non-periodic or periodic is judged by a judging unit 4 and weighted spline filter formula is selected in accordance with the judgment. Specifically, the formula (12) and the formula (17) are selectably used in accordance with the judgment whether the measurement data is non-periodic or periodic.


Next, initializing step (ST4) is conducted, where an initial value S0 of the output of the spline filtering when W=I is obtained, as illustrated (non-robust spline filtering calculation).


Next, based on the measurement data Y and Sm (m indicates repetition step), weight Wm is adjusted and determined by a weight adjuster 5 according to below-described process (ST5).


Subsequently, spline filter output Sm+1 is calculated based on weighted spline filter

(Wm+αQ)Sm+1=WmY   (37)

by a spline filter output calculator 6 (ST6).


Then, below-described weight convergence judgment (ST7) is conducted by a convergence judging unit 51 and, when convergence condition is not satisfied, m is updated (m=m+1) (ST10) to re-adjust the weight Wm (ST5).


When the convergence condition is satisfied (ST7: YES), the repeating process is terminated to obtain the output value Sm (ST8) and the spline curve is outputted to an output unit 7.


In the above process, in order to adjust the weight Wm (ST5), adaptive biweight method is applied as follows.
wkm={[1-(yk-skmβ·c)2]2yk-skm<β·c0yk-skmβ·c(38)


Here, with reference to σ denoting standard deviation of the residual error,
β=median{yk-skmσ}(39)c={6β5105<β10020100<β(40)

are set.


Also, as to the convergence condition in STP 7, the repetitive process is brought to an end at the time point that a change in the weight became smaller sufficiently and a formula shown below has been satisfied.
k=0n-1wkm-wkm-1<0.02·k=0n-1wkm(41)



FIG. 3A and FIG. 3B show examples where a signal-processing method by the robust spline filtering in the first reference technology is conducted for a one-dimensional time-series data. Here, both of a spline curve processed by normal spline filtering and a spline curve processed by the robust spline filtering according to the present invention are applied on the measurement data applied with a spike noise, which are shown in a superposing manner. As shown in the drawings, though the result of normal spline filtering is influenced by the spike noise, a spline curve along original shape is obtained by the robust spline filtering. Further, as shown in FIG. 3A, excellent trackability for a shape having gentle waviness can be obtained.


According to the present reference technology, following advantages can be obtained.


(1) Since the spline filter can be easily robustized (i.e. made robust), the deformation at the start or end area of the measurement data can be prevented. Accordingly, the shape contained in a measurement data can be extracted without being influenced by trackability for waviness component or noise component contained in the measurement data, so that filtering with excellent shape trackability can be conducted and the reliability of the measurement data can be further improved.


(2) Since locally isolated singular point data contained in the measurement data can be removed, reliability of the robust spline filtering can be further enhanced.


(3) Since the weight becomes small in accordance with the magnitude of deviation of the measurement data from the spline curve calculated by the weighted spline filter formula, robust spline filtering without being influenced by the singular point data contained in the measurement data is possible.


(4) Since weight convergence can be judged when the variation of weight in the repetition loop process becomes smaller than a predetermined value, unnecessary repetition loop process can be prevented, thereby reducing the robust spline filtering processing time.


<Second Reference Technology>


Next, second processing steps for achieving a robust spline filter will be described below. Though the steps are the same as the first processing steps, different calculation formulae are used therein.


Specifically, the weighted spline filter formula

(W+αQ)S=WY   (42)

is modified as

(I+αQ)S=WY+(I−W)S   (43)

Here,

(I+αQ)Sm+1=WmY+(I−Wm)Sm   (44)

is used in repetition step m.


In the second processing step, following advantage as well as the advantages (1) to (4) in the first processing step can be expected.


(5) Since the left-side coefficient matrix

I+αQ   (45)

constantly represents the same value during the repetition step, total robust spline filtering processing time can be reduced.


<Third Reference Technology>


Next, a signal-processing method for a measurement data as a two-dimensional data measured two-dimensionally will be described below as a third reference technology of the signal-processing method of the present invention. Here, the measurement data as a two-dimensional data refers to, for instance, (x, y) coordinates value etc. obtained by measuring contour curve of a workpiece under constant z-coordinate by a predetermined pitch using a coordinate measuring machine and the like or a data obtained by importing a figure drawn on a plane with a scanner. In other words, though the object to be processed is only y-coordinate in the first reference technology, both of x-coordinate and y-coordinate are processed in the third reference technology.


The basic arrangement of the third reference technology is the same as the first reference technology, which is characterized in a formula corresponding to the formula (6) in starting the calculation of spline curve s.


In the third reference technology, under the condition that the spline energy is minimized, a spline curve for minimizing sum of squares of the X and Y-direction distance between the measurement data (xk, yk) and point (sx(xk, yk), sy(xk, yk)) on the spline curve s corresponding to the measurement data (xk, yk) is calculated. In other words, under the above incidental condition, a spline curve s capable of minimizing I(s) represented by the following formula is calculated.
I(s)=k=0n-1wk[{xk-sx(xk,yk)}2+{yk-sy(xk,yk)}2]+αk=0n-1{x2s(xk,yk)+y2s(xk,yk)}(46)


In the above, secondary approximation of laplacian on the second term of right side is represented as follows:

x2s(xk,yk)=sx(xk+1)−2sx(xk)+sx(xk−1)
y2s(xk,yk)=sy(yk+1)−2sy(yk)+sy(yk−1)   (47)


Then, weighted spline filter described in the first reference technology is applied for each x component and y component (see formula (37)).


In the above, the constant α can be calculated based on a sampling pitch Δ1 along measurement path and a cutoff wavelength λc′ according to the following formula:
α=116sin4(π·Δlλc)(48)


Then, a spline filter for deducing the spline curve for each section of the two-dimensional measurement data can be constructed.


Further, in a robust spline filter where the processing is repeated by updating the weight W until the convergence condition (formula (41)) is satisfied, (yk−skm) in formula (38) is set as a distance between two points as represented in the following formula, which specifically is a distance between the measurement data (xk, yk) and the point (sx(xk, yk), sy(xk, yk)) on the spline curve s corresponding to the measurement data (xk, yk).

dk={square root}{square root over ({xk−sx(xy,yk)}2+{yk−sy(xk,yk)}2)}  (49)


The convergence of the weight W calculated by the formula (38) applying the formula (49) is judged based on the formula (41). When the weight W is converged, a spline curve corresponding to measurement data is calculated based on the output value Sm (spline function). The spline curve is outputted to the output unit.



FIG. 4A shows a comparison of a result of spline processing on an input data applying spike nose on a folium and a result of robust spline processing thereon. As shown in FIG. 4A, though the result by the ordinary spline processing is influenced by the spike noise, robust result restraining the spike noise can be obtained by the robust spline processing. FIG. 4B shows a result of spline processing on an input data applying spike noise on an airfoil and a result of robust spline processing thereon, which exhibits the same result as FIG. 4A.


According to the third reference technology, following advantages as well as the advantages (1) to (5) in the first and the second reference technology can be obtained.


(6) When the measurement data is two-dimensional data on an orthogonal coordinates, since the deviation of the measurement data from the spline curve is determined based on the sum of squares of the components for the respective axes (for instance, X-axis component and Y-axis component), the deviation can be easily calculated. Accordingly, the weight of the respective measurement data can be easily determined.


(7) Even when the measurement data is two-dimensional data, since the spline filter output can be obtained based on the result of weighted spline filtering for the respective axes components (for instance, X-axis component and Y-axis component), the calculation process can be simplified even for a complicated curve, so that the time required for robust spline filtering calculation on a measurement data can be reduced.


(8) When two-dimensional data is obtained by profiling a workpiece on a two-dimensional plane to input as a measurement data, since the measurement data is inputted at a predetermined interval along the measurement path, shape-changing point (e.g. changing point from straight line to arc or boundary point of a step) can be more accurately recognized as compared to an arrangement where the measurement data is inputted at a predetermined interval in X-axis direction. In other words, shape judgment error can be prevented and highly reliable measurement data can be inputted.


<Fourth Reference Technology>


Next, a signal-processing method for a measurement data as a three-dimensional data measured three-dimensionally will be described below as a fourth reference technology of the signal-processing method of the present invention. Here, the measurement data as a three-dimensional data refers to, for instance, (x, y, z) coordinates value etc. obtained by measuring a surface of a workpiece at a predetermined pitch using a coordinate measuring machine and the like. In other words, though the object to be processed is only y-coordinate in the first reference technology, all of x-coordinate, y-coordinate and z-coordinate are processed in the fourth reference technology.


The basic arrangement of the fourth reference technology is the same as the first reference technology, which is characterized in a formula corresponding to the formula (6) in starting the calculation of spline curve s.


In the fourth reference technology, under the condition that the spline energy is minimized, a spline curve for minimizing sum of squares of the X, Y and Z-direction distance between the measurement data (xk, yk, zk) and point (sx(xk, yk, zk), sy(xk, yk, zk), sz(xk, yk, zk)) on the spline curve s corresponding to the measurement data (xk, yk, zk) is calculated. In other words, under the above incidental condition, a spline curve s capable of minimizing I(s) represented by the following formula is calculated.
I(s)=k=0n-1[{xk-sx(xk,yk,zk)}2+{yk-sy(xk,yk,zk)}2+{zk-sk(xk,yk,zk)}2]+αk=0n-1{x2s(xk,yk,zk)+y2s(xk,yk,zk)+z2s(xk,yk,zk)}(50)


In the above, secondary approximation of laplacian on the second term of right side is represented as in the third reference technology.


Then, weighted spline filter described in the first reference technology is applied for each x, y and z component (see formula (37)). Incidentally, the constant α is defined based on a sampling pitch Δ1 along measurement path in the three-dimensional space and cutoff wavelength λc′ according to the formula (48).


Then, a spline filter for deducing the spline curve for each section of the three-dimensional measurement data can be constructed.


Further, in a robust spline filter where the processing is repeated by updating the weight W until the convergence condition (formula (41)) is satisfied, (yk−skm) in formula (38) is set as a distance between two points as represented in the following formula, which specifically is a distance between the measurement data (xk, yk, zk) and point (sx(xk, yk, zk), sy(xk, yk, zk), sz(xk, yk, zk)) on the spline curve s corresponding to the measurement data (xk, yk, zk).

dk={square root}{square root over ({xk−sx(xk,yk,zk)}2+{yk−sy(xk,yk,zk)}2+{zk−sz(xk,yk,zk)}2)}  (51)


The convergence of the weight W calculated by the formula (38) applying the formula (51) is judged based on the formula (41). When the weight W is converged, a spline curve corresponding to measurement data is calculated based on the output value Sm (spline function). The spline curve is outputted to the output unit.


According to the fourth reference technology, following advantage as well as the advantages (1) to (5) of the advantages of the first and the second reference technologies can be obtained.


(9) The advantages (6) to (8) of the third reference technology can be further achieved in a three-dimensional data. Accordingly, when the measurement data is a three-dimensional data, calculation load can be reduced without increasing processing time of the robust spline filtering.


<Reference Variant>


A modification of the present invention will be described below. Though the spline curve at the time of convergence judgment in the first reference technology is directly outputted as a result of signal-processing, the spline curve is re-calculated and the result is outputted as the signal-processing result in the present modification.



FIG. 6 shows a modification of spline curve output (ST9) of FIG. 1.


Initially, the calculated output value Sm is inputted (ST91). Subsequently, whether re-calculation is to be conducted or not is determined (ST92). For instance, “YES” is selected when highly accurate signal-processing result is to be obtained and “NO” is selected when it is considered that sufficient accuracy has been obtained by an operator at the time, or in advance.


When the re-calculation is not conducted (NO), the spline curve of the output value Sm is outputted by the output unit 7. When the re-calculation is to be conducted (YES), weight exceeding a predetermined value designated in advance is updated to 1 and weight not greater than a predetermined value is updated to 0 (ST93). In other words, the measurement data having weight exceeding the predetermined value is judged effective and 100% contribution on the spline processing is set thereon and the measurement data having weight not greater than the predetermined value is judged inefficient and 0% contribution is set.


Subsequently, weighted spline filtering is conducted based on the updated weight to obtain an output (ST94). The obtained spline curve is outputted by the output unit 7 as a signal-processing result (ST95).


The reference variant can be applied on all of the first to fourth reference technologies, where the following advantage as well as the advantages (1) to (9) can be obtained.


(10) The weight is updated to 1 when the weight at the time when the weight is judged converged exceeds a predetermined value, and the spline filter output is obtained again to output the result as the signal-processing result. In other words, when the weight is judged converged after repeating the weight adjusting step and the spline filter output calculating step, the measurement data at the point where the weight exceeds the predetermined value is considered effective to update the weight thereof to 1, and the spline filter output can be re-calculated, so that the robust spline processing for the measurement data can be more securely conducted. Further, since the result is outputted as the signal processing result, a spline curve having sufficiently small error relative to the original shape component contained in the measurement data can be obtained, thus conducting robust spline filter processing with excellent shape trackability.


First Embodiment

Next, the signal processing method for the curved surface data measured in the surface area will be explained as a first relating to the signal processing method of the present invention.


Herein, the so-called curved surface data signifies, for example, surface roughness data or form data etc. obtained by scanning the surface of the object to be measured by the coordinate measuring machine or the surface texture measuring machine.


And, this first embodiment relates to a method of filter-processing measurement data fi (xi, yi) of the surface at a sampling position (xi, yj), thereby to obtain a curved surface z=s (x, y) having the disturbance component or the high-frequency component removed.


A basic processing procedure of the first embodiment is similar to that of the first reference technology or the second reference technology; however its special feature lies in an formula of a bending energy of the spline and so on, which is caused by the fact that data to be applied is curved surface data.


A sum of squares of the weighted residual between the measurement data fi (xi, yi) of the surface at the sampling position (xi, yi) and the curved surface z=s (x, y) to be obtained after the filter process is expressed by the following formula with wi assumed to be a weight for the residual.
i=0n-1wi·{fi-si(xi,yi)}2(52)


Also, the bending energy in a case where the surface z=s (x, y) has been thought to be a thin plate is expressed by the following formula.
{(2sx2)2+(2sy2)2+2(2sxy)2}·xy(53)


Under the constraint condition that this bending energy formula (53) is minimized, obtaining s (x, y) for minimizing the sum-of-squares formula (52) of the weighted residual causes the weighted spline filter (robust spline filter) for the surface area to be defined. That is, it is expressed by the following formula with λ assumed to be a Lagrangian undetermined multiplier.
i=0n-1wi·{fi-s(xi,yi)}2+λ{(2sx2)2+(2sy2)2+2(2sxy)2}·xymins(xi,yk)(54)


As mentioned above, the weighted spline filter on the measurement data of the surface area has been defined. Thereupon, by solving the weighted spline filter repeatedly while updating the weight for the residual according to the Biweight method it is made possible to obtain the robust spline filter on the measurement data of the surface area. Additionally, the computation for updating the weight is carried out with the formula (38) to the formula (41) explained in the first reference technology. And, such processes are realized with the flowchart of FIG. 13 and the functional block diagram of FIG. 2.


As one example, a case will be explained of signal-processing the measurement data of the surface, which has been sampled in a lattice shape. The sampling intervals in the x direction and in the y direction are assumed to be Δx and Δy respectively, and the data numbers in the x direction and in the y direction are assumed to be nx and ny respectively. And, upon assuming height data at a sampling position (xk, yl) to be fk,I, an formula I (s) for defining the weighted spline filter is expressed by the following expression.
I(s)=l=0ny-1k=0nx-1wk,l·(fk,l-sk,l)2+λ{(2sx2)2+(2sy2)2+2(2sxy)2}·xy(55)


Herein, digitizing the second term yields the following formula.
I(s)=l=0ny-1k=0nx-1wk,l·(fk,l-sxk,l)2+λΔxΔyl=0ny-1k=0nx-1{(x2s)2+(y2s)2+2(xy2s)2}x2s(xk,yl)=sk+1,l-2sk,l+sk-1,lΔx2y2s(xk,yl)=sk,l+1-2sk,l+1+sk,l-1Δy2xy2s(xk,yl)=sk+1,l+1-sk,l+1-sk+1,l+sk,lΔxΔy(56)


Herein, boundary conditions are given by the following formulas (57).

x2s(x0,yl)=∇x2s(xnx−1,yl)=0 l=0,1, . . . , ny−1
y2s(xk,y0)=∇y2s(xk,yny−1)=0 k=0,1, . . . , nx−1
xy2s(x0,yl)=∇xy2s(xnx−1,yl)=0 l=0,1, . . . , ny−1
xy2s(xk,y0)=∇xy2s(xk,yny−1)=0 k=0,1, . . . , nx−1   (57)


Then, the following matrix expression is obtained.

(W+Q)S=WF   (58)


Herein, W is an n×n diagonal matrix with a weight wi assumed to be a diagonal element, Q is an n×n coefficient matrix, S is an n-dimensional filter output vector, and F is an n-dimensional filter input vector, where n=nx×ny.


In the above-mentioned formula (58), making a solution thereof for S with W set to W=I (unit matrix) allows the output of the spline filter relating to the surface area to be obtained. This is equivalent to ST 14 in FIG. 13.


Also, by making a solution repeatedly while updating the weight matrix it is made possible to obtain the output of the robust spline filter for the surface area. This is equivalent to ST 15, ST 16, ST 17, and ST 20 in FIG. 13.


In FIG. 7 to FIG. 11, results obtained by applying the robust spline filter on the measurement data of the surface area are shown.



FIG. 7 is a view illustrating measurement data obtained in the measurement, and FIG. 8 is a view illustrating a result obtained by applying the robust spline filter on the measurement data of FIG. 7. And, in FIG. 9, a result obtained by applying the Gaussian filter on the measurement data of FIG. 7 is shown as a comparative example.


Also, in FIG. 10, a sectional profile along the X direction of FIG. 7 is shown, and in FIG. 11, a sectional profile along the Y direction of FIG. 7 is shown.


As shown in the profiles of FIG. 10 or FIG. 11, it is seen that the signal process by the robust spline filter allows an excellent result of having exhibited trackability for the measurement data to be obtained.


Herein, the specific solving method for the curved surface data, which has been sampled in a lattice shape, has been shown; however the curved surface data such that a triangular mesh structure is formed can be also solved by employing a finite element method etc.


Next, a filter characteristic of the robust spline filter (spline filter) on the measurement data of the surface area will be explained briefly.


Expressing a transfer function in a stationary state in terms of a z transformation with the weight W set to W=1 yields the following.
H(zx,zy)=sk,lzk,l=11+λxHx+λyHy+λxyHxywhereHx(zx)=zx2-4zx+6-4zx-1+zx-2Hy(zy)=zy2-4zy+6-4zy-1+zy-2Hxy(zx,zy)=zxzy+zxzy-1+zx-1zy+zx-1zy-1-2zx-2zy+4-2zx-1-2zy-1(59)


Herein, upon assuming frequencies in the x direction and in the y direction to be ωx , and ωy respectively, zx and zy are expressed as follows respectively.

zx=ex·Δx   (60)
zy=ey·Δy   (60)


Accordingly, the formula (59) is expressed as follows.
H(ωx,ωy)=11+λx16sin4(ωx·Δx2)+λy16sin4(ωy·Δy2)+λxy16sin2(ωx·Δx2)sin2(ωy·Δy2)additionallyHx(ωx)=16sin4(ωx·Δx2)Hy(ωy)=16sin4(ωy·Δy2)Hxy(ωx,ωy)=16sin2(ωx·Δx2)sin2(ωy·Δy2)(61)


Herein, in the cut-off frequency ωc, so as to obtain a 50% attenuation characteristic, the transfer function is put as follows.
H(ωc,0)=H(0,ωc)=H(ωc2,ωc2)=12(62)


Then, it follows that the followings are obtained, whereby it can be understood that this filter is a phase compensating filter without a delay.
λx=116sin4(ωc·Δx2)λy=116sin4(ωc·Δy2)λxy=1-16λxsin4(ωc·Δx22)-16λysin4(ωc·Δy22)16sin2(ωc·Δx22)sin2(ωc·Δy22)(63)


Herein, it is assumed that the sampling intervals in the x direction and in the y direction are equal, a product of the frequency ω and the sampling interval is sufficiently small within an all-frequency range where the input data exists, and the following approximation formula holds.

sin(ω·Δt)≈ω·Δt
herein
Δx=Δy=Δt   (64)


Then, the following formula holds, whereby it can be seen that assuming a sufficiently small sampling interval allows the above filter to become a filter having an isotropic transfer function practically.
H(ωx,ωy)ωc4ωc4+(ωx2+ωy2)2(65)


In FIG. 12, the transfer characteristic at the time that Δx=Δy=Δz has been put is shown.


As mentioned above, the preferred embodiment of the present invention has been provided for explanation; however the present invention is not restricted to this embodiment described above, and various modifications may be done without departing from the sprit of the present invention.


The present invention, which is not restricted to each of these embodiments, can be carried out for, for example, all of three-dimensional roughness data, measurement data by the contour measuring machine, data measured in the roundness measuring machine, form data measured in the coordinate measuring machine, data measured in the image measuring machine, etc.


Also, irrespective of types of sensors to be employed, i.e. a contact type sensor or non-contact type sensor to be employed for collecting the measurement data, and further, without being limited to the measurement data being a surface texture data of the object to be measured, the present invention can be carried out for electric signal data etc. as well, which occurs in a time-series manner.


Further, in this embodiment, only the case where the measurement data has been once filed in the memory device has been explained; however the present invention can be carried out also in a case of performing the computing process whenever the measurement data is collected, namely, in what is called a real time basis.


Further, a signal processing program for a computer, which executes the signal processing method of the present invention, may be employed, and this signal processing program can be filed in a form, which is executable by various computers, by employing a portable-type storage medium such as a CD-ROM. Also, this signal processing program may be of compile format to be translated into a machine language, or may be of interpreter format to be translated into an intermediate language.


Also, causing the computer to execute the signal processing program enables the signal processing unit to be configured. That is, by causing the computer to execute the measurement data inputting step, the selecting step, the initializing step, the weight adjusting step, the spline filter output calculating step, the convergence determining step, and the outputting step respectively, the measurement data inputting device, the selector, the initializing device, the weight adjusting device, the spline filter output calculator, the converge judging unit, and the outputting device are configured respectively, thereby allowing the signal processing unit to be configured.


The priority application Number JP2004-010918 upon which this patent application is based is hereby incorporated by reference.

Claims
  • 1. A signal processing method for filtering a measurement data obtained by measuring a surface area, comprising the steps of: inputting the measurement data; selecting a predetermined weighted-spline filter formula; applying a weight on the measurement data by a unit matrix, so as to obtain an initial value of a spline filter output; adjusting step for adjusting and determining a weight on the measurement data; calculating step for calculating a spline filter output using the determined weight; determining convergence of the weight; and outputting a signal processing result based on the spline filter output, wherein, when it is not judged that the weight is converging, updating the weight and repeating the steps of adjusting the weight and calculating the spline filter output, and wherein a smoothing spline curved surface corresponding to the measurement data is generated so as to conduct a robust spline filtering on the measurement data.
  • 2. The signal processing method according to claim 1, wherein the determined weight is adjusted to a smaller value as a deviation of the measurement data from the generated spline curve by the weighted-spline filter formula increases.
  • 3. The signal processing method according to claim 1, wherein, the weight is converging when an amount of weight-change in the weight adjusting step becomes a predetermined value or less.
  • 4. The signal processing method according to claim 1, wherein the output step comprises the further steps of: updating the weight to 1 when the weight of the measurement data exceeds a predetermined value; re-calculating the spline filter output based upon the updated weight; and outputting the re-calculated spline filter output as a signal processing result.
  • 5. The signal processing method according to claim 1, wherein the step of inputting measurement data includes deleting a locally isolated singular point data relative to the measurement data.
  • 6. A signal processing program executing a signal processing method for filtering a measurement data obtained by measuring a surface area with a computer, the method comprising the steps of: inputting the measurement data; selecting a predetermined weighted-spline filter formula; applying a weight on the measurement data by a unit matrix, so as to obtain an initial value of a spline filter output; adjusting and determining the weight on the measurement data; calculating the spline filter output using the determined weight; determining convergence of the weight; and outputting a signal processing result based on the spline filter output, wherein, when it is not judged that the weight is converging, updating the weight and repeating the steps of adjusting the weight and calculating the spline filter output, and wherein a smoothing spline curved surface corresponding to the measurement data is generated so as to conduct a robust spline filtering on the measurement data.
  • 7. A recording medium storing a signal processing program therein, wherein the program executes a signal processing method for filtering a measurement data obtained by measuring a surface area with a computer, the method comprising the steps of: inputting the measurement data; selecting a predetermined weighted-spline filter formula; applying a weight on the measurement data by a unit matrix so as to obtain an initial value of a spline filter output; adjusting and determining the weight on the measurement data; calculating the spline filter output using the determined weight; determining convergence of the weight; and outputting a signal processing result based on the spline filter output, wherein, when it is not judged that the weight is converging, updating the weight and repeating the steps of adjusting the weight and calculating the spline filter output, and wherein a smoothing spline curved surface corresponding to the measurement data is generated so as to conduct a robust spline filtering on the measurement data.
  • 8. A signal processing unit executing a signal processing program with a computer, wherein the program executes a signal processing method for filtering a measurement data obtained by measuring a surface area with a computer, the method comprising the steps of: inputting the measurement data; selecting a predetermined weighted-spline filter formula; applying a weight on the measurement data by a unit matrix so as to obtain an initial value of a spline filter output; adjusting and determining the weight on the measurement data; calculating the spline filter output using the determined weight; determining convergence of the weight; and outputting a signal processing result based on the spline filter output, wherein, when it is not judged that the weight is converging, updating the weight and repeating the steps of adjusting the weight and calculating the spline filter output, and wherein a smoothing spline curved surface corresponding to the measurement data is generated so as to conduct a robust spline filtering on the measurement data.
Priority Claims (1)
Number Date Country Kind
2004-010918 Jan 2004 JP national