This folder is the code to load the rooms with their relation graphs, and output the rooms represented as hierarchies.
- The objects not supported by the floor or other objects, are removed from the rooms.
- The walls are arraged in a clock-wise order.
- The surround relations involving walls or floors are removed.
- The output hierarchies should satisfy the conditions in
selectHierarchies.m
, for example: floornum, objnum, maxroomsize, etc.
- build the hierarchies for the scenes
run main_buildhierarchies.m
It outputs a dataset which is a list of the generated hierarchies.
The output is saved in folder ./0-data/2-hierarchies/
.
- hierarchy visualization
For each element
data
in the generated dataset variable, use
printtree2( data.kids, data.labellist, NODETYPES, <filename>)