I want to create a 1D plot from an image. Then I want to determine the maxima and their distances to each other in c++. I am looking for some tips on how I could approach th