Skip to main content

Minuscule Cell Detection in AS-OCT Medical Images

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asoct_mcd-0.2.1.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asoct_mcd-0.2.1-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file asoct_mcd-0.2.1.tar.gz.

File metadata

  • Download URL: asoct_mcd-0.2.1.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for asoct_mcd-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ec267b281a76aee714081a8cc541a0c840752876e0e135d375080ea550e2d0b0
MD5 cc1d8b5dd7c9777d9a71373835abd288
BLAKE2b-256 4bb888615a06a203715d9ac29ecdf64f376e461d71d9f211322e5412049c1e64

See more details on using hashes here.

File details

Details for the file asoct_mcd-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: asoct_mcd-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 39.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for asoct_mcd-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb36107648a529992f938a69742a886aca26f2d4d4c312ba9837b38d02efdd40
MD5 907db8b9af4dc29a6660684b169b1204
BLAKE2b-256 616198ef6cc32520a501e3bfe015acf90dd5faf24322af83deaff14801364c64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page