I have found something similar but in another programming language, but I don't have a clue how to translate it into imagej language
http://proto.layer51.com/d.aspx?f=254To recap: I draw a short line profile, and want to find the position of the max and return it as a variable to my code