Skip to content

Instantly share code, notes, and snippets.

@maxbeutel
Last active November 23, 2016 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxbeutel/c19de559ad110976dce074535aba27b0 to your computer and use it in GitHub Desktop.
Save maxbeutel/c19de559ad110976dce074535aba27b0 to your computer and use it in GitHub Desktop.
Hough Transform - create accumulator
let max_line_length = (img_width as f64).hypot(img_height as f64).ceil();
let mut accumulator: na::DMatrix<u64> = na::DMatrix::new_zeros(180, max_line_length as usize);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment