Statistiques
| Révision :

root / README_LSM.txt @ 31

Historique | Voir | Annoter | Télécharger (3,59 ko)

1
----------------------------------------------------------------------
2
			        - lsm3d -
3
    Tools for segmenting 3D images of plant tissues 
4
     at multiple scales using the level set method¶
5
----------------------------------------------------------------------
6
Authors :
7
Typhaine Moreau, Annamaria Kiss (Laboratoire RDP, ENS Lyon)
8
----------------------------------------------------------------------
9

    
10
The "lsm3d" tools
11
-----------------
12
- lsm_contour --> detects the outer surface of the tissue
13
- lsm_cells --> used to cellular segmentation or nuclei detection
14

    
15
Dependencies
16
-------------
17
The levelset tools make use of the CImg image processing C++ library, which in turn needs Xlib library.
18
Furthermore, the lsm_cells tool is parallelized using OpenMP.
19

    
20
In particular, if you do not have Xlib on your computer, you may add it:
21
- on Ubuntu:
22
    sudo apt-get install libx11-dev
23
- on MacOS X:
24
    install xQuartz from www.xquartz.org
25

    
26
Download
27
--------
28
In a terminal go to the directory where you wish to download and install the tool
29
cd Path_to_your_directory
30
svn --username $USER checkout http://forge.cbp.ens-lyon.fr/svn/levelsetmethod/lsm3D
31

    
32
Compile
33
--------
34
cd lsm3D
35
./lsm3D_compile.sh
36

    
37
Troubleshooting if problems with compilation :
38
In lsm3D_compile.sh
39
- you might have to choose an appropriate compiler, which supports OpenMP.
40
- you might need to precise the location of the X11 library in the compilation options.
41

    
42

    
43
The following binaries will be generated in the bin directory :
44
--------------------------------------------------------------
45
- lsm_contour --> detects the outer surface of the tissue
46
- lsm_cells --> used to cellular segmentation or nuclei detection
47

    
48

    
49
**** lsm_contour --> detects the outer surface of the tissue
50
-------------------------------------------------------
51

    
52
Usage : lsm_contour img t_up t_down a b smooth perUp perDown
53
Examples for parameter values:
54
------------------------------
55
img : grayscale image of cells, (.inr or .inr.gz)
56
Upper threshold : t_up = 20
57
Down threshold : t_down = 5
58
Area term : a = 0 (0.5, 1)
59
Curvature term : b = 0 (1)
60
Gaussian filter : smooth = 1 (0, if image already filtered)
61
Stop criteria : the contour evolution is in [perDown,perUp] for 10 consecutive iterations
62
     perUp = 0.002, perDown = -0.002
63

    
64
Test :
65
------
66
lsm_detect_contour sample-stack.inr.gz 20 10 0 0 1 0.002 -0.002
67

    
68

    
69
**** lsm_cells --> for cellular segmentation or nuclei detection
70
-------------------------------------------------------------
71

    
72
Usage : lsm_cells img img_wat img_contour erosion [a b smooth lsm_type]
73
----------------- 
74
img : grayscale image of cells, (.inr or .inr.gz)
75
img_wat : image of seeds, (.inr or .inr.gz)
76
img_contour : mask, where cells do not evolve, (.inr or .inr.gz)
77
              if 'None', then cells can evolve on the whole image
78
erosion : amount of erosion of seeds for initialisation (uint8) --> -2, 0, 2
79
              if 0, then no erosion or dilation
80
              if negative, then a dilation is performed
81
a : area term (float) --> 0 or 0.5 or 1 (the default is 0.5)
82
              if negative, the object retracts
83
              if positive, the object inflates
84
b : curvature term (float) --> 0 or 1 (the default is 0)
85
gamma : scale parameter (float>0) --> 0.5 or 1 (the default is 1)
86
smooth : gaussian blur to apply to the image (int) --> 0 or 1 (the default is 0)
87
lsm_type : image, gradient or hessien based evolution --> 'i', 'g' or 'h' (the default is g)
88

    
89
Test :
90
------
91
lsm_cells sample-satck.inr.gz sample-satck-wat.inr.gz 'None' 2 0.3 0 0.2 1 'h'
92
or
93
lsm_cells sample-satck.inr.gz sample-satck-wat.inr.gz sample-satck_LSMcont20-10a0b0s1/sample-satck_LSMcont20-10a0b0s1.inr.gz 2 0.3 0 0.2 1 'h'
94

    
95