Segmentation of {3D} Microscopy Data with an Energy Based Interaction Model