When performed in succession, these operations results in the
“closing” of the image. The dilation operation performed
makes lane and vehicle regions predominant by enhancing the
shape of these areas. The enhanced shape can later be detected
using the eccentricity and the number of pixels required to
make up the region. This is performed to effectively eliminate
the unwanted regions.