Modify cuda sample (image denoise) to show the filter intermediate steps

Is possible to modify the ImageDenoising sample to show the intermediate steps and not directly the final image? I want to see the filter evolution.