| Crates.io | pineapple-core |
| lib.rs | pineapple-core |
| version | 0.0.5 |
| created_at | 2025-12-02 02:30:38.878583+00 |
| updated_at | 2025-12-02 02:39:44.306699+00 |
| description | Simplified processing for image-based cell profiling with pineapple |
| homepage | |
| repository | https://github.com/tomouellette/pineapple |
| max_upload_size | |
| id | 1961024 |
| size | 357,610 |
pineapple-core defines functions and algorithms for reading, processing, and profiling bio-imaging datasets.
pineapple currently supports 1 or 3 channel images of the following formats (plus experimental support for N-channel numpy images).
| Format | Dependencies |
|---|---|
jpeg/jpg |
image-rs |
png |
image-rs |
bmp |
image-rs |
tiff/tif |
image-rs |
hdr |
image-rs |
pbm |
image-rs |
avif |
image-rs |
tga |
image-rs |
qoi |
image-rs |
exr |
image-rs |
webp |
image-rs |
npy |
npyz |
pineapple currently supports reading and writing of masks, polygons, and bounding boxes.
| Format | Description |
|---|---|
| Binary mask | u8, u16, or u32 image where 0 indicates background and a positive integer indicates foreground. |
| Integer mask | u8, u16, or u32 image where 0 indicates background and unique positive integers specifiy different objects. |
| Polygons | (N, K, 2) json with a valid key: polygons, contours, outlines, shapes, points. |
| Bounding boxes | (N, [x_min, y_min, x_max, y_max]) json with a valid key: bounding_boxes, bboxes, bbox, bounding_box, boxes, xyxy. |
tiff/tif and N-channel zarr images.npy).pineapple library (currently developing a python/rust specific library - reach out if interested)