Next, let $T$ be the size of the canny mask.
Computing gradients is in $O(4Tn)$ since derivatives of each direction (vertical or horizontal)
are in $O(2Tn)$.
Finally, thresholding with hysteresis is in $O(n^2)$.
The overall complexity is thus in $O((5^3+4T+1)n^2)$.
To summarize, for the embedding map construction, the complexity of Hugo is
Next, let $T$ be the size of the canny mask.
Computing gradients is in $O(4Tn)$ since derivatives of each direction (vertical or horizontal)
are in $O(2Tn)$.
Finally, thresholding with hysteresis is in $O(n^2)$.
The overall complexity is thus in $O((5^3+4T+1)n^2)$.
To summarize, for the embedding map construction, the complexity of Hugo is