dcnum 0.21.0__py3-none-any.whl → 0.21.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dcnum might be problematic. Click here for more details.
- dcnum/_version.py +2 -2
- dcnum/segm/segmenter.py +8 -2
- {dcnum-0.21.0.dist-info → dcnum-0.21.1.dist-info}/METADATA +1 -1
- {dcnum-0.21.0.dist-info → dcnum-0.21.1.dist-info}/RECORD +7 -7
- {dcnum-0.21.0.dist-info → dcnum-0.21.1.dist-info}/LICENSE +0 -0
- {dcnum-0.21.0.dist-info → dcnum-0.21.1.dist-info}/WHEEL +0 -0
- {dcnum-0.21.0.dist-info → dcnum-0.21.1.dist-info}/top_level.txt +0 -0
dcnum/_version.py
CHANGED
dcnum/segm/segmenter.py
CHANGED
|
@@ -184,8 +184,8 @@ class Segmenter(abc.ABC):
|
|
|
184
184
|
|
|
185
185
|
Parameters
|
|
186
186
|
----------
|
|
187
|
-
labels: 2d integer ndarray
|
|
188
|
-
Labeled input (contains blobs
|
|
187
|
+
labels: 2d integer or boolean ndarray
|
|
188
|
+
Labeled input (contains blobs consisting of unique numbers)
|
|
189
189
|
clear_border: bool
|
|
190
190
|
clear the image boarder using
|
|
191
191
|
:func:`skimage.segmentation.clear_border`
|
|
@@ -196,6 +196,12 @@ class Segmenter(abc.ABC):
|
|
|
196
196
|
if > 0, perform a binary closing with a disk
|
|
197
197
|
of that radius in pixels
|
|
198
198
|
"""
|
|
199
|
+
if labels.dtype == np.bool_:
|
|
200
|
+
# Convert mask image to labels
|
|
201
|
+
labels, _ = ndi.label(
|
|
202
|
+
input=labels,
|
|
203
|
+
structure=ndi.generate_binary_structure(2, 2))
|
|
204
|
+
|
|
199
205
|
if clear_border:
|
|
200
206
|
#
|
|
201
207
|
# from skimage import segmentation
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
dcnum/__init__.py,sha256=hcawIKS7utYiOyVhOAX9t7K3xYzP1b9862VV0b6qSrQ,74
|
|
2
|
-
dcnum/_version.py,sha256=
|
|
2
|
+
dcnum/_version.py,sha256=oeK8U_9IGjyWRwKez2AX_i01IRr_eU-aFRKf_KFhk94,413
|
|
3
3
|
dcnum/feat/__init__.py,sha256=jUJYWTD3VIoDNKrmryXbjHb1rGwYtK4b7VPWihYgUoo,325
|
|
4
4
|
dcnum/feat/event_extractor_manager_thread.py,sha256=gmvWNMmMTuUENVbDAn59PEp4LiRDE0PQA4VYhfWQ8EY,7825
|
|
5
5
|
dcnum/feat/gate.py,sha256=svbObmqpYdqPawpfrsEjTiUPJXf24GrNi8PXTKT-z44,7225
|
|
@@ -33,7 +33,7 @@ dcnum/read/hdf5_data.py,sha256=Yyq02UTILc5ZgIQXpR9Y0wuX2WT8s0g23PraI7KxmJY,23489
|
|
|
33
33
|
dcnum/read/mapped.py,sha256=UryArlrIsHxjOyimBL2Nooi3r73zuGtnGdqdxa6PK_g,3076
|
|
34
34
|
dcnum/segm/__init__.py,sha256=iiq_1A9DU5wMUcKnsZ53E7NyzCkbZCJeUDimzunE-OM,247
|
|
35
35
|
dcnum/segm/segm_thresh.py,sha256=W9f9--aYmXpFjv3IASB6I90V40PJcIe_Jt_1iK-eHhw,946
|
|
36
|
-
dcnum/segm/segmenter.py,sha256=
|
|
36
|
+
dcnum/segm/segmenter.py,sha256=rjMiBP_0TB_b1dDQMonDUq-gH0_90jVRVi-2X8s6ZKg,12492
|
|
37
37
|
dcnum/segm/segmenter_cpu.py,sha256=e6XTlEUqXR2HBKZJxumpCCHprdX8Ql7dsbIcfdf4dH4,10831
|
|
38
38
|
dcnum/segm/segmenter_gpu.py,sha256=opgIBSL9lYFOo405xGoLUt2GuxpVQPMlPxcNHpQVt3s,1930
|
|
39
39
|
dcnum/segm/segmenter_manager_thread.py,sha256=LbNBg1R19GaDKow8pgfOFx1sE6ulS27Ky47_pJBvnK4,5850
|
|
@@ -41,8 +41,8 @@ dcnum/write/__init__.py,sha256=QvWHeZmjHI18i-YlGYuzN3i7dVWY9UCReKchrJ-gif0,260
|
|
|
41
41
|
dcnum/write/deque_writer_thread.py,sha256=ao7F1yrVKyufgC4rC0Y2_Vt7snuT6KpI7W2qVxcjdhk,1994
|
|
42
42
|
dcnum/write/queue_collector_thread.py,sha256=d_WfdsZdFnFsiAY0zVMwUlA4juIMeiWYmE_-rezBQCE,11734
|
|
43
43
|
dcnum/write/writer.py,sha256=e6J8YVqhS7kzkpPIMoDMokJpqSy1WWNdOrwaJof1oVc,15601
|
|
44
|
-
dcnum-0.21.
|
|
45
|
-
dcnum-0.21.
|
|
46
|
-
dcnum-0.21.
|
|
47
|
-
dcnum-0.21.
|
|
48
|
-
dcnum-0.21.
|
|
44
|
+
dcnum-0.21.1.dist-info/LICENSE,sha256=YRChA1C8A2E-amJbudwMcbTCZy_HzmeY0hMIvduh1MM,1089
|
|
45
|
+
dcnum-0.21.1.dist-info/METADATA,sha256=c13Yw-17pidML_hN54o-Jh4Ef8vszCfJUQTS0LYhWxc,2194
|
|
46
|
+
dcnum-0.21.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
47
|
+
dcnum-0.21.1.dist-info/top_level.txt,sha256=Hmh38rgG_MFTVDpUDGuO2HWTSq80P585Het4COQzFTg,6
|
|
48
|
+
dcnum-0.21.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|