Sort Pixel Coordinates

Sorts border pixels of a closed shape in a clockwise or anti-clockwise manner.

You are now following this Submission

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 (2026). Sort Pixel Coordinates (https://in.mathworks.com/matlabcentral/fileexchange/4296-sort-pixel-coordinates), 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