The invention provides a method for denoising and filtering a flat area, which comprises the following steps of: S1, determining a block to be filtered which meets the following two conditions: 1) the number of gray values is 2, and the difference between the two gray values is 1; 2) the number of one gray value is larger than a set threshold value, and the number of the other gray value is smaller than the set threshold value, and the gray values are called a large probability gray value b and a small probability gray value s respectively; S2, denoising and filtering: 2.1, when the pixel point spacing is set to be 1, calculating the gray level co-occurrence matrix of the to-be-filtered block, judging the distribution condition of small-probability gray levels, wherein the smaller the number of the adjacent small-probability gray levels is, the larger the sum of diagonal lines is, and the more discrete the small-probability points are; on the contrary, the textures of the small probability points are thicker; reducing the filtering intensity of the small-probability gray block of the coarse texture; increasing the filtering intensity of discrete small-probability gray blocks; and S2.2, reducing blurring of the coarse texture or eliminating of the coarse texture. According to the method, the strong noise in the flat area is filtered, the residual error information amount is reduced, and the noise consumption of the code stream is further reduced.