public class Filler extends Object
| Constructor and Description |
|---|
Filler() |
| Modifier and Type | Method and Description |
|---|---|
byte |
checkAdjacentsLabel(int w,
int h,
int d,
int labelNum)
Check adjacent pixels whether it contains the given label (labelNum).
|
boolean |
checkHole()
Check whether a hole exists in the hashmap of pixels (HashMap<label number, pixel value>).
|
ij.ImagePlus |
fill(ij.ImagePlus image)
Fill a hole in the given image (ImagePlus object) by morphology operation,
and returns the filled image.
|
void |
fill(int labelNum)
Fill a hole in the hashmap of pixels (HashMap<label number, pixel value> by morphology operation.
|
ij.ImagePlus |
fill(SpatialImage spImg)
Fill a hole in the given image (
SpatialImage object) by morphology operation,
and returns the filled image as ImageJ image object. |
void |
fillHole()
Fill a hole in the hashmap of pixels (HashMap<label number, pixel value> by morphology operation.
|
void |
label()
Assign a label (label number) to each pixel.
|
public ij.ImagePlus fill(ij.ImagePlus image)
image - the ImageJ image objectpublic ij.ImagePlus fill(SpatialImage spImg)
SpatialImage object) by morphology operation,
and returns the filled image as ImageJ image object.spImg - the SpatialImage objectpublic void label()
public boolean checkHole()
public void fillHole()
public void fill(int labelNum)
labelNum - the label numberpublic byte checkAdjacentsLabel(int w,
int h,
int d,
int labelNum)
w - the x offseth - the y offsetd - the z offsetlabelNum - the label numberCopyright © 2017–2019 Funahashi Lab.. All rights reserved.