?
Solved

Hough transform algorithm problem

Posted on 2003-11-08
4
Medium Priority
?
1,055 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 1000 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month9 days, 20 hours left to enroll

762 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