Sort Pixel Coordinates

Sorts border pixels of a closed shape in a clockwise or anti-clockwise manner.
4.3K Downloads
Updated 24 Dec 2003

View License

Given the pixel coordinates of the border of an arbitrary shape, this program can sort it in a clockwise or anti-clockwise order regardless of it being 4 or 8 connected.

Cite As

Alister Fong (2024). Sort Pixel Coordinates (https://www.mathworks.com/matlabcentral/fileexchange/4296-sort-pixel-coordinates), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Shifting and Sorting Matrices in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0