public class ObjectsFromConnectedComponentsFactory extends Object
ObjectCollection
from the connected-components of a mask or binary-voxels.Constructor and Description |
---|
ObjectsFromConnectedComponentsFactory()
Creates to use a small-neighborhood.
|
ObjectsFromConnectedComponentsFactory(boolean bigNeighborhood)
Creates to use a specified type of neighborhood.
|
ObjectsFromConnectedComponentsFactory(boolean bigNeighborhood,
int minNumberVoxels)
Creates to use a specified type of neighborhood, and minimum number of voxels.
|
ObjectsFromConnectedComponentsFactory(int minNumberVoxels)
Creates to use a minimum number of voxels for each connected component.
|
Modifier and Type | Method and Description |
---|---|
ObjectCollection |
createUnsignedByte(BinaryVoxels<UnsignedByteBuffer> voxels)
Finds the connected-components in unsigned byte voxels.
|
ObjectCollection |
createUnsignedInt(BinaryVoxels<UnsignedIntBuffer> voxels)
Finds the connected-components in unsigned int voxels.
|
public ObjectsFromConnectedComponentsFactory()
See NeighborhoodFactory
.
public ObjectsFromConnectedComponentsFactory(boolean bigNeighborhood)
bigNeighborhood
- if true, use 8-Connectivity instead of 4 in 2D, and 26-connectivity
instead of 6 in 3D, as per NeighborhoodFactory
.public ObjectsFromConnectedComponentsFactory(int minNumberVoxels)
minNumberVoxels
- the minimum number of voxels that must exist for an independent
connected-component, otherwise the connected-component is omitted.public ObjectsFromConnectedComponentsFactory(boolean bigNeighborhood, int minNumberVoxels)
bigNeighborhood
- if true, use 8-Connectivity instead of 4 in 2D, and 26-connectivity
instead of 6 in 3D, as per NeighborhoodFactory
.minNumberVoxels
- the minimum number of voxels that must exist for an independent
connected-component, otherwise the connected-component is omitted.public ObjectCollection createUnsignedByte(BinaryVoxels<UnsignedByteBuffer> voxels)
Connected-components are considered to be contiguous neighboring voxels with on states.
voxels
- the voxels to find connected-components in. Note that these voxel values are
changed, as the algorithm runs.ObjectMask
.public ObjectCollection createUnsignedInt(BinaryVoxels<UnsignedIntBuffer> voxels)
Connected-components are considered to be contiguous neighboring voxels with on states.
voxels
- the voxels to find connected-components in. Note that these voxel values are
changed, as the algorithm runs.ObjectMask
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.