A Signal-Domain Object Segmentation Method for Ultrasound and Photoacoustic Computed Tomography