Skin map-aided skin smoothing of images using a bilateral filter
AssigneeIntel Corporation
InventorsLiu YANG, Weike CHEN, Lin XU
Life of this patent
Estimating the term…
Abstract
Skin smoothing is applied to images using a bilateral filter and aided by a skin map. In one example a method includes receiving an image having pixels at an original resolution. The image is buffered. The image is downscaled from the original resolution to a lower resolution. A bilateral filter is applied to pixels of the downscaled image. The filtered pixels of the downscaled image are blended with pixels of the image having the original resolution, and the blended image is produced.
Claims20
An apparatus comprising:
- memory;
- instructions in the apparatus;
- and
- processor circuitry to execute the instructions to:
- downscale a first image having a first resolution to obtain a second image having a second resolution;
- generate a skin map including weights for first pixels of the first image or second pixels of the second image, the weights indicative of a likelihood that the first pixels or the second pixels correspond to skin;
- compare the weights to a first threshold and a second threshold;
- utilize a first portion of the first pixels in response to a first portion of the weights associated with the first portion of the first pixels not satisfying the first threshold;
- replace a second portion of the first pixels with a first portion of the second pixels in response to a second portion of the weights associated with the second portion of the first pixels satisfying the second threshold;
- and
- blend a third portion of the first pixels with a second portion of the second pixels in response to a third portion of the weights associated with the third portion of the first pixels satisfying the first threshold and not satisfying the second threshold.
A method comprising:
- downscaling a first image having a first resolution to obtain a second image having a second resolution;
- accessing a skin map including weights for first pixels of the first image or second pixels of the second image, the weights indicative of a likelihood that the first pixels or the second pixels correspond to skin;
- comparing the weights to a first threshold and a second threshold;
- preserving a first portion of the first pixels in response to a first portion of the weights associated with the first portion of the first pixels not satisfying the first threshold;
- replacing a second portion of the first pixels with a first portion of the second pixels in response to a second portion of the weights associated with the second portion of the first pixels satisfying the second threshold;
- and
- blending a third portion of the first pixels with a second portion of the second pixels in response to a third portion of the weights associated with the third portion of the first pixels satisfying the first threshold and not satisfying the second threshold.
A storage device or disc comprising instructions which, when executed, cause one or more processors to:
- downscale a first image having a first resolution to obtain a second image having a second resolution;
- generate a skin map including weights for first pixels of the first image or second pixels of the second image, the weights indicative of a likelihood that the first pixels or the second pixels correspond to skin;
- compare the weights to a first threshold and a second threshold;
- utilize a first portion of the first pixels in response to a first portion of the weights associated with the first portion of the first pixels not satisfying the first threshold;
- replace a second portion of the first pixels with a first portion of the second pixels in response to a second portion of the weights associated with the second portion of the first pixels satisfying the second threshold;
- and
- blend a third portion of the first pixels with a second portion of the second pixels in response to a third portion of the weights associated with the third portion of the first pixels satisfying the first threshold and not satisfying the second threshold.
Dependencies are inferred from the claim text.