I have an input cylinder image. That image I have to scale in a particular way. That is I have to scale the image in the middle part only.
My input image is
I want output image as
I am trying to achieve this using Opencv and C++. What kind of transformation do I have to use to achieve this result.