Direct Solutions to Perceptual Organization Problems