Description
Space-invariant and space-variant blurring
- Space-invariant blurring Perform Gaussian blurring on pgm with standard deviation σ. Assume space-invariant blur and a kernel of size d6σ+1e×d6σ+1e. Observe the outputs for these values of σ: 1.6, 1.2, 1.0, 0.6, 0.3 and 0.0.
- Space-variant blurring Now assume the blur to be space-variant, i.e. the standard deviation varies for each pixel. Consider the distribution of σ to be
´
σ(m,n)=Aexp,                        0≤m,n≤N−1
B
with
µN N¶
σ ,         =2.0 and σ(0,0)=0.01,
2Â Â 2
where N×N is size of the image and pixel indices are in the range [0,N−1]×[0,N−1]. Find A and B, and create the matrix σ. Perform Gaussian blurring on Globe.pgm using the values of σ(m,n).
- Blur pgm using
- space-invariant blur code of part 1 with σ=0, and
- space-variant blur code of part 2 with σ(m,n)=0 for 0≤m,n≤N−1.
Verify that the blurred images of the above two steps are same.
–end–