Method and apparatus for filtering an image
Objects are detected in an image using a spatially variant filter. The size of the filter is adjusted based on the portion of the image being processed by the filter. Portions of the image which are closer to an imaging device which captured the image are processed using a larger sized filter. Portions of the image which are further from the imaging device are processed using a smaller sized filter.
1. A method for detecting objects in an image comprising:
receiving an image;
processing the image using a filter to produce a filtered image, a size of the filter varying in dependence upon a position in the image of a portion of the image being processed; and
detecting objects in the filtered image,
wherein the filter is an infinite impulse response difference of Gaussians filter,
wherein the size of the filter varies in dependence upon a line number of the portion of the image being processed, and
wherein the size of the filter increases as the filter moves from a line number at a top position of the image to a line number at a bottom position of the image.
2. An apparatus comprising:
an input which receives an image;
a filter which filters the image, a size of the filter varying in dependence upon a position in the image of a portion of the image being processed; and
an output which outputs the filtered image,
wherein the filter is an infinite impulse response difference of Gaussians filter,
wherein the size of the filter varies in dependence upon a line number of the image being processed, and
wherein the size of the filter increases as the filter moves from a line number at a top position of the image to a line number at a bottom position of the image.
3. A method of detecting objects in an image comprising;
receiving an image;
receiving a distance range of distances to the image from an imaging device which captured the image;
setting a filter size range based on the distance range and objects to be detected in the image;
spatially filtering the image with a spatially variant filter which varies filter size based on a position in the image of a portion of the image being processed;
extracting features from the image using local maxima of the spatially filtered image; and
detecting objects in the image using the extracted features.