Patent Document ID: 9864901
Application ID: 14855297
Patent Status: 1

Claim One:
1. A computer-implemented method to determine a mask for an image, the method comprising: determining a spatial function for a detected feature depicted in the image, wherein the detected feature is a detected skin feature, wherein the spatial function indicates pixels of the image relative to a feature boundary estimated from the detected feature, wherein determining the spatial function includes determining a prior probability mask for the detected feature, wherein the prior probability mask is based on the feature boundary and indicates, for each of a first plurality of pixels of the image, an associated first probability that the pixel is a feature pixel; determining a respective color likelihood distribution for each region of a plurality of regions of the image based on one or more distributions of color values in each of the regions, wherein the regions include a feature region and a non-feature region; determining a confidence mask based on the spatial function and one or more of the color likelihood distributions, wherein the confidence mask indicates, for each of a second plurality of pixels of the image, an associated confidence that the pixel is a feature pixel, wherein the confidence mask is based on a posterior probability mask, wherein the posterior probability mask is based on the prior probability mask and the one or more color likelihood distributions, wherein the posterior probability mask indicates, for each of the second plurality of pixels of the image, an associated second probability that the pixel is a feature pixel, wherein determining the confidence mask is based on a posterior feature mask and a posterior non-feature mask, and includes: determining the posterior feature mask based on the color likelihood distribution for the feature region, wherein the posterior feature mask indicates, for each of a third plurality of pixels of the image, an associated third probability that the pixel is a feature pixel; and determining the posterior non-feature mask based on at least one of the one or more color likelihood distributions for the non-feature region, wherein the posterior non-feature mask indicates, for each of a fourth plurality of pixels of the image, an associated fourth probability that the pixel is not a feature pixel; and applying a modification to one or more pixels of the image using the confidence mask.