image thumbnail


version 1.0.0 (2.18 KB) by Lucas Pavlov
Crops the borders of a specified colour of an image.


Updated 27 Mar 2020

View License

Given a grayscale or RGB array representing an image and a given colour (specified as a number or an RGB triplet), it returns an array in which the borders of that colour are cropped.

Cite As

Lucas Pavlov (2022). crop_image_borders (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!