I am trying to flip an image horizontally that is passed as a parameter to my function. I cannot use JES functions. I have the below code. What am I doing wrong?
height = len(image)
width = len(image[0])
for row in range(height):
for col in range(width//2):
srcPixel = image[row][col]
tgtPixel = image[width - col - 1][row]
tmpPixel = srcPixel
srcPixel = tgtPixel
tgtPixel = tmpPixel
return True