Installing Old "Plugin"

plugin
fiji
Tags: #<Tag:0x00007fb882fed278> #<Tag:0x00007fb882fed020>

#1

The group I am in recently got data from the European Synchrotron Radiation Facility. Unfortunately, to open the data sets, we need to use a custom “plugin”* as specified here. I am using Fiji (ImageJ 1.51n). However, ESRF uses ImageJ 1.46a (2011); and their plugin hasn’t been updated since 2004. Obviously there have been significant changes since then and the directions reference an older directory structure. Is there some way to get this plugin to work with my current version of Fiji or do I need to install and maintain multiple versions?

*By “plugin”, I mean additional code. I have no idea if it conforms to the standard ImageJ plugin format.


#2

Dear @Andrew_Shum,

That’s not entirely true, if you take a look at the projects GitHub page. There you can see that the last changes to the sources have been made in 2016.

You can try to download an archive version of that repository and copy the files from the ESRFPlugins/plugins/ subfolder into the plugins subfolder of your Fiji installation. You might have to use Plugins > ESRF Reader instead of File > Open to open ESRF files, though.

Best,
Stefan


#3

Thanks for the advice. I didn’t know you could run JAVA files like that (not compiled) using ImageJ. Unfortunately, still not a solution. Here is the current status. I have created the subfolder ESRF in plugins. There, I have placed the 6 files from the GitHub repository as well as the 4 files provided on the page. This results in 6 options appearing in the menu (even after renaming EdfMovie.txt to EdfMovie.java). The 6 options are the following (in order): EdfRead, HSTVolReader, EDF Reader, EDF StackReader, ESRF Reader, ESRF Writer. With the exception of HSTVolReader, they all exit with a bunch of errors when I try to run them. For HSTVolReader, it opens a file selection window. After selecting a VOL file, it displays “Barf” in the status bar and exits. How do I know the plugins are done? I wait a bit and assume they exited if nothing happens.


#4

If there is a JDK available, the files will be compiled when you are trying to execute them. In case of ESRF_Reader.java that process throws a lot of errors for me, which can be ignored, and opens up a dialog where I can select the filetype to open: EDF or EHF.

I have compiled the files to see if the plugins actually work for you. Could you check if you can run them if you copy this file into your plugins/ subdirectory?

Best,
Stefan


#5

Unfortunately, it appears to not work. I downloaded the JAR file and moved it into …/Fiji.app/plugins/ESRF2. To avoid potential duplicate plugins, I moved …/Fiji.app/plugins/ESRF up to …/Fiji.app. I then opened ImageJ and could not find Plugins > ESRF2 which implies that nothing from the JAR was recognized as a plugin. I tried moving the JAR up to …/Fiji.app/plugins as well as renaming it to ESRF.jar (tried both locations). After each change, I closed and reopened ImageJ. I could not find entries for the ESRF plugins under Plugins. I am assuming that is where they appeared for you?


#6

Sorry, my mistake! I had completely forgotten to mention that I had renamed the file to contain an underscore. Remove the previous file and download the new one (which essentially is a renamed version): esrf-imagej-plugins_-0.1.0-SNAPSHOT.jar. The plugins should show up in Plugins > ESRF > *.

Let me know if it works, s.t. I can file a pull request against the original project…


#7

Just as you suspected, the issue was just the name of the JAR file. Just to be sure, I tried both the new one you provided and a renamed copy of the previous. Both worked the same. Unfortunately, it looks like HSTVolReader doesn’t show up. While the raw data and single-image files are EDFs, the reconstructed image stacks are VOL files. I am assuming I will need that other plugin to read those as ESRF Reader won’t do it. Not being able to drag-and-drop is annoying but being able to open the files through some means is far better than not being able to open them at all.


#8

That’s true. HSTVolReader is not included in the GitHub project and its sources are not distributed.

That support could be added for ImageJ2 (which bundles ImageJ1 as you know it) if the readers and writers were implemented using SCIFIO. I have also invited the maintainer of the project (Olof Svensson) to this discussion especially with respect to implementing the readers as SCIFIO Formats.


#9

Thanks for all your help so far.


Using Process > Batch > Virtual Stack... in a Macro