function to 2D structure association through structural similarity