mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Made pyramid_down<1> equivalent to pyramid_disable.
This commit is contained in:
parent
cb0bbee68b
commit
dc068968c3
@ -782,7 +782,7 @@ namespace dlib
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
COMPILE_TIME_ASSERT(N > 1);
|
COMPILE_TIME_ASSERT(N > 0);
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
vector<double,2> point_down (
|
vector<double,2> point_down (
|
||||||
@ -888,6 +888,9 @@ namespace dlib
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <>
|
||||||
|
class pyramid_down<1> : public pyramid_disable {};
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
class pyramid_down<2> : public dlib::impl::pyramid_down_2_1 {};
|
class pyramid_down<2> : public dlib::impl::pyramid_down_2_1 {};
|
||||||
|
|
||||||
|
@ -17,12 +17,14 @@ namespace dlib
|
|||||||
{
|
{
|
||||||
/*!
|
/*!
|
||||||
REQUIREMENTS ON N
|
REQUIREMENTS ON N
|
||||||
N > 1
|
N > 0
|
||||||
|
|
||||||
WHAT THIS OBJECT REPRESENTS
|
WHAT THIS OBJECT REPRESENTS
|
||||||
This is a simple functor to help create image pyramids. In particular, it
|
This is a simple functor to help create image pyramids. In particular, it
|
||||||
downsamples images at a ratio of N to N-1.
|
downsamples images at a ratio of N to N-1.
|
||||||
|
|
||||||
|
Note that setting N to 1 means that this object functions like
|
||||||
|
pyramid_disable (defined at the bottom of this file).
|
||||||
|
|
||||||
WARNING, when mapping rectangles from one layer of a pyramid
|
WARNING, when mapping rectangles from one layer of a pyramid
|
||||||
to another you might end up with rectangles which extend slightly
|
to another you might end up with rectangles which extend slightly
|
||||||
|
Loading…
Reference in New Issue
Block a user