Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
drawing line in parameter space

Subject: drawing line in parameter space

From: ike

Date: 25 Apr, 2012 05:16:07

Message: 1 of 5

how can i represent a point in image (x,y) to the line in parameter space (m,c)
if the equation is y= m x + c

help me with code please ....

Subject: drawing line in parameter space

From: Matt J

Date: 25 Apr, 2012 13:30:14

Message: 2 of 5

"ike " <ike.marsa@gmail.com> wrote in message <jn81an$8ie$1@newscl01ah.mathworks.com>...
> how can i represent a point in image (x,y) to the line in parameter space (m,c)
> if the equation is y= m x + c
>
> help me with code please ....
==============

Please explain this better.

Subject: drawing line in parameter space

From: ike

Date: 26 Apr, 2012 04:35:13

Message: 3 of 5

I use the adaptive hough transform. The principal method in HT is a point in image space (x,y) is represented with a line in parameter space(hough space (m,c) )

in image space, line equation is :
y = m x + c (m=slope and c=intercept) of the line wiyh the y axis.

so in parameter space line equation is :
c = -x m + y

could you help me with the code to represent that point in line at parameter space ?
thanks a lot for your help....

Subject: drawing line in parameter space

From: Matt J

Date: 26 Apr, 2012 07:55:12

Message: 4 of 5

"ike " <ike.marsa@gmail.com> wrote in message <jnaja1$dph$1@newscl01ah.mathworks.com>...
> I use the adaptive hough transform. The principal method in HT is a point in image space (x,y) is represented with a line in parameter space(hough space (m,c) )
>
> in image space, line equation is :
> y = m x + c (m=slope and c=intercept) of the line wiyh the y axis.
>
> so in parameter space line equation is :
> c = -x m + y
>
> could you help me with the code to represent that point in line at parameter space ?
> thanks a lot for your help....
===================

What do you mean "represent' it? Given a point x,y what do you want the output to be? A set of numeric data? A plot?

Regardless, there's lots of HT code on the file exchange, e.g.,

http://www.mathworks.com/matlabcentral/fileexchange/30806-find-and-mark-lines-using-hough-transform

Subject: drawing line in parameter space

From: ike

Date: 26 Apr, 2012 09:02:07

Message: 5 of 5

i want the output in plot of line

the problem is i use y= m x + c
not use
rho = x cos theta + y sin theta

so every point in image space will be straight line in parameter space

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us