mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Added a convenience overload to hough_transform.
This commit is contained in:
parent
b5988db6a5
commit
e41fad6b62
@ -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.
|
||||
!*/
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user