public class ConnectedComponents extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BACK
Background value
|
static int |
FORE
Foreground value
|
static int |
MAX_FINAL_LABEL
2^23 - greatest integer that can be represented precisely by a float
|
Constructor and Description |
---|
ConnectedComponents()
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getNParticles() |
byte[][] |
getWorkArray() |
int[][] |
run(ij.ImagePlus imp,
int phase)
Run connected components filter on a binary image
|
public static final int FORE
public static final int BACK
public static final int MAX_FINAL_LABEL
public int[][] run(ij.ImagePlus imp, int phase)
imp
- Input ImagePlus, must be 2D or 3D and binary (0 or 255)phase
- either foreground (this.FORE) or background (this.BACK)public int getNParticles()
public byte[][] getWorkArray()
Copyright © 2018–2022 BoneJ. All rights reserved.