I tested your MATLAB code Digital Image Filtering it works properly but as a student of Image processing may I ask how one can interpret results of Mean, Standard Deviation etc with respect to an image.
Nice. One issue with the verbose option: when set to 0, it doesnt fill the .co part of the output anymore. To fix, switch the lines
m=[table(CSe,1) table(CSp,1) CE table(CEff,1)];
near the end of the code (line 300 or so)