ASOCT-MCD: Minuscule Cell Detection in AS-OCT Images
A Python package for detecting minuscule cells in Anterior Segment Optical Coherence Tomography (AS-OCT) medical images.
Installation
pip install asoct-mcd
Basic Usage
from asoct_mcd.pipeline import MCDPipelineBuilder
# Create pipeline with default settings
pipeline = MCDPipelineBuilder().build()
# Detect cells in image
result = pipeline.detect_cells("image.png")
# Print results
print(f"Detected {result.cell_count} cells")
print(f"Cell locations: {result.cell_locations}")
Custom Configuration
# Using dictionary configuration
config = {
"threshold": {"lambda_factor": 0.9, "method": "isodata"},
}
pipeline = MCDPipelineBuilder().from_dict(config).build()
result = pipeline.detect_cells("image.png")
# Using YAML configuration
pipeline = MCDPipelineBuilder().from_yaml("your_config.yaml").build()
result = pipeline.detect_cells("image.png")
Model Storage and Management
Default Model Storage Locations The ASOCT-MCD package automatically downloads and manages pre-trained models. Models are cached locally following standard ML library conventions: Default Cache Directories Linux/macOS:
~/.cache/asoct_mcd/models/
├── sam_vit_b_01ec64.pth # SAM ViT-B segmentation model (~375MB)
└── spatial_attention_network.pth # Cell classification model (~1MB)
Windows:
C:\Users\<username>\.cache\asoct_mcd\models\
├── sam_vit_b_01ec64.pth # SAM ViT-B segmentation model (~375MB)
└── spatial_attention_network.pth # Cell classification model (~1MB)
Requirements
- Python >= 3.9
- See requirements.txt for full list
Citation
arXiv: https://arxiv.org/abs/2503.12249
To cite MCD in publications, please use:
@article{chen2025minuscule,
title={Minuscule Cell Detection in AS-OCT Images with Progressive Field-of-View Focusing},
author={Boyu Chen, Ameenat L. Solebo, Daqian Shi, Jinge Wu, Paul Taylor},
year={2025},
journal={arXiv preprint arXiv:2503.12249}
}
Acknowledgements
Thanks to the support of AWS Doctoral Scholarship in Digital Innovation, awarded through the UCL Centre for Digital Innovation. We thank them for their generous support.
Metadata
Release files for asoct-mcd 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| asoct_mcd-0.2.1.tar.gz | 24.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asoct_mcd-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 64.4 kB
Release files / asoct_mcd-0.2.1.tar.gz
| Download URL | asoct_mcd-0.2.1.tar.gz |
|---|---|
| Size | 24.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec267b281a76aee714081a8cc541a0c840752876e0e135d375080ea550e2d0b0
|
|
BLAKE2b-256 checksum How to use checksums |
4bb888615a06a203715d9ac29ecdf64f376e461d71d9f211322e5412049c1e64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Release files / asoct_mcd-0.2.1-py3-none-any.whl
| Download URL | asoct_mcd-0.2.1-py3-none-any.whl |
|---|---|
| Size | 39.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb36107648a529992f938a69742a886aca26f2d4d4c312ba9837b38d02efdd40
|
|
BLAKE2b-256 checksum How to use checksums |
616198ef6cc32520a501e3bfe015acf90dd5faf24322af83deaff14801364c64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Security for asoct-mcd 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.