Camera Calibration on a curved surface

Just got around to trying out this solution.

Just to clarify, does this mean instead of doing this:

totalmap += flow

You’d do:

totalmap = cv.remap(src=totalmap, map1=flow, map2=None, interpolation=cv.INTER_CUBIC)

Also, just to make sure, you should not replace imwarped in the first remap call with out on subsequent loops?

Here’s the warped image I’m using, for reference. This is the closest I can place the camera to the surface due to application constraints.