00001 #ifndef HOUGHTRANSFORM_H 00002 #define HOUGHTRANSFORM_H 00003 00004 #include "MBARI/Geometry2D.H" 00005 #include "Util/Types.H" // for byte 00006 00007 #include <vector> 00008 00009 template <class T> class Image; 00010 template <class T> class PixRGB; 00011 00012 /******************************************************************************* 00013 * PROCEDURE: houghTransform 00014 * PURPOSE: To perform line detection through a hough transform 00015 * NAME: Harold Lim 00016 * DATE: 2006 00017 // thetares is the resolution of each theta 00018 // dRes is the resolution of the D 00019 // returns the number of lines found 00020 *******************************************************************************/ 00021 std::vector <LineSegment2D> 00022 houghTransform(Image<byte> &inputImage, float thetaRes, float dRes, 00023 int threshold, Image< PixRGB<byte> > &output); 00024 00025 #endif