You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, because each crop has a dimension of <i>(7W / 8)</i> × <i>(5H / 24)</i>, the total number of NCC computations for each alignment is <i>((W - 7W / 8) + 1)</i> × <i>((H/3 - 5H / 24) + 1)</i> = <i>(W / 8 + 1)</i> × <i>(H / 8 + 1)</i> = <i>O(HW / 64)</i>. Since 1 dot product, 2 elementwise divisions, and 2 matrix norms must be computed, we have <i>HW + 2HW + 4HW = 7HW</i> operations for each NCC computation. Therefore, to align an image of dimensions <i>W</i> × <i>H</i>, we have a time complexity of <i>O(7(HW)<sup>2</sup> / 64)</i>.
78
+
Unfortunately, because each crop has a dimension of <i>(7W / 8)</i> × <i>(5H / 24)</i>, the total number of NCC computations for each alignment is <i>((W - 7W / 8) + 1)</i> × <i>((H/3 - 5H / 24) + 1)</i> = <i>(W / 8 + 1)</i> × <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> × <i>H</i> takes <i>O((HW)<sup>2</sup>)</i> time. Because the .tif files are about 9 × 9 = 81 times bigger than the .jpg files in dimension, performing the same search on these files will require 81<sup>2</sup> ≈ 6500x more time to compute, or 9-11 hours instead of 5-6 seconds. A more efficent method is required.
79
79
</p>
80
80
<divalign="center">
81
81
<imgsrc="image4.jpg" alt="Description of image 4" width="400">
0 commit comments