This part of the report is related to gaussian smoothing and
edge detection.
Source code:
Sample pictures:
![]() Input image |
![]() Sigma = 1 |
![]() Sigma = 2 |
![]() Sigma = 3 |
![]() |
| Original -> Gausssian -> edge detected (Gradient threshold = 10) |
![]() Angle = 10 |
![]() Angle = 100 |
Analysis:
The gradient amplitude shown as intensity on the gradient image
relates to the change in pixel intensity (possibly an edge) at a
particular point in the image. By thresholding this image with some
value, one can show the edges clearly in the binary image.
The use of gradient direction can be used for detecting edges at a
particular angle. The images below show the results of such detection
with angles of 10o, 45o and 135o.
If we had chosen any other angle, we would not have detected anything
because the original image does not contain any significant edge at any
other angle.
![]() Original |
![]() Angle = 10 |
![]() Angle = 45 |
![]() Angle = 135 |



Gaussian smoothed -> edge detected (Gradient threshold = 4)