forked from Cytomine-ULiege/S_Segment-CV-AdaptThres-Sample
-
Notifications
You must be signed in to change notification settings - Fork 1
/
descriptor.json
157 lines (157 loc) · 4.88 KB
/
descriptor.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"name": "Segment-CV-AdaptThres-Sample",
"description": "Detect samples in images using an adaptive threshold.",
"schema-version": "cytomine-0.1",
"container-image": {
"image": "cytomine/s_segment-cv-adaptthres-sample",
"index": "docker://",
"type": "singularity"
},
"command-line": "python run.py [CYTOMINE_HOST] [CYTOMINE_PUBLIC_KEY] [CYTOMINE_PRIVATE_KEY] [CYTOMINE_ID_PROJECT] [CYTOMINE_ID_SOFTWARE] [LOG_LEVEL] [CYTOMINE_ID_IMAGES] [CYTOMINE_ID_PREDICTED_TERM] [MAX_IMAGE_SIZE] [THRESHOLD_CONSTANT] [THRESHOLD_BLOCKSIZE] [ERODE_ITERATIONS] [DILATE_ITERATIONS] [IMAGE_AREA_PERC_THRESHOLD]",
"inputs": [
{
"id": "cytomine_host",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine host",
"set-by-server": true,
"optional": false,
"type": "String"
},
{
"id": "cytomine_public_key",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine public key",
"set-by-server": true,
"optional": false,
"type": "String"
},
{
"id": "cytomine_private_key",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine private key",
"set-by-server": true,
"optional": false,
"type": "String"
},
{
"id": "cytomine_id_project",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine project ID",
"set-by-server": true,
"optional": false,
"type": "Number"
},
{
"id": "cytomine_id_software",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine software ID",
"set-by-server": true,
"optional": false,
"type": "Number"
},
{
"id": "cytomine_id_images",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine image identifiers",
"description": "The identifiers of the images to process. If not specified all images of the project will be processed.",
"set-by-server": false,
"optional": true,
"type": "ListDomain",
"uri": "/api/project/$currentProject$/imageinstance.json",
"uri-print-attribute": "instanceFilename"
},
{
"id": "cytomine_id_predicted_term",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Term to predict",
"description": "The term that will be associated to detected samples",
"optional": false,
"type": "Domain",
"uri": "/api/ontology/$currentOntology$/term.json",
"uri-print-attribute": "name",
"uri-sort-attribute": "name"
},
{
"id": "max_image_size",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Maximum image size",
"description": "Image is resized during the detection if the real image is larger.",
"optional": false,
"type": "Number",
"integer": true,
"default-value": "2048"
},
{
"id": "threshold_blocksize",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Threshold block size",
"description": "Size of a pixel neighborhood that is used to calculate a threshold value for the pixel",
"optional": false,
"type": "Number",
"default-value": "951"
},
{
"id": "threshold_constant",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Threshold constant",
"description": "Constant C used in the computation of threshold value T(x,y) which is the weighted sum of the blockSize * blockSize neighborhood of (x,y) - C",
"optional": false,
"type": "Number",
"default-value": "5"
},
{
"id": "erode_iterations",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Number of erosions",
"optional": false,
"type": "Number",
"integer": true,
"default-value": "3"
},
{
"id": "dilate_iterations",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Number of dilations",
"optional": false,
"type": "Number",
"integer": true,
"default-value": "3"
},
{
"id": "image_area_perc_threshold",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Image Area Percentile Threshold",
"description": "The detected component with an area less than the image area multipled by this percentile value will not be kept",
"optional": false,
"type": "Number",
"integer": true,
"minimum": 0,
"maximum": 100,
"default-value": "5"
},
{
"id": "log_level",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"default": "INFO",
"name": "Logging verbosity",
"description": "The level is given by a value among 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'",
"set-by-server": false,
"optional": true,
"type": "String"
}
]
}