At block 204, using a trained second neural network, the mapping module 122 fits (maps) one or more alpha masks to one or more color regions of the input image.
At block 205, the representation module 120 regenerates the image using a stacking of the one or more alpha masks.
At block 206, the mapping module 122 determines one or more input colors in each of the alpha masks.
At block 208, the representation module 120 generates a color sail for each of the alpha masks, using a trained first neural network, by having the mapping module 122 determine a value for the plurality of parameters of each of the color sails that minimize an error metric between the input colors of the associated alpha mask and the colors in a color distribution of such color sail.
At block 210, the mapping module 122, for each pixel or group of pixels in each of the alpha masks image, determines the discrete portion of the associated color sail with a color that is closest to that pixel or group of pixels.
At block 212, the user interface 106 receives a modification to any one or more of the parameters of any one or more of the color sails from the user.
At block 214, if such modifications affect a pixel or group of pixels in one or more of the alpha masks, the representation module 120 recolors such pixel or group of pixels to the color value of the associated discrete section of the color sail.