Implementation and optimization of automatic 18F-FDG PET segmentation methods