fastremap 1.15.2__cp39-cp39-win32.whl → 1.16.1__cp39-cp39-win32.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.
- {fastremap-1.15.2.dist-info → fastremap-1.16.1.dist-info}/METADATA +10 -1
- fastremap-1.16.1.dist-info/RECORD +8 -0
- {fastremap-1.15.2.dist-info → fastremap-1.16.1.dist-info}/WHEEL +1 -1
- fastremap-1.16.1.dist-info/pbr.json +1 -0
- fastremap.cp39-win32.pyd +0 -0
- fastremap-1.15.2.dist-info/RECORD +0 -8
- fastremap-1.15.2.dist-info/pbr.json +0 -1
- {fastremap-1.15.2.dist-info → fastremap-1.16.1.dist-info}/licenses/AUTHORS +0 -0
- {fastremap-1.15.2.dist-info → fastremap-1.16.1.dist-info}/licenses/LICENSE +0 -0
- {fastremap-1.15.2.dist-info → fastremap-1.16.1.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: fastremap
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.16.1
|
4
4
|
Summary: Remap, mask, renumber, unique, and in-place transposition of 3D labeled images. Point cloud too.
|
5
5
|
Home-page: https://github.com/seung-lab/fastremap/
|
6
6
|
Author: William Silversmith
|
@@ -42,12 +42,18 @@ Renumber and relabel Numpy arrays at C++ speed and physically convert rectangula
|
|
42
42
|
import fastremap
|
43
43
|
|
44
44
|
uniq, cts = fastremap.unique(labels, return_counts=True) # may be much faster than np.unique
|
45
|
+
|
46
|
+
idxs = fastremap.indices(labels, 1231) # important for huge arrays
|
47
|
+
|
45
48
|
labels, remapping = fastremap.renumber(labels, in_place=True) # relabel values from 1 and refit data type
|
46
49
|
ptc = fastremap.point_cloud(labels) # dict of coordinates by label
|
47
50
|
|
48
51
|
labels = fastremap.refit(labels) # resize the data type of the array to fit extrema
|
49
52
|
labels = fastremap.refit(labels, value=-35) # resize the data type to fit the value provided
|
50
53
|
|
54
|
+
wider_dtype = fastremap.widen_dtype(np.uint32) # np.uint64
|
55
|
+
narrower_dtype = fastremap.narrow_dtype(np.uint32) # np.uint16
|
56
|
+
|
51
57
|
# remap all occurances of 1 -> 2
|
52
58
|
labels = fastremap.remap(labels, { 1: 2 }, preserve_missing_labels=True, in_place=True)
|
53
59
|
|
@@ -78,8 +84,11 @@ binaries = fastremap.tobytes(labels, (64,64,64), order="F")
|
|
78
84
|
## All Available Functions
|
79
85
|
- **unique:** Faster implementation of `np.unique`.
|
80
86
|
- **renumber:** Relabel array from 1 to N which can often use smaller datatypes.
|
87
|
+
- **indices:** Optimized search for matching values.
|
81
88
|
- **remap:** Custom relabeling of values in an array from a dictionary.
|
82
89
|
- **refit:** Resize the data type of an array to the smallest that can contain the most extreme values in it.
|
90
|
+
- **narrow_dtype:** Find the next sized up dtype. e.g. uint16 -> uint32
|
91
|
+
- **widen_dtype:** Find the next sized down dtype. e.g. uint16 -> uint8
|
83
92
|
- **mask:** Zero out labels in an array specified by a given list.
|
84
93
|
- **mask_except**: Zero out all labels except those specified in a given list.
|
85
94
|
- **component_map**: Extract an int-to-int dictionary mapping of labels from one image containing component labels to another parent labels.
|
@@ -0,0 +1,8 @@
|
|
1
|
+
fastremap.cp39-win32.pyd,sha256=k-JUPvRzqM_u6EBa1Nro68DaCqFTrT2G6AM_JAHv66E,1640448
|
2
|
+
fastremap-1.16.1.dist-info/licenses/AUTHORS,sha256=a3gbgHn_kUMlt4_WanG16itXB_GSEKp5ixZxXeDydNM,185
|
3
|
+
fastremap-1.16.1.dist-info/licenses/LICENSE,sha256=fTqV5eBpeAZO0_jit8j4Ref9ikBSlHJ8xwj5TLg7gFk,7817
|
4
|
+
fastremap-1.16.1.dist-info/METADATA,sha256=rh5FKNKp6BkyAkXI3ifg9f2QXn2R4h3klrnR_LAYdak,10407
|
5
|
+
fastremap-1.16.1.dist-info/WHEEL,sha256=qKnoMhQXlxFNJRFYs-biAmpAZwkAFUKtP4maISTqZj4,95
|
6
|
+
fastremap-1.16.1.dist-info/pbr.json,sha256=G9pqxT09kCav-rkrpC565dz3IDYxSF3e6QqulTnPkb0,47
|
7
|
+
fastremap-1.16.1.dist-info/top_level.txt,sha256=D-q4-YJbbk7QpuU8fxH9rFQEjV_W6wpdruzTTDV4N5s,10
|
8
|
+
fastremap-1.16.1.dist-info/RECORD,,
|
@@ -0,0 +1 @@
|
|
1
|
+
{"git_version": "6582512", "is_release": false}
|
fastremap.cp39-win32.pyd
CHANGED
Binary file
|
@@ -1,8 +0,0 @@
|
|
1
|
-
fastremap.cp39-win32.pyd,sha256=fAGrVapiJvrxn1LRrwdkU-dPcP-Vw9LsGJtQ9oFDJ0Q,1719296
|
2
|
-
fastremap-1.15.2.dist-info/licenses/AUTHORS,sha256=a3gbgHn_kUMlt4_WanG16itXB_GSEKp5ixZxXeDydNM,185
|
3
|
-
fastremap-1.15.2.dist-info/licenses/LICENSE,sha256=fTqV5eBpeAZO0_jit8j4Ref9ikBSlHJ8xwj5TLg7gFk,7817
|
4
|
-
fastremap-1.15.2.dist-info/METADATA,sha256=SLxDp_FPjHrh1Bj3x7IWx_QxMrEbOcQU2ZeMfNmxSq4,10009
|
5
|
-
fastremap-1.15.2.dist-info/WHEEL,sha256=JOlWRbADZkIftSOVi6-MSU0Gc4nk41_GaZ_Q7-6pIWA,95
|
6
|
-
fastremap-1.15.2.dist-info/pbr.json,sha256=0DtLDCeVcm0ofRwOb1K5nkCXobHrJPoRgWjSnrJtkt0,47
|
7
|
-
fastremap-1.15.2.dist-info/top_level.txt,sha256=D-q4-YJbbk7QpuU8fxH9rFQEjV_W6wpdruzTTDV4N5s,10
|
8
|
-
fastremap-1.15.2.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
{"git_version": "b766561", "is_release": false}
|
File without changes
|
File without changes
|
File without changes
|