public class DistanceTransform3D extends FromMaskBase
See Distance transform on Wikipedia.
A new channel is always created i.e. the input channel is unchanged.
The plugin uses aspect ratio (relative distance between z and xy slices) in its distance calculations.
As a simplification, when resolution is used, the XY plane is multipled by the average of the x and y dimensions.
Constructor and Description |
---|
DistanceTransform3D() |
Modifier and Type | Method and Description |
---|---|
Voxels<UnsignedByteBuffer> |
createDistanceMapForVoxels(BinaryVoxels<UnsignedByteBuffer> voxels,
Optional<Resolution> resolution,
float multiplyByZRes) |
protected Channel |
createFromMask(Mask mask) |
float |
getMultiplyBy() |
boolean |
isApplyResolution()
Multiples the values by the x-resolution, if it exists.
|
boolean |
isCreateShort() |
boolean |
isIgnoreZIfNaN()
If the z-resolution is undefined, the z dimenion is ignored.
|
boolean |
isSuppressZ() |
void |
setApplyResolution(boolean applyResolution)
Multiples the values by the x-resolution, if it exists.
|
void |
setCreateShort(boolean createShort) |
void |
setIgnoreZIfNaN(boolean ignoreZIfNaN)
If the z-resolution is undefined, the z dimenion is ignored.
|
void |
setMultiplyBy(float multiplyBy) |
void |
setSuppressZ(boolean suppressZ) |
get, getMask, setMask
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected Channel createFromMask(Mask mask) throws ProvisionFailedException
createFromMask
in class FromMaskBase
ProvisionFailedException
public Voxels<UnsignedByteBuffer> createDistanceMapForVoxels(BinaryVoxels<UnsignedByteBuffer> voxels, Optional<Resolution> resolution, float multiplyByZRes) throws ProvisionFailedException
ProvisionFailedException
public boolean isSuppressZ()
public void setSuppressZ(boolean suppressZ)
public float getMultiplyBy()
public void setMultiplyBy(float multiplyBy)
public boolean isCreateShort()
public void setCreateShort(boolean createShort)
public boolean isApplyResolution()
public void setApplyResolution(boolean applyResolution)
public boolean isIgnoreZIfNaN()
public void setIgnoreZIfNaN(boolean ignoreZIfNaN)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.