Skip to content

Commit 2470fe9

Browse files
authored
Update proj1.html
1 parent fb0edc3 commit 2470fe9

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

project-1/proj1.html

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h1>Project 1: Colorizing the Prokudin-Gorskii photo collection</h1>
1414
</div>
1515

1616
<div align="center">
17-
<img src="images/intro.jpg" alt="intro.jpg" width="50%">
17+
<img src="images/emirCrop.png" alt="emirCrop.png" width="50%">
1818
</div>
1919

2020
<!-- Section 1 -->
@@ -255,29 +255,40 @@ <h2>Cropping with Sobel</h2>
255255
</div>
256256

257257
<p>
258-
Once the best displacemnts for the blue and red plate are found, the final step is to find a way to merge the 3 crops, which can be done in the following steps: First, find the intersecion of all shifted crops. Second, shift them back to their starting position using the inverse of the displacement. Finally, shift the pixels from the starting positions back to the center using the best displacement, and combine the 3 crops into their respective RGB channels. As a failsafe for bad starting crops, the normal overlap method (discussed in the NCC & Preprocessing section) will be used instead. The results are striking:
258+
Once the best displacements for the blue and red plate are found, the final step is to find a way to merge the 3 crops, which can be done in the following steps: First, find the intersection of all shifted crops. Second, shift them back to their starting position using the inverse of the displacement. Finally, shift the pixels from the starting positions back to the center using the best displacement, and combine the 3 crops into their respective RGB channels. As a failsafe for bad starting crops, the normal overlap method (discussed in the NCC & Preprocessing section) will be used instead. At the cost of doubling the runtime due to convolution, the images are now much cleaner:
259259
</p>
260260

261261
<div style="display:flex; flex-wrap:wrap; justify-content:center; text-align:center;">
262262

263263
<figure style="flex: 1 0 20%; margin:12px;">
264-
<img src="images/xb.png" alt="xb.png" width="100%">
265-
<figcaption style="margin-bottom:6px;">Blue plate</figcaption>
264+
<figcaption style="margin-bottom:6px;">cathedralCrop.jpg</figcaption>
265+
<img src="images/cathedralCrop.jpg" alt="cathedralCrop.jpg" width="50%">
266+
<figcaption style="margin-bottom:6px;">Best shift: (-2, 336), (1, -334)
267+
<br>0.054221s</figcaption>
266268
</figure>
267269

268270
<figure style="flex: 1 0 20%; margin:12px;">
269-
<img src="images/xg.png" alt="xg.png" width="100%">
270-
<figcaption style="margin-bottom:6px;">Green plate</figcaption>
271+
<figcaption style="margin-bottom:6px;">church.tif</figcaption>
272+
<img src="images/churchCrop.jpg" alt="churchCrop.jpg" width="50%">
273+
<figcaption style="margin-bottom:6px;">Best shift: (-4, 3177), (-8, -3169)<br>6.210625s</figcaption>
271274
</figure>
272275

273276
<figure style="flex: 1 0 20%; margin:12px;">
274-
<img src="images/xr.png" alt="xr.png" width="100%">
275-
<figcaption style="margin-bottom:6px;">Red plate</figcaption>
277+
<figcaption style="margin-bottom:6px;">canal.tif</figcaption>
278+
<img src="images/canalCrop.jpg" alt="canalCrop.jpg" width="50%">
279+
<figcaption style="margin-bottom:6px;">Best shift: (-16, 3155), (6, -3147)<br>6.660678s</figcaption>
276280
</figure>
277281

278282
</div>
279283

284+
<p>
285+
The title image was computed with a best displacement of (-23, 3159), (17, -3152) in 6.26317s.
286+
</p>
280287
<hr>
281288

289+
<div align="center">
290+
<a href="https://cjxthecoder.github.io">cjxthecoder</a> | <a href="https://www.linkedin.com/in/daniel-cheng-71b475279">Linkedin</a>
291+
</div>
292+
282293
</body>
283294
</html>

0 commit comments

Comments
 (0)