public class AddDistanceTransform extends DefineAdderWithPrefixBean
The distance transform is Euclidean.
This is used to avoid repetitive bean-definitions in Define, but while still providing visualization of all the intermediate steps that occur during the transformation, which are typically vital for visualization.
For now, it only works in 2D, but can be easily extended for 3D.
The steps are:
Constructor and Description |
---|
AddDistanceTransform() |
Modifier and Type | Method and Description |
---|---|
void |
addTo(Define define)
Adds items to
define . |
String |
getBinaryInputChannelID()
The ID of the binary input mask that determines the region of the Watershed.
|
float |
getDistanceTransformMultiplyBy()
Multiplies the distance transform by this factor to make it more meaningful in a short.
|
double |
getDistanceTransformSmoothSigmaMeters()
If non-zero, a Gaussian blur is applied to the distance transform using the sigma in meters
below.
|
UnitValueDistance |
getMaxDistanceBetweenMinima() |
double |
getMaxDistanceDeltaContour()
The maximum distance allowed between two seeds in terms of their values in the distance map
|
UnitValueVolume |
getMinVolumeConnectedComponent() |
void |
setBinaryInputChannelID(String binaryInputChannelID)
The ID of the binary input mask that determines the region of the Watershed.
|
void |
setDistanceTransformMultiplyBy(float distanceTransformMultiplyBy)
Multiplies the distance transform by this factor to make it more meaningful in a short.
|
void |
setDistanceTransformSmoothSigmaMeters(double distanceTransformSmoothSigmaMeters)
If non-zero, a Gaussian blur is applied to the distance transform using the sigma in meters
below.
|
void |
setMaxDistanceBetweenMinima(UnitValueDistance maxDistanceBetweenMinima) |
void |
setMaxDistanceDeltaContour(double maxDistanceDeltaContour)
The maximum distance allowed between two seeds in terms of their values in the distance map
|
void |
setMinVolumeConnectedComponent(UnitValueVolume minVolumeConnectedComponent) |
addWithName, getPrefix, resolveName, setPrefix
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public void addTo(Define define) throws DefineAddException
DefineAdder
define
.
What items are added varies by implementation.
define
- where to add items toDefineAddException
- if the items cannot be added successfully.public String getBinaryInputChannelID()
public void setBinaryInputChannelID(String binaryInputChannelID)
public UnitValueVolume getMinVolumeConnectedComponent()
public void setMinVolumeConnectedComponent(UnitValueVolume minVolumeConnectedComponent)
public float getDistanceTransformMultiplyBy()
public void setDistanceTransformMultiplyBy(float distanceTransformMultiplyBy)
public double getDistanceTransformSmoothSigmaMeters()
public void setDistanceTransformSmoothSigmaMeters(double distanceTransformSmoothSigmaMeters)
public UnitValueDistance getMaxDistanceBetweenMinima()
public void setMaxDistanceBetweenMinima(UnitValueDistance maxDistanceBetweenMinima)
public double getMaxDistanceDeltaContour()
public void setMaxDistanceDeltaContour(double maxDistanceDeltaContour)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.