Combining denoising and object detection