Functions to process the sinogram or an image before processing them