What goes on with aliased lines...
for example..
X
X
X
X
X
X
X
Is this three vertical lines or is it one line?
I seem to remember there being a modified hough transform that would
tell you were the line started and ended.. anyone else seen that
paper?
If so.. Got a link?
In my opinion,
whether they are one line or not is depend on the bin you use in hough
transform parameter space.
and after hough transfrom, the bin where peak lying holds the
length(in pixel) and line parameters (e.g. K and B in y = K*x+ B).
With these parameters, the ending of line is possible to be found by
some discussion.
Best Regards,
lomas
Determining the length of your line: if the input to the hough
transform is a binary image, then the length of any possible line
could be considered to be the value in the corresponding accumulator
bin. However, I would not recommend using this as the length. I
think that the HT is good for getting general positions of lines, but
if you want length/position of lines you need to then use other
methods as well.
I'm wondering if I should find a peak and then use the neighbors as a
weighted sum to get
the actual R Theta... Make sence?
You can increase the dimension of your Hough transform to make it 4
dimensions instead of 2 (for example the 4 dimensions are the
x1,y1,x2,y2) and find your maximum in this 4 dimensional space.
You will directly get your x1,y1,x2,y2 and the corresponding length.
Otherwise, I don't really know how to get the length in the usual Hough
transform since it only encodes directions.
--
Nicolas Bonneel
http://www.bonneel.com
MATLAB has the houghlines function to get the length. I have tried it
is very useful. You must provide two parameters : 'FillGap' and
'MinLength'
Oddly enough thats exactly what I did in my application.
Cool.