
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
Seeded Region Growing (SRG) is a method for image segmentation. It involves selecting initial seed points and expanding these regions by adding neighboring pixels that share similar properties, such as grayscale intensity. The process continues iteratively until the entire image is segmented into distinct labels.
This library is an adaptation of the SRG plugin to Fiji/ImageJ and is based on the algorithm proposed in Adams and Bischof. Our contribution was to translate the original algorithm to C++ and wrap it in Python. We provide this package under the Digital Porous Media organization.
dpm_srg is packaged on pypi and can be installed with pip.
pip install dpm-srg
.
If installing from source, this package requires a C++ compiler.
This implementation of SRG expects a 2D or 3D grayscale (single color channel) image of type uint8, uint16, or uint32, and a seed image of the same shape as the grayscale image and of type uint8. All seeds should be labeled between 1-255, inclusive as the algorithm fills in points in the seeded image that are labeled 0. The algorithm will return a labeled image of the same shape as the input images of type uint8. Therefore, up to 255 unique labels are possible.
Note that the performance and segmentation accuracy is highly sensitive to the selection of seed points. It is generally better to take a more conservative approach when selecting seed points.
We wrapped each version (2D vs. 3D, dtype) of the template class into individual class instances. The nomenclature is: SRG[2(or 3)]D_unumber_of_bits (e.g. SRG2D_u8()
, SRG3D_u32()
).
Python Example:
import dpm_srg
import numpy as np
np.random.seed(130621)
image = np.random.randint(0, 256, size=(100, 200, 200), dtype=np.uint16)
seeds = np.random.randint(0, 5, size=(100, 200, 200), dtype=np.uint8)
srg_obj = dpm_srg.SRG3D_u16(image, seeds)
srg_obj.segment()
segmentation = srg_obj.get_result()
This project includes code concepts adapted from Seeded Region Growing from ijp-toolkit, which is licensed under the LGPL-2.1 License.
Original code can be found here
FAQs
Seeded Region Growing Segmentation
We found that dpm-srg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.