Column index with smallest energy value

I wonder what index should our function return if two there are two least elements. Lets say I gat :+1:

5 2 2 15 75

as my energy values of a row. What index should i return here since 2 is at thesame time at index 1 and 2

Thanks

β€žTo disambiguate which seam shall be removed, we use the following rule: If there are multiple optimal seams with distinct positions in the last row, the seam with the lowest x-coordinate is to be removed. If a pixel has multiple optimal neighbors, first the top center neighbor and then the top left neighbor is to be preferred. β€ž
Accordingly you would return the first index (1)

3 Likes