I am new to writing macros in ImageJ and am currently trying to use the DeconvolutionLab2 plugin within a macro I am writing such that no user interaction is required (I have a large directory of images to process). My current code I am trying to use (at least the part where I think the problem lies) is below;
image = “-image file “+path1+””;
psf = “-psf file “+path2+””;
algorithm = “-algorithm RL 15”;
run(“DeconvolutionLab2 Run”, image+psf+algorithm);
Yet, when this runs it seems to append the psf and algorithm information onto the end of the file name such that DeconvolutionLab2 has the wrong file name and cannot open the desired file, showing the error message ‘Image: Not valid’ in the monitor window.
I have more than likely made a ridiculously silly mistake as I am new to this! I would greatly appreciate any and all help to point out where I’m going wrong - thanks in advance!