How can I smooth this plot to get cleaner levels?
I’m analyzing some images, and in the course of my project I had to generate plots of the intensity of the green channel along a particular row of an image (as determined by the mouse position). So basically I take the entire row where the mouse pointer is placed and plot how the green channel changes along that row. Here’s the relevant parts of the code I wrote –