How do I get the pixel coordinates of the minimum value?

Posted by TLowe on
URL: http://imagej.273.s1.nabble.com/How-do-I-get-the-pixel-coordinates-of-the-minimum-value-tp5009363.html

This routine draws a line, gets the profile and returns the pixel values. How do I get the pixel coordinates of the minimum value?

//setTool("line");
makeLine(746, 344, 534, 582);
  run("Clear Results");
  profile = getProfile();
  for (i=0; i<profile.length; i++)
      setResult("Value", i, profile[i]);
  updateResults;
Tom Lowe
Chemical Technician
Eastman Kodak