Texture synthesis over arbitrary manifold objects

Texture synthesis over arbitrary manifold objects

Texture synthesis from the input message and and transfer it to another image but not the whole of the image, just a specific portion of the image has to be selected and the texture has to be applied.
There is algorithm in the reference paper below.
https://graphics.stanford.edu/papers/texture-synthesis-sig01/