Speckle filtering (static)
So how do we go about undoing this effect? Clearly multiplying the brightness of each pixel by a (normally-distributed) random number between 0 and 1 isn’t exactly a reversible function. But we can use some intuitive methods to clarify the images. Since we want to undo the variability it causes we can start by simply applying a ‘blur’ effect to the image to smooth it out; replacing every pixel with the average value of all nearby pixels.
We can represent that notationally using a matrix:
\[ \frac{1}{9} \begin{bmatrix} 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 1 & 1 & 0 \\ 0 & 1 & 1 & 1 & 0 \\ 0 & 1 & 1 & 1 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ \end{bmatrix} \]
indicating that the new value of the centre pixel is one times itself, plus one times each of the nearest eight pixels, all divided by 9 – a local average.
We can try implementing that (or any other simple filter) on a real SAR image below:
Code
Code
Code
Code
Code
Code
Code
Code
Code
Code
Try to construct filters which do the following:
Inverts the image brightness
Shifts the entire image two pixels to the right
Blurs the image
Blurs the image but gives more power to near pixels then far pixels
Highlights vertical edges
Highlights horizontal edges
Highlights both vertical and horizontal edges
I don’t know does something funky then explain why it does that