Skip to content

Commit fb0edc3

Browse files
authored
Update proj1.html
1 parent 97707cc commit fb0edc3

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

project-1/proj1.html

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ <h2>Cropping with Sobel</h2>
217217
with the base image, and add the results together. This will produce a composite of the detected edges along the <i>x</i>- and <i>y</i>-axis. The next step is to reconstruct the borders of each plate from the image. Because Sobel is distance-invariant, we can convolve the kernel on only the valid patches, resulting in the new image having dimensions <i>(W - 1)</i> &times; <i>(H - 1)</i>.
218218
</p>
219219
<div align="center">
220-
<img src="images/edges" alt="edges.png" width="50%">
220+
<img src="images/edges.png" alt="edges.png" width="50%">
221221
<figcaption style="margin-bottom:6px;">sobelX &starf; img + sobelY &starf; img</figcaption>
222222
</div>
223223
<p>
@@ -227,23 +227,23 @@ <h2>Cropping with Sobel</h2>
227227
<img src="images/y.png" alt="y.png" width="50%">
228228
</div>
229229
<p>
230-
The vertical borders can be computed using a similar strategy, except that we need to split the column averages into 3 subsections based on the values found in the previous part. This will ensure that we are able to find the vertical edges of each image plate. Although the center/green plate is not used in the alignment process, its borders will be needed to compute the final crop of the composited image.
230+
The vertical borders can be computed using a similar strategy, except that we need to split the column averages into 3 subsections based on the values found in the previous part. This will ensure that we are able to find the vertical edges of each plate image. Although the center/green plate is not used in the alignment process, its borders will be needed to compute the final crop of the composited image.
231231
</p>
232232

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

235235
<figure style="flex: 1 0 20%; margin:12px;">
236-
<img src="images/xb.png" alt="xb.png" width="50%">
236+
<img src="images/xb.png" alt="xb.png" width="100%">
237237
<figcaption style="margin-bottom:6px;">Blue plate</figcaption>
238238
</figure>
239239

240240
<figure style="flex: 1 0 20%; margin:12px;">
241-
<img src="images/xg.png" alt="xg.png" width="50%">
241+
<img src="images/xg.png" alt="xg.png" width="100%">
242242
<figcaption style="margin-bottom:6px;">Green plate</figcaption>
243243
</figure>
244244

245245
<figure style="flex: 1 0 20%; margin:12px;">
246-
<img src="images/xr.png" alt="xr.png" width="50%">
246+
<img src="images/xr.png" alt="xr.png" width="100%">
247247
<figcaption style="margin-bottom:6px;">Red plate</figcaption>
248248
</figure>
249249

@@ -254,6 +254,29 @@ <h2>Cropping with Sobel</h2>
254254
<figcaption style="margin-bottom:6px;">All computed borders & subarray boundries</figcaption>
255255
</div>
256256

257+
<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:
259+
</p>
260+
261+
<div style="display:flex; flex-wrap:wrap; justify-content:center; text-align:center;">
262+
263+
<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>
266+
</figure>
267+
268+
<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+
</figure>
272+
273+
<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>
276+
</figure>
277+
278+
</div>
279+
257280
<hr>
258281

259282
</body>

0 commit comments

Comments
 (0)