Total Complexity | 1 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from savu.plugins.plugin_tools import PluginTools |
||
2 | |||
3 | class OtsuThreshTools(PluginTools): |
||
4 | """A Plugin to segment the data using Otsu's method |
||
5 | """ |
||
6 | |||
7 | def define_parameters(self): |
||
8 | """ |
||
9 | cropping: |
||
10 | visibility: basic |
||
11 | dtype: bool |
||
12 | options: [True, False] |
||
13 | description: Calculate cropping values based on Otsu segmentation (will not actually crop the output) |
||
14 | default: False |
||
15 | |||
16 | directions: |
||
17 | visibility: intermediate |
||
18 | dtype: list[str] |
||
19 | description: Which directions to crop out, relative to sample. |
||
20 | default: ["left", "above", "right", "below"] |
||
21 | |||
22 | buffer: |
||
23 | visibility: intermediate |
||
24 | dtype: int |
||
25 | description: Expand cropping values by this amount to give some space around cropped object. |
||
26 | default: 60 |
||
27 | |||
28 | |||
29 | pattern: |
||
30 | visibility: intermediate |
||
31 | dtype: str |
||
32 | options: [PROJECTION, SINOGRAM, VOLUME_XZ] |
||
33 | description: Pattern to apply this to. |
||
34 | default: PROJECTION |
||
35 | |||
36 | """ |
||
37 | pass |
||
38 |