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.

Source Distribution

maskslic-0.3.4.post2.tar.gz (17.9 kB view hashes)

Uploaded Source

Supported by

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