public class ChannelArranger extends Object implements PlugIn, TextListener
Constructor and Description |
---|
ChannelArranger() |
Modifier and Type | Method and Description |
---|---|
static ImagePlus |
run(ImagePlus img,
int[] newOrder)
Changes the order of the channels in a hyperstack.
|
void |
run(String arg)
This method is called when the plugin is loaded.
|
void |
textValueChanged(TextEvent e) |
public void run(String arg)
PlugIn
public static ImagePlus run(ImagePlus img, int[] newOrder)
img
- source hyperstacknewOrder
- the new channel orderThe following example opens the FluorescentCells sample image and reverses the order of the channels.
ImagePlus img = IJ.openImage("http://imagej.nih.gov/ij/images/FluorescentCells.zip"); int[] order = {3,2,1}; ImagePlus img2 = ChannelArranger.run(img, order); img2.setDisplayMode(IJ.COLOR); img2.show();
public void textValueChanged(TextEvent e)
textValueChanged
in interface TextListener
Copyright © 1997–2019 NIH. All rights reserved.