Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 14901
0 votes
2 answers
467 views

Difference between MATLAB hough and my implementation

I am trying to recreate MATLAB's hough function with mine. My code follows function [H,T,R] = my_hough(x,dr,dtheta) rows = size(x,1); cols = size(x,2); D = sqrt((rows - 1)^2 + (cols - 1)^ …
Controller's user avatar
0 votes
Accepted

Difference between MATLAB hough and my implementation

Well, actually it was a very silly mistake... r = n2*cos(T(i)*pi/180) + n1*sin(T(i)*pi/180); must be r = (n2-1)*cos(T(i)*pi/180) + (n1-1)*sin(T(i)*pi/180); thanks to this weird MATLAB indexing. …
Controller's user avatar