JIPipe Help

Generating filaments

The standard way of generating a filament graph requires an already existing mask image or ROI that contains the objects to be converted into filaments.

Converting masks to filaments

The most commonly used mode of obtaining filament data involves an existing mask/skeleton image.

  1. Ensure that the mask is a skeleton. If this is not the case, you can utilize the Morphological skeletonize 2D or Morphological skeletonize 3D node.

  2. Convert the skeleton image into a filament graph via the Binary skeleton to 2D filaments or Binary skeleton to 3D filaments node.

  3. The resulting filament has a very high resolution, as the conversion algorithm generates vertices on a pixel-level. To make filament-based operations more performant and to suppress issues caused by the skeletonization, post-process the filament data with Smooth filaments that will merge vertices based on distance (by default 5 pixels).

Example

Input image
Pipeline
Result

Download pipeline

Converting ROI to filaments

ImageJ 2D ROIs are points that are connected to form an outline around an area. This similarity enables the direct conversion of ROIs to filaments.

  1. Obtain a 2D ImageJ ROI, for example via Find particles 2D.

  2. Convert the ROI data into filaments via Convert 2D ROI to filaments.

  3. The resulting filament may have a very high resolution. While optional for ROI to filament conversion, a Smooth filaments that will merge vertices based on distance (by default 5 pixels) can be useful.

Example

Input image
Pipeline
Result

Download pipeline

Last modified: 19 September 2024