:: AForge.NET Framework :: Articles :: Forums ::

Hough Line .Theta method only returns ints

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

Hough Line .Theta method only returns ints

Postby asadhu7 » Mon Jul 23, 2018 8:13 pm

This is my first time using the Hough Line filter and I was wondering if you can get more exact measurements from the .Theta method. The documentation says it should return a double, but I am consistently only getting a rounded integer. I am not casting the value as an integer or anything else.

Thanks in advance for your assistance.
Posts: 2
Joined: Mon Jul 23, 2018 8:08 pm

Re: Hough Line .Theta method only returns ints

Postby andrew.kirillov » Tue Jul 24, 2018 6:55 am

Since you've mentioned documentation, I would suggest checking it more. See the StepsPerDegree property. It's default value is 1 - that is why you get "rounded integers".
With best regards,

Interested in supporting AForge.NET Framework?
User avatar
Site Admin, AForge.NET Developer
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Return to AForge.NET Framework