Skip to content

Examples

Erik Smistad edited this page Feb 2, 2021 · 54 revisions

Contents

Python

All the python examples can be found in the repository.

Example Result
Load an image and display it
Load an whole slide image (WSI) and display it
Convert a numpy ndarray image to a FAST image and display it
Generate tissue patches from a whole slide image WSI
Filter an image in FAST, convert it to numpy ndarrays and display it with matplotlib
Neural network segmentation of ultrasound images using OpenVINO
Capture individual frames of a video file, convert to images and display with matplotlib
Block matching based ultrasound speckle tracking
Stream images from webcamera and apply edge detection
Stream images from Clarius ultrasound scanner and apply a non-local means (NLM) filter

C++ Examples

The C++ examples are located in the bin folder of your downloaded release. The source code of all C++ examples can be found in the repository.

Most of the examples require that you have installed the test data.

Building examples
To build all examples, set the FAST_BUILD_EXAMPLES cmake option. The example executables will be in the bin folder of your build directory. You will find all example source files in the folder source/FAST/Examples.

Data import

Name Objects used
Import image from file
Stream images from disk ImageFileStreamer, ImageRenderer
Import mesh from file VTKMeshFileImporter, TriangleRenderer
Import point set from file VTKMeshFileImporter, VertexRenderer
Import line set from file VTKMeshFileImporter, LineRenderer
Stream depth and color data from a Kinect device KinectStreamer
Import and view whole slide microscopy image WholeSlideImageImporter, ImagePyramidRenderer
Stream images from Clarius ultrasound scanner ClariusStreamer

Data export

Name Objects used

Filtering

Name Objects used
Gaussian smoothing filter GaussianSmoothingFilter, ImageFileImporter, ImageRenderer
Non local means filter

Segmentation

Name Objects used
Binary thresholding BinaryThresolding, ImageFileImporter, ImageRenderer, SegmentationRenderer
Seeded region growing SeededRegionGrowingSegmentation, ImageFileImporter, SurfaceExtraction, MeshRenderer
Airway segmentation and centerline extraction AirwaySegmentation, CenterlineExtraction, ImageFileImporter, SurfaceExtraction, MeshRenderer, LineRenderer
Lung segmentation LungSegmentation, SurfaceExtraction, MeshRenderer
Neural network ultasound segmentation SegmentationNetwork, SegmentationRenderer
Neural network CT volume segmentation SegmentationNetwork, AlphaBlendingVolumeRenderer
Neural network whole slide microscopy image (WSI) segmentation WholeSlideImageImporter, ImagePyramidRenderer, NeuralNetwork

Registration

Name Objects used
Iterative closest point IterativeClosestPoint, VTKPointSetFileImporter, PointRenderer

Visualization

Name Objects used
Extract surface mesh from volume and visualize it SurfaceExtraction, MeshRenderer, ImageFileImporter

Graphical user interface

Name Objects used
Simple GUI to change parameters of algorithms and visualize the result Window, GaussianSmoothingFilter, SurfaceExtraction, MeshRenderer, ImageFileImporter

Interoperability

Name Objects used
Use FAST in an existing Qt application QWidget, ImageFileStreamer, ImageRenderer

Extending FAST

Name Objects used
Create an algorithm in FAST ProcessObject, Image

Text pipelines

FAST has a system for defining pipelines using simple text files. This enables you to create processing and visualization pipelines without programming and compiling, making it very easy to test pipelines with different parameters and input data.

Clone this wiki locally