Login  Register

IJ.run command options defaults in plugin

Posted by jhonig2 on May 06, 2016; 9:42pm
URL: http://imagej.273.s1.nabble.com/IJ-run-command-options-defaults-in-plugin-tp5016348.html

Hello,

I have written a plug-in (based on the Raw_File_Opener plug-in) that allows the user to open a *.raw file.
In my case, I am trying to pre-populate the options image=unsigned 16-bit, width=1624, height=1234.

In the plug-in, I have the statement

IJ.run("Raw...", "open=[" + directory + fi.fileName + "] image=[16-bit Unsigned] width=1624 height=1234");

When I run the plug-in, Import>Raw dialog box opens and the image type, width and height values are populated with whatever values had been entered manually, previously.

However....when I click ok, my values are accepted (16-bit unsigned, width=1624, height=1234) and the plug-in works fine. Yet, when I run the plug-in again, those original, manually entered values appear in the Import>Raw dialog box.

I would just like the Import>Raw dialog box to display the values that I think it should.


Any ideas?