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.
업로드
조정 및 미리보기
Pixlane is loading locally. Supported local media processing, no signup, and supported file contents are not uploaded for processing.
거리 변환(distance transform)은 모든 전경 픽셀에 가장 가까운 배경 픽셀까지의 거리를 표시합니다 — 워터셰드 분할, 골격화, 형태 분석의 근간이 되는 기법입니다. 아무 이미지나 업로드해 Otsu 또는 수동 임계값으로 이진화한 뒤, L2 거리장을 컬러맵 히트맵, 오버레이, 또는 원본 그레이스케일 필드로 살펴보세요.
Otsu/수동 임계값, 컬러맵, 오버레이 모드로 유클리드(L2) 거리 변환 시각화 — 클래식 CV, 브라우저에서 처리.
워터셰드 마커 생성, 스켈레톤화, 로봇 경로 계획, 형태학적 연산, 형상 두께 측정 등에 사용됩니다. 즉 픽셀마다 '경계로부터 얼마나 떨어져 있는지'가 필요한 모든 곳에 쓰입니다.
컬러맵의 각 색 띠는 등거리(iso-distance) 등고선입니다. 같은 띠 안의 픽셀은 가장 가까운 엣지로부터 동일한 거리에 있습니다. 덩어리(blob)의 중심이 가장 밝게 빛나는 이유는 어떤 경계에서든 가장 멀리 떨어져 있기 때문입니다.
OpenCV의 distanceTransform으로 3x3 마스크를 사용한 유클리드(L2) 거리를 계산하며, 표시를 위해 0-255로 정규화합니다.
아니요. 변환은 전적으로 브라우저 안에서 WebAssembly로 실행됩니다.