There is a simple algorithm to smooth images?

Good afternoon.
Maybe someone knows how to smooth out these images:

Can tell me the algorithm or implementation in any language.
June 10th 19 at 15:23
2 answers
June 10th 19 at 15:25
The most simple - for each point of the calculated average of the eight neighboring light and set her on the calculated color.
Smishno recipe.
A lonely black dot on the white turn into grey 3x3 square with a white dot in the center. - Benedict_Shiel commented on June 10th 19 at 15:28
Well for
such images
the recipe is suitable. And, of course, need not rounded coordinates when rendering. - Giles_Luettgen18 commented on June 10th 19 at 15:31
June 10th 19 at 15:27
Look for on the subject of anti-aliasing image.
Search: image anti-aliasing

Find more questions by tags image processingProgramming