I’m trying to transform an half ring (img1) to horizontal (like img2).
i tried with poor results to copy every circles pixels from r1 to r2 (img1) and flat these pixel at same row ordered by column from left to right, then overlapping these lines. My very bad result in img3: