You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d8bf73d
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -14288,8 +14329,9 @@ Computation of distance maps using chamfer masks.
14288
14329
\begin_layout Standard
14289
14330
In practice,
14290
14331
using integer weights may result in faster computations.
14291
-
This also allows to store the resulting distance map within 16-bits grayscale images,
14292
-
resulting in more efficient memory usage than floating point computation.
14332
+
This allows to store the resulting distance map within 16-bits grayscale images,
14333
+
resulting in more efficient memory usage than 32-bits floating point computation,
14334
+
and may be computationnally more efficient.
14293
14335
\end_layout
14294
14336
14295
14337
\begin_layout Standard
@@ -14661,13 +14703,6 @@ saturation
14661
14703
of the distance map.
14662
14704
\end_layout
14663
14705
14664
-
\begin_layout Standard
14665
-
\begin_inset Newpage clearpage
14666
-
\end_inset
14667
-
14668
-
14669
-
\end_layout
14670
-
14671
14706
\begin_layout Subsubsection
14672
14707
Chamfer distance computation
14673
14708
\end_layout
@@ -15192,7 +15227,7 @@ Enhancement of 3D distance maps when using larger chamfer masks.
15192
15227
Masks are based on (a) four,
15193
15228
(b) five,
15194
15229
or (c) six weights.
15195
-
Using All images represent the threshold of the distance 100 from image center.
15230
+
All images represent the threshold for the distance 100 from image center.
15196
15231
\end_layout
15197
15232
15198
15233
\end_inset
@@ -15249,18 +15284,18 @@ Starting from version 1.5,
15249
15284
15250
15285
\begin_layout Standard
15251
15286
As for the 2D case,
15252
-
the choice of the chamfer distance is compromise between the accuracy (larger neighborhood and weights are usually more accurate) and the largest distance that can be represented.
15287
+
the choice of the chamfer distance is a compromise between the accuracy (larger neighborhood and weights are usually more accurate) and the largest distance that can be represented.
15253
15288
\end_layout
15254
15289
15255
-
\begin_layout Subsubsection
15290
+
\begin_layout Subsection
15256
15291
Case of label images
15257
15292
\end_layout
15258
15293
15259
15294
\begin_layout Standard
15260
-
The distance transform algorithm may also be applied to label images.
15295
+
The distance transform algorithms may also be applied to label images.
15261
15296
However,
15262
15297
as regions corresponding to each label may be continuous,
15263
-
the algorithm need to be adapted.
15298
+
the algorithms need to be adapted.
15264
15299
15265
15300
\end_layout
15266
15301
@@ -15318,8 +15353,7 @@ An example of a label image containing contiguous regions,
15318
15353
For label image,
15319
15354
distances are computed between each foreground (greater than zero) pixel and the nearest pixel with a different value :
15320
15355
either 0 (the background) or another label.
15321
-
Distances are propagated as for binary images,
15322
-
using a pair of forward and backward passes.
15356
+
Distances are propagated as for binary images.
15323
15357
An example of result is provided on Figure
15324
15358
\begin_inset space ~
15325
15359
\end_inset
@@ -15335,14 +15369,103 @@ nolink "false"
15335
15369
.
15336
15370
\end_layout
15337
15371
15338
-
\begin_layout Subsubsection
15372
+
\begin_layout Standard
15373
+
\begin_inset Newpage newpage
15374
+
\end_inset
15375
+
15376
+
15377
+
\end_layout
15378
+
15379
+
\begin_layout Subsection
15339
15380
Plugin usage
15340
15381
\end_layout
15341
15382
15342
15383
\begin_layout Standard
15343
15384
The MorphoLibJ library provides two plugins for computing chamfer distance maps for 2D or 3D binary images:
15344
15385
\end_layout
15345
15386
15387
+
\begin_layout Minisec
15388
+
Euclidean Distance Map
15389
+
\begin_inset Index plu
15390
+
range none
15391
+
pageformat default
15392
+
status collapsed
15393
+
15394
+
\begin_layout Plain Layout
15395
+
15396
+
\family roman
15397
+
\series medium
15398
+
\shape up
15399
+
\size normal
15400
+
\emph off
15401
+
\nospellcheck off
15402
+
\bar no
15403
+
\strikeout off
15404
+
\xout off
15405
+
\uuline off
15406
+
\uwave off
15407
+
\noun off
15408
+
\color none
15409
+
Euclidean Distance Map
15410
+
\end_layout
15411
+
15412
+
\end_inset
15413
+
15414
+
15415
+
\end_layout
15416
+
15417
+
\begin_layout Standard
15418
+
\begin_inset CommandInset label
15419
+
LatexCommand label
15420
+
name "op:Euclidean-Distance-Map"
15421
+
15422
+
\end_inset
15423
+
15424
+
Computes the Euclidean distance map from a binary or label image,
15425
+
between each foreground pixel to the nearest pixel with a different value (either background or another label).
15426
+
\end_layout
15427
+
15428
+
\begin_layout Minisec
15429
+
Euclidean Distance Map 3D
15430
+
\begin_inset Index plu
15431
+
range none
15432
+
pageformat default
15433
+
status collapsed
15434
+
15435
+
\begin_layout Plain Layout
15436
+
15437
+
\family roman
15438
+
\series medium
15439
+
\shape up
15440
+
\size normal
15441
+
\emph off
15442
+
\nospellcheck off
15443
+
\bar no
15444
+
\strikeout off
15445
+
\xout off
15446
+
\uuline off
15447
+
\uwave off
15448
+
\noun off
15449
+
\color none
15450
+
Euclidean Distance Map 3D
15451
+
\end_layout
15452
+
15453
+
\end_inset
15454
+
15455
+
15456
+
\end_layout
15457
+
15458
+
\begin_layout Standard
15459
+
\begin_inset CommandInset label
15460
+
LatexCommand label
15461
+
name "op:Euclidean-Distance-Map-3D"
15462
+
15463
+
\end_inset
15464
+
15465
+
Computes the Euclidean distance map from a 3D binary or label image,
15466
+
between each foreground pixel to the nearest pixel with a different value (either background or another label).
15467
+
\end_layout
15468
+
15346
15469
\begin_layout Minisec
15347
15470
Chamfer Distance Map
15348
15471
\begin_inset Index plu
@@ -15380,7 +15503,7 @@ name "op:Chamfer-Distance-Map"
15380
15503
15381
15504
\end_inset
15382
15505
15383
-
computes a chamfer distance map from a binary or label image,
15506
+
Computes a chamfer distance map from a binary or label image,
15384
15507
between each foreground pixel to the nearest pixel with a different value (either background or another label).
15385
15508
\end_layout
15386
15509
@@ -15417,17 +15540,16 @@ Chamfer Distance Map 3D
15417
15540
\begin_layout Standard
15418
15541
\begin_inset CommandInset label
15419
15542
LatexCommand label
15420
-
name "op:Chamfer-Distance-Map-3d"
15543
+
name "op:Chamfer-Distance-Map-3D"
15421
15544
15422
15545
\end_inset
15423
15546
15424
-
computes a chamfer distance map from a 3D binary image between each foreground voxel to the nearest voxel with a different value (either background or another label).
15547
+
Computes a chamfer distance map from a 3D binary image between each foreground voxel to the nearest voxel with a different value (either background or another label).
15425
15548
Input image is assumed to have cubic voxels.
15426
15549
\end_layout
15427
15550
15428
15551
\begin_layout Standard
15429
-
For each plugin,
15430
-
a dialog opens and allows to select the following parameters:
15552
+
The following options may be adjusted:
15431
15553
\end_layout
15432
15554
15433
15555
\begin_layout Labeling
@@ -15463,7 +15585,7 @@ Preview (2D only) enable the preview of the result
15463
15585
15464
15586
\end_layout
15465
15587
15466
-
\begin_layout Subsection
15588
+
\begin_layout Section
15467
15589
Geodesic distance transform
15468
15590
\end_layout
15469
15591
@@ -15675,7 +15797,7 @@ Computation of the geodesic distance map on a 3D binary image.
15675
15797
15676
15798
\end_layout
15677
15799
15678
-
\begin_layout Subsubsection
15800
+
\begin_layout Subsection
15679
15801
Plugins
15680
15802
\end_layout
15681
15803
@@ -15835,7 +15957,7 @@ nolink "false"
15835
15957
Binary image is assumed to have cubic voxels.
15836
15958
\end_layout
15837
15959
15838
-
\begin_layout Subsubsection
15960
+
\begin_layout Subsection
15839
15961
Results interpretation
15840
15962
\end_layout
15841
15963
@@ -16000,7 +16122,7 @@ When computation are performed with integers,
Copy file name to clipboardExpand all lines: doc/MorphoLibJ-manual/bibliography.bib
+68Lines changed: 68 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -808,4 +808,72 @@ @Misc{Kovesi_2015
808
808
url = {https://arxiv.org/abs/1509.03700},
809
809
}
810
810
811
+
@Article{Saito_Toriwaki_1994_PattRec,
812
+
author = {Toyofumi Saito and Jun-Ichiro Toriwaki},
813
+
journal = {Pattern Recognition},
814
+
title = {New algorithms for euclidean distance transformation of an n-dimensional digitized picture with applications},
815
+
year = {1994},
816
+
issn = {0031-3203},
817
+
number = {11},
818
+
pages = {1551-1565},
819
+
volume = {27},
820
+
abstract = {In this paper, we propose a new method to obtain the Euclidean distance transformation and the Voronoi diagram based on the exact Euclidean metric for an n-dimensional picture. We present four algorithms to perform the transformation which are constructed by the serial composition of n-dimensional filters. When performed by a general purpose computer, they are faster than the method by H. Yamada for a two-dimensional picture. Those algorithms require only one n-dimensional array for storing input/output pictures and a single one-dimensional array for a work area, if an input picture needs not be preserved.},
821
+
creationdate = {2025-11-20T17:18:58},
822
+
doi = {https://doi.org/10.1016/0031-3203(94)90133-3},
823
+
file = {:Saito_Toriwaki_1994_PattRec.pdf:PDF},
824
+
groups = {distance transform, Distance transform},
0 commit comments