Region Adjacency Graph (RAG)

Computes the graph of adjacent regions in a labeled image

Download
Download

You are now following this Submission

Cite As

David Legland (2026). Region Adjacency Graph (RAG) (https://www.mathworks.com/matlabcentral/fileexchange/16938-region-adjacency-graph-rag), 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.4.0

avoid duplicate adjacencies for 3D images, update help

Download
1.3.0

correct processing of gap>1, and simplification of the code

Download
1.2.0

changes the algorithms to remove the 'diff' function, reducing the amount of memory required, and add psb to use different gaps between regions.

Download
1.1.0

removed dependencies to image processing toolbox, updated doc

Download
1.0.0

Download