Skip to content

Commit

Permalink
Only open channel 3
Browse files Browse the repository at this point in the history
  • Loading branch information
thomie committed Mar 16, 2011
1 parent 2ff023a commit 3419f30
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
10 changes: 6 additions & 4 deletions Ics_Opener.java → Ics_Opener_To_Tiff.java
Expand Up @@ -18,7 +18,7 @@ some ics files. If so, please send me a (small) examples
Author: Nico Stuurman <nico@cmp.ucsf.edu>
Modified by Wayne Rashband (wsr)
*/
public class Ics_Opener implements PlugIn {
public class Ics_Opener_To_Tiff implements PlugIn {

private static String defaultDirectory = null;
boolean interlaced = false;
Expand All @@ -37,8 +37,9 @@ public void run(String arg) {
}

private void showAbout() {
IJ.showMessage("Ics_Opener", "This plugins opens Ics/Ids files. \n" +
" Nico Stuurman, January 2007"
IJ.showMessage("Ics_Opener_To_Tiff", "This plugins opens Ics/Ids files and converts channel 3 to Tiff \n" +
" Nico Stuurman, January 2007\n" +
" Thomas Miedema (thomasmiedema@gmail.com), March 2011"
);
}

Expand Down Expand Up @@ -410,7 +411,7 @@ public void OpenIcs () {
impNew.getProcessor().resetMinAndMax();
impNew.show();
} else { // less than MAX_CHANNELS channels
for (int ch=0; ch < nChannels; ch++) {
for (int ch=2; ch < nChannels; ch++) {
Integer chCount=new Integer(ch+1);
FileOpener fo=new FileOpener(fi[ch]);
ImageStack stackNew = new ImageStack(width, height,fo.createColorModel(fi[ch]));
Expand All @@ -430,3 +431,4 @@ public void OpenIcs () {

}
}
// vim: ts=3
3 changes: 3 additions & 0 deletions make
@@ -0,0 +1,3 @@

javac -classpath ../imagej-1.44c/ Ics_Opener_To_Tiff.java
jar cvfM Ics_Opener_To_Tiff.jar *
16 changes: 8 additions & 8 deletions plugins.config
@@ -1,10 +1,10 @@
# Name: IicsOpener
# Author: Nico Stuurman
# Version: 0.2
# Date: 2007/01/03
# Name: IicsOpenerToTiff
# Author: Thomas Miedema
# Version: 0.2.1
# Date: 2011/03/15
# Requires: ImageJ 1.31s
# Generate the jar file using: "jar cvfM Ics_Opener.jar *"
# Generate the jar file using: "jar cvfM Ics_Opener_To_Tiff.jar *"

File>Import, "ICS/IDS...", Ics_Opener("open")
Plugins>InputOutput, "ICS/IDS... ", Ics_Opener("open")
Help>About Plugins, "ICS/IDS... ", Ics_Opener("about")
File>Import, "ICS/IDS channel 3 to TIFF", Ics_Opener_To_Tiff("open")
Plugins>InputOutput, "ICS/IDS channel 3 to TIFF ", Ics_Opener_To_Tiff("open")
Help>About Plugins, "ICS/IDS channel 3 to TIFF ", Ics_Opener_To_Tiff("about")

0 comments on commit 3419f30

Please sign in to comment.