Semi-automated Shoot Image Segmentation using k-means Clusering of Eigen-colors - kmSeg v0.2


kmSeg tool was developed to enable efficient supervised segmentation and basic phenotyping of plant shoots in RGB images as well as grayscale intensity images.

Key Features

The kmSeg tool automatically clusters image colors into a small predefined number of classes (typically between 10 and 25) that are in the next step manually assigned to either plant or non-plant (background) categories. A number of phenotypic traits of the overall geometry and colors of segmented plant shoots is generated for every and all images in the selected folder. The full list and descriptions of phenotypic traits calculated with kmSeg can be found in the kmSeg quick guide (3MB).


Download kmSeg for Windows x64 (50MB)

Download kmSeg for Linux (50MB)

By downloading, installing and/or using this software the user agrees with the following license conditions.

This software requires MATLAB run time libraries (2020a) to be installed:

MATLAB run time for Windows x64 (~2GB).
MATLAB run time for Linux (~2GB).

Windows users should also install the run-time components from the following link:

Some information on dependencies of the MATLAB run-time components in Linux can be found here:

General hardware requirements for MATLAB applications can be found here:
For processing of image files of the 4-8 MP size such as provided with the supplementary data, 8GB or more RAM is recommended.

Quick Start

For install notes and further informations, please see the Quick Guide.

The movie below demonstrates the application of the kmSeg tool to segmentation of a top-view arabidopsis image:


[1] Henke M, Neumann K, Altmann T, Gladilin E. Semi-automated ground truth segmentation and phenotyping of plant structures using k-means clustering of eigen-colors (kmSeg). Agriculture 11 (2021) 1098.

© 2019, Image Analysis Group, IPK Gatersleben Impressum
Leibniz Institute of Plant Genetics and Crop Plant Research (IPK)
OT Gatersleben
Corrensstrasse 3
06466 Stadt Seeland,
Telefon: +49 (0)39482 50
Telefax: +49 (0)39482 5139