Package sc.fiji.snt.analysis.detection
Class Detection
java.lang.Object
sc.fiji.snt.analysis.detection.Detection
- Direct Known Subclasses:
PeripathDetector.Detection
One detected feature along or around a traced path (varicosity, spine,
bouton, punctum, etc.).
- Author:
- Tiago Ferreira
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleDistance from the path skeleton at the detection point (physical units)final doubleIntensity at the detection sitefinal intLabel value from a segmentation/label image associated with this detection, or-1if not applicable.final intIndex of the nearest node on the associated pathfinal PathThe path this detection is associated withfinal doubleX-coordinate of the detection in real-world unitsfinal doubleY-coordinate of the detection in real-world unitsfinal doubleZ-coordinate of the detection in real-world units -
Constructor Summary
ConstructorsConstructorDescriptionDetection(double x, double y, double z, double intensity, Path path, int nodeIndex, double distanceFromSkeleton) Creates a new detection.Detection(double x, double y, double z, double intensity, Path path, int nodeIndex, double distanceFromSkeleton, int labelValue) Creates a new detection with an associated label value. -
Method Summary
-
Field Details
-
x
public final double xX-coordinate of the detection in real-world units -
y
public final double yY-coordinate of the detection in real-world units -
z
public final double zZ-coordinate of the detection in real-world units -
intensity
public final double intensityIntensity at the detection site -
path
The path this detection is associated with -
nodeIndex
public final int nodeIndexIndex of the nearest node on the associated path -
distanceFromSkeleton
public final double distanceFromSkeletonDistance from the path skeleton at the detection point (physical units) -
labelValue
public final int labelValueLabel value from a segmentation/label image associated with this detection, or-1if not applicable. Set byLabelProximityDetectorto identify which label surface produced the contact.
-
-
Constructor Details
-
Detection
public Detection(double x, double y, double z, double intensity, Path path, int nodeIndex, double distanceFromSkeleton) Creates a new detection.- Parameters:
x- X-coordinate in real-world unitsy- Y-coordinate in real-world unitsz- Z-coordinate in real-world unitsintensity- intensity at the detection sitepath- associated pathnodeIndex- index of the nearest node on the pathdistanceFromSkeleton- distance from the skeleton (physical units)
-
Detection
public Detection(double x, double y, double z, double intensity, Path path, int nodeIndex, double distanceFromSkeleton, int labelValue) Creates a new detection with an associated label value.- Parameters:
x- X-coordinate in real-world unitsy- Y-coordinate in real-world unitsz- Z-coordinate in real-world unitsintensity- intensity at the detection sitepath- associated pathnodeIndex- index of the nearest node on the pathdistanceFromSkeleton- distance from the skeleton (physical units)labelValue- label-image value associated with this detection, or-1if not applicable
-
-
Method Details
-
toSNTPoint
Returns this detection as anSNTPoint.- Returns:
- a new
PointInImageat this detection's coordinates
-
xyzct
public double[] xyzct()Returns the XYZCT coordinates for bookmark/ROI integration. X, Y, Z are in pixel (uncalibrated) coordinates; C and T are 1-based indices from the associated path.- Returns:
double[5]: {xPixel, yPixel, zPixel, channel, frame}
-
toString
-