Skip to content

Commit 5b2a7a5

Browse files
authored
Update proj2.html
1 parent db2daaf commit 5b2a7a5

File tree

1 file changed

+18
-36
lines changed

1 file changed

+18
-36
lines changed

project-2/proj2.html

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -132,43 +132,25 @@ <h2>Part 2: Applications</h2>
132132
<article id="part2-1">
133133
<h3>Part 2.1. Unsharp Mask</h3>
134134
<p>
135-
<strong>Goal:</strong> Implement unsharp masking. Explain how it relates to blur filters and high-frequency components. Show blurred, high-frequency, and sharpened versions of the Taj Mahal image and another image of your choice. Demonstrate varying the sharpening amount.
135+
Using convolution, we can also sharpen a blurry image with similar technique. Recall that a Gaussian filter removes the highest frequencies in a signal. This means that subtracting the filtered image from the original would leave all of the highest frequencies from the base image. We can then add this difference to the original to highlight the highest frequencies of the image, then clip it to [0, 255] to preserve brightness. Using the following Taj Mahal image:
136+
</p>
137+
<div align="center">
138+
<img src="images/taj.jpg" alt="taj.jpg" width="50%">
139+
</div>
140+
<p>
141+
We can obtain the blurred and high frequency versions of this image as follows:
142+
</p>
143+
<div align="center">
144+
<img src="images/lpvshp.png" alt="lpvshp.png" width="50%">
145+
</div>
146+
<p>
147+
Now, we can add the second image to the original to get a sharpened version.
148+
<div align="center">
149+
<img src="images/orgsharp.png" alt="orgsharp.png" width="50%">
150+
</div>
151+
<p>
152+
In general, we can change the sharpening amount my multiplying the high-pass filtered image by a constant. Below is a demonstration of various sharpening amounts from 0.25 to 4:
136153
</p>
137-
<h4>Taj Mahal</h4>
138-
<figure>
139-
<img src="images/taj_blurred.png" alt="Taj Mahal blurred" />
140-
<figcaption>Blurred version (Taj Mahal).</figcaption>
141-
</figure>
142-
<figure>
143-
<img src="images/taj_highfreq.png" alt="Taj Mahal high-frequency component" />
144-
<figcaption>High-frequency component (Taj Mahal).</figcaption>
145-
</figure>
146-
<figure>
147-
<img src="images/taj_sharpened_low.png" alt="Taj Mahal sharpened (low amount)" />
148-
<figcaption>Sharpened result (low amount).</figcaption>
149-
</figure>
150-
<figure>
151-
<img src="images/taj_sharpened_med.png" alt="Taj Mahal sharpened (medium amount)" />
152-
<figcaption>Sharpened result (medium amount).</figcaption>
153-
</figure>
154-
<figure>
155-
<img src="images/taj_sharpened_high.png" alt="Taj Mahal sharpened (high amount)" />
156-
<figcaption>Sharpened result (high amount).</figcaption>
157-
</figure>
158-
<h4>Additional Image</h4>
159-
<figure>
160-
<img src="images/other_blurred.png" alt="Additional image blurred" />
161-
<figcaption>Blurred version (additional image).</figcaption>
162-
</figure>
163-
<figure>
164-
<img src="images/other_highfreq.png" alt="Additional image high-frequency component" />
165-
<figcaption>High-frequency component (additional image).</figcaption>
166-
</figure>
167-
<figure>
168-
<img src="images/other_sharpened.png" alt="Additional image sharpened" />
169-
<figcaption>Sharpened result (additional image).</figcaption>
170-
</figure>
171-
<p><strong>Explanation:</strong> [Summarize the unsharp mask formula, role of blur radius/sigma, and artifact considerations.]</p>
172154
</article>
173155

174156
<!-- 2.2 -->

0 commit comments

Comments
 (0)