Nx,Ny=int((p1[0]-p0[0]+width)/width*img.shape[1]),int((p0[1]-p1[1]+height)/height*img.shape[0])+10# + 10 because of rotation and hopefully it will be small
Nx,Ny=int((p1[0]-p0[0]+width)/width*img.shape[1]),int((p0[1]-p1[1]+height)/height*img.shape[0])+10# + 10 because of rotation and hopefully it will be small