Hi I need to do an algorithm using the opencv library, which consists of dividing the image into rectangles and then move the pixels of a rectangle to another, for the extraction of features from a given image. I used the rectangle to divide the image function, anyone know how to help me?
For example, the pixel at position (2.10) belongs to the first rectangle and I want him to belong to the second rectangle ...