Skip to content

Commit 5b8c3a6

Browse files
authored
Update proj1.html
1 parent fdf2266 commit 5b8c3a6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

project-1/proj1.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2>Introduction</h2>
1414
The Prokudin-Gorskii photo collection consists of 3 digitalized glass plate images, each taken in grayscale with a blue, green, and red filter (ordered from top to bottom). To obtain a colorized version of the original image, we can align the images and use the pixel brightness (normalized to [0, 255]) from each image as the value of its respective color channel. This project aims to perform the aligning and compositing process automatically, given any image containing the 3 glass plates in BGR order.
1515
</p>
1616
<div align="center">
17-
<img src="intro.png" alt="Introduction">
17+
<img src="intro.png" alt="intro.png">
1818
</div>
1919
<hr>
2020

@@ -24,13 +24,13 @@ <h2>NCC & Preprocessing</h2>
2424
To begin the alignment process, we need a function that can compute a similarity score between 2 images. Motivated by the fact that given <i>a + b = c</i>, <i>ab</i> attains its highest value at <i>a = b = c/2</i>, we can use the normalized cross-correlation
2525
</p>
2626
<div align="center">
27-
<img src="images/equation.png" alt="Description of image 2">
27+
<img src="images/equation.png" alt="equation.png" width="50%">
2828
</div>
2929
<p>
3030
for 2 vectors <strong>x</strong> and <strong>y</strong>. After normalizing each image with the L<sup>2</sup> norm, the dot product will ensure that the score will be the highest when the features of both images are the most similar. Since grayscale images are represented by 2d arrays, we can first flatten the 2 images we want to compare, before using them as the input vectors. A caveat of this method is that both images should be the same size. However, we can approximate the crop dimensions for just the blue and red plates and find the best displacements with respect to the green plate. The final step would require us to find the intersection of 3 rectangles, which is illustrated below:
3131
</p>
3232
<div align="center">
33-
<img src="images/proj1.png" alt="Description of image 2" width="50%">
33+
<img src="images/proj1.png" alt="proj1.png" width="50%">
3434
</div>
3535
<hr>
3636

@@ -49,23 +49,23 @@ <h2>Naive Search</h2>
4949
<figure style="flex:1; text-align:center;">
5050
<div class="figure-wrap">
5151
<img class="media" src="images/cathedralNaive.jpg"
52-
alt="cathedralNaive.jpg" loading="lazy" width="25%"/>
52+
alt="cathedralNaive.jpg" loading="lazy" width="50%"/>
5353
</div>
5454
<figcaption>Best shift: (-2, 336), (1, -334)<br>5.054158s</figcaption>
5555
</figure>
5656

5757
<figure style="flex:1; text-align:center;">
5858
<div class="figure-wrap">
5959
<img class="media" src="cathedralNaive.jpg"
60-
alt="cathedralNaive.jpg" loading="lazy" width="25%"/>
60+
alt="cathedralNaive.jpg" loading="lazy" width="50%"/>
6161
</div>
6262
<figcaption>Best shift: (-2, 344), (1, -335)<br>5.890041s</figcaption>
6363
</figure>
6464

6565
<figure style="flex:1; text-align:center;">
6666
<div class="figure-wrap">
6767
<img class="media" src="images/tobolskNaive.jpg"
68-
alt="tobolskNaive.jpg" loading="lazy" width="25%"/>
68+
alt="tobolskNaive.jpg" loading="lazy" width="50%"/>
6969
</div>
7070
<figcaption>Best shift: (-3, 338), (1, -337)<br>5.436964s</figcaption>
7171
</figure>

0 commit comments

Comments
 (0)