Commit e41fad6b authored by Davis King's avatar Davis King

Added a convenience overload to hough_transform.

parent b5988db6
......@@ -346,6 +346,19 @@ namespace dlib
}
}
template <
typename in_image_type,
typename out_image_type
>
void operator() (
const in_image_type& img_,
out_image_type& himg_
) const
{
rectangle box(0,0, num_columns(img_)-1, num_rows(img_)-1);
(*this)(img_, box, himg_);
}
private:
unsigned long _size;
......
......@@ -137,6 +137,26 @@ namespace dlib
y-axis the distance of the line from the center of the box.
!*/
template <
typename in_image_type,
typename out_image_type
>
void operator() (
const in_image_type& img,
out_image_type& himg
) const;
/*!
requires
- in_image_type == an image object that implements the interface defined in
dlib/image_processing/generic_image.h and it must contain grayscale pixels.
- out_image_type == an image object that implements the interface defined in
dlib/image_processing/generic_image.h and it must contain grayscale pixels.
- num_rows(img) == size()
- num_columns(img) == size()
ensures
- performs: (*this)(img, get_rect(img), himg);
That is, just runs the hough transform on the whole input image.
!*/
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment