Statistiques
| Révision :

root / README_LSM.txt @ 26

Historique | Voir | Annoter | Télécharger (2,63 ko)

1
----------------------------------------------------------------------
2
			        - lsm3d -
3
    Tools for segmenting 3D images of plant tissues 
4
     at multiple scales using the level set method¶
5
----------------------------------------------------------------------
6

    
7
Download
8
--------
9
svn --username $USER checkout http://forge.cbp.ens-lyon.fr/svn/levelsetmethod/lsm3D
10

    
11
Compile
12
--------
13
cd lsm3D
14
./lsm3D_compile.sh
15

    
16

    
17
The following binaries will be generated in the bin directory :
18
--------------------------------------------------------------
19
- lsm_contour --> detects the outer surface of the tissue
20
- lsm_cells --> used to cellular segmentation or nuclei detection
21

    
22

    
23
**** lsm_contour --> detects the outer surface of the tissue
24
-------------------------------------------------------
25

    
26
Usage : lsm_detect_contour img t_up t_down a b smooth perUp perDown
27
Examples for parameter values:
28
------------------------------
29
img : grayscale image of cells, (.inr or .inr.gz)
30
Upper threshold : t_up = 20
31
Down threshold : t_down = 5
32
Area term : a = 0 (0.5, 1)
33
Curvature term : b = 0 (1)
34
Gaussian filter : smooth = 1 (0, if image already filtered)
35
Stop criteria : the contour evolution is in [perDown,perUp] for 10 consecutive iterations
36
     perUp = 0.002, perDown = -0.002
37

    
38
Test :
39
------
40
lsm_detect_contour t3_cut.inr.gz 20 10 0 0 1 0.002 -0.002
41

    
42

    
43
**** lsm_cells --> for cellular segmentation or nuclei detection
44
-------------------------------------------------------------
45

    
46
Usage : lsm_cells img img_wat img_contour erosion [a b smooth lsm_type]
47
----------------- 
48
img : grayscale image of cells, (.inr or .inr.gz)
49
img_wat : image of seeds, (.inr or .inr.gz)
50
img_contour : mask, where cells do not evolve, (.inr or .inr.gz)
51
              if 'None', then cells can evolve on the whole image
52
erosion : amount of erosion of seeds for initialisation (uint8) --> -2, 0, 2
53
              if 0, then no erosion or dilation
54
              if negative, then a dilation is performed
55
a : area term (float) --> 0 or 0.5 or 1 (the default is 0.5)
56
              if negative, the object retracts
57
              if positive, the object inflates
58
b : curvature term (float) --> 0 or 1 (the default is 0)
59
gamma : scale parameter (float>0) --> 0.5 or 1 (the default is 1)
60
smooth : gaussian blur to apply to the image (int) --> 0 or 1 (the default is 0)
61
lsm_type : image, gradient or hessien based evolution --> 'i', 'g' or 'h' (the default is g)
62

    
63
Test :
64
------
65
lsm_cells t3_cut.inr.gz t3_cut_wat.inr.gz t3_cut_LSMcont20-10a0b0s1/t3_cut_LSMcont20-10a0b0s1.inr.gz 2 0.3 0 0.2 1 'h'
66

    
67

    
68

    
69
------------------------------------------------------------
70
C++ version implemented by Typhaine Moreau based on the work of Annamaria Kiss