Solved

Hough transform algorithm problem

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

786 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