Skip to content

Commit aa3a23f

Browse files
authored
Update proj2.html
1 parent c7da3f1 commit aa3a23f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

project-2/proj2.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,15 @@ <h3>Part 1.1: Convolutions from Scratch!</h3>
5252
</p>
5353

5454
<div align="center">
55-
<img src="images/one.png" alt="one.png" width="50%">
55+
<img src="images/orgbox.png" alt="orgbox.png" width="50%">
56+
</div>
57+
58+
<p>
59+
For convolving with <i>D<sub>x</sub></i> and <i>D<sub>y</sub></i>, we have:
60+
</p>
61+
62+
<div align="center">
63+
<img src="images/dxdy.png" alt="dxdy.png" width="50%">
5664
</div>
5765

5866
</article>
@@ -70,7 +78,7 @@ <h3>Part 1.2: Finite Difference Operator</h3>
7078
we can convolve this image with <i>D<sub>x</sub></i> and <i>D<sub>y</sub></i> to get the partial derivatives in the <i>x</i>- and <i>y</i>- direction. Using <code>np.dot</code>, we can then compute the gradient magnitude as follows:
7179
</p>
7280
<div align="center">
73-
<img src="images/noblurclip.png" alt="noblurclip.png" width="50%">
81+
<img src="images/noblurnoclip.png" alt="noblurnoclip.png" width="50%">
7482
</div>
7583
<p>
7684
Although the edges are visible, it's not clear, especially in the magnitude image. This is because when convolving an image with channel values in the range [0, 255], the resulting image will have a range of [-255, 255], so normalizing the image directly makes the overall image darker. To reduce the noise of the non-edge pixels, we can set a limit for each channel value before normalizing. Using a threshold of 25% from both sides, we get the following result:
@@ -88,10 +96,10 @@ <h3>Part 1.2: Finite Difference Operator</h3>
8896
<article id="part1-3">
8997
<h3>Part 1.3: Derivative of Gaussian (DoG) Filter</h3>
9098
<p>
91-
To further improve edge visibility, we can first smooth out the noise by convolving the original image with a Gaussian filter. To generate one with dimensions <i>n &times; n</i>, we can take the outer product of 2 length <i>n</i> arrays. Below is the result of blurring the original image using a 5 &times; 5 Gaussian filter.
99+
To further improve edge visibility, we can first smooth out the noise by convolving the original image with a Gaussian filter. To generate one with dimensions <i>n &times; n</i>, we can take the outer product of 2 length <i>n</i> arrays. Below is the result of blurring the original image using a 5 &times; 5 Gaussian filter:
92100
</p>
93101
<div align="center">
94-
<img src="images/orgfilter.png" alt="orgfilter.png" width="50%">
102+
<img src="images/orggauss.png" alt="orggauss.png" width="50%">
95103
</div>
96104
<p>
97105
Applying the same edge detection process above, we get:

0 commit comments

Comments
 (0)