Professional Documents
Culture Documents
I created a Google Drive folder and uploaded a diverse set of natural images,
totaling a minimum of 10.
I used appropriate libraries to load the images into the Python environment.
Below image is one of the image from the dataset. the light condtions are
good.
3. Conversion to Grayscale:
AHE is used to enhance the dynamic range of pixel intensities while preserving
local details.
I applied CLAHE to the L channel of the LAB color space, which helps in
preserving the local contrast of the image.
6. Gamma Correction:
I applied gamma correction with a gamma value of 1.5 to further enhance the
contrast in the image.
1. Image Selection:
I chose one high-resolution grayscale image from the set I prepared in Part 1
for further processing. This image serves as the basis for applying the
orientation filters.
2. Gabor-Based Filters:
3. Gaussian Smoothing:
I created multiple Gabor filters with varying orientations (0, 45, 90, and 135
degrees) and frequencies (0.6, 1.0, and 1.5). These filters are designed to
capture different types of features in the image.
5. Convolution Operation:
I visualized the resulting filtered images for each orientation and frequency
combination. This step is crucial for observing how the filters emphasize specific
features in the image.
The displayed images showcase the features that were highlighted by each
Gabor filter. By examining these filtered images, I gain insights into how
different orientations and frequencies contribute to the representation of edges
and textures in the image.
For every pixel in the filtered images, I iterated through all orientations and
selected the one with the maximum magnitude.
To visualize the WTA output, I combined the orientation information with the
normalized magnitude values.
The orientation information was mapped to colors using the 'hsv' color map,
and the magnitude values were normalized to enhance visualization.
4. Purpose of Visualization:
6. Application of ACN:
1. Pipeline Application:
This step ensures that the complete process is applied uniformly to each
image, facilitating a fair comparison.
3. Introduction of Noise:
The comparison between the original edge detection and noise-influenced edge
detection revealed noteworthy insights. The Structural Similarity Index (SSIM)
indicated a substantial deviation of 0.1671, suggesting a notable impact on
structural similarity, encompassing luminance, contrast, and structure.
Furthermore, the Edge F1-score, which assesses precision and recall,
demonstrated a perfect score of 1.0, indicating a high degree of accuracy in
detecting edges, despite the introduction of noise. These metrics collectively
5. Purpose of Evaluation:
Pros:
Cons:
Part 5: Visualization
2. Purpose of Overlaying:
Below is one of the overlayed image from the dataset for other images
output you can find in my google collab.
This step enables a detailed examination of the underlying features and the
directionality of edges.
Below is one of the Gradient Map and Orientaion map from the dataset for
other images output you can find in my google collab.