Noise is unwanted interference affecting a signal. It is represented as bright or dark spots in an image.
To get rid of this noise, you replace each pixel with the median of itself and the eight pixels surrounding it.
This removes any high/low values.
To work out if something is in your image, finding edges can be useful.
To do this, you multiply a pixel by 4, then subtract the value of the pixels immediately above, below, to the left, and to the right of it.
This causes any pixel not on an edge to go black, leaving you with just the edges.
This is known as the Laplace Rule.
Comments
No comments have yet been made