Good morning,
may I have brief question about the saving in an ImageJ plugin. I have
plugin which can save a segmentation into txt file on output. So in the end
of the processing I run this peace of code to ask user for the output name:
OpenDialog od = new OpenDialog("Save raw segmentation");
if (od.getPath() != null) {
ij.IJ.log(" -> export to file: "+od.getPath());
sp.getSegmentation().exportToFile( od.getPath() );
}
But what I see as a problem is that in this case it cannot be run in
bash automatically because there is no field which would specify the output
file on the beginning and it always stop and ask for a name. What would be
another way how to ask for a name on the beginning (for instance to be seen
when I use marco record), to be part of the plugin calling. Or should I
create another method in the plugin which would handle this case for usage
in bash?
Thanks
--
Best regards, Jiří Borovec
----------------------------------------------------------------------------------------------------
Jiří Borovec <jiri.borovec@fel.cvut.cz>
PhD student at CMP CTU, ISC member
http://cmp.felk.cvut.cz/~borovji3--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html