OZONE Asylum
Forums
OZONE
Barcode/Datamatrix/Image Vectorization
This page's ID:
28465
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
It will be rotated any which way, unfortunatly. By now, I'm pretty sure the [url=http://en.wikipedia.org/wiki/Hough_transform]hough transformation[/url] is what I need. After all, it finds lines in images, and I have two fairly long lines at a certain angle, plus a number of short, parallel lines. I've got it up and running and it's not doing badly ( having quirks though ;) ), for one (conceptual )exception: r = x * cos ( theta ) + y * sin (theta ) If a line is parallel to the x-axis, theta is 0. Later on, doing the backwards transformation on the points containing the longest/most likely lines in the hough space, I simply do for x = 0 to width: y = ( r - x * cos ( theta) / sin(theta) ) paintPixelBlue(x,y) (I know this does not paint lines paralell to the y a And here comes the problem. Theta is 0, ergo sin(theta) = 0 as well. I know there's a a line parallel to my axis, but I just lost all information to where it is :(. So long, ->Tyberius Prime
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »