A General System for Supervised Biomedical Image Segmentation