How to convert a straight line into polar coordinates?
I'm trying to go through a simple exercise for the Hough transform where I have a simple straight line in the form of $;y=-x+5;$ and I want to obtain polar coordinates $;(rho,theta);$, I know polar coordinates can be represented by $;rho = x⋅cos(theta) + y⋅sin(theta),;$ what are the steps I'm supposed to take to solve this problem? I have searched around and couldn't really find any examples I can follow in this exact format
edit: maybe I am not wording it clearly, this is the question word for word:
geometry polar-coordinates
add a comment |
I'm trying to go through a simple exercise for the Hough transform where I have a simple straight line in the form of $;y=-x+5;$ and I want to obtain polar coordinates $;(rho,theta);$, I know polar coordinates can be represented by $;rho = x⋅cos(theta) + y⋅sin(theta),;$ what are the steps I'm supposed to take to solve this problem? I have searched around and couldn't really find any examples I can follow in this exact format
edit: maybe I am not wording it clearly, this is the question word for word:
geometry polar-coordinates
Are you sure that’s what $p$ is supposed to be?
– amd
Nov 30 at 20:15
thats just the format, it says a equation that is y=mx+b can be expressed in polar coordinates like that equation. it says the hough transform of a line turns into a point and I need to find the point in (p,θ) space
– dshawn
Nov 30 at 23:02
2
"I know polar coordinates can be represented by p=x⋅cos(θ)+y⋅sin(θ)": er, no.
– Yves Daoust
Nov 30 at 23:16
Well the issue is this equation is given to me by the question, so I don't know am I misreading the question? I know the p is a greek letter and not a normal p. I will post the full question just in case
– dshawn
Dec 1 at 1:57
add a comment |
I'm trying to go through a simple exercise for the Hough transform where I have a simple straight line in the form of $;y=-x+5;$ and I want to obtain polar coordinates $;(rho,theta);$, I know polar coordinates can be represented by $;rho = x⋅cos(theta) + y⋅sin(theta),;$ what are the steps I'm supposed to take to solve this problem? I have searched around and couldn't really find any examples I can follow in this exact format
edit: maybe I am not wording it clearly, this is the question word for word:
geometry polar-coordinates
I'm trying to go through a simple exercise for the Hough transform where I have a simple straight line in the form of $;y=-x+5;$ and I want to obtain polar coordinates $;(rho,theta);$, I know polar coordinates can be represented by $;rho = x⋅cos(theta) + y⋅sin(theta),;$ what are the steps I'm supposed to take to solve this problem? I have searched around and couldn't really find any examples I can follow in this exact format
edit: maybe I am not wording it clearly, this is the question word for word:
geometry polar-coordinates
geometry polar-coordinates
edited Dec 1 at 20:56
user376343
2,7782822
2,7782822
asked Nov 30 at 17:25
dshawn
324
324
Are you sure that’s what $p$ is supposed to be?
– amd
Nov 30 at 20:15
thats just the format, it says a equation that is y=mx+b can be expressed in polar coordinates like that equation. it says the hough transform of a line turns into a point and I need to find the point in (p,θ) space
– dshawn
Nov 30 at 23:02
2
"I know polar coordinates can be represented by p=x⋅cos(θ)+y⋅sin(θ)": er, no.
– Yves Daoust
Nov 30 at 23:16
Well the issue is this equation is given to me by the question, so I don't know am I misreading the question? I know the p is a greek letter and not a normal p. I will post the full question just in case
– dshawn
Dec 1 at 1:57
add a comment |
Are you sure that’s what $p$ is supposed to be?
– amd
Nov 30 at 20:15
thats just the format, it says a equation that is y=mx+b can be expressed in polar coordinates like that equation. it says the hough transform of a line turns into a point and I need to find the point in (p,θ) space
– dshawn
Nov 30 at 23:02
2
"I know polar coordinates can be represented by p=x⋅cos(θ)+y⋅sin(θ)": er, no.
– Yves Daoust
Nov 30 at 23:16
Well the issue is this equation is given to me by the question, so I don't know am I misreading the question? I know the p is a greek letter and not a normal p. I will post the full question just in case
– dshawn
Dec 1 at 1:57
Are you sure that’s what $p$ is supposed to be?
– amd
Nov 30 at 20:15
Are you sure that’s what $p$ is supposed to be?
– amd
Nov 30 at 20:15
thats just the format, it says a equation that is y=mx+b can be expressed in polar coordinates like that equation. it says the hough transform of a line turns into a point and I need to find the point in (p,θ) space
– dshawn
Nov 30 at 23:02
thats just the format, it says a equation that is y=mx+b can be expressed in polar coordinates like that equation. it says the hough transform of a line turns into a point and I need to find the point in (p,θ) space
– dshawn
Nov 30 at 23:02
2
2
"I know polar coordinates can be represented by p=x⋅cos(θ)+y⋅sin(θ)": er, no.
– Yves Daoust
Nov 30 at 23:16
"I know polar coordinates can be represented by p=x⋅cos(θ)+y⋅sin(θ)": er, no.
– Yves Daoust
Nov 30 at 23:16
Well the issue is this equation is given to me by the question, so I don't know am I misreading the question? I know the p is a greek letter and not a normal p. I will post the full question just in case
– dshawn
Dec 1 at 1:57
Well the issue is this equation is given to me by the question, so I don't know am I misreading the question? I know the p is a greek letter and not a normal p. I will post the full question just in case
– dshawn
Dec 1 at 1:57
add a comment |
3 Answers
3
active
oldest
votes
After the definition of the Hough transform is
$rho$ equal to the distance of the origin to the line. The nearest point on the line (to the origin) is $;P=left(frac{5}{2},frac{5}{2}right);$ so $rho=frac{5sqrt 2}{2}.$
$theta=frac pi4;$ is the angle between $x-$ axis and $OA.$
add a comment |
Using polar coordinates, a line is represented as
$$ax+by+c=arhocostheta+brhosintheta+c=0$$
or
$$rho=-frac c{acostheta+bsintheta}.$$
With $theta_0:=tandfrac ba$ and $p:=-dfrac c{sqrt{a^2+b^2}}$, it can be rewritten
$$rho=frac p{cos(theta-theta_0)},$$
where $theta_0$ is the direction of the normal to the line, and $p$ the distance from the line to the origin.
add a comment |
You can write any point $(x,y)$ on the line as $(rcos theta, rsin theta)$, where $r = sqrt{x^2+y^2}$ and $theta = tan^{-1}(y/x)$.
For example, consider the point $(4,3)$, which is on the line. You have $r = sqrt{4^2+3^2} = 5$ and $theta = tan^{-1}(3/4) = 0.6435$. This gives $cos theta = 0.8$ and $sin theta = 0.6$. You can see that $x = r cos theta$ and $y = r sin theta$.
is it $tan ^{-1}?$
– user376343
Dec 1 at 20:58
@user376343 Yes, fixed it. Thanks,
– Aditya Dua
Dec 2 at 3:41
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3020367%2fhow-to-convert-a-straight-line-into-polar-coordinates%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
After the definition of the Hough transform is
$rho$ equal to the distance of the origin to the line. The nearest point on the line (to the origin) is $;P=left(frac{5}{2},frac{5}{2}right);$ so $rho=frac{5sqrt 2}{2}.$
$theta=frac pi4;$ is the angle between $x-$ axis and $OA.$
add a comment |
After the definition of the Hough transform is
$rho$ equal to the distance of the origin to the line. The nearest point on the line (to the origin) is $;P=left(frac{5}{2},frac{5}{2}right);$ so $rho=frac{5sqrt 2}{2}.$
$theta=frac pi4;$ is the angle between $x-$ axis and $OA.$
add a comment |
After the definition of the Hough transform is
$rho$ equal to the distance of the origin to the line. The nearest point on the line (to the origin) is $;P=left(frac{5}{2},frac{5}{2}right);$ so $rho=frac{5sqrt 2}{2}.$
$theta=frac pi4;$ is the angle between $x-$ axis and $OA.$
After the definition of the Hough transform is
$rho$ equal to the distance of the origin to the line. The nearest point on the line (to the origin) is $;P=left(frac{5}{2},frac{5}{2}right);$ so $rho=frac{5sqrt 2}{2}.$
$theta=frac pi4;$ is the angle between $x-$ axis and $OA.$
answered Dec 1 at 21:17
user376343
2,7782822
2,7782822
add a comment |
add a comment |
Using polar coordinates, a line is represented as
$$ax+by+c=arhocostheta+brhosintheta+c=0$$
or
$$rho=-frac c{acostheta+bsintheta}.$$
With $theta_0:=tandfrac ba$ and $p:=-dfrac c{sqrt{a^2+b^2}}$, it can be rewritten
$$rho=frac p{cos(theta-theta_0)},$$
where $theta_0$ is the direction of the normal to the line, and $p$ the distance from the line to the origin.
add a comment |
Using polar coordinates, a line is represented as
$$ax+by+c=arhocostheta+brhosintheta+c=0$$
or
$$rho=-frac c{acostheta+bsintheta}.$$
With $theta_0:=tandfrac ba$ and $p:=-dfrac c{sqrt{a^2+b^2}}$, it can be rewritten
$$rho=frac p{cos(theta-theta_0)},$$
where $theta_0$ is the direction of the normal to the line, and $p$ the distance from the line to the origin.
add a comment |
Using polar coordinates, a line is represented as
$$ax+by+c=arhocostheta+brhosintheta+c=0$$
or
$$rho=-frac c{acostheta+bsintheta}.$$
With $theta_0:=tandfrac ba$ and $p:=-dfrac c{sqrt{a^2+b^2}}$, it can be rewritten
$$rho=frac p{cos(theta-theta_0)},$$
where $theta_0$ is the direction of the normal to the line, and $p$ the distance from the line to the origin.
Using polar coordinates, a line is represented as
$$ax+by+c=arhocostheta+brhosintheta+c=0$$
or
$$rho=-frac c{acostheta+bsintheta}.$$
With $theta_0:=tandfrac ba$ and $p:=-dfrac c{sqrt{a^2+b^2}}$, it can be rewritten
$$rho=frac p{cos(theta-theta_0)},$$
where $theta_0$ is the direction of the normal to the line, and $p$ the distance from the line to the origin.
edited Nov 30 at 23:20
answered Nov 30 at 23:13
Yves Daoust
124k671221
124k671221
add a comment |
add a comment |
You can write any point $(x,y)$ on the line as $(rcos theta, rsin theta)$, where $r = sqrt{x^2+y^2}$ and $theta = tan^{-1}(y/x)$.
For example, consider the point $(4,3)$, which is on the line. You have $r = sqrt{4^2+3^2} = 5$ and $theta = tan^{-1}(3/4) = 0.6435$. This gives $cos theta = 0.8$ and $sin theta = 0.6$. You can see that $x = r cos theta$ and $y = r sin theta$.
is it $tan ^{-1}?$
– user376343
Dec 1 at 20:58
@user376343 Yes, fixed it. Thanks,
– Aditya Dua
Dec 2 at 3:41
add a comment |
You can write any point $(x,y)$ on the line as $(rcos theta, rsin theta)$, where $r = sqrt{x^2+y^2}$ and $theta = tan^{-1}(y/x)$.
For example, consider the point $(4,3)$, which is on the line. You have $r = sqrt{4^2+3^2} = 5$ and $theta = tan^{-1}(3/4) = 0.6435$. This gives $cos theta = 0.8$ and $sin theta = 0.6$. You can see that $x = r cos theta$ and $y = r sin theta$.
is it $tan ^{-1}?$
– user376343
Dec 1 at 20:58
@user376343 Yes, fixed it. Thanks,
– Aditya Dua
Dec 2 at 3:41
add a comment |
You can write any point $(x,y)$ on the line as $(rcos theta, rsin theta)$, where $r = sqrt{x^2+y^2}$ and $theta = tan^{-1}(y/x)$.
For example, consider the point $(4,3)$, which is on the line. You have $r = sqrt{4^2+3^2} = 5$ and $theta = tan^{-1}(3/4) = 0.6435$. This gives $cos theta = 0.8$ and $sin theta = 0.6$. You can see that $x = r cos theta$ and $y = r sin theta$.
You can write any point $(x,y)$ on the line as $(rcos theta, rsin theta)$, where $r = sqrt{x^2+y^2}$ and $theta = tan^{-1}(y/x)$.
For example, consider the point $(4,3)$, which is on the line. You have $r = sqrt{4^2+3^2} = 5$ and $theta = tan^{-1}(3/4) = 0.6435$. This gives $cos theta = 0.8$ and $sin theta = 0.6$. You can see that $x = r cos theta$ and $y = r sin theta$.
edited Dec 2 at 3:41
answered Nov 30 at 17:39
Aditya Dua
80418
80418
is it $tan ^{-1}?$
– user376343
Dec 1 at 20:58
@user376343 Yes, fixed it. Thanks,
– Aditya Dua
Dec 2 at 3:41
add a comment |
is it $tan ^{-1}?$
– user376343
Dec 1 at 20:58
@user376343 Yes, fixed it. Thanks,
– Aditya Dua
Dec 2 at 3:41
is it $tan ^{-1}?$
– user376343
Dec 1 at 20:58
is it $tan ^{-1}?$
– user376343
Dec 1 at 20:58
@user376343 Yes, fixed it. Thanks,
– Aditya Dua
Dec 2 at 3:41
@user376343 Yes, fixed it. Thanks,
– Aditya Dua
Dec 2 at 3:41
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3020367%2fhow-to-convert-a-straight-line-into-polar-coordinates%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you sure that’s what $p$ is supposed to be?
– amd
Nov 30 at 20:15
thats just the format, it says a equation that is y=mx+b can be expressed in polar coordinates like that equation. it says the hough transform of a line turns into a point and I need to find the point in (p,θ) space
– dshawn
Nov 30 at 23:02
2
"I know polar coordinates can be represented by p=x⋅cos(θ)+y⋅sin(θ)": er, no.
– Yves Daoust
Nov 30 at 23:16
Well the issue is this equation is given to me by the question, so I don't know am I misreading the question? I know the p is a greek letter and not a normal p. I will post the full question just in case
– dshawn
Dec 1 at 1:57