Solved

Hough transform algorithm problem

Posted on 2003-11-08
4
1,049 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 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