@@ -183,5 +181,78 @@ The cell unique ID within a `deproj` instance. Strictly positive integers.
## The `deproj` class properties.
A `deproj` instance has only 3 properties.
### `epicells`
A `N x 1` array of `epicell` instances. Each `epicell` represents a cell in the tissue. See above for its properties. The `id` property of an `epicell` corresponds to its index in this array.
### `junction_graph`
A undirected graph of junction connections.
A junction is a location on the tissue surface where at least 3 cells connect.
The graph stored in the `junction_graph` property is made of the junctions as nodes, and of their connection of edges. If two junctions are linked by an edge in this graph, it means that there is exactly one ridge between two cells that connects them.
The nodes store their ID and the 3D position of their centroid, in physical units:
WHY CENTROID
```matlab
>>g=dpr.junction_graph
g=
graphwithproperties:
Edges:[1329×1table]
Nodes:[920×2table]
>>head(g.Nodes)
ans=
8×2table
CentroidID
_____________________________
0.36623.4240.361891
0.73219.5810.982032
0.73224.7050.190833
1.0984.5753.8984
0.97624.0340.32175
1.28110.6142.80646
1.4643.2944.30277
1.58614.3352.09568
```
The edges simply store theirs source and target node ids:
```matlab
>>head(g.Edges)
ans=
8×1table
EndNodes
________
15
110
35
311
47
414
516
612
```
Edges are undirected and there are no duplicates.
We can use this junction graph to plot a topological representation of the segmentation results.