| CPC G06T 7/194 (2017.01) [G06V 10/44 (2022.01); G06V 10/56 (2022.01); G06V 10/761 (2022.01); G06V 10/762 (2022.01); G06T 2207/10024 (2013.01); G06T 2207/20101 (2013.01)] | 18 Claims |

|
1. A computer-implemented method comprising:
receiving an instruction to distinguish a foreground subject within an image from a background of the image based at least in part on a trimap of the image, the trimap comprising:
a categorization of one or more pixels of the image as foreground pixels;
a categorization of one or more pixels of the image as background pixels; and
a categorization of one or more pixels of the image as indeterminate pixels;
determining, for each of the indeterminate pixels, using a chromatic-spatial distance metric, a distance of the indeterminate pixel from one or more of the foreground pixels and a distance of the indeterminate pixel from one or more of the background pixels, the chromatic-spatial distance metric aggregating a color distance and a spatial distance and assigning a first weight to the color distance and a second weight to the spatial distance; and
recategorizing a subset of the indeterminate pixels as background pixels based at least in part on the subset of indeterminate pixels being closer to the one or more background pixels than to the one or more foreground pixels according to the chromatic-spatial distance metric.
|