root / README_LSM.txt @ 31
Historique | Voir | Annoter | Télécharger (3,59 ko)
1 | 15 | tmoreau | ---------------------------------------------------------------------- |
---|---|---|---|
2 | 26 | akiss | - lsm3d - |
3 | 26 | akiss | Tools for segmenting 3D images of plant tissues |
4 | 26 | akiss | at multiple scales using the level set method¶ |
5 | 15 | tmoreau | ---------------------------------------------------------------------- |
6 | 27 | akiss | Authors : |
7 | 27 | akiss | Typhaine Moreau, Annamaria Kiss (Laboratoire RDP, ENS Lyon) |
8 | 27 | akiss | ---------------------------------------------------------------------- |
9 | 15 | tmoreau | |
10 | 31 | akiss | The "lsm3d" tools |
11 | 31 | akiss | ----------------- |
12 | 31 | akiss | - lsm_contour --> detects the outer surface of the tissue |
13 | 31 | akiss | - lsm_cells --> used to cellular segmentation or nuclei detection |
14 | 31 | akiss | |
15 | 31 | akiss | Dependencies |
16 | 31 | akiss | ------------- |
17 | 31 | akiss | The levelset tools make use of the CImg image processing C++ library, which in turn needs Xlib library. |
18 | 31 | akiss | Furthermore, the lsm_cells tool is parallelized using OpenMP. |
19 | 31 | akiss | |
20 | 31 | akiss | In particular, if you do not have Xlib on your computer, you may add it: |
21 | 31 | akiss | - on Ubuntu: |
22 | 31 | akiss | sudo apt-get install libx11-dev |
23 | 31 | akiss | - on MacOS X: |
24 | 31 | akiss | install xQuartz from www.xquartz.org |
25 | 31 | akiss | |
26 | 26 | akiss | Download |
27 | 26 | akiss | -------- |
28 | 31 | akiss | In a terminal go to the directory where you wish to download and install the tool |
29 | 31 | akiss | cd Path_to_your_directory |
30 | 26 | akiss | svn --username $USER checkout http://forge.cbp.ens-lyon.fr/svn/levelsetmethod/lsm3D |
31 | 15 | tmoreau | |
32 | 26 | akiss | Compile |
33 | 26 | akiss | -------- |
34 | 26 | akiss | cd lsm3D |
35 | 26 | akiss | ./lsm3D_compile.sh |
36 | 15 | tmoreau | |
37 | 31 | akiss | Troubleshooting if problems with compilation : |
38 | 31 | akiss | In lsm3D_compile.sh |
39 | 31 | akiss | - you might have to choose an appropriate compiler, which supports OpenMP. |
40 | 31 | akiss | - you might need to precise the location of the X11 library in the compilation options. |
41 | 15 | tmoreau | |
42 | 31 | akiss | |
43 | 26 | akiss | The following binaries will be generated in the bin directory : |
44 | 26 | akiss | -------------------------------------------------------------- |
45 | 26 | akiss | - lsm_contour --> detects the outer surface of the tissue |
46 | 26 | akiss | - lsm_cells --> used to cellular segmentation or nuclei detection |
47 | 15 | tmoreau | |
48 | 15 | tmoreau | |
49 | 26 | akiss | **** lsm_contour --> detects the outer surface of the tissue |
50 | 15 | tmoreau | ------------------------------------------------------- |
51 | 15 | tmoreau | |
52 | 31 | akiss | Usage : lsm_contour img t_up t_down a b smooth perUp perDown |
53 | 26 | akiss | Examples for parameter values: |
54 | 26 | akiss | ------------------------------ |
55 | 26 | akiss | img : grayscale image of cells, (.inr or .inr.gz) |
56 | 26 | akiss | Upper threshold : t_up = 20 |
57 | 26 | akiss | Down threshold : t_down = 5 |
58 | 26 | akiss | Area term : a = 0 (0.5, 1) |
59 | 26 | akiss | Curvature term : b = 0 (1) |
60 | 26 | akiss | Gaussian filter : smooth = 1 (0, if image already filtered) |
61 | 26 | akiss | Stop criteria : the contour evolution is in [perDown,perUp] for 10 consecutive iterations |
62 | 26 | akiss | perUp = 0.002, perDown = -0.002 |
63 | 15 | tmoreau | |
64 | 26 | akiss | Test : |
65 | 26 | akiss | ------ |
66 | 31 | akiss | lsm_detect_contour sample-stack.inr.gz 20 10 0 0 1 0.002 -0.002 |
67 | 15 | tmoreau | |
68 | 15 | tmoreau | |
69 | 26 | akiss | **** lsm_cells --> for cellular segmentation or nuclei detection |
70 | 26 | akiss | ------------------------------------------------------------- |
71 | 15 | tmoreau | |
72 | 26 | akiss | Usage : lsm_cells img img_wat img_contour erosion [a b smooth lsm_type] |
73 | 26 | akiss | ----------------- |
74 | 26 | akiss | img : grayscale image of cells, (.inr or .inr.gz) |
75 | 26 | akiss | img_wat : image of seeds, (.inr or .inr.gz) |
76 | 26 | akiss | img_contour : mask, where cells do not evolve, (.inr or .inr.gz) |
77 | 26 | akiss | if 'None', then cells can evolve on the whole image |
78 | 26 | akiss | erosion : amount of erosion of seeds for initialisation (uint8) --> -2, 0, 2 |
79 | 26 | akiss | if 0, then no erosion or dilation |
80 | 26 | akiss | if negative, then a dilation is performed |
81 | 26 | akiss | a : area term (float) --> 0 or 0.5 or 1 (the default is 0.5) |
82 | 26 | akiss | if negative, the object retracts |
83 | 26 | akiss | if positive, the object inflates |
84 | 26 | akiss | b : curvature term (float) --> 0 or 1 (the default is 0) |
85 | 26 | akiss | gamma : scale parameter (float>0) --> 0.5 or 1 (the default is 1) |
86 | 26 | akiss | smooth : gaussian blur to apply to the image (int) --> 0 or 1 (the default is 0) |
87 | 26 | akiss | lsm_type : image, gradient or hessien based evolution --> 'i', 'g' or 'h' (the default is g) |
88 | 15 | tmoreau | |
89 | 26 | akiss | Test : |
90 | 26 | akiss | ------ |
91 | 31 | akiss | lsm_cells sample-satck.inr.gz sample-satck-wat.inr.gz 'None' 2 0.3 0 0.2 1 'h' |
92 | 31 | akiss | or |
93 | 31 | akiss | 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 | 15 | tmoreau |