-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started working on mean--shift smoothing
- Loading branch information
1 parent
8f3ffe8
commit f5755a2
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#ifndef ALEPH_CONTAINERS_MEAN_SHIFT_HH__ | ||
#define ALEPH_CONTAINERS_MEAN_SHIFT_HH__ | ||
|
||
#include <iterator> | ||
#include <vector> | ||
|
||
namespace aleph | ||
{ | ||
|
||
namespace containers | ||
{ | ||
|
||
template < | ||
class Container , | ||
class Wrapper , | ||
class InputIterator, | ||
> void meanShiftSmoothing( | ||
const Container& container, | ||
unsigned k, | ||
InputIterator begin, InputIterator end ) | ||
{ | ||
using T = typename std::iterator_traits<InputIterator>::value_type; | ||
auto n = container.size(); | ||
|
||
// Makes it easier to permit random access to the container. | ||
std::vector<T> data( begin, end ); | ||
} | ||
|
||
} // namespace containers | ||
|
||
} // namespace aleph | ||
|
||
#endif |