Test Failed
Pull Request — master (#934)
by
unknown
04:09
created

savu.plugins.segmentation.thresholding.otsu_thresh_tools   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 38
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A OtsuThreshTools.define_parameters() 0 31 1
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