Skip to content

Commit 0aef16e

Browse files
authored
Update proj1.html
1 parent 4edfae3 commit 0aef16e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project-1/proj1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ <h2>Naive Search</h2>
7171

7272
</div>
7373

74-
Unfortunately, because each crop has a height of <i>(7W / 8)</i> &times; <i>(5H / 24)</i>, the total number of NCC computations for each alignment is <i>((W - 7W / 8) + 1)</i> &times; <i>((H/3 - 5H / 24) + 1)</i> = <i>(W / 8 + 1)</i> &times; <i>(H / 8 + 1)</i> = <i>O(HW)</i>. Since each NCC computation requires <i>O(HW)</i> operations, aligning an image of dimensions <i>W</i> &times; <i>H</i> takes <i>O((HW)<sup>2</sup>)</i> time using the naive search above. Because the .tif files are about 9 times bigger than the .jpg files in both dimensions, performing the same search on these files will take more than 6500x more times longer to compute (hours instead of seconds). Even if the width is fixed, it would still require more than 9<sup>3</sup> &approx; 720x more time on .tif files. A more efficient method is required.
74+
Unfortunately, because each crop has a height of <i>(7W / 8)</i> &times; <i>(5H / 24)</i>, the total number of NCC computations for each alignment is <i>((W - 7W / 8) + 1)</i> &times; <i>((H/3 - 5H / 24) + 1)</i> = <i>(W / 8 + 1)</i> &times; <i>(H / 8 + 1)</i> = <i>O(HW)</i>. Since each NCC computation requires <i>O(HW)</i> operations, aligning an image of dimensions <i>W</i> &times; <i>H</i> takes <i>O((HW)<sup>2</sup>)</i> time using the naive search above. Because the .tif files are about 9 times bigger than the .jpg files in both dimensions, performing the same search on these files will take more than 6500x more times longer to compute (hours instead of seconds). Even if we don't crop horizontally at all, it would still have a complexity of <i>O(H<sup>2</sup>W)</i> and require more than 9<sup>3</sup> &approx; 720x more time on .tif files. A more efficient method is required.
7575
<hr>
7676

7777
<!-- Section 4 -->

0 commit comments

Comments
 (0)