Posted by
Kenneth Sloan-2 on
Oct 18, 2018; 5:38pm
URL: http://imagej.273.s1.nabble.com/Locale-settings-tp5021325.html
When saving an image in "text" format, how are Locale settings determined? Are they inherited
from the local machine's global settings? Or, is it possible to manipulate them within ImageJ?
My question is motivated by collaborations involving USA and German participants. Occasionally,
I need to run ImageJ on a USA-centric machine, but would prefer to generate German style output.
The specific issue is the difference between '.' and ',' in the formatting of floating point
pixel values.
When I write Java plugins, I set the Locale directly, and can control this - but I'd prefer to
use the Save As/text facility, if possible. I'd like to do this without switching the Locale for
every other application running on my laptop!
I suppose I could just write my own SaveAsGermanText plugin - but that seems like overkill.
A small side question: I just found SaveAs/text. While not my first choice of image representation,
I can see how it can be useful in some contexts, and I'd like to understand what can be done with it.
In particular, how do I read back a .txt file and get an image?
[and then, of course...can I deal with multiple formats - the '.' vs ',' issue, again]
--
Kenneth Sloan
[hidden email]
Vision is the art of seeing what is invisible to others.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html