Image processing apparatus suitable for measuring depth of given point with respect to reference point using two stereoscopic images
First Claim
1. An image processing apparatus comprising:
- first frame memory means for storing a first image as a two-dimensional gray-level image obtained when a three-dimensional object to be measured is viewed from a predetermined direction, a position of each pixel of said first image being expressed by coordinates defined by a first direction and a second direction perpendicular to the first direction;
second frame memory means for storing a second image as a two-dimensional gray-level image obtained when said three-dimensional object to be measured is viewed from a direction different from said predetermined direction, a position of each pixel of said second image being expressed by coordinates defined along said first and second directions, and a deviation between said first and second images being generated in one direction of said first and second directions;
shifted image generating means for shifting, by a value, said second image within a predetermined range in said one direction to obtain a shifted image;
third image generating means for calculating the absolute values representing differences between image data of pixels located at identical coordinate positions in said shifted and first images, thereby obtaining a third image, the absolute values being image data representing gray levels of pixels located in said third image at coordinate positions which correspond to the pixel positions of said first and shifted images;
average value filtering means for performing average value filtering for each pixel of said third image so as to obtain a fourth image;
holding means for holding a fifth image having the same size as said fourth image, each pixel of said fifth image having a maximum gray level in an initial state;
sixth image generating means for selecting image data representing a smaller gray level from image data of pixels at identical coordinate positions of said fourth and fifth images, thereby obtaining a sixth image, the selected image data being image data representing gray levels of pixels in said sixth image located at coordinate positions which correspond to the pixel position of said fourth and fifth images;
seventh image generating means for calculating absolute values of differences between image data of pixels at identical coordinate positions in said sixth and fifth images, and processing the absolute value, thereby obtaining a seventh image, the absolute values being image data representing gray levels of pixels in said seventh image located at coordinate positions which correspond the pixel positions in said fifth and sixth images;
means for holding an eighth image having the same size as that of said seventh image;
ninth image generating means for detecting a gray level of each pixel of said seventh image, and obtaining a ninth image, when the detected gray level is 0, from the image data of pixel located at the corresponding coordinate position in the eighth image, which is used as image data representing a gray level of pixel located at the corresponding coordinate position in the ninth image, and, when the detected gray level is other than 0, from image data representing a gray level corresponding to said value dx, which is used as image data representing a gray level of pixel located at the corresponding coordinate position in said ninth image; and
updating means for, after said ninth image has been obtained, setting said sixth image as said fifth image and said ninth image as said eighth image, updating the value dx, for repetitively obtaining said ninth image, and determining the finally obtained ninth image as a parallax image representing, by gray levels, a deviation of corresponding pixels in said first and second images by gray levels.
1 Assignment
0 Petitions
Accused Products
Abstract
First and second images as stereoscopic images of an object are obtained. The second image is shifted by a value dx. Absolute values of differences between image data of the shifted image and the first image are calculated, thus obtaining a third image. The third image is subjected to average value filtering to obtain a fourth image. A fifth image which has the same size as that of the fourth image and has a maximum gray level in an initial state is prepared. Image data having a smaller value is selected from image data of the fourth and fifth images to obtain a sixth image. Absolute values of differences between image data of the sixth and fifth images are calculated, thus obtaining a seventh image having the calculated absolute values as image data. A ninth image which has the same size as that of the seventh image. When the gray level of the pixel of the sevength image is 0, an eighth image is obtained to have the image data of the ninth image. When the gray level of the pixel of the seventh image is other than 0, the eighth image is obtained to have image data representing a gray level corresponding the value dx as the image data. After the eighth image is obtained, the sixth image is set as the fifth image, the eighth image is set as the ninth image and value dx is updated, and the eighth image is repetitively obtained. The finally obtained eighth image is determined as a parallax image representing a deviation of positions of corresponding pixels on the first and second images by gray levels. Based on the parallax image, a to an arbitrary point with respect to a reference point is determined.
16 Citations
11 Claims
-
1. An image processing apparatus comprising:
-
first frame memory means for storing a first image as a two-dimensional gray-level image obtained when a three-dimensional object to be measured is viewed from a predetermined direction, a position of each pixel of said first image being expressed by coordinates defined by a first direction and a second direction perpendicular to the first direction; second frame memory means for storing a second image as a two-dimensional gray-level image obtained when said three-dimensional object to be measured is viewed from a direction different from said predetermined direction, a position of each pixel of said second image being expressed by coordinates defined along said first and second directions, and a deviation between said first and second images being generated in one direction of said first and second directions; shifted image generating means for shifting, by a value, said second image within a predetermined range in said one direction to obtain a shifted image; third image generating means for calculating the absolute values representing differences between image data of pixels located at identical coordinate positions in said shifted and first images, thereby obtaining a third image, the absolute values being image data representing gray levels of pixels located in said third image at coordinate positions which correspond to the pixel positions of said first and shifted images; average value filtering means for performing average value filtering for each pixel of said third image so as to obtain a fourth image; holding means for holding a fifth image having the same size as said fourth image, each pixel of said fifth image having a maximum gray level in an initial state; sixth image generating means for selecting image data representing a smaller gray level from image data of pixels at identical coordinate positions of said fourth and fifth images, thereby obtaining a sixth image, the selected image data being image data representing gray levels of pixels in said sixth image located at coordinate positions which correspond to the pixel position of said fourth and fifth images; seventh image generating means for calculating absolute values of differences between image data of pixels at identical coordinate positions in said sixth and fifth images, and processing the absolute value, thereby obtaining a seventh image, the absolute values being image data representing gray levels of pixels in said seventh image located at coordinate positions which correspond the pixel positions in said fifth and sixth images; means for holding an eighth image having the same size as that of said seventh image; ninth image generating means for detecting a gray level of each pixel of said seventh image, and obtaining a ninth image, when the detected gray level is 0, from the image data of pixel located at the corresponding coordinate position in the eighth image, which is used as image data representing a gray level of pixel located at the corresponding coordinate position in the ninth image, and, when the detected gray level is other than 0, from image data representing a gray level corresponding to said value dx, which is used as image data representing a gray level of pixel located at the corresponding coordinate position in said ninth image; and updating means for, after said ninth image has been obtained, setting said sixth image as said fifth image and said ninth image as said eighth image, updating the value dx, for repetitively obtaining said ninth image, and determining the finally obtained ninth image as a parallax image representing, by gray levels, a deviation of corresponding pixels in said first and second images by gray levels. - View Dependent Claims (2, 3, 4)
-
-
5. An image processing apparatus comprising:
- first frame memory means for storing a first image as a two-dimensional gray-level image obtained when a three-dimensional object to be measured is viewed from a predetermined direction, a position of each pixel of said first image being expressed by coordinates defined by a first direction and a second direction perpendicular to the first direction;
second frame memory means for storing a second image as a two-dimensional gray-level image obtained when said three-dimensional object to be measured is viewed from a different direction from said predetermined direction, a position of each pixel of said second image being expressed by coordinates defined along said first and second directions, and a deviation between said first and second images being generated in only one direction of said first and second directions; means for shifting, by a value dx, said second image within a predetermined range in said one direction so as to obtain shifted image; third image generating means for calculating similarities of image within predetermined area around the pixels located at identical coordinate positions in said shifted and first images and obtaining a third image represented by data indicating the similarities used as image data of pixels located at the corresponding coordinate positions of said third image; means for holding a fourth image, said fourth image having substantially the same size as that of said third image, and represented by image data exhibiting minimum similarities in an initial state; fifth image generating means for comparing image data of pixels located at identical coordinate positions in said third and fourth images, for, when the similarity indicated by the image data of said third image is larger than that of said fourth image, obtaining a fifth image being represented by the image data in said third image as image data of pixels at the corresponding coordinate positions of said fifth image, and when the similarity indicated by the image data of said third image is smaller than that of said fourth image, obtaining said fifth image represented by the image data in said fourth image as image data of pixels at the corresponding coordinate positions of said fifth image; means for holding a sixth image having substantially the same size as that of said fifth image; seventh image generating means for obtaining a seventh image represented by data indicating a gray level corresponding to a present value dx as image data of said seventh image of pixels at identical coordinate positions to the pixels for which said seventh image generating means determines that the similarity represented by the image data of said third image is larger than that of said fourth image data, and for obtaining said seventh image having the image data of said sixth image as image data of pixels at the corresponding coordinate positions of said seventh image for pixels at the identical coordinate positions to the pixels for which said seventh image generating means determines that the similarity represented by the image data of said third image is smaller than that of said fourth image data; and means for, after said seventh image is obtained, setting said fifth image as said fourth image and said seventh image as said sixth image and updating the value dx, for repetitively obtaining said seventh image, and for determining the finally obtained seventh image as a parallax image representing a deviation of corresponding pixels on said first and second images by gray levels. - View Dependent Claims (6, 7)
- first frame memory means for storing a first image as a two-dimensional gray-level image obtained when a three-dimensional object to be measured is viewed from a predetermined direction, a position of each pixel of said first image being expressed by coordinates defined by a first direction and a second direction perpendicular to the first direction;
-
8. An image processing method comprising:
-
obtaining a first image as a two-dimensional gray-level image when a three-dimensional object to be measured is viewed from a predetermined direction, a position of each pixel of said first image being expressed by coordinates defined by a first direction and a second direction perpendicular to the first direction; obtaining a second image as a two-dimensional gray-level image obtained when said three-dimensional object to be measured is viewed from a direction different from said predetermined direction, a position of each pixel of said second image being expressed by coordinates defined by said first and second directions, and a deviation between said first and second images being generated in one of said first and second directions; shifting said second image by a value in said one direction within a predetermined range to obtain an image and calculating absolute values of differences between image data of pixels at identical coordinate positions of said shifted and first images so as to obtain a third image which is represented by the absolute values as the image data of pixels at the corresponding coordinate positions of said third image; performing average value filtering processing for each pixel of said third image to obtain a fourth image; preparing a fifth image which has the same size as that of said fourth image and each pixel of which has a maximum gray level in an initial state; selecting image data having a smaller value from image data of pixels at identical positions of said fourth and fifth images, and obtaining a sixth image represented by the selected image data as image data of pixels at the corresponding coordinate positions of said sixth image; calculating absolute values of differences between image data of pixels at identical coordinate positions of said sixth and fifth images, and obtaining a seventh image represented by the absolute values as image data of pixels at the corresponding coordinate positions of said seventh image; preparing an eighth image having the same size as that of said seventh image; detecting a gray level of each pixel of said seventh image, and when the detected gray level is 0, obtaining a ninth image having the image data of pixels located at the corresponding coordinate positions in said eighth image as image data of pixels at the corresponding coordinate positions of said eighth image, and when the detected gray level is other than 0, obtaining said ninth image having data representing a gray level corresponding to the value dx as image data of pixels at the corresponding coordinate positions of said eighth image; and after said ninth image is obtained, setting said sixth image as said fifth image and said ninth image as said eighth image and updating the value dx, repetitively obtaining said ninth image, and determining the finally obtained ninth image as a parallax image representing a deviation of corresponding pixels on said first and second images by gray levels. - View Dependent Claims (9, 10, 11)
-
Specification