I am new to python. I would like to warp an image such that it fills the closed path (closed path and imported image is shown in the image below). The given closed path has a shape of truncated pie. The outer diameter of truncated pie is 15 units and inner diameter of it is 5 units, and the angle of that pie is 60 degrees. I've added the external shape as an example. Is it possible to fill the image within any kind of closed path. Can you please suggest python libraries to be used or it'd be great if you can share some code.
I was also trying to work with corner detection algorithms and making them to stick with map function, but I can't.



