Total Perimeter

Computes the total perimeter of objects in a binary image
Updated 15 May 2018

View License

This function extends the function Perimeter within regionprops in order to take into account internal boundaries in the perimeter calculations.

Cite As

Santiago Benito (2024). Total Perimeter (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Change name of the Exchange page

Performance improvement

- The output of the function is an array containing the total (internal + external) perimeter of each pixel island.
- The option 'noholes' was included, when selected, no internal boundaries are considered.

Added image