Skip to main content

Simple linear iterative clustering (SLIC) in a region of interest (ROI)

Project description


Simple linear iterative clustering (SLIC) in a region of interest


This code demonstrates the adaption of SLIC for a defined region of interest. The main contribution is in the placement of seed points within the ROI.

The code is a modification of the SLIC implementation provided by Scikit-image (

An online demo is available at:

An outline of the method is available at:

Figure 1: An example region and the automatically placed seed points using this method.

seed points

Figure 2: The final superpixel regions within the ROI


Getting started

Install dependencies
pip install -r requirements.txt

build cython code
python build_ext --inplace

run example

Using a python virtualenv is reccommended on linux to get the latest versions of the dependencies.


This code is still a work in progress.

Project details

Download files

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

Files for maskslic, version 0.3.3
Filename, size File type Python version Upload date Hashes
Filename, size maskslic-0.3.3.tar.gz (16.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page