dpm-srm 0.1.6__cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl → 0.1.7__cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.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 dpm-srm might be problematic. Click here for more details.

@@ -0,0 +1,64 @@
1
+ Metadata-Version: 2.1
2
+ Name: dpm_srm
3
+ Version: 0.1.7
4
+ Summary: Statistical Region Merging Segmentation
5
+ Author: Digital Porous Media
6
+ Author-email: Digital Porous Media <bcchang@utexas.edu>
7
+ License: BSD License
8
+ Project-URL: Homepage, https://github.com/digital-porous-media/
9
+ Project-URL: Repository, https://github.com/digital-porous-media/dpm_srm
10
+ Project-URL: Issues, https://github.com/digital-porous-media/dpm_srm/issues
11
+ Classifier: Development Status :: 2 - Pre-Alpha
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: License :: OSI Approved :: BSD License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.8
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Requires-Python: >=3.8
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: numpy
25
+
26
+ # Statistical Region Merging
27
+
28
+ Statistical Region Merging (SRM) is a method for image segmentation. The labeled image is initialized such that each pixel (or voxel) corresponds to one region. A statistical test on neighboring regions determines whether the mean intensities are similar enough to be merged.
29
+
30
+ This library is an adaptation of the [SRM plugin to Fiji/ImageJ](https://imagej.net/plugins/statistical-region-merging) and is based on the algorithm proposed in [Nock and Nielsen (2004)](10.1109/tpami.2004.110). Our contribution was to translate the original algorithm to C++ and wrap it in Python. We provide this package under the Digital Porous Media (DPM) organization.
31
+
32
+
33
+ ## Installation:
34
+ dpm_srm is packaged on [pypi](https://pypi.org/project/dpm-srm/) and can be installed with pip.
35
+ ```pip install dpm-srm```.
36
+
37
+ If installing from source, this package requires a C++ compiler.
38
+
39
+ ## Usage Example:
40
+ ---
41
+ This implementation of SRM expects a 2D or 3D grayscale (single color channel) image of type uint8, uint16, or uint32 and a value for *Q*, which is used as a merging criterion. Roughly speaking, *Q* is an estimate of the number of expected regions, though this is not strictly adhered to. The larger the *Q* value, the more regions are produced. The algorithm will return a labeled image of the same shape and datatype as the input image.
42
+
43
+ Note that the algorithm performs bucket sorting, where the number of buckets correspond to the maximum allowable value for the particular datatype. Therefore, it's important that intensity values of the input image are scaled over the entire range of the datatype. For example, if the input image is uint8, the image should be scaled such that the minimum intensity value is 0, and the maximum is 255. If the input image is uint16 or uint32, the minimum values should be 0 and the maximum should be 65535 (or 4294967295) respectively.
44
+
45
+ We wrapped each version (2D vs. 3D, dtype) of the template class into individual class instances. The nomenclature is: SRM[2(or 3)]D_u[number_of_bits]() (e.g. ```SRG2D_u8()```, ```SRG3D_u32()```).
46
+
47
+ **Python Example:**
48
+ ```
49
+ import dpm_srm
50
+ import numpy as np
51
+
52
+ np.random.seed(130621)
53
+ image = np.random.randint(0, 256, size=(100, 200, 200), dtype=np.uint8)
54
+
55
+ srm_obj = dpm_srm.SRM3D_u8(image, Q=5.0)
56
+ srm_obj.segment()
57
+ segmentation = srm_obj.get_result()
58
+ ```
59
+
60
+
61
+ ## Acknowledgements
62
+ This project includes code adapted from Statistical Region Merging by Johannes Schindelin, which is licensed under the BSD 2-Clause License.
63
+
64
+ The original code can be found [here](https://github.com/fiji/Statistical_Region_Merging/tree/master)
@@ -0,0 +1,6 @@
1
+ dpm_srm.cpython-310-i386-linux-gnu.so,sha256=HizzzZAe_sn6WRzd0A9ufK3h6zltBmGY5rOj2jSOLKw,404652
2
+ dpm_srm-0.1.7.dist-info/top_level.txt,sha256=7x0Y5PfjV6e74A2kkg8ayzUTPlgqLbLdjZkWsP6TiL8,8
3
+ dpm_srm-0.1.7.dist-info/RECORD,,
4
+ dpm_srm-0.1.7.dist-info/LICENSE,sha256=DPkH2YUOqq6GA9joNyrjSii3kGn-7Wn2CMYV5rY-Gok,3073
5
+ dpm_srm-0.1.7.dist-info/METADATA,sha256=El17kyhrZwbP4atS5U4r7SvUwRU2CWG0NOOYlWXlR80,3635
6
+ dpm_srm-0.1.7.dist-info/WHEEL,sha256=dQnLBNh50CzqvACcgvXVMlb7WJ6Di_LICrrxdR8pwYM,147
@@ -1,24 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: dpm_srm
3
- Version: 0.1.6
4
- Summary: Statistical Region Merging Segmentation
5
- Author: Digital Porous Media
6
- Author-email: Digital Porous Media <bcchang@utexas.edu>
7
- License: BSD License
8
- Project-URL: Homepage, https://github.com/digital-porous-media/
9
- Project-URL: Repository, https://github.com/digital-porous-media/dpm_srm
10
- Project-URL: Issues, https://github.com/digital-porous-media/dpm_srm/issues
11
- Classifier: Development Status :: 2 - Pre-Alpha
12
- Classifier: Intended Audience :: Science/Research
13
- Classifier: License :: OSI Approved :: BSD License
14
- Classifier: Programming Language :: Python :: 3
15
- Classifier: Programming Language :: Python :: 3.8
16
- Classifier: Programming Language :: Python :: 3.9
17
- Classifier: Programming Language :: Python :: 3.10
18
- Classifier: Programming Language :: Python :: 3.11
19
- Classifier: Programming Language :: Python :: 3.12
20
- Classifier: Programming Language :: Python :: 3.13
21
- Requires-Python: >=3.8
22
- License-File: LICENSE
23
- Requires-Dist: numpy
24
-
@@ -1,6 +0,0 @@
1
- dpm_srm.cpython-310-i386-linux-gnu.so,sha256=HizzzZAe_sn6WRzd0A9ufK3h6zltBmGY5rOj2jSOLKw,404652
2
- dpm_srm-0.1.6.dist-info/top_level.txt,sha256=7x0Y5PfjV6e74A2kkg8ayzUTPlgqLbLdjZkWsP6TiL8,8
3
- dpm_srm-0.1.6.dist-info/RECORD,,
4
- dpm_srm-0.1.6.dist-info/LICENSE,sha256=DPkH2YUOqq6GA9joNyrjSii3kGn-7Wn2CMYV5rY-Gok,3073
5
- dpm_srm-0.1.6.dist-info/METADATA,sha256=--4ilowj5_7YWIL0yyrKXWZ4WGBVuN4WBsPZhhu9yv4,987
6
- dpm_srm-0.1.6.dist-info/WHEEL,sha256=dQnLBNh50CzqvACcgvXVMlb7WJ6Di_LICrrxdR8pwYM,147