In yet another case, the respective coordinates of the discrete portion comprise barycentric coordinates of the discrete portion with respect to the vertices, and the coordinates of a focal point comprise barycentric coordinates of the focal point with respect to the vertices.
In yet another case, blending interpolation is biased toward colors closest to the focal point.
In yet another case, the modification of the blending behavior uses a cubic Bezier triangle.
In another aspect, there is provided a computer-implemented method for generating a color representation, the method comprising: receiving an input image; determining a set of input colors in the input image; generating a color representation having a base color at each of three vertices that define a triangular face, the triangular face having a color distribution determined by a set of parameters comprising the base color at each of the three vertices and a patchwork parameter; and using a trained neural network, determining a value for the set of parameters that minimize an error metric between the input colors and the colors in the color distribution.
In a particular case of the method, the set of parameters further comprising a focal point parameter and a wind parameter.
In another case, the color distribution comprises a histogram of bins in Red-Green-Blue (RGB) color space provided as input to the trained neural network.
In yet another case, the bin values are normalized.
In yet another case, input to the trained neural network comprises error metrics on pixel colors in the input image.