Gaussian blur question

It’s done for each color channels at once.
About the variables Mcp and so on, honestly, this would be a bit long to explain. Basically, you need to understand how the CImg Library works in details to be able to fully understand the code of the algorithm.
Look at the CImg Library documentation (e.g. The CImg Library - C++ Template Image Processing Toolkit - Reference Documentation), everything is explained in the doc.