Re: 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-tp5009363p5009418.html

Like I said, I'm new to ImageJ,  if I do the following, I just get an error. How do I use getPixel(x,y) to get at the address with the lowest pixel 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]);
getPixel(x,y);
  updateResults;
Tom Lowe
Chemical Technician
Eastman Kodak