some modifications made in roisegmenter3D. To be reviewed