Re: Run macros/commands in Plugin
Posted by mia589 on Aug 19, 2014; 3:17pm
URL: http://imagej.273.s1.nabble.com/Run-macros-commands-in-Plugin-tp5000744p5009268.html
Hi,
I was wondering if someone can help with a related problem.
I've been trying to implement the IJ.run() command in my ImageJ plugin to call upon some ImageJ functions.
However, it doesn't seem to work even though the syntax of my code is correct. When I write the following code to enhance contrast, the IJ.run() command works:
IJ.run("Enhance Contrast");
But when I want to run a denoising command "Despeckle" or use a "Median..." filter the code doesn't initiate any processes. I am writing the code for these as follows:
IJ.run("Despeckle");
IJ.run("Median...");
Similarly, I am also having trouble using the IJ.runPlugIn() command where I get the error message "Class not found" even though the target PlugIn class is in the ImageJ plugin directory.
Your advice would be most appreciated!
Thank you!