The distance transform labels every foreground pixel with its distance to the nearest background pixel — the backbone of watershed segmentation, skeletonization, and shape analysis. Upload any image, binarize it with Otsu or a manual threshold, and explore the L2 distance field as a colormapped heatmap, an overlay, or a raw grayscale field.
Upload
Adjust & Preview
Pixlane is loading locally. Supported local media processing, no signup, and supported file contents are not uploaded for processing.
The distance transform labels every foreground pixel with its distance to the nearest background pixel — the backbone of watershed segmentation, skeletonization, and shape analysis. Upload any image, binarize it with Otsu or a manual threshold, and explore the L2 distance field as a colormapped heatmap, an overlay, or a raw grayscale field.
Supported media processing runs on your device, and file contents are not uploaded for processing. Site analytics and the assistant are separate. Core access currently requires no signup; tool-specific limits may apply.
It powers watershed marker generation, skeletonization, robot path planning, morphological operations, and shape thickness measurements — anywhere you need how far am I from the boundary per pixel.
Each colormap band is an iso-distance contour: pixels in the same band sit at the same distance from the nearest edge. Centers of blobs glow brightest because they are farthest from any boundary.
Euclidean (L2) distance with a 3x3 mask via OpenCV distanceTransform, normalized to 0-255 for display.
No. The transform runs in WebAssembly entirely in your browser.