public class ReplaceLabelValues extends AlgoStub
ImagePlus imagePlus = IJ.getImage();
int[] labelArray = new int[]{2, 3, 8};
int finalValue = 0;
// create algo for replacing values in original image
ReplaceLabelValues algo = new ReplaceLabelValues();
DefaultAlgoListener.monitor(algo);
algo.process(imagePlus, labelArray, finalValue);
| Constructor and Description |
|---|
ReplaceLabelValues() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(ij.ImagePlus imagePlus,
float[] labels,
float newLabel)
Replace all values specified in label array by the value 0.
|
void |
process(ij.process.ImageProcessor image,
float[] labels,
float newLabel)
Replace all values specified in label array by the value 0.
|
void |
process(ij.process.ImageProcessor image,
int[] labels,
int newLabel)
Replace all values specified in label array by a new value.
|
void |
process(ij.ImageStack image,
float[] labels,
float newLabel)
Replace all values specified in label array by the specified value.
|
void |
process(ij.ImageStack image,
int[] labels,
int newLabel)
Replace all values specified in label array by a new value.
|
addAlgoListener, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, removeAlgoListenerpublic void process(ij.ImagePlus imagePlus,
float[] labels,
float newLabel)
imagePlus - an ImagePlus containing a 3D label imagelabels - the list of labels to replacenewLabel - the new value for labelspublic void process(ij.process.ImageProcessor image,
int[] labels,
int newLabel)
image - a label planar imagelabels - the list of labels to replacenewLabel - the new value for labelspublic void process(ij.process.ImageProcessor image,
float[] labels,
float newLabel)
image - a label planar imagelabels - the list of labels to replacenewLabel - the new value for labelspublic void process(ij.ImageStack image,
int[] labels,
int newLabel)
image - a label 3D imagelabels - the list of labels to replacenewLabel - the new value for labelspublic void process(ij.ImageStack image,
float[] labels,
float newLabel)
image - a 3D label imagelabels - the list of labels to replacenewLabel - the new value for labelsCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.