Finished implementing the CUDA segmentation for DoG detections