From 2901b90dc14ad4e14a00321f3d111d2e2487b56f Mon Sep 17 00:00:00 2001 From: Simon Ebner Date: Mon, 28 Apr 2014 12:56:38 +0200 Subject: [PATCH] Updated readme with the instructions how to configure the reader into the default file handlers... --- Readme.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 20ade08..fb64058 100644 --- a/Readme.md +++ b/Readme.md @@ -20,6 +20,7 @@ File > SaveAs > HDF5 ``` # Installation +To be able to install this plugin ImageJ need to be run with a Java 7 or greater JVM. * Download latest HDF5 ImageJ plugin from [here](http://slsyoke4.psi.ch:8081/artifactory/releases/HDF5_Viewer-0.3.0.zip). @@ -30,8 +31,22 @@ cd unzip ``` -## Prerequisites -This plugin requires ImageJ to be run with a Java 7 or greater JVM. +## Configuration (Optional) + +If you want to configure the HDF5 Reader as a standard file reader you need to register the reader within the `HandleExtraFileTypes.java` file. +This can be done as follows (details on this can be found on: http://albert.rierol.net/imagej_programming_tutorials.html): + +* Add `HandleExtraFileTypes.java` +``` +if (name.endsWith(".h5") || name.endsWith(".hdf5")) { + return tryPlugIn("ch.psi.imagej.hdf5.HDF5Reader", path); +} +``` + +* Recompile `HandleExtraFileTypes.java` +``` +javac -classpath ij.jar ./plugins/Input-Output/HandleExtraFileTypes.java +``` # Usage