Not working: tried piecewise transform, not outputting some image contours (invalid points after transform), try implementing ReconCode instead