Image processing apparatus and method
AssigneeKabushiki Kaisha Toshiba
InventorsMasashi Nishiyama, Osamu Yamaguchi
Life of this patent
Estimating the term…
Abstract
An object recognition apparatus in an embodiment includes an image input unit, an object detection unit, a diffuse reflection image generation unit, an object model storage unit, a difference image generation unit, a weight calculation unit, a weighted Gaussian filter application unit, a filter processing unit, and an identification unit. A weight to be assigned to a weighted Gaussian filter is determined in view of variations in lighting conditions and reflection components of pixels of an input image.
Claims10
An image processing apparatus comprising:
- a diffuse reflection image generation unit configured to generate a diffuse reflection image by using a base image having a diffuse reflection component as a main component, the diffuse reflection image approximating an input image;
- a difference image generation unit configured to generate a difference image between the diffuse reflection image and the input image;
- a reflection component judgment unit configured to judge whether each pixel on the input image is of a specular reflection area or not, by using a pixel value of a corresponding pixel on the difference image;
- a pixel value replacement unit configured to modify or replace the pixel value of the each pixel judged to be of the specular reflection area, by using a pixel value of a corresponding pixel on the diffuse reflection image, thereby obtaining a replaced input image;
- a difference image correction unit configured to correct the pixel value of the corresponding pixel on the difference image, which corresponds to the each pixel judged to be of the specular reflection area, thereby obtaining a corrected difference image;
- a weight calculation unit configured to calculate a weight of a weighted smoothing filter, and to compare a pixel value of a noted pixel with a pixel value of a pixel surrounding the noted pixel in the corrected difference image to assign to the surrounding pixel a weight that decreases with an increase of the difference value;
- a first filter unit configured to generate a smoothed image by applying the weighted smoothing filter to the replaced input image;
- and
- a second filter unit configured to obtain a feature image by dividing a pixel value of each pixel of the replaced input image by a pixel value of corresponding pixel of the smoothed image.
An image processing method comprising:
- generating a diffuse reflection image by using a base image having a diffuse reflection component as a main component, the diffuse reflection image approximating an input image;
- generating a difference image between the diffuse reflection image and the input image;
- judging whether each pixel on the input image is of a specular reflection area or not, by using a pixel value of a corresponding pixel on the difference image;
- modifying or replacing the pixel value of the each pixel judged to be of the specular reflection area, by using a pixel value of a corresponding pixel on the diffuse reflection image, thereby obtaining a replaced input image;
- correcting the pixel value of the corresponding pixel on the difference image, which corresponds to the each pixel judge to be of the specular reflection area, thereby obtaining a corrected difference image;
- calculating a weight of a weighted smoothing filter, the calculating including comparing a pixel value of a noted pixel to a pixel value of a pixel surrounding the noted pixel in the corrected difference image to assign to the surrounding pixel a weight that decreases with an increase of the difference value;
- generating a smoothed image by applying the weighted smoothing filter to the replaced input image;
- and
- obtaining a feature image by dividing a pixel value of each pixel on the replaced input image by a pixel value of the corresponding pixel on the smoothed image.
A program stored in a computer-readable medium for causing a computer to perform an image processing method, the program comprising instructions for causing the computer to perform steps of:
- generating a diffuse reflection image by using a base image having a diffuse reflection component as a main component, the diffuse reflection image approximating an input image;
- generating a difference image between the diffuse reflection image and the input image;
- judging whether each pixel on the input image is of a specular reflection area or not, by using a pixel value of a corresponding pixel on the difference image;
- modifying or replacing the pixel value of the each pixel judged to be of the specular reflection area, by using a pixel value of a corresponding on the diffuse reflection image, thereby obtaining a replaced input image;
- correcting the pixel value of the corresponding pixel on the difference image, which corresponds to the each pixel judge to be of the specular reflection area, thereby obtaining a corrected difference image;
- calculating a weight of a weighted smoothing filter, the calculating including comparing a pixel value of a noted pixel to a pixel value of a pixel surrounding the noted pixel in the corrected difference image to assign to the surrounding pixel a weight that decreases with an increase of the difference value;
- generating a smoothed image by applying the weighted smoothing filter to the replaced input image;
- and
- obtaining a feature image by dividing a pixel value of each pixel on the replaced input image by a pixel value of corresponding pixel on the smoothed image.
Dependencies are inferred from the claim text.