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 እያንዳንዱን የፊት-ገፅ (foreground) ፒክሰል ወደ ቅርብ የጀርባ (background) ፒክሰል ካለው ርቀት ጋር ይሰይማል — የwatershed segmentation፣ የskeletonization እና የቅርፅ ትንተና የጀርባ አጥንት ነው። ማንኛውንም ምስል ይስቀሉ፣ በOtsu ወይም በእጅ threshold binarize ያድርጉት፣ እና የL2 ርቀት መስክን እንደ colormapped heatmap፣ እንደ overlay ወይም እንደ ጥሬ grayscale መስክ ያስሱ።
የ ኡክሊዲያን (L2) ርቀት-ትራንስፎርም በ Otsu/በእጅ ገደብ-ማበጀት፣ ቀለም-ካርታዎች እና ኦቨርሌይ ሁነታ አሳይ — ክላሲክ CV፣ በአሳሽ ውስጥ።
የ watershed ማርከር ማመንጨትን፣ skeletonization ን፣ የሮቦት መንገድ እቅድ ማውጣትን፣ morphological ኦፕሬሽኖችን፣ እና የቅርፅ ውፍረት መለኪያዎችን ያንቀሳቅሳል — በእያንዳንዱ ፒክሰል 'ከድንበሩ ምን ያህል ርቄያለሁ' የሚለውን በሚያስፈልግበት በማንኛውም ቦታ።
እያንዳንዱ የ colormap ባንድ የ iso-distance contour ነው፦ በአንድ ባንድ ውስጥ ያሉ ፒክሰሎች ከቅርብ ጠርዝ በተመሳሳይ ርቀት ላይ ይቀመጣሉ። የ blobs መሃከሎች በጣም ብሩህ ሆነው ያበራሉ ምክንያቱም ከማንኛውም ድንበር በጣም የራቁ ስለሆኑ ነው።
በ OpenCV distanceTransform በኩል በ 3x3 mask የ Euclidean (L2) ርቀት፣ ለማሳያ ወደ 0-255 መደበኛ ተደርጓል።
አይሰቀልም። Transform ሙሉ በሙሉ በአሳሽዎ ውስጥ በ WebAssembly ይሰራል።