Distance Transformation
This function block is designed to transform a grayscale image into a continuous distance value representation, where each pixel's value represents its distance to the nearest black pixel.
π₯ Inputs
Image Gray
A grayscale image that will be transformed using different distance transformation algorithms.
π€ Outputs
Image Gray
The output is a grayscale image representing the distance transformed image.
πΉοΈ Controls
Transformation Type
A dropdown menu that allows users to select the type of distance transformation to apply. Options include:
DIST_L2
- Euclidean distance.DIST_L1
- Manhattan distance.DIST_C
- Chebyshev distance.
π¨ Features
Flexible Distance Metrics
Users can choose from various transformation types to suit their specific needs.
Normalized Output
The output images are normalized to enhance the visual representation of distances.
π Usage Instructions
Input Grayscale Image: Connect a grayscale image to the
Image Gray
input.Select Transformation Type: Choose the desired distance transformation type from the
Transformation Type
dropdown.Evaluate: Run the block to obtain the distance transformed image.
π Evaluation
When executed, this function block processes the input image and generates an output image that visually represents the distance from white pixels to the nearest black pixel.
π‘ Tips and Tricks
π οΈ Troubleshooting
Last updated