|
I've checked the archives, but have not been able to find an answer to this
problem.
I am trying to perform the XY_coordinates plugin to all the images in a
stack, but automate the process. The problem is that I need to output a
seperate text file for each image. I tried playing with the Macro builder,
but due to the nature of the plugin, it prompts the user to enter a title
for each text file it saves.
I tried modifying the plugin to 1)work with stacks, and 2) create a new text
file based on the slice number, but I run into NullPointer exceptions.
I am new to programming, but I think it has something to do with resetting
the PrintWriter in a for loop. I did two test cases in the script where I
manually define a brand new PrintWriter for each image and it's fine, but
when I try to make a for loop it outputs the error. Any advice would be
great. Also, I will eventually need to keep track of the z-positions of each
slice, so if that's in the pipeline for future releases that would be great.
Thanks,
Gabriel
|