sct_compute_hausdorff_distance¶
C o m p u t e t h e H a u s d o r f f ‘ s d i s t a n c e b e t w e e n t w o b i n a r y i m a g e s w h i c h c a n b e t h i n n e d ( i e s k e l e t o n i z e d ) . I f o n l y o n e i m a g e i s i n p u t t e d , i t w i l l b e o n l y t h i n n e d Compute the Hausdorff’s distance between two binary images which can be thinned (ie skeletonized). If only one image is inputted, it will be only thinned
usage: sct_compute_hausdorff_distance -i <file> [-d <file>] [-thinning {0,1}]
[-resampling <float>] [-o <str>] [-h]
[-v <int>]
MANDATORY ARGUMENTS¶
- -i
F i r s t i m a g e o n w h i c h y o u w a n t t o f i n d t h e s k e l e t o n . E x a m p l e : ` t 2 s t a r _ m a n u a l _ g m s e g . n i i . g z ` First image on which you want to find the skeleton. Example:
t2star_manual_gmseg.nii.gz
OPTIONAL ARGUMENTS¶
- -d
S e c o n d I m a g e o n w h i c h y o u w a n t t o f i n d t h e s k e l e t o n . E x a m p l e : ` t 2 s t a r _ m a n u a l _ g m s e g . n i i . g z ` Second Image on which you want to find the skeleton. Example:
t2star_manual_gmseg.nii.gz- -thinning
P o s s i b l e c h o i c e s : 0 , 1 Possible choices: 0, 1
T h i n n i n g : f i n d t h e s k e l e t o n o f t h e b i n a r y i m a g e s u s i n g t h e Z h a n g - S u e n a l g o r i t h m ( 1 9 8 4 ) a n d u s e i t t o c o m p u t e t h e h a u s d o r f f ‘ s d i s t a n c e Thinning : find the skeleton of the binary images using the Zhang-Suen algorithm (1984) and use it to compute the hausdorff’s distance
D e f a u l t : ` ` 1 ` ` Default:
1- -resampling
P i x e l s i z e i n m m t o r e s a m p l e t o . Pixel size in mm to resample to.
D e f a u l t : ` ` 0 . 1 ` ` Default:
0.1- -o
N a m e o f t h e o u t p u t f i l e . Name of the output file.
D e f a u l t : ` ` ‘ h a u s d o r f f _ d i s t a n c e . t x t ‘ ` ` Default:
'hausdorff_distance.txt'
MISC ARGUMENTS¶
- -v
P o s s i b l e c h o i c e s : 0 , 1 , 2 Possible choices: 0, 1, 2
V e r b o s i t y . 0 : D i s p l a y o n l y e r r o r s / w a r n i n g s , 1 : E r r o r s / w a r n i n g s + i n f o m e s s a g e s , 2 : D e b u g m o d e . Verbosity. 0: Display only errors/warnings, 1: Errors/warnings + info messages, 2: Debug mode.
D e f a u l t : ` ` 1 ` ` Default:
1