Skip to content

Commit 51bf781

Browse files
authored
Adjust figure styles for better layout
1 parent ac88f90 commit 51bf781

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

project-3/proj3.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ <h3>Part 1</h3>
2424

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

27-
<figure style="flex: 1 0 20%; margin:12px;">
27+
<figure style="flex: 1 0 30%; margin:12px;">
2828
<img src="images/img_left.png" alt="img_left.png" width="50%">
2929
</figure>
3030

31-
<figure style="flex: 1 0 20%; margin:12px;">
31+
<figure style="flex: 1 0 30%; margin:12px;">
3232
<img src="images/img_center.png" alt="img_center.png" width="50%">
3333
</figure>
3434

35-
<figure style="flex: 1 0 20%; margin:12px;">
35+
<figure style="flex: 1 0 30%; margin:12px;">
3636
<img src="images/img_right.png" alt="img_right.png" width="50%">
3737
</figure>
3838
</div>
@@ -46,14 +46,14 @@ <h3>Part 2</h3>
4646

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

49-
<figure style="flex: 1 0 20%; margin:12px;">
49+
<figure style="flex: 1 0 40%; margin:12px;">
5050
<figcaption style="margin-bottom:6px;">Center (destination) image</figcaption>
51-
<img src="images/img_center.jpg" alt="img_center.jpg" width="50%">
51+
<img src="images/img_center.png" alt="img_center.png" width="50%">
5252
</figure>
5353

54-
<figure style="flex: 1 0 20%; margin:12px;">
54+
<figure style="flex: 1 0 40%; margin:12px;">
5555
<figcaption style="margin-bottom:6px;">Right (source) image</figcaption>
56-
<img src="images/img_right.jpg" alt="img_right.jpg" width="50%">
56+
<img src="images/img_right.png" alt="img_right.png" width="50%">
5757
</figure>
5858
</div>
5959

@@ -108,19 +108,19 @@ <h3>Part 3</h3>
108108

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

111-
<figure style="flex: 1 0 20%; margin:12px;">
111+
<figure style="flex: 1 0 40%; margin:12px;">
112112
<figcaption style="margin-bottom:6px;">Transformed using NN Interpolation</figcaption>
113113
<img src="images/imwraped_nearestneighborR.jpg" alt="imwraped_nearestneighborR.jpg" width="50%">
114114
</figure>
115115

116-
<figure style="flex: 1 0 20%; margin:12px;">
116+
<figure style="flex: 1 0 40%; margin:12px;">
117117
<figcaption style="margin-bottom:6px;">Transformed using Bilinear Interpolation</figcaption>
118118
<img src="images/imwraped_bilinearR.jpg" alt="imwraped_bilinearR.jpg" width="50%">
119119
</figure>
120120
</div>
121121

122122
<p>
123-
From the above, we can see that the Nearest Neighbor method introduces jagged edges due to only sampling from exact pixel values, while the Bilinear method produces a more smooth image.
123+
From the above, we can see that the Nearest Neighbor method introduces jagged edges due to only sampling from exact pixel values, while the Bilinear method produces a smoother image.
124124
</p>
125125

126126
<p>
@@ -129,25 +129,25 @@ <h3>Part 3</h3>
129129

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

132-
<figure style="flex: 1 0 20%; margin:12px;">
132+
<figure style="flex: 1 0 40%; margin:12px;">
133133
<figcaption style="margin-bottom:6px;">Original</figcaption>
134134
<img src="images/evacuationplan.png" alt="evacuationplan.png" width="50%">
135135
</figure>
136136

137-
<figure style="flex: 1 0 20%; margin:12px;">
137+
<figure style="flex: 1 0 40%; margin:12px;">
138138
<figcaption style="margin-bottom:6px;">Rectified</figcaption>
139139
<img src="images/ep_rectif.jpg" alt="ep_rectif.jpg" width="50%">
140140
</figure>
141141
</div>
142142

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

145-
<figure style="flex: 1 0 20%; margin:12px;">
145+
<figure style="flex: 1 0 40%; margin:12px;">
146146
<figcaption style="margin-bottom:6px;">Original</figcaption>
147147
<img src="images/cs170.png" alt="cs170.png" width="50%">
148148
</figure>
149149

150-
<figure style="flex: 1 0 20%; margin:12px;">
150+
<figure style="flex: 1 0 40%; margin:12px;">
151151
<figcaption style="margin-bottom:6px;">Rectified</figcaption>
152152
<img src="images/cs170_rectif.jpg" alt="cs170_rectif.jpg" width="50%">
153153
</figure>

0 commit comments

Comments
 (0)