File: RGBStackSplitter.java

package info (click to toggle)
imagej 1.51i%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,244 kB
  • ctags: 13,220
  • sloc: java: 113,144; sh: 285; xml: 50; makefile: 8
file content (37 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package ij.plugin.filter;
import ij.*;
import ij.process.*;
import ij.plugin.ChannelSplitter;

/** Deprecated; replaced by ij.plugin.ChannelSplitter. */
public class RGBStackSplitter implements PlugInFilter {
	ImagePlus imp;
	public ImageStack red, green, blue;

	public int setup(String arg, ImagePlus imp) {
		this.imp = imp;
		(new ChannelSplitter()).run(arg);
		return DONE;
	}

	public void run(ImageProcessor ip) {
	}

	/** Deprecated; replaced by ij.plugin.ChannelSplitter. */
	public void split(ImagePlus imp) {
		WindowManager.setTempCurrentImage(imp);
		(new ChannelSplitter()).run("");
	}

	/** Deprecated; replaced by ChannelSplitter.splitRGB(). */
	public void split(ImageStack rgb, boolean keepSource) {
		ImageStack[] channels = ChannelSplitter.splitRGB(rgb, keepSource);
		red = channels[0];
		green = channels[1];
		blue = channels[2];
	}
	
}