I’ve seen this workaround in ThinPlateSplineShapeTransformer::wrapImage transformed X and Y values are located in the oposite side · Issue #7084 · opencv/opencv · GitHub and tried it.
If I switch source_points
and target_points
in tps_transformer.estimateTransformation(target_points, source_points, matches)
,
the result is even worse.