Skip to content

Exploration of object detection applied to the AxonDeepSeg project

Notifications You must be signed in to change notification settings

axondeepseg/axon-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Axon Detection in Microscopy Images

This project focuses on preprocessing and segmenting axons and myelin from microscopy images stored in the BIDS format. It leverages OpenCV for image manipulation and is designed to work with object detection models like YOLO or RetinaNet.

Features

  • Loads BIDS-formatted microscopy images.
  • Automatically adjusts pixel values based on metadata.
  • Resizes and pads images to fit object detection model input sizes.
  • Addinded
  • Includes a utils.py file with helper functions for easy preprocessing.

Getting Started

Prerequisites

  • Python 3.x
  • OpenCV (pip install opencv-python)

Installation

  1. Create a Virtual Environment:

    python -m venv venv
    
  2. Activate a Virtual Environment:

    source venv/bin/activate
    
  3. Install dependencies:

    pip install -r requirements.txt
    

Running scripts

cd src
python preprocessing.py
python yolo_train.py