Image processing
One of the unique features of predicting is the obtaining of similar data. For example, a comic impersonator after having learned the peculiarities of a famous person's voice begins to speak with their intonation. In this section, we will see how Mathematica, after having learned the features of an artist's style, can continue his painting. This opens up new possibilities in the field of data restoration.
For example, we'll take Claude Monet's painting Water Lilies:
Using the ImagePad
function, we cut it off on all sides by 50 pixels. Then, we process the image to enable Mathematica to continue this:
With the help of the ImageDimensions
function, we have got an array consisting of the length and width values of the image. Then, using the ImageCrop
function, we have created a new image, which is two times bigger than the previous one. At the same time, we have created an image of exactly the same size that will be used as a mask for further calculations. Note that the black...