fastremap 1.11.1__cp38-cp38-macosx_11_0_arm64.whl → 1.15.0__cp38-cp38-macosx_11_0_arm64.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.11.1.dist-info → fastremap-1.15.0.dist-info}/METADATA +23 -14
- fastremap-1.15.0.dist-info/RECORD +8 -0
- {fastremap-1.11.1.dist-info → fastremap-1.15.0.dist-info}/WHEEL +1 -1
- fastremap-1.15.0.dist-info/pbr.json +1 -0
- fastremap.cpython-38-darwin.so +0 -0
- fastremap-1.11.1.dist-info/RECORD +0 -8
- fastremap-1.11.1.dist-info/pbr.json +0 -1
- {fastremap-1.11.1.dist-info → fastremap-1.15.0.dist-info}/AUTHORS +0 -0
- {fastremap-1.11.1.dist-info → fastremap-1.15.0.dist-info}/LICENSE +0 -0
- {fastremap-1.11.1.dist-info → fastremap-1.15.0.dist-info}/top_level.txt +0 -0
@@ -1,28 +1,28 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fastremap
|
3
|
-
Version: 1.
|
4
|
-
Summary: Remap, mask, renumber, and in-place
|
3
|
+
Version: 1.15.0
|
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
|
7
7
|
Author-email: ws9@princeton.edu
|
8
|
-
License: LGPLv3
|
9
|
-
Platform: UNKNOWN
|
10
8
|
Classifier: Intended Audience :: Developers
|
11
|
-
Classifier: Development Status ::
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
12
10
|
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
|
13
11
|
Classifier: Programming Language :: Python
|
14
|
-
Classifier: Programming Language :: Python :: 2
|
15
|
-
Classifier: Programming Language :: Python :: 2.7
|
16
12
|
Classifier: Programming Language :: Python :: 3
|
17
|
-
Classifier: Programming Language :: Python :: 3.5
|
18
|
-
Classifier: Programming Language :: Python :: 3.6
|
19
13
|
Classifier: Programming Language :: Python :: 3.7
|
20
14
|
Classifier: Programming Language :: Python :: 3.8
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
21
18
|
Classifier: Topic :: Utilities
|
19
|
+
Requires-Python: >=3.8,<4.0
|
22
20
|
Description-Content-Type: text/markdown
|
21
|
+
License-File: LICENSE
|
22
|
+
License-File: AUTHORS
|
23
23
|
Requires-Dist: numpy
|
24
24
|
|
25
|
-
[](https://badge.fury.io/py/fastremap)
|
26
26
|
|
27
27
|
# fastremap
|
28
28
|
|
@@ -33,6 +33,7 @@ import fastremap
|
|
33
33
|
|
34
34
|
uniq, cts = fastremap.unique(labels, return_counts=True) # may be much faster than np.unique
|
35
35
|
labels, remapping = fastremap.renumber(labels, in_place=True) # relabel values from 1 and refit data type
|
36
|
+
ptc = fastremap.point_cloud(labels) # dict of coordinates by label
|
36
37
|
|
37
38
|
labels = fastremap.refit(labels) # resize the data type of the array to fit extrema
|
38
39
|
labels = fastremap.refit(labels, value=-35) # resize the data type to fit the value provided
|
@@ -53,7 +54,15 @@ fastremap.asfortranarray(labels) # try to perform a physical in-place transposit
|
|
53
54
|
minval, maxval = fastremap.minmax(labels) # faster version of (np.min(labels), np.max(labels))
|
54
55
|
|
55
56
|
# computes number of matching adjacent pixel pairs in an image
|
56
|
-
num_pairs = fastremap.pixel_pairs(labels)
|
57
|
+
num_pairs = fastremap.pixel_pairs(labels)
|
58
|
+
n_foreground = fastremap.foreground(labels) # number of nonzero voxels
|
59
|
+
|
60
|
+
# computes the cutout.tobytes(order) of each chunk and returns
|
61
|
+
# the binaries indexed by fortran order in the order specified (C or F)
|
62
|
+
# If the input image is F contiguous and F is requested, or C and C order,
|
63
|
+
# and the image is larger than a single chunk, this will be significantly
|
64
|
+
# faster than iterating and using tobytes.
|
65
|
+
binaries = fastremap.tobytes(labels, (64,64,64), order="F")
|
57
66
|
```
|
58
67
|
|
59
68
|
## All Available Functions
|
@@ -71,7 +80,9 @@ num_pairs = fastremap.pixel_pairs(labels)
|
|
71
80
|
- **ascontiguousarray:** Perform an in-place matrix transposition for rectangular arrays if memory is contiguous, standard numpy algorithm otherwise.
|
72
81
|
- **minmax:** Compute the min and max of an array in one pass.
|
73
82
|
- **pixel_pairs:** Computes the number of adjacent matching memory locations in an image. A quick heuristic for understanding if the image statistics are roughly similar to a connectomics segmentation.
|
74
|
-
|
83
|
+
- **foreground:** Count the number of non-zero voxels rapidly.
|
84
|
+
- **point_cloud:** Get the X,Y,Z locations of each foreground voxel grouped by label.
|
85
|
+
- **tobytes**: Compute the tobytes of an image divided into a grid and return the resultant binaries indexed by their gridpoint in fortran order with the binary in the order requested (C or F).
|
75
86
|
|
76
87
|
## `pip` Installation
|
77
88
|
|
@@ -206,5 +217,3 @@ int main() {
|
|
206
217
|
--
|
207
218
|
Made with <3
|
208
219
|
|
209
|
-
|
210
|
-
|
@@ -0,0 +1,8 @@
|
|
1
|
+
fastremap.cpython-38-darwin.so,sha256=_Ud5euAuEW9vsQ1-YIM2MmiaiFMR2KlqT5By4n_tMRk,2232704
|
2
|
+
fastremap-1.15.0.dist-info/RECORD,,
|
3
|
+
fastremap-1.15.0.dist-info/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
|
4
|
+
fastremap-1.15.0.dist-info/AUTHORS,sha256=Aa4H7O3dtmfq0lF_eATudy11i8K6QAI8LykzASr9bL0,52
|
5
|
+
fastremap-1.15.0.dist-info/WHEEL,sha256=gsPOSQtk_AwfrpwC2Qymh-3XZWv5-gpsKk0Ttd7iiDQ,107
|
6
|
+
fastremap-1.15.0.dist-info/pbr.json,sha256=IF2avLM9-O2y2CxH3mesM-TRiHIjg8t5pFQi735SJm4,47
|
7
|
+
fastremap-1.15.0.dist-info/top_level.txt,sha256=D-q4-YJbbk7QpuU8fxH9rFQEjV_W6wpdruzTTDV4N5s,10
|
8
|
+
fastremap-1.15.0.dist-info/METADATA,sha256=oBRRccRNpLH1avttODjtgdp01Em5JI42hOSMexRb360,9561
|
@@ -0,0 +1 @@
|
|
1
|
+
{"git_version": "80ce9fc", "is_release": false}
|
fastremap.cpython-38-darwin.so
CHANGED
Binary file
|
@@ -1,8 +0,0 @@
|
|
1
|
-
fastremap.cpython-38-darwin.so,sha256=fVYT9cXFHPBDZXcAgLXejK1OnU7oPYkIAMjdZMU5fR8,1624731
|
2
|
-
fastremap-1.11.1.dist-info/AUTHORS,sha256=Aa4H7O3dtmfq0lF_eATudy11i8K6QAI8LykzASr9bL0,52
|
3
|
-
fastremap-1.11.1.dist-info/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
|
4
|
-
fastremap-1.11.1.dist-info/METADATA,sha256=CJuAQ23OfeUJ79ZjWgxe0CY8fPI6X_vxA54QH5ErJ20,8774
|
5
|
-
fastremap-1.11.1.dist-info/WHEEL,sha256=RLkJ4w9rFNV9KnHOKFT4aYTEy5PQyrqfvqF41wMk2Kk,108
|
6
|
-
fastremap-1.11.1.dist-info/pbr.json,sha256=yAJx52O8siOTDdzgYajsoJbiOA-EzroZV3sXNNN6X70,46
|
7
|
-
fastremap-1.11.1.dist-info/top_level.txt,sha256=D-q4-YJbbk7QpuU8fxH9rFQEjV_W6wpdruzTTDV4N5s,10
|
8
|
-
fastremap-1.11.1.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
{"git_version": "17830c5", "is_release": true}
|
File without changes
|
File without changes
|
File without changes
|