可能重复:
如何使用 c# 检查程序中的图片质量?
我可以使用c#检查是否在照片中添加了噪点吗?
Basically, to detect noise what I think you are going to want to do is find pixels that are discontinuous (in color or brightness) from other pixels.
In any given photograph, a valid pixel is highly likely to be correlated (similar) in color or intensity to one or more pixels around it. Noise is not the same (or similar) color as any other pixel around it; it is discontinuous from all surrounding pixels.
If a pixel is similar or identical in color to surrounding pixels, it is probably not noise, and it's not going to look like noise; it's going to look like part of the picture..