I am working with image (using Python and OpenCV), that is unwrapped view of pipe internals. Imagine you put camera inside the pipe, and it turns 360* taking a panorama photo. The outcome picture would have it’s left and right side, but in reality, those edges touch each other.
What is the effective way to work with such data in Python? I am running some shape recognition on the image, but I need my program to understand, that the shape may be divided by the “cut” in the middle.
My best guess so far is to copy part of the left side of the image and append it to the right side (and vice versa) but I have a gut feeling there must be a better way to do it. I just cannot find it.