Login  Register

How do I get the pixel coordinate with minimum value?? please help!

Posted by TLowe on Aug 30, 2014; 11:28pm
URL: http://imagej.273.s1.nabble.com/How-do-I-get-the-pixel-coordinate-with-minimum-value-please-help-tp5009425.html

I'm at my wits end. I have the following routine which gives me a list of pixel values along the line drawn. HOW DO I GET THE PIXEL COORDINATES OF THE PIXEL WITH THE LOWEST VALUE? It's been a few days now and I'm no further to an answer. If you have done this, or know how, please, please would you send me an update to the following code?

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