We present a method that transforms an unstructured vector design into a logical hierarchy of groups of objects. Each group is a meaningful collection, formed by proximity in visual characteristics (like size, shape, color, etc.) and spatial location of objects and models the grouping principles designers use. We first simplify the input design by partially or completely flattening it and isolate duplicate geometries in the design (for example, repeating patterns due to copy and paste operations). Next we build the object containment hierarchy by assigning objects that are wholly enclosed inside the geometry of other objects as children of the enclosing parent. In the final clustering phase, we use agglomerative clustering to obtain a bottom-up hierarchical grouping of all objects by comparing and ranking all pairs of objects according to visual and spatial characteristics. Spatial proximity segregates far apart objects, but when they are identical (or near identical) designers generally prefer to keep (and edit) them together. To accommodate this, we detect near identical objects and group them together during clustering despite their spatial separation. We further restrict group formation so that z-order disturbances in the design keep the visual appearance unaffected for tightly-overlapping geometry. The generated organization is equivalent to the original design and the organization results are used to facilitate abstract navigation (hierarchical, lateral or near similar) and selections in the design. Our technique works well with a variety of input designs with commonly identifiable objects and structural patterns. CCS Concepts • Applied computing → Document analysis; • Information systems → Clustering;
[1]
Maurice Roux,et al.
A comparative study of divisive hierarchical clustering algorithms
,
2015,
ArXiv.
[2]
Ankit Phogat,et al.
Automatic Vector Graphic Organization and Asset Extraction
,
2020,
SIGGRAPH Posters.
[3]
C. Lawrence Zitnick,et al.
Edge Boxes: Locating Object Proposals from Edges
,
2014,
ECCV.
[4]
Niloy J. Mitra,et al.
Coupled structure-from-motion and 3D symmetry detection for urban facades
,
2014,
ACM Trans. Graph..
[5]
Charless C. Fowlkes,et al.
Contour Detection and Hierarchical Image Segmentation
,
2011,
IEEE Transactions on Pattern Analysis and Machine Intelligence.
[6]
Shi-Min Hu,et al.
Global contrast based salient region detection
,
2011,
CVPR 2011.
[7]
Ping Tan,et al.
Learning to group discrete graphical patterns
,
2017,
ACM Trans. Graph..
[8]
Adam Finkelstein,et al.
The Generalized PatchMatch Correspondence Algorithm
,
2010,
ECCV.