Applying a particular texture in an image ROI
So I am going through this paper : http://140.118.9.222/publications/jou...
If you look in the image 7c and 7e, they have the texture image in 7c and that is applied over the forehead.
So my question being if we have a particular texture how to apply that to an image region whose we know the contour points in openCV?
It depends. Is the image contour rectangular? Does it have the same shape and proportions as the texture you want to paste?
@KjMag no its not a rectangular area.
Ok, and is the shape and size of contour and texture the same?
Is the texture always rectangular or it may be of various shapes?
@KjMag the texture is rectangle but the contour is forehead shape. If you will scroll down the paper link that I gave and check fig 7c and 7e.
@KjMag Have edited, please check the question.
That's impossible to answer unless you provide more details. How is it going to be pasted into that contour? As a rectangle or stretched to fill the whole contour? If as a rectangle - where should this rectangle begin? Can it be cropped, if it doesn't fit as a whole, or scaled down? What is the forehead contour? It's not shown in the article? Is the texture going to be scaled or it is guaranteed that you may just paste the original size?
@KjMag In general how a problem like this is tackled?
In general there is no single answer.