Skip to content

Commit

Permalink
Started working on mean--shift smoothing
Browse files Browse the repository at this point in the history
  • Loading branch information
Pseudomanifold committed Dec 19, 2017
1 parent 8f3ffe8 commit f5755a2
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions include/aleph/containers/MeanShift.hh
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

0 comments on commit f5755a2

Please sign in to comment.