Layout adjustment and boundary detection for a diagram | IEEE Conference Publication | IEEE Xplore