Implementing dynamic zoom function with opencv on a rectangle(ROI)

I will like to implement a zoom function with opencv that can zoom a rectangular region of interest maybe between -1 and 1 percent