JIPipe Help

Measurements

The filament toolkit can calculate measurements for vertices, edges, and filament components.

Nodes overview

Measuring vertices

Use the Measure filament vertices node to extract the measurements of all vertices into a table. The following measurements will be generated:

uuid

The unique identifier of the vertex

x

The X location of the vertex centroid in pixels

y

The Y location of the vertex centroid in pixels

z

The Z location of the vertex centroid in pixels

c

The Channel location of the vertex

t

The Frame location of the vertex

radius

The vertex radius in pixels

value

The vertex value (numeric)

color

The vertex color (Hex string), for example #FF0000

degree

The vertex degree

vsx

The physical voxel size in X direction, for example 1 pixel

vsy

The physical voxel size in Y direction, for example 1 pixel

vsz

The physical voxel size in Z direction, for example 1 pixel

Metadata keys

Additional columns are added based on available vertex metadata keys. The columns are named according to the metadata key. The column contains numbers if all vertex metadata values can be converted into numbers, otherwise the column contains strings.

Value backups

If you stored vertex value backups, they will be placed into columns .value.[backup key]

Measuring edges

Use the Measure filament edges node to generate a results table containing edge measurements.

The table will have the following structure:

uuid

The unique identifier of the vertex

color

The edge color (Hex string), for example #FF0000

length

The edge length (in pixels)

ulength

The edge length (in physical size if available)

unit

The unit of physical sizes (consensus unit that is calculated over all vertices)

source.*

All measurements of the source vertex, but the columns are prefixed with source., for example source.value

target.*

All measurements of the target vertex, but the columns are prefixed with target., for example target.value

Metadata keys

Additional columns are added based on available edge metadata keys. The columns are named according to the metadata key. The column contains numbers if all edge metadata values can be converted into numbers, otherwise the column contains strings.

Measuring filament components

Use the Measure filament components node to generate measurements for each filament component.

The table will have one row per component and has the following structure:

Component

Numerical component id (starting with zero)

numVertices

The number of vertices in the component

numEdges

The number of edges in the component

lengthPixels

The sum of all edge lengths (in pixels)

lengthUnit

The sum of all edge lengths (in physical unit)

lengthPixelsRadiusCorrected

The sum of all edge lengths (in pixels). Learn more about radius correction here.

lengthUnitRadiusCorrected

The sum of all edge lengths (in physical unit). Learn more about radius correction here.

simplifiedLengthPixels

The sum of all edge lengths (in pixels) of the simplified graph.

simplifiedLengthUnit

The sum of all edge lengths (in physical unit) of the simplified graph.

simplifiedLengthPixelsRadiusCorrected

The sum of all edge lengths (in pixels) of the simplified graph. Additional radius correction is applied.

simplifiedLengthUnitRadiusCorrected

The sum of all edge lengths (in physical unit) of the simplified graph. Additional radius correction is applied.

confinementRatio

The confinement ratio calculated by:

confinementRatioRadiusCorrected

The confinement ratio calculated by:

numVerticesWithDegree0

Number of vertices with degree zero (single vertices).

numVerticesWithDegree1

Number of vertices with degree one (end points).

numVerticesWithDegree2

Number of vertices with degree two (line segments).

numVerticesWithDegree3

Number of vertices with degree three.

numVerticesWithDegree4

Number of vertices with degree four.

numVerticesWithDegree5

Number of vertices with degree five.

numVerticesWithDegreeMoreThan5

Number of vertices with degree six or higher.

maxDegree

The maximum degree over all vertices in the component.

minDegree

The minimum degree over all vertices in the component.

centerMinX

The minimum per-vertex centroid X over all vertices in the component, in pixels.

Learn more about bounding box measurements here.

centerMinY

The minimum per-vertex centroid Y over all vertices in the component, in pixels.

Learn more about bounding box measurements here.

centerMinZ

The minimum per-vertex centroid Z over all vertices in the component, in pixels.

Learn more about bounding box measurements here.

centerMaxX

The maximum per-vertex centroid X over all vertices in the component, in pixels.

Learn more about bounding box measurements here.

centerMaxY

The maximum per-vertex centroid Y over all vertices in the component, in pixels.

Learn more about bounding box measurements here.

centerMaxZ

The maximum per-vertex centroid Z over all vertices in the component, in pixels.

Learn more about bounding box measurements here.

sphereMinX

The minimum per-vertex X (including the radius) over all vertices in the component, in pixels. Learn more about bounding box measurements here.

sphereMinY

The minimum per-vertex Y (including the radius) over all vertices in the component, in pixels. Learn more about bounding box measurements here.

sphereMinZ

The minimum per-vertex Z (including the radius) over all vertices in the component, in pixels. Learn more about bounding box measurements here.

sphereMaxX

The maximum per-vertex X (including the radius) over all vertices in the component, in pixels. Learn more about bounding box measurements here.

sphereMaxY

The maximum per-vertex Y (including the radius) over all vertices in the component, in pixels. Learn more about bounding box measurements here.

sphereMaxZ

The maximum per-vertex Z (including the radius) over all vertices in the component, in pixels. Learn more about bounding box measurements here.

centroidX

The centroid (X coordinate) of the whole filament component, in pixels.

centroidY

The centroid (Y coordinate) of the whole filament component, in pixels.

centroidZ

The centroid (Z coordinate) of the whole filament component, in pixels.

centroidC

The centroid (Channel coordinate) of the whole filament component.

centroidT

The centroid (Frame coordinate) of the whole filament component.

minEdgeLengthPixels

The minimum edge length (in pixels).

minEdgeLengthUnit

The minimum edge length (in physical unit).

maxEdgeLengthPixels

The maximum edge length (in pixels).

maxEdgeLengthUnit

The maximum edge length (in physical unit).

avgEdgeLengthPixels

The average edge length (in pixels).

avgEdgeLengthUnit

The average edge length (in physical unit).

minVertexRadiusPixels

The minimum vertex radius (in pixels).

minVertexRadiusUnit

The minimum vertex radius (in physical unit).

maxVertexRadiusPixels

The maximum vertex radius (in pixels).

maxVertexRadiusUnit

The maximum vertex radius (in physical unit).

avgVertexRadiusPixels

The average vertex radius (in pixels).

avgVertexRadiusUnit

The average vertex radius (in physical unit).

minVertexValue

The minimum vertex value.

maxVertexValue

The maximum vertex value.

avgVertexValue

The average vertex value.

physicalSizeUnit

The consensus physical size unit.

Radius correction

Classic length measurement just summarizes the length of all edges. This may yield shorter than expected lengths, as the radius of end points is not considered in the calculations.

Radius-corrected length measurements add the radius of each degree-1 vertex, and twice the radius for degree-0 vertices to the calculated length.

Explanation

Simplified graph

The simplified graph is calculated by skipping all degree-2 vertices and directly connecting the lines. You can explicitly calculate the simplified graph by using the node Simplify filaments.

Example

Bounding box measurements

There are two possible bounding box measurements for filaments, one that is based around the vertex center, and another that also incorporates the vertex radius.

The following illustration showcases the difference for the X coordinate:

Example
Last modified: 19 September 2024