Skip to content

Interactive image segmentation pipeline with object creation, feature-space clustering and modular segmentation routines.

License

Notifications You must be signed in to change notification settings

hamideh-h/interactive-segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Segmentation

This repository contains the code for interactive segmentation based on object creation, feature-space clustering, and flexible segmentation routines. It was originally developed as part of an image-analysis workflow, where individual objects are detected, described by shape features, clustered, and then segmented in a reproducible way.

The original archived version of this software is available on Zenodo:

DOI


Features

  • Object creation
    Functions to detect target objects, crop them, and build an object set with extracted shape features.

  • Feature-space clustering
    Automatic clustering of objects in feature space (number of clusters is determined during clustering).

  • Segmentation
    Modular segmentation routines that can be extended with additional methods to evaluate performance on your objects.


Data

The original archived data file input.npy used with this code is available on Zenodo:

To run the full example:

  1. Download input.npy from Zenodo.
  2. Create a folder Workspace_data at the project root.
  3. Place input.npy inside Workspace_data/.
  4. Create an empty Raw_Figs folder for generated figures.

You may also create your own input.npy with the same structure to adapt the pipeline to your data.

How to run

Quickstart

git clone https://github.com/hamideh-h/interactive-segmentation.git cd interactive-segmentation pip install -r requirements.txt # Prepare data mkdir Workspace_data Raw_Figs # put input.npy into Workspace_data/ # Run pipeline python src/main.py ## Repository Layout
src/ main.py # entry point Segmentation.py # segmentation functions FeatureSpace_Clustering.py Object.py objectset_creation.py data/ README.md # explains where to get input.npy requirements.txt # Python dependencies 

About

Interactive image segmentation pipeline with object creation, feature-space clustering and modular segmentation routines.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages