We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From RHT module:
/// Run RHT using non-zero points in image as edge points. auto opCall(T)(Slice!(2, T*) image) { Point[] points; foreach (y; 0 .. image.length!0) foreach (x; 0 .. image.length!1) { if (image[y, x] > 0) { points ~= Point(cast(int)x, cast(int)y); } } return this.opCall(image, points); }
This example has 2 issue. The first is slow indexing. The second is ~= concatenation, which changes complexity from O(n) to O(n^2).
~=
O(n)
O(n^2)
The text was updated successfully, but these errors were encountered:
Will refactor it in #58. Thank you.
Sorry, something went wrong.
Please see aead0ad.
No branches or pull requests
From RHT module:
This example has 2 issue. The first is slow indexing. The second is
~=
concatenation, which changes complexity fromO(n)
toO(n^2)
.The text was updated successfully, but these errors were encountered: