I sent the message below about a week ago, but because it appeared on a
weekend, it might not have caught the attention of the folks who might be able to answer it. I'm hoping that someone who knows will be able to answer this (I fear "painfully basic") question: I'm modifying (with my very rudimentary java skills) a plugin to report the x,y coordinates of points on which one clicks... (the rest of the plugin handles numbering and marking points and was kindly provided to me by a generous imageJ user in Spain [thank you!]). I've figured out how to report the location of a click in pixels and write that to the results window, but since the image has been scaled (Analyze > Set Scale - global) outside the plugin, I'd also like to report the scaled values, since the image information header reports scaled values. However, I've not located the function / variable into which the global scale factor is stored by the Set Scale dialog... Can someone let me know what this variable is and briefly how to apply it? [or point me to the appropriate documentation of this variable, which I'm sure is there, but I cannot seem to find]. Thanks, John - - - - - John Livesey, [hidden email] / 01-209-946-2485 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Hi, use ImagePlus.getGlobalCalibration() to get the Calibration object. Use the methods of Calibration to get the information you want. See http://rsb.info.nih.gov/ij/developer/api/ij/ImagePlus.html#getGlobalCalibration() and http://rsb.info.nih.gov/ij/developer/api/ij/measure/Calibration.html Volker John Livesey a écrit : > I sent the message below about a week ago, but because it appeared on a > weekend, it might not have caught the attention of the folks who might > be able to answer it. I'm hoping that someone who knows will be able to > answer this (I fear "painfully basic") question: > > I'm modifying (with my very rudimentary java skills) a plugin to report > the x,y coordinates of points on which one clicks... (the rest of the > plugin handles numbering and marking points and was kindly provided to > me by a generous imageJ user in Spain [thank you!]). I've figured out > how to report the location of a click in pixels and write that to the > results window, but since the image has been scaled (Analyze > Set Scale > - global) outside the plugin, I'd also like to report the scaled values, > since the image information header reports scaled values. However, I've > not located the function / variable into which the global scale factor > is stored by the Set Scale dialog... Can someone let me know what this > variable is and briefly how to apply it? [or point me to the appropriate > documentation of this variable, which I'm sure is there, but I cannot > seem to find]. > > Thanks, > John > - - - - - > John Livesey, [hidden email] / 01-209-946-2485 Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGbkwjxZKX7A/4oMERAtS0AKDj9gGsBx54OflcrNXzG+s//hUsRwCeKtHr X/hWoXDCDHS9+Incg0b97kM= =ZK2G -----END PGP SIGNATURE----- -- passerelle antivirus du campus CNRS de Montpellier -- |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Hi, my last message was inexact. You need to send getGlobalCalibration() to an ImagePlus object, not to the class. The best thing to do might be to get the image and use the method getCalibration(). If a global calibration exists the method answers the global calibration otherwise it answers the local calibration of the image. Volker Volker Bäcker a écrit : > Hi, > use ImagePlus.getGlobalCalibration() to get the Calibration object. Use > the methods of Calibration to get the information you want. See > > http://rsb.info.nih.gov/ij/developer/api/ij/ImagePlus.html#getGlobalCalibration() > and > http://rsb.info.nih.gov/ij/developer/api/ij/measure/Calibration.html > > Volker > > John Livesey a écrit : >> I sent the message below about a week ago, but because it appeared on a >> weekend, it might not have caught the attention of the folks who might >> be able to answer it. I'm hoping that someone who knows will be able to >> answer this (I fear "painfully basic") question: > >> I'm modifying (with my very rudimentary java skills) a plugin to report >> the x,y coordinates of points on which one clicks... (the rest of the >> plugin handles numbering and marking points and was kindly provided to >> me by a generous imageJ user in Spain [thank you!]). I've figured out >> how to report the location of a click in pixels and write that to the >> results window, but since the image has been scaled (Analyze > Set Scale >> - global) outside the plugin, I'd also like to report the scaled values, >> since the image information header reports scaled values. However, I've >> not located the function / variable into which the global scale factor >> is stored by the Set Scale dialog... Can someone let me know what this >> variable is and briefly how to apply it? [or point me to the appropriate >> documentation of this variable, which I'm sure is there, but I cannot >> seem to find]. > >> Thanks, >> John >> - - - - - >> John Livesey, [hidden email] / 01-209-946-2485 Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGblBoxZKX7A/4oMERAu+DAKDO4NIHzC9da6WtsTwgEzYb7VejTQCgtZSj NUBc3c195m5ZIqLmaPsSSuE= =UDSE -----END PGP SIGNATURE----- -- passerelle antivirus du campus CNRS de Montpellier -- |
Free forum by Nabble | Edit this page |