A curve length measuring device which processes image data obtained by the photographing of an object to be measured to measure a length of an arbitrary curve on a surface of the object to be measured includes a photographing unit for photographing the object to be measured from two or more different viewpoints to obtain a plurality of image data, a measuring point setting unit for setting, on a photographed image, a measuring point sequence along a curve to be measured, a curved surface calculation unit for setting parabolic half-lines directed from a predetermined reference point at a photographing position of the object to be measured by the photographing unit toward each measuring point sequence set by the measuring point setting unit and interpolating a group of half-lines to obtain a curved surface, an intersection calculation unit for obtaining an intersection between the plurality of said curved surfaces obtained by the curved surface calculation unit, and an intersection length calculation unit for obtaining a length of an intersection obtained by the processing by the intersection calculation unit.
|
3. A curve length measuring method of processing image data obtained by photographing an object to be measured to measure a length of an arbitrary curve on a surface of the object to be measured, comprising the steps of:
photographing said object to be measured from two or more different viewpoints to obtain a plurality of image data; setting, on said image photographed, a measuring point sequence along a curve to be measured; setting parabolic half-lines directed from a predetermined reference point at a photographing position of said image of said object to be measured toward each said measuring point sequence; interpolating said group of half-lines to obtain a curved surface; obtaining an intersection of the obtained plurality of said curved surfaces; and obtaining a length of said intersection obtained, wherein when obtaining two kinds of image data of said object to be measured from different viewpoints, when a predetermined point of intersection is made by an intersection between a predetermined one of said half-lines extending from said reference point of said photographing means at the time of acquisition of the first image data and a predetermined partial curved surface, which is a part divided by said half-lines adjacent to each other among said curved surfaces obtained by the interpolation of said half-lines extending from said reference point of the photographing position at the time of acquisition of the second image data, said intersection obtaining step further comprises the steps of, as the processing of obtaining a point of intersection subsequent to the intersection point in question: determining whether, among said half-lines corresponding to said first image data, said half-line subsequent to said predetermined half-line intersects with said predetermined partial curved surface, when said half-line intersects with said predetermined partial curved surface, regarding the point of intersection in question as an intersection point, when said half-line fails to intersect with said predetermined partial curved surface, determining whether among said half-lines corresponding to said second image data and out of said half-lines forming said predetermined partial curved surface, said half-line whose order of said intersection determination and intersection point generation processing is lower intersects with a partial curved surface formed by said predetermined half-line and the subsequent one of said half-lines among said curved surfaces obtained by the interpolation of said half-lines extending from said reference point of the photographing position at the time of acquisition of said first image data, and when said half-line intersects with the partial curved surface, regarding the point of intersection in question as an intersection point.
5. A computer readable memory storing a control program for controlling a data processing device to process image data obtained by the photographing of an object to be measured and measure a length of an arbitrary curve on a surface of the object to be measured, said control program comprises the functions of:
photographing said object to be measured from two or more different viewpoints to obtain a plurality of image data; setting, on said image photographed, a measuring point sequence along a curve to be measured; setting parabolic half-lines directed from a predetermined reference point at a photographing position of said image of said object to be measured toward each said measuring point sequence; interpolating said group of half-lines to obtain a curved surface; obtaining an intersection of the obtained plurality of said curved surfaces; and obtaining a length of said intersection obtained, wherein when obtaining two kinds of image data of said object to be measured from different viewpoints, when a predetermined point of intersection is made by an intersection between a predetermined one of said half-lines extending from said reference point of said photographing means at the time of acquisition of the first image data and a predetermined partial curved surface, which is a part divided by said half-lines adjacent to each other among said curved surfaces obtained by the interpolation of said half-lines extending from said reference point of the photographing position at the time of acquisition of the second image data, said intersection obtaining function of said control program further comprises the functions of, as the processing of obtaining a point of intersection subsequent to the intersection point in question: determining whether, among said half-lines corresponding to said first image data, said half-line subsequent to said predetermined half-line intersects with said predetermined partial curved surface, when said half-line intersects with said predetermined partial curved surface, regarding the point of intersection in question as an intersection point, when said half-line fails to intersect with said predetermined partial curved surface, determining whether among said half-lines corresponding to said second image data and out of said half-lines forming said predetermined partial curved surface, said half-line whose order of said intersection determination and intersection point generation processing is lower intersects with a partial curved surface formed by said predetermined half-line and the subsequent one of said half-lines among said curved surfaces obtained by the interpolation of said half-lines extending from said reference point of the photographing position at the time of acquisition of said first image data, and when said half-line intersects with the partial curved surface, regarding the point of intersection in question as an intersection point.
4. A curve length measuring method of processing image data obtained by photographing an object to be measured to measure a length of an arbitrary curve on a surface of the object to be measured, comprising the steps of:
photographing said object to be measured from two or more different viewpoints to obtain a plurality of image data; setting, on said image photographed, a measuring point sequence along a curve to be measured; setting parabolic half-lines directed from a predetermined reference point at a photographing position of said image of said object to be measured toward each said measuring point sequence; interpolating said group of half-lines to obtain a curved surface; obtaining an intersection of the obtained plurality of said curved surfaces; and obtaining a length of said intersection obtained, wherein when obtaining two kinds of image data of said object to be measured from different viewpoints, when a predetermined point of intersection is made by an intersection between a predetermined one of said half-lines extending from said reference point of said photographing means at the time of acquisition of the first image data and a predetermined partial curved surface, which is a part divided by said half-lines adjacent to each other among said curved surfaces obtained by the interpolation of said half-lines extending from said reference point of the photographing position at the time of acquisition of the second image data, said intersection obtaining step further comprises the steps of, as the processing of obtaining a point of intersection subsequent to the intersection point in question: determining whether, among said half-lines corresponding to said first image data, said half-line subsequent to said predetermined half-line intersects with said predetermined partial curved surface, when said half-line intersects with said predetermined partial curved surface, regarding the point of intersection in question as an intersection point, when said half-line fails to intersect with said predetermined partial curved surface, determining whether among said half-lines corresponding to said second image data and out of said half-lines forming said predetermined partial curved surface, said half-line whose order of said intersection determination and intersection point generation processing is lower intersects with a partial curved surface formed by said predetermined half-line and the subsequent one of said half-lines among said curved surfaces obtained by the interpolation of said half-lines extending from said reference point of the photographing position at the time of acquisition of said first image data, when said half-line intersects with the partial curved surface, regarding the point of intersection in question as an intersection point, repeatedly executing each of the foregoing processing until reaching said half-line at the other edge of said curved surface, and linking an obtained sequence of intersection points to generate an intersection after reaching said half-line at the other edge of said curved surface.
1. A curve length measuring device for processing image data obtained by photographing an object to be measured to measure a length of an arbitrary curve on a surface of the object to be measured, comprising:
photographing means for photographing said object to be measured from two or more different viewpoints to obtain a plurality of image data; measuring point setting means for setting, on said image photographed by said photographing means, a measuring point sequence along a curve to be measured; curved surface calculating means for setting parabolic half-lines directed from a predetermined reference point at a photographing position of said object to be measured by said photographing means toward each said measuring point sequence set by said measuring point setting means and interpolating a group of half-lines to obtain a curved surface; intersection calculating means for obtaining an intersection of the plurality of said curved surfaces obtained by said curved surface calculating means; and intersection length calculating means for obtaining a length of said intersection obtained by the processing by said intersection calculating means, wherein when two kinds of image data of said object to be measured is obtained from different viewpoints by said photographing means, and when a predetermined point of intersection is made by an intersection between a predetermined one of said half-lines extending from said reference point of said photographing means at the time of acquisition of the first image data and a predetermined partial curved surface, which is a part divided by said half-lines adjacent to each other among said curved surfaces obtained by the interpolation of said half-lines extending from said reference point of said photographing device at the time of acquisition of the second image data, said intersection calculating means, as the processing of obtaining a point of intersection subsequent to the intersection point in question, determines whether, among said half-lines corresponding to said first image data, a half-line subsequent to said predetermined half-line intersects with said predetermined partial curved surface, when the half-line intersects with said predetermined partial curved surface, regards the point of intersection in question as an intersection point, when the half-line fails to intersect with said predetermined partial curved surface, determines whether among said half-lines corresponding to said second image data and out of said half-lines forming said predetermined partial curved surface, said half-line whose order of said intersection determination and intersection point generation processing is lower intersects with a partial curved surface formed by said predetermined half-line and the subsequent one of said half-lines among said curved surfaces obtained by the interpolation of said half-lines extending from said reference point of said photographing device at the time of acquisition of said first image data, and when said half-line intersects with the partial curved surface, regards the point of intersection in question as an intersection point.
6. A computer readable memory storing a control program for controlling a data processing device to process image data obtained by the photographing of an object to be measured and measure a length of an arbitrary curve on a surface of the object to be measured, said control program comprises the functions of:
photographing said object to be measured from two or more different viewpoints to obtain a plurality of image data; setting, on said image photographed, a measuring point sequence along a curve to be measured; setting parabolic half-lines directed from a predetermined reference point at a photographing position of said image of said object to be measured toward each said measuring point sequence; interpolating said group of half-lines to obtain a curved surface; obtaining an intersection of the obtained plurality of said curved surfaces; and obtaining a length of said intersection obtained, wherein when obtaining two kinds of image data of said object to be measured from different viewpoints, when a predetermined point of intersection is made by an intersection between a predetermined one of said half-lines extending from said reference point of said photographing means at the time of acquisition of the first image data and a predetermined partial curved surface, which is a part divided by said half-lines adjacent to each other among said curved surfaces obtained by the interpolation of said half-lines extending from said reference point of the photographing position at the time of acquisition of the second image data, said intersection obtaining function of said control program further comprises the functions of, as the processing of obtaining a point of intersection subsequent to the intersection point in question: determining whether, among said half-lines corresponding to said first image data, said half-line subsequent to said predetermined half-line intersects with said predetermined partial curved surface, when said half-line intersects with said predetermined partial curved surface, regarding the point of intersection in question as an intersection point, when said half-line fails to intersect with said predetermined partial curved surface, determining whether among said half-lines corresponding to said second image data and out of said half-lines forming said predetermined partial curved surface, said half-line whose order of said intersection determination and intersection point generation processing is lower intersects with a partial curved surface formed by said predetermined half-line and the subsequent one of said half-lines among said curved surfaces obtained by the interpolation of said half-lines extending from said reference point of the photographing position at the time of acquisition of said first image data, when said half-line intersects with the partial curved surface, regarding the point of intersection in question as an intersection point, repeatedly executing each of the foregoing processing until reaching said half-line at the other edge of said curved surface, and linking an obtained sequence of intersection points to generate an intersection after reaching said half-line at the other edge of said curved surface.
2. A curve length measuring device for processing image data obtained by photographing an object to be measured to measure a length of an arbitrary curve on a surface of the object to be measured, comprising:
photographing means for photographing said object to be measured from two or more different viewpoints to obtain a plurality of image data; measuring point setting means for setting, on said image photographed by said photographing means, a measuring point sequence along a curve to be measured; curved surface calculating means for setting parabolic half-lines directed from a predetermined reference point at a photographing position of said object to be measured by said photographing means toward each said measuring point sequence set by said measuring point setting means and interpolating a group of half-lines to obtain a curved surface; intersection calculating means for obtaining an intersection of the plurality of said curved surfaces obtained by said curved surface calculating means; and intersection length calculating means for obtaining a length of said intersection obtained by the processing by said intersection calculating means, wherein when two kinds of image data of said object to be measured is obtained from different viewpoints by said photographing means, and when a predetermined point of intersection is made by an intersection between a predetermined one of said half-lines extending from said reference point of said photographing means at the time of acquisition of the first image data and a predetermined partial curved surface, which is a part divided by said half-lines adjacent to each other among said curved surfaces obtained by the interpolation of said half-lines extending from said reference point of said photographing device at the time of acquisition of the second image data, said intersection calculating means, as the processing of obtaining a point of intersection subsequent to the intersection point in question, determines whether, among said half-lines corresponding to said first image data, a half-line subsequent to said predetermined half-line intersects with said predetermined partial curved surface, when the half-line intersects with said predetermined partial curved surface, regards the point of intersection in question as an intersection point, when the half-line fails to intersect with said predetermined partial curved surface, determines whether among said half-lines corresponding to said second image data and out of said half-lines forming said predetermined partial curved surface, said half-line whose order of said intersection determination and intersection point generation processing is lower intersects with a partial curved surface formed by said predetermined half-line and the subsequent one of said half-lines among said curved surfaces obtained by the interpolation of said half-lines extending from said reference point of said photographing device at the time of acquisition of said first image data, when said half-line intersects with the partial curved surface, regards the point of intersection in question as an intersection point, repeatedly executes each of the foregoing processing until reaching said half-line at the other edge of said curved surface, and links an obtained sequence of intersection points to generate an intersection after reaching said half-line at the other edge of said curved surface.
|
1. Field of the Invention
The present invention relates to a curve length measuring device which processes image data obtained by the photographing of an object to be measured to measure a length of an arbitrary curve on a surface of the object to be measured and a measuring method therefor, and a storage medium which stores a control program for measuring a length of such a curve by means of an electronic computer.
2. Description of the Related Art
Among conventional art of this kind for measuring a length of a curve on a surface of an object to be measured are, for example, a technique disclosed in Japanese Patent Laying-Open (Kokai) No. Showa 56-127268, entitled "Image Processing Device", and that disclosed in Japanese Patent Laying-Open (Kokai) No. Heisei 4-328406, entitled "Image Measuring Device". The techniques recited in Japanese Patent Laying-Open (Kokai) No. Showa 56-127268 and No. Heisei 4-328406 both trace a curve set in an image to measure and output a length of the curve.
Of the above-described conventional art, the device disclosed in Japanese Patent Laying-Open (Kokai) No. Heisei 4-328406 includes, as illustrated in
As described in the foregoing, operability can be improved because rearrangement of input coordinates by the sort unit 95 enables points on a curve to be input in an arbitrary order. A further characteristic is that since the sort unit 95 rearranges coordinates by simple processing, a curve length can be calculated in a short time.
As described above, the conventional curve length measuring techniques recited in the above literature are for processing image data of an object to be measured to calculate a length of a desired curve and both techniques use single image data of an object to be measured as an object to be processed. Therefore, a length of a curve to be measured varies depending on a positional relationship between an object to be measured and a photographing device (camera) at the time of the photographing of the object to be measured. For example, even with the same curve on a surface of an object to be measured, an apparent length of the curve is shorter by the photographing far from the object than by the photographing close to the object. An apparent length of a curve also depends on a direction of the object to be measured against the photographing device at the time of the photographing of the object to be measured. As a result, the obtained curve length does not always reflect a length of a corresponding curve of an actual object to be measured.
As described in the foregoing, conventional curve length measuring techniques have a drawback that a length of a curve on an image varies depending on a positional relationship between an object to be measured and a photographing device because a curve length is calculated with single image data of the object to be measured as an object to be processed. The drawback of the conventional techniques is conspicuous when calculation is made of a length of a complicated curve on a surface of an object to be measured which has a three-dimensional shape.
An object of the present invention is to provide a curve length measuring device capable of accurately measuring a length of a desired curve on a surface of an object to be measured independently of a positional relationship between the object to be measured and a photographing device such as a distance between the object to be measured and the photographing device and a direction of the object to be measured against the photographing device and a measuring method therefor, and a storage medium which stores a control program for measuring a length of a curve.
According to the first aspect of the invention, a curve length measuring device which processes image data obtained by the photographing of an object to be measured to measure a length of an arbitrary curve on a surface of the object to be measured, comprises
photographing means for photographing the object to be measured from two or more different viewpoints to obtain a plurality of image data,
measuring point setting means for setting, on the image photographed by the photographing means, a measuring point sequence along a curve to be measured,
curved surface calculating means for setting parabolic half-lines directed from a predetermined reference point at a photographing position of the object to be measured by the photographing means toward each the measuring point sequence set by the measuring point setting means and interpolating a group of half-lines to obtain a curved surface,
intersection calculating means for obtaining an intersection of the plurality of the curved surfaces obtained by the curved surface calculating means, and
intersection length calculating means for obtaining a length of the intersection obtained by the processing by the intersection calculating means.
In the preferred construction, the curve length measuring device further comprises intersection length displaying means for displaying a length of the intersection obtained by the processing by the intersection calculating means on a display device.
In another preferred construction, the intersection calculating means
determines an intersection and generates points of intersection between the half-line and the curved surface in order, starting with the half-line at one edge of the curved surface and ending with the half-line at the other edge.
In another preferred construction, in a case where two kinds of image data of the object to be measured is obtained from different viewpoints by the photographing means,
when a predetermined point of intersection is made by an intersection between a predetermined one of the half-lines extending from the reference point of the photographing means at the time of acquisition of first the image data and a predetermined partial curved surface which is a part divided by the half-lines adjacent to each other among the curved surfaces obtained by the interpolation of the half-lines extending from the reference point of the photographing device at the time of acquisition of second the image data, the intersection calculating means, as the processing of obtaining a point of intersection subsequent to the intersection point in question,
determines whether, among the half-lines corresponding to first the image data, a half-line subsequent to the predetermined half-line intersects with the predetermined partial curved surface,
when the half-line intersects with the predetermined partial curved surface, regards the point of intersection in question as an intersection point,
when the half-line fails to intersect with the predetermined partial curved surface, determines whether among the half-lines corresponding to second the image data and out of the half-lines forming the predetermined partial curved surface, the half-line whose order of the intersection determination and intersection point generation processing is lower intersects with a partial curved surface formed by the predetermined half-line and the subsequent one of the half-lines among the curved surfaces obtained by the interpolation of the half-lines extending from the reference point of the photographing device at the time of acquisition of first the image data, and
when the half-line intersects with the partial curved surface, regards the point of intersection in question as an intersection point.
In another preferred construction, in a case where two kinds of image data of the object to be measured is obtained from different viewpoints by the photographing means,
when a predetermined point of intersection is made by an intersection between a predetermined one of the half-lines extending from the reference point of the photographing means at the time of acquisition of first the image data and a predetermined partial curved surface which is a part divided by the half-lines adjacent to each other among the curved surfaces obtained by the interpolation of the half-lines extending from the reference point of the photographing device at the time of acquisition of second the image data, the intersection calculating means, as the processing of obtaining a point of intersection subsequent to the intersection point in question,
determines whether, among the half-lines corresponding to first the image data, a half-line subsequent to the predetermined half-line intersects with the predetermined partial curved surface,
when the half-line intersects with the predetermined partial curved surface, regards the point of intersection in question as an intersection point,
when the half-line fails to intersect with the predetermined partial curved surface, determines whether among the half-lines corresponding to second the image data and out of the half-lines forming the predetermined partial curved surface, the half-line whose order of the intersection determination and intersection point generation processing is lower intersects with a partial curved surface formed by the predetermined half-line and the subsequent one of the half-lines among the curved surfaces obtained by the interpolation of the half-lines extending from the reference point of the photographing device at the time of acquisition of first the image data,
when the half-line intersects with the partial curved surface, regards the point of intersection in question as an intersection point,
repeatedly executes each of the foregoing processing until reaching the half-line at the other edge of the curved surface, and
links an obtained sequence of intersection points to generate an intersection after reaching the half-line at the other edge of the curved surface.
According to the second aspect of the invention, a curve length measuring method of processing image data obtained by the photographing of an object to be measured to measure a length of an arbitrary curve on a surface of the object to be measured, comprising the steps of
photographing the object to be measured from two or more different viewpoints to obtain a plurality of image data,
setting, on the image photographed, a measuring point sequence along a curve to be measured,
setting parabolic half-lines directed from a predetermined reference point at a photographing position of the image of the object to be measured toward each the measuring point sequence,
interpolating the group of half-lines to obtain a curved surface,
obtaining an intersection of the obtained plurality of the curved surfaces, and
obtaining a length of the intersection obtained.
In the preferred construction, the intersection obtaining step further comprises the step of
determining an intersection and generating points of intersection between the half-line and the curved surface in order, starting with the half-line at one edge of the curved surface and ending with the half-line at the other edge.
In another preferred construction, in a case of obtaining two kinds of image data of the object to be measured from different viewpoints,
when a predetermined point of intersection is made by an intersection between a predetermined one of the half-lines extending from the reference point of the photographing means at the time of acquisition of first the image data and a predetermined partial curved surface which is a part divided by the half-lines adjacent to each other among the curved surfaces obtained by the interpolation of the half-lines extending from the reference point of the photographing position at the time of acquisition of second the image data, the intersection obtaining step further comprises the steps of, as the processing of obtaining a point of intersection subsequent to the intersection point in question:
determining whether, among the half-lines corresponding to first the image data, the half-line subsequent to the predetermined half-line intersects with the predetermined partial curved surface,
when the half-line intersects with the predetermined partial curved surface, regarding the point of intersection in question as an intersection point,
when the half-line fails to intersect with the predetermined partial curved surface, determining whether among the half-lines corresponding to second the image data and out of the half-lines forming the predetermined partial curved surface, the half-line whose order of the intersection determination and intersection point generation processing is lower intersects with a partial curved surface formed by the predetermined half-line and the subsequent one of the half-lines among the curved surfaces obtained by the interpolation of the half-lines extending from the reference point of the photographing position at the time of acquisition of first the image data, and
when the half-line intersects with the partial curved surface, regarding the point of intersection in question as an intersection point.
In another preferred construction, in a case of obtaining two kinds of image data of the object to be measured from different viewpoints,
when a predetermined point of intersection is made by an intersection between a predetermined one of the half-lines extending from the reference point of the photographing means at the time of acquisition of first the image data and a predetermined partial curved surface which is a part divided by the half-lines adjacent to each other among the curved surfaces obtained by the interpolation of the half-lines extending from the reference point of the photographing position at the time of acquisition of second the image data, the intersection obtaining step further comprises the steps of, as the processing of obtaining a point of intersection subsequent to the intersection point in question:
determining whether, among the half-lines corresponding to first the image data, the half-line subsequent to the predetermined half-line intersects with the predetermined partial curved surface,
when the half-line intersects with the predetermined partial curved surface, regarding the point of intersection in question as an intersection point,
when the half-line fails to intersect with the predetermined partial curved surface, determining whether among the half-lines corresponding to second the image data and out of the half-lines forming the predetermined partial curved surface, the half-line whose order of the intersection determination and intersection point generation processing is lower intersects with a partial curved surface formed by the predetermined half-line and the subsequent one of the half-lines among the curved surfaces obtained by the interpolation of the half-lines extending from the reference point of the photographing position at the time of acquisition of first the image data,
when the half-line intersects with the partial curved surface, regarding the point of intersection in question as an intersection point,
repeatedly executing each of the foregoing processing until reaching the half-line at the other edge of the curved surface, and
linking an obtained sequence of intersection points to generate an intersection after reaching the half-line at the other edge of the curved surface.
According to another aspect of the invention, a computer readable memory storing a control program for controlling a data processing device to process image data obtained by the photographing of an object to be measured and measure a length of an arbitrary curve on a surface of the object to be measured, the control program comprises the steps of
photographing the object to be measured from two or more different viewpoints to obtain a plurality of image data,
setting, on the image photographed, a measuring point sequence along a curve to be measured,
setting parabolic half-lines directed from a predetermined reference point at a photographing position of the image of the object to be measured toward each the measuring point sequence,
interpolating the group of half-lines to obtain a curved surface,
obtaining an intersection of the obtained plurality of the curved surfaces, and
obtaining a length of the intersection obtained.
Other objects, features and advantages of the present invention will become clear from the detailed description given herebelow.
The present invention will be understood more fully from the detailed description given herebelow and from the accompanying drawings of the preferred embodiment of the invention, which, however, should not be taken to be limitative to the invention, but are for explanation and understanding only.
In the drawings:
The preferred embodiment of the present invention will be discussed hereinafter in detail with reference to the accompanying drawings. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be obvious, however, to those skilled in the art that the present invention may be practiced without these specific details. In other instance, well-known structures are not shown in detail in order to unnecessary obscure the present invention.
Then, the measuring processing unit 10 includes a measuring point setting unit 12 for setting a measuring point on a curve to be measured on an image photographed by the photographing unit 11, a curved surface calculation unit 13 for obtaining a curved surface passing through a predetermined measuring point on an image and a predetermined point at a photographing position at which the photographing unit 11 obtains the image of the object 100 to be measured, an intersection calculation unit 14 for obtaining an intersection of curved surface obtained for each image data, and a curve length calculation unit 15 for obtaining a length of a curve which is an obtained intersection. In
In the above-described structure, the measuring point setting unit 12, the curved surface calculation unit 13, the intersection calculation unit 14 and the curve length calculation unit 15 are realized, for example, by program-controlled CPU and internal memory in a workstation, a personal computer or other data processing device. In this case, the computer program which controls the CPU is provided as storage in a storage medium 20 shown in FIG. 1 and is loaded into the internal memory to execute functions of the above-described function execution units. As the storage medium 20, a magnetic disk, an optical disk, a semiconductor memory or other common storage medium can be employed. The photographing unit 11 is realized by a camera for photographing an object 100 to be measured and an image data generation means for converting photographed image into digital data (hereinafter, referred to as image data) and outputting the data. Connecting a CCD (charge coupled device) to the camera enables image photographed by the camera to be directly obtained as image data.
In the respective components of the present embodiment, the photographing unit 11 photographs the object 100 to be measured from at least two directions. In this case, photographing may be conducted using two or more cameras or may be conducted twice or more with the object 100 to be measured rotating, or may be conducted twice or more with a camera moving. In the following, description will be made assuming that two cameras (camera A and camera B) are used to photograph the object 100 to be measured from two directions for the purpose of simplicity. An image photographed by the camera A will be referred to as an image A and digitized image data as image data A, while an image photographed by the camera B will be referred to as an image B and digitized image data as image data B. A relative positional relationship between the camera A and the camera B is obtained in advance.
The measuring point setting unit 12 sets measuring points a[0], a[1], a[2], . . . a[imax] (imax≧1) in order along a curve in the measuring target object 100 whose length is to be measured in the image A. Similarly, the unit 12 sets measuring points b[0], b[1], b[2], . . . b[jmax] (jmax≧1) in order along a curve in the measuring target object 100 whose length is to be measured in the image B. Shown in
The curved surface calculation unit 13 sets a parabolic half-line directed from the center of a camera lens of the photographing unit 11 toward each measuring point on an image and interpolates a group of these half-lines to obtain a curved surface. More specifically, with a half-line directed from the center of the lens of the camera A toward a point a[i] on the photographing plane of the camera A as p[i] and a half-line directed from the center of the lens of the camera B toward the point b[j] on the photographing plane of the camera B as q[j], the unit 13 generates a curved surface which interpolates a group of half-lines p[i] (1≦i≦imax). Similarly, the unit 13 generates a curved surface which interpolates a group of half-lines q[j] (1≦j≦jmax). Setting a density of measuring points to be high enough will result in that a curved surface obtained by the foregoing processing substantially contains a target curve whose length is to be measured (hereinafter referred to as a measuring target curve).
The intersection calculation unit 14 obtains an intersection between curved surfaces respectively obtained in the two images A and B. Three-dimensional structure of thus obtained intersection between the curved surfaces can be regarded as being substantially coincident with that of the measuring target curve. As a technique of obtaining an intersection between curved surfaces intersecting with each other, various methods can be employed which have been conventionally used in image processing of this kind.
The curve length calculation unit 15 obtains a length of the intersection between two curved surfaces obtained by the intersection calculation unit 14, that is, a length of the measuring target curve. In this case, since the three-dimensional structure of the intersection between curved surfaces in question is known, a precise length of the measuring target curve can be obtained which is independent of a positional relationship between the camera and the measuring target curve. As a curve length calculation technique, such common methods of obtaining a length of a curve on an image as described in the Related Art can be employed.
The curve length display unit 16 displays calculation results obtained by the curve length calculation unit 15 on a CRT monitor, a liquid crystal display or other display device.
Next, operation of the present embodiment will be described with reference to the flow chart of FIG. 3. With reference to
Next, set an appropriate number of measuring points on a measuring target curve whose length is to be measured in each obtained image by the measuring point setting unit 12 (Step 302). As described above, although the higher a density of measuring points is, that is, the larger the number of measuring points is, the higher the obtained measuring precision can be, the increase in the number of measuring points accordingly requires more calculation time. Therefore, an appropriate number of measuring points is determined in consideration of performance of the device (operation speed), an object of measurement, etc.
Next, set parabolic half-lines directed from the center of the camera lens of the photographing unit 11 toward each measuring point on the image (Step 303) and interpolate the half-lines to set a curved surface by the curved surface calculation unit 13 (Step 304). Then, obtain an intersection of the curved surfaces obtained with respect to each image by the intersection calculation unit 14 (Step 305). Next, obtain a length of the intersection of the curved surfaces in question by the curve length calculation unit 15 (Step 306). Lastly, display the obtained length of intersection on the display device (Step 307).
Although the above-described embodiment assumes that as a technique of obtaining an intersection of curved surfaces, various methods conventionally used in image processing of this kind can be employed and specifies no method, processing of obtaining an intersection of curved surfaces can be efficiently conducted by devising the relevant techniques. Next, operation of the intersection calculation means will be described in detail.
Here, assume that in a curved surface containing two half-lines p[i-1] and p[i], a region, in particular, sandwiched between p[i-1] and p[i] is a partial curved surface R[i] (1≦i≦imax-1) and similarly that in a curved surface containing straight lines q[j-1] and q[j], a region, in particular, sandwiched between q[j-1] and q[j] is a partial curved surface S[j] (1≦j≦jmax-1). The partial curved surfaces R[i] and S[j] may be plane surfaces and in that case, calculation of a point of intersection will be easy. In the following, a set of partial curved surfaces R[i] (1≦i≦imax-1) is referred to as a curved surface R and a set of partial curved surfaces S[j] (i≦j≦imax-1) is referred to as a curved surface S. In the present embodiment, the intersection calculation unit 14 obtains an intersection between the curved surface R and the curved surface S by the operation described below.
In the example shown in
Next, operation of the intersection calculation unit 14 will be described in detail with reference to the flow charts of
In the initial processing shown in
Next, the A-type intersection point processing shown in
Next, determine whether the intersection point generation processing reaches the edge of the curved surface set by the curved surface calculation unit 13, that is, whether i=imax or j=jmax is established (Step 603). Then, when the intersection point generation processing is yet to reach the edge of the curved surface (in a case where neither i=imax nor j=jmax), the routine returns to Step 601 to make determination of the next intersection point. On the other hand, when the intersection point generation processing reaches the edge of the curved surface (in a case where i=imax or j=jmax), record the obtained number of intersection points as kmax (Step 604) to complete the processing.
At Step 701 of the B-type intersection point processing which will be described later, when the half-line q[j+1] and the partial curved surface R[i] fail to intersect with each other, next determine whether the half-line p[i] and the partial curved surface S[j+1] intersect with each other (Step 605). When they intersect with each other, store coordinates of the intersection point in question at the intersection point x[k+1] (Step 602). On the other hand, when they fail to intersect with each other, proceed to the non-intersection processing. Processing at Step 602 and the following steps is as described above.
Next, B-type intersection point processing shown in
Next, determine whether the intersection point generation processing reaches the edge of the curved surface set by the curved surface calculation unit 13, that is, whether i=imax or j=jmax (Step 703). Then, when the intersection point generation processing is yet to reach the edge of the curved surface (in a case where neither i=imax nor j=jmax), the routine returns to Step 701 to make determination of the next intersection point. On the other hand, when the intersection point generation processing reaches the edge of the curved surface (in a case where i=imax or j=jmax), record the obtained number of intersection points as kmax (Step 704) to complete the processing.
In addition, at the above-described Step 601 of the A-type intersection point processing, when the half-line p[j+1] and the partial curved surface S[i] fail to intersect with each other, next determine whether the half-line q[i] and the partial curved surface R[j+1] intersect with each other (Step 705). When they intersect with each other, store coordinates of the intersection point in question at the intersection point x[k+1] (Step 702). On the other hand, when they fail to intersect with each other, proceed to the non-intersection processing. Processing at Step 702 and the following steps is as described above.
Next, non-intersection processing shown in
After the intersection calculation processing is completed by the intersection calculation unit 14 in a manner as described above, the intersection length calculation unit 15 calculates a length of an intersection point sequence x[k] (1≦k≦kmax).
where |x[k+1]-x[k]| represents a distance between x[k+1] and x[k].
As described in the foregoing, the curve length measuring device and the measuring method therefor, and the storage medium which stores a control program for measuring a length of a curve according to the present invention photograph an object to be measured from a plurality of viewpoints and estimate three-dimensional structure of the curve as a measuring target based on image information obtained from the respective viewpoints to obtain a length of the curve in question. Therefore, accurate curve length measurement can be attained independently of positional relationships between an object to be measured and a photographing device such as a distance between a measuring target and a photographing device which photographs the measuring target and a direction of the measuring target against the photographing device.
Another effect is reducing a time required for processing to improve processing efficiency by, in the processing of estimating three-dimensional structure of a curve as an object to be measured, suitably reducing the processing of calculating a coordinate value indicative of the three-dimensional structure of the curve based on positional relationships between a photographing device and an object to be measured.
Although the invention has been illustrated and described with respect to exemplary embodiment thereof, it should be understood by those skilled in the art that the foregoing and various other changes, omissions and additions may be made therein and thereto, without departing from the spirit and scope of the present invention. Therefore, the present invention should not be understood as limited to the specific embodiment set out above but to include all possible embodiments which can be embodies within a scope encompassed and equivalents thereof with respect to the feature set out in the appended claims.
Patent | Priority | Assignee | Title |
8036490, | Nov 24 2006 | General Electric Company | Method for measuring the dimensions of a vessel |
Patent | Priority | Assignee | Title |
5638462, | Dec 24 1993 | NEC PERSONAL COMPUTERS, LTD | Method and apparatus for recognizing graphic forms on the basis of elevation angle data associated with sequence of points constituting the graphic form |
5809170, | Feb 20 1995 | NEC PERSONAL COMPUTERS, LTD | Method for automatically recognizing line symmetry of a figure |
5867592, | Feb 23 1994 | PANASONIC ELECTRIC WORKS CO , LTD | Method of utilizing edge images of a circular surface for detecting the position, posture, and shape of a three-dimensional objective having the circular surface part |
5991702, | Nov 15 1996 | NEC PERSONAL COMPUTERS, LTD | Axisymmetric figure shaping device for generating curvilinear figure precisely axisymmetric with respect to axis of symmetry and method therefor |
6097840, | Mar 29 1996 | Fujitsu Limited | Profile extracting method and system |
JP2179401, | |||
JP4328406, | |||
JP5288513, | |||
JP56127268, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
May 10 1999 | MARUYA, MAKOTO | NEC Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 009986 | /0398 | |
May 17 1999 | NEC Corporation | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Nov 26 2002 | ASPN: Payor Number Assigned. |
Nov 18 2005 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Jan 18 2010 | REM: Maintenance Fee Reminder Mailed. |
Jun 11 2010 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Jun 11 2005 | 4 years fee payment window open |
Dec 11 2005 | 6 months grace period start (w surcharge) |
Jun 11 2006 | patent expiry (for year 4) |
Jun 11 2008 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jun 11 2009 | 8 years fee payment window open |
Dec 11 2009 | 6 months grace period start (w surcharge) |
Jun 11 2010 | patent expiry (for year 8) |
Jun 11 2012 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jun 11 2013 | 12 years fee payment window open |
Dec 11 2013 | 6 months grace period start (w surcharge) |
Jun 11 2014 | patent expiry (for year 12) |
Jun 11 2016 | 2 years to revive unintentionally abandoned end. (for year 12) |