Not sure what you mean. Perhaps scan the image column by column getting the row number of the signal's waveform curve.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!