Solved

Hough transform algorithm problem

Posted on 2003-11-08
4
1,043 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
4 Comments
 
LVL 5

Accepted Solution

by:
Hypoviax earned 250 total points
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now