public class ExpandLabelsPlugin extends Object implements ij.plugin.PlugIn
The idea is to transform a label image in the following way:
                  1 1 1 0 0 0 0 0
 1 1 1 0 2 2      1 1 1 0 0 0 2 2
 1 1 1 0 2 2      0 0 0 0 0 0 2 2
 0 0 0 0 2 2  =>  0 0 0 0 0 0 2 2
 3 3 3 0 2 2      0 0 0 0 0 0 2 2     
 3 3 3 0 2 2      3 3 3 0 0 0 2 2
                  3 3 3 0 0 0 0 0
| Constructor and Description | 
|---|
ExpandLabelsPlugin()  | 
| Modifier and Type | Method and Description | 
|---|---|
static ij.process.ImageProcessor | 
expandLabels(ij.process.ImageProcessor image,
            float ratio)
Expand labels by a given factor 
 | 
static ij.ImageStack | 
expandLabels(ij.ImageStack image,
            float ratio)
Expand labels by a given factor 
 | 
void | 
run(String arg0)  | 
public void run(String arg0)
run in interface ij.plugin.PlugInpublic static final ij.process.ImageProcessor expandLabels(ij.process.ImageProcessor image,
                                                           float ratio)
image - input label imageratio - percentage of expansion (values between 0 and 100)public static final ij.ImageStack expandLabels(ij.ImageStack image,
                                               float ratio)
image - input label imageratio - percentage of expansion (values between 0 and 100)Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.