Added a convenience overload to hough_transform.

This commit is contained in:
Davis King 2018-04-20 22:27:15 -04:00
parent b5988db6a5
commit e41fad6b62
2 changed files with 33 additions and 0 deletions

View File

@ -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;

View File

@ -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.
!*/
};
}