{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/8"}],"enrichment":{"capability":"Remap, renumber, and relabel NumPy arrays at C++ speed, plus perform in-place transposition and extract point clouds from labeled images.","skillfed_tags":["image-processing","array-optimization","connectomics"],"use_cases":["Renumber a 64-bit segmentation label array down to 8-bit to save memory and fit smaller data types.","Remap arbitrary label values via dictionary on huge arrays without materializing an intermediate lookup table.","Extract coordinates of all voxels belonging to each label in a 3D image as a point cloud.","Count unique labels and their frequencies much faster than np.unique on large labeled arrays.","Physically transpose rectangular arrays in-place to convert between C and Fortran memory order before GPU upload or serialization."],"what_it_does":"fastremap is a C++-accelerated library for fast array manipulation on labeled NumPy arrays, designed for image processing and connectomics workflows. It provides optimized implementations of common operations like finding unique values, remapping labels via dictionary, renumbering to smaller data types, and extracting point clouds\u2014operations that would be slow in pure Python or inefficient in NumPy for large sparse label spaces.\n\nThe package trades install complexity (compiled extension) for speed on bulk array operations. Its main use case is handling large labeled images (hundreds of megabytes to gigabytes) where Python loops or naive NumPy indexing become impractical. It also offers in-place transposition and memory-efficient array format conversions (C to Fortran order), useful when moving data between CPU, GPU, or disk.","worth_installing":"Yes, if you work with large labeled NumPy arrays (segmentations, connectomics, image analysis) and need fast remapping, renumbering, or transposition. The LGPL-3.0 copyleft license is permissive for open-source use but requires careful review in proprietary contexts. Install friction is moderate due to the C++ extension, but pre-built wheels cover common platforms. No known security vulnerabilities."},"id":"fastremap","links":{"html":"https://skillfed.io/packages/fastremap","md":"https://skillfed.io/packages/fastremap.md","pypi":"https://pypi.org/project/fastremap/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-11","license_spdx":null,"license_treatment":"copyleft","name":"fastremap","python_support":"supports_current","summary":"Remap, mask, renumber, unique, and in-place transposition of 3D labeled images. Point cloud too."},"popularity":{"monthly_downloads":172921,"position":10321,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.20.0"}
