Solved

Hough transform algorithm problem

Posted on 2003-11-08
4
1,052 Views
Last Modified: 2010-04-16
Hi,

I am trying to write a program that searches for lines in a Bitmap picture.

 for i := 1 to bmp.Width-2 do
    for j:= 1 to bmp.Height-2 do
      begin
//// this thing is for transforming the picture to black-white//////
        r := ColorToRGB(bmp.Canvas.Pixels[i, j]) mod $100;
        g := ColorToRGB(bmp.Canvas.Pixels[i, j]) mod $10000 div $100;
        b := ColorToRGB(bmp.Canvas.Pixels[i,j - 1]) div $10000;
        x := (3*r+6*g+b) div 10;
        bmp.Canvas.Pixels[i,j] := x + x*$100 + x*$10000;
      end;
    Image1.Picture.Bitmap := bmp;

what I need is to do something in this style, but function should use Hough algorithm to find lines.
I can't find anything useful on the net :-(

help me please... someone... at least exact algorithm would be a good start...
0
Comment
Question by:Povilas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 5

Accepted Solution

by:
Hypoviax earned 250 total points
ID: 9711871
Have a look at this component from Torry's Delphi page at:

http://www.torry.net/graphicspacks.htm

or just download it:

http://www.torry.net/vcl/graphics/packs/pixelook.zip

Features Hough analysis which may be usefule to you.

Regards,

Hypoviax
0
 
LVL 1

Author Comment

by:Povilas
ID: 9712664
well, thats only a start, cause this is component pack, as far it looks like it does not have Hough transform part, it is not freeware, and finally source code is not simple to be able to cut it out from the pack..
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question