This workflow illustrates use of a Java Snippet node to perform custom image processing using the ImgLib2 library.
For demonstration purposes, the workflow first generates some random image data. The Java Snippet code then clears the image area outside a defined spherical region of interest (ROI) by copying the input image, then iterating over its samples, checking whether each sample lies within the sphere, and if not, setting its value to zero.
This workflow requires KNIME Analytics Platform version 4.0.0 or later, with KNIME Image Processing 1.8.0 or later.
Workflow
Clear Outside Defined Sphere
External resources
Used extensions & nodes
Created with KNIME Analytics Platform version 4.0.1
Legal
By using or downloading the workflow, you agree to our terms and conditions.