Label the largest pixel/voxel group in an image

LABELLARGEST keep the largest N isolated regions in the image

You are now following this Submission

LABELLARGEST keep the largest N isolated regions in the image;
Author: Sheng Yue (sheng.yue.84@gmail.com, syue@imperial.ac.uk)
Imperial College London
08-March_2010
Image Processing Toolbox required.

Usage:
[L CC] = LabelLargest(IM,pieces,conn);
L= LabelLargest(IM,pieces,conn);
LabelLargest(IM,pieces,conn);
IM is the input image.
pieces is the regions you want to keep. Default value is 1;
conn is the connectivity defined same as matlab.

Cite As

Sheng Yue (2026). Label the largest pixel/voxel group in an image (https://www.mathworks.com/matlabcentral/fileexchange/35600-label-the-largest-pixel-voxel-group-in-an-image), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0