I have a range of pixel values of my image, which I would like to replace with another range of pixel values from the same image.
The way I want to do this to replace the coordinate values. I have for example the coordinates ranging from [34 70] to [34 80] in my image, which I would like to replace with the values from the coordinate 10 above so these would be [34 60] to [34 70]. This is to remove an artifact within my image and I have no clue how to do this but to replace each pixel 1 by 1 however, I would like to make a loop statement so that I can repeat this along the other columns.
Any help on this would be greatly appreciated.